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?

답변 (1개)

Image Analyst
Image Analyst 2013년 7월 29일

0 개 추천

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

Mitchell
Mitchell 2013년 7월 29일
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 2013년 7월 30일
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.

댓글을 달려면 로그인하십시오.

질문:

2013년 7월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by