Matlab Implementation (Calculate the KP-dominant orientation)
{"Image DocumentName": "Matlab Implementation (Calculate the KP-dominant orientation)", "Image ImageDescription": "w=mag(a11:a12,a21:a22). weights(a31:a32,a41:a42); %weight of each pixel in the bin, after gaussian. weighting and magnitude assignation. ori=ori(a11:a12,a21:a22); ori=ceil((ori+pi) 18/pi); %obtain the direction separated in bins of each one of the points near to. the keypoint. [orix,oriy]=size(ori); %calculate histogram. for i1=1:orix. for j1=1:oriy. hist(ori(i1,j1))=hist(ori(i1,j1))+w(i1,j1); end. [maxval,bin]=max(hist); list_points(i,6)=bin; lista=find(hist>(0.8 maxval)); more=size(lista,1); if(more>1) for i3=1:more. if(lista(i3) ~= bin) new_ones=[new_ones; [x1 y1 octave list_points(i,4) list_points(i,5) lista(i3)]]; sift_desc=[list_points];", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}