How to display some images and select one to Crop it
1 visualización (últimos 30 días)
Jose Andrés el 11 de Abr. de 2015
I need to display a directory with 300 dicom images, and one of them it is the one which I want to crop to work later in other function. I have created this function:
archive = directory(z).name;
R3 = (dicomread(archive));
I have included a 3 seconds pause to watch each image, but I don't know how to include the imcrop condition when I see the correct image to save this crop and get out of the function.
Could you help me?
Image Analyst el 11 de Abr. de 2015
Put this in your loop:
promptMessage = sprintf('Do you want to Crop this image,\nor Skip this image?');
titleBarCaption = 'Continue?';
button = questdlg(promptMessage, titleBarCaption, 'Crop', 'Skip', 'Skip');
if strcmpi(button, 'Crop')
croppedImage = imcrop(R3);