"Matt J" wrote in message <firstname.lastname@example.org>... > "Luca " <l.presottoRE@MOVE.campus.unimib.NOTit> wrote in message <email@example.com>... > > > > I repeat that I have two sets of points P1 and P2 (size (P)= (300,3) ) that describe two surfaces of my solid (like an ellipsoidal annulus but not exactly, and I need to mantain this difference). > > > > How can I get a 3D mask from them? > ============== > > If you're just looking for a mask that approximately covers the shape, you can use imfill and imdilate to create the mask. Round your P1, P2 to voxel locations, fill a mask with 1s at those locations, use imdilate to seal the gaps between the P1,P2, and finally use imfill to fill in the mask. >
Can I get more specific on how to perform this. I need to get an approximate 3D ellipsoid mask from a set of 3D points.