You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
459 B
Matlab
11 lines
459 B
Matlab
function keypoints=exclude_keypoints_not_visible_after_transform(keypoints,H,Iquery,patchHalfLen)
|
|
|
|
%find location of keypoints on query image
|
|
keypoints_trans=project_keypoint(keypoints,H);
|
|
|
|
%remove keypoints that are not visible in 2nd image
|
|
[a,b,c]=size(Iquery);
|
|
unseeable=find(keypoints_trans(:,1)<1+patchHalfLen | keypoints_trans(:,1)>a-patchHalfLen | keypoints_trans(:,2)<1+patchHalfLen | keypoints_trans(:,2)>b-patchHalfLen);
|
|
keypoints(unseeable,:)=[];
|
|
|