Skip to content
Snippets Groups Projects
Commit e3d1dc69 authored by Eric Wait's avatar Eric Wait
Browse files

Displays a cropping message prior to segmentation message in the Hemato case

parent f2090c23
Branches
Tags
No related merge requests found
......@@ -8,17 +8,18 @@ catch errorMessage
%fprintf(errorMessage);
end
fprintf(1,'Segmentation...');
answr = questdlg('Crop these images?','Crop?','Yes','No','Yes');
if (strcmp(answr,'Yes'))
croppedFolder = [CONSTANTS.rootImageFolder(1:end-1) '_cropped\.'];
fprintf(1,'Cropping Images...');
system(['GrayScaleCrop.exe "' CONSTANTS.rootImageFolder '*" ' croppedFolder]);
CONSTANTS.rootImageFolder = croppedFolder;
im = Helper.LoadIntensityImage(Helper.GetFullImagePath(1));
Load.AddConstant('imageSize',size(im),1);
end
fprintf(1,'Segmentation...');
system(['start HematoSeg.exe "' CONSTANTS.rootImageFolder '*" ' num2str(CONSTANTS.imageAlpha) ' ' num2str(minVol) ' ' num2str(eccentricity) ' .9 && exit']);
pause(20);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment