Extracted Keypoints and Features are not at points of interest

89 views Asked by At

I am working with an image that has blue and gray spots. Eventually I want to recognise all the images in a dataset that have this scene. I am using SIFT for this. I tried to map the keypoints that looks like this:

The generated keypoints are not at points of interest according to me. Am I doing anything wrong?

im1 = im2single(im1) ;
im1g = rgb2gray(im1) ;
[fa,da] = vl_sift(im1g) ; % fa is 4x14869, da is 128x14869
perm = randperm(size(fa,2)) ;
start=-49;
int=49;
while start<length(fa)
    figure % image(im1) % start=start+50
    sel=perm(start:start+int)
    h1=vl_plotframe(fa(:,sel)) ;
    set(h1, 'color', 'y', 'linewidth',3);
    start;
    pause;
end
1

There are 1 answers

0
burn4science On

Your code doesn't work for me. It says in this line:

sel=perm(start:start+int)

Subscript indices must either be real positive integers or logicals.

You set start=-49, which is a negative index. Also start=start+50 gives an error... sorry, I can't reproduce your example.

Could you please correct your code?