Matlab - Register and crop aligned images from two different sources

Good afternoon,

In MATLAB, I have several pairs of images of various designs. Images in pairs are received by different cameras. Images are in different orientations, although I created transformations (for each pair of images) that can be applied to correct it. Their borders contain the same physical region, but one image has smaller dimensions (i.e. 50x50 versus 250x250). Furthermore, the smaller image is not in a consistent place in the large image. However, the smaller image is within the boundaries of the larger image.

I would like to do the following: after applying my predefined transform to a larger image, I want to crop a portion of the larger image that has the same thing as the smaller image.

I know that I can point to XDataand YDatathe application of my transformation to output the converted image subset, but I do not know how to link it to larger image location. (Note: Transformations were created from breakpoint structures)

Please let me know if something is unclear.

Any help is greatly appreciated.

+4
source share
1 answer

, , , , . , , imtransform .

imtransform :

[out, xdata, ydata] = imtransform(in, tform);

in , tform , , , . XData YData. XData YData , . , , . , .

out - , tform. XData YData - x y , . , , , . , , , .

NB: XData YData . , , ( , ), . , , , .

+3

Source: https://habr.com/ru/post/1541295/


All Articles