How can I make a trace or curve around a set of points to signify region?

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

 Accepted Answer

You could use IMFREEHAND or IMPOLY if you have the Image Processing Toolbox.

2 Comments

I'm a little naive on the Image Processing Toolbox, how could I check to see if I have it?
One way is to try the commands. If you don't have the toolbox, the commands won't work ;)
You can also use the VER command to get a list of all your toolboxes.

Sign in to comment.

More Answers (1)

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).

Asked:

on 31 Mar 2013

Community Treasure Hunt

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

Start Hunting!