Points in image disappear when using imtranslate()
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Pierre Cilliers
am 8 Jan. 2016
Kommentiert: Pierre Cilliers
am 14 Jan. 2016
Two black-and-white images are imported, which are matrices of sizes 256 x 256 and 301 x 601 respectively.
Full intensity is 140.0, and black of course is 0.0.
The goal is to be able to shift the smaller image around, over the larger image, and finding similar patterns.
When using:
img1 = imtranslate(img1,[100, -50],'FillValues',255);
imshowpair(img1, img2)
some of the points have disappeared from the smaller image (img1 in this case). This only happens when the image has been shifted. Any help or suggestions would be appreciated.
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 8 Jan. 2016
Is your drawing window at least 601 pixels wide? If not then MATLAB needs to resize the image to fit the window, and when that is done, fine details could disappear.
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!