How to stop image auto resize after using imcrop?
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
rupam baruah
am 10 Dez. 2015
Kommentiert: Image Analyst
am 10 Dez. 2015
In a GUI I load a rgb image in axes1. After that I cropped one portion of the image and showing that cropped portion in axes2. But after cropping the size of the cropped portion is changed. Its zoomed. How to show the cropped porition in its actual size in axes2? Is there any option to stop that auto zoom?
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 10 Dez. 2015
In axes2, first display the original image, then put "hold on", and then display your cropped image. The axes will stay adjusted to what they were when you showed the first image.
2 Kommentare
Image Analyst
am 10 Dez. 2015
Then display zeros or some uniform image. Try this:
bigImage = imread('moon.tif');
subplot(1, 2, 1);
imshow(bigImage);
axis on;
smallImage = bigImage(250:300,50:300);
subplot(1, 2, 2);
imshow(zeros(size(bigImage)));
axis on;
hold on;
imshow(smallImage);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Read, Write, and Modify Image finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!