I want to use imcontrast to adjust the contrast of an image before I
segment the image according to the contrast.
But I don't know how to use it correctly.
for example,
figure, imshow(I)
imcontrast(h); (or h= imcontrast(h)))
% next steps
.....
In a program, it goes to next steps before I adjust the contrast.
Thanks!
Use the the UIWAIT function to block the execution until
you close the "Adjust Contrast tool":
....
figure;
image_h = imshow(I);
imcontrast_h = imcontrast(image_h);
uiwait(imcontrast_h);
....
Laszlo