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.
8 lines
345 B
Matlab
8 lines
345 B
Matlab
function keypoint_trans=project_keypoint(keypoint,H)
|
|
%find location of keypoint after projection operator applied
|
|
keypoint_trans=H*[fliplr(keypoint),ones(size(keypoint,1),1)]';
|
|
keypoint_trans=keypoint_trans';
|
|
keypoint_trans=keypoint_trans./keypoint_trans(:,3);
|
|
keypoint_trans=keypoint_trans(:,1:2);
|
|
keypoint_trans=round(fliplr(keypoint_trans));
|