Manually selecting regions of an image

I have a MATLAB GUI interface program, and one of the things that it does is display a grayscale image and separate it into regions based on a threshold. I want to be able to manually modify the regions. Is there a way to get where the cursor clicks on an image in a GUI? Is there click-and-drag support?

Respuestas (1)

Image Analyst
Image Analyst el 29 de Jul. de 2013

0 votos

How do you want to manually modify the regions? If it's by thresholding, I have an interactive thresholding app in my File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

2 comentarios

Mitchell
Mitchell el 29 de Jul. de 2013
The thresholding method works fine most of the time, but sometimes it is wrong. For example, I want to threshold my image to make two masks. I want a way to correct parts of the image that are above the threshold to be in the lower mask, because they are bright features in the region with the dark mask.
Image Analyst
Image Analyst el 30 de Jul. de 2013
You forgot to tell me the URL of your image. My app is just a simple single threshold that applies to the whole image. You may need to have a threshold that adapt locally. I can't tell because I can't see your image.

Iniciar sesión para comentar.

Preguntada:

el 28 de Jul. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by