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?

Antworten (1)

Image Analyst
Image Analyst am 29 Jul. 2013

0 Stimmen

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 Kommentare

Mitchell
Mitchell am 29 Jul. 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 am 30 Jul. 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.

Melden Sie sich an, um zu kommentieren.

Gefragt:

am 28 Jul. 2013

Community Treasure Hunt

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

Start Hunting!

Translated by