How can I transform an image to match with a 2D array?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello, I want to transform an image (rotate, shrink,...) automatically to match with a 2D array.
The 2D array matrix has similar profile of the image (with very low resolution). This is the 2D array I have, and plotted using pcolor.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/193643/image.jpeg)
The following is the image I want to transform to match to the matrix.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/193648/image.jpeg)
My final goal is to find out the region circled in green in the image on the matrix. After matching the two, I plan to use roipoly to select the region on matrix.
If you have any comments or suggestions, it would be appreciable.
Thanks in advance.
0 Kommentare
Antworten (1)
Geoffrey Schivre
am 1 Nov. 2018
Hello,
Here is how I would do it : I first start to binarize both images. To do so use the image segmenter app if you have it or use line like :
BW = imfill(myMatrix > someThreshold,'holes');
Then use imregcorr function with your two binary image to find the geometric transformation between them. If you don't have the computer vision toolbox you can try this https://fr.mathworks.com/matlabcentral/fileexchange/19731-fourier-mellin-image-registration.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Geometric Transformation and Image Registration finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!