How can I make a trace or curve around a set of points to signify region?
10 views (last 30 days)
Show older comments
Hi everyone,
So I have a figure that contains 3 sets of data. For each of the sets of data, there are points that cluttered in a certain region of the 3D plot. I was wondering how I could possibly trace or put a curve *around* the points. So in theory I want to include just a *region* where the points were found and not the points themselves. Thank you in advance for your help.
Casey
0 Comments
Accepted Answer
Matt J
on 31 Mar 2013
You could use IMFREEHAND or IMPOLY if you have the Image Processing Toolbox.
2 Comments
More Answers (1)
Image Analyst
on 31 Mar 2013
MATLAB does not have ways to "carve out" some irregular region in 3D space - not that I'm aware of anyway. I would certainly be using it for color segmentation if they had something.
Your best bet is to make projections along the 3 directions and use something like imfreehand(), imrect(), rbbox(), roipoly(), or roipolyold() to outline regions in each of the three projections. From there, you could just use those, or you could build a 3D lookup table (3D mask).
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!