How to cut an image manually using pixels values with for loop without imcrop ?

Respuestas (2)

Not sure what you mean. How about this
grayImage = imread('moon.tif');
figure(1)
imshow(grayImage)
for k = 1 : 3
uiwait(helpdlg('Drag out a box to crop the image.'));
croppedImage = imcrop(grayImage);
figure(2) % Switch to a figure just for the cropped images only.
subplot(2, 2, k);
imshow(croppedImage); % Display it.
figure(1); % Return to the original image.
end

Productos

Versión

R2021a

Preguntada:

el 4 de Sept. de 2021

Respondida:

el 5 de Sept. de 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by