Converting convex hull to binary mask

Posted by Jonas on Stack Overflow See other posts from Stack Overflow or by Jonas
Published on 2010-05-04T21:35:16Z Indexed on 2010/05/04 21:38 UTC
Read the original article Hit count: 260

Filed under:
|
|

I want to generate a binary mask that has ones for all pixels inside and zeros for all pixels outside a volume. The volume is defined by the convex hull around a set of 3D coordinates (<100; some of the coordinates are inside the volume).

I can get the convex hull using CONVHULLN, but how do I convert that into a binary mask?

In case there is no good way to go via the convex hull, do you have any other idea how I could create the binary mask?

© Stack Overflow or respective owner

Related posts about matlab

Related posts about convex-hull