% draw line from the matched point in one image to the respective matched point in another image. Parts that are not used in the matrices will be black. % with the same proportion and dimension, we can now show both % transfer both images to the new matrices respectively. Newim2 = uint8(zeros(longestWidth, longestHeight, 3)) Newim = uint8(zeros(longestWidth, longestHeight, 3)) %3 cuz image is RGB % create new matrices with longest width and longest height % check for sizes and take longest width and longest height into = vl_ubcmatch(d,d2,threshold) %threshold originally is 1.5 % vl_ubcmatch to perform feature matching: Here is the code: % After we have applied vl_sift with 2 images, we will get frames f,f2, Is there a better method for this in Matlab? If possible, I want something like an empty panel that I can draw my image, draw lines freely and zoom freely, just like drawing 2D games in OpenGL style.įrom zplesivcak's suggestion, yes, it is possible, and not that problematic after all. I think subplot isn't a good way to go for something like this. f, d and f2, d2 are frames and descriptors from vl_sift function from 2 images respectively) = vl_ubcmatch(d,d2,threshold) %threshold originally is 1.5 When you add an image into the subplot, the size changes and the normalization failed. But that only works if the subplot stays that way. However, I am currently stuck in matlab's procedure. I do understand that vl_ubcmatch returns 2 arrays of matched indices, and it is not a problem to map them for which point goes to which point on two images. It works, but I have one more requirement, which is to match the SIFT points of the two images and show them, like this: I did a simple test with 2 simple images here (the right image is just rotated version of the left), and I got the result accordingly: These below are my simple testing images: I am doing vlfeat in Matlab and I am following this question here.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |