get the actual position correspond to imfreehand
Show older comments
Hi I have a question. I have a grayscale image, I chose a region using imfreehand command and I have its position. I can convert to the mask but that is a binary image how can I extract the exact image that is correspond to region of imfreehand from the grayscale image. Meaning that imcrop returns the cropped version of grayscale image I want to do the same thing here.
imshow(image1)
h=imfreehand;
pos=getPosition(h)
Then I like to have something like image(pos) to extract the portion from grayscale image. However this is of course is a error because the subscript is a fraction.
Accepted Answer
More Answers (1)
Image Analyst
on 20 Aug 2014
0 votes
See my freehand demos attached.
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!