[Insight-users] Choosing points randomly from a mask

Luke Bloy luke.bloy at gmail.com
Mon May 20 16:19:10 EDT 2013


Hi All,

 

I am interested in randomly choosing locations from within a mask. Currently
my mask is stored as a SpatialObject but I could change this if needed. My
current plan is to 

 

1)      Get the bounding box of the spatial object.

2)      Call vnl_sample_uniform for x,y and z

3)      Repeat 2 until the point is inside the spatial Object

 

Does anyone have any better ideas on how to go about this. Has this been
implemented somewhere else within ITK?

 

Thanks,

Luke

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130520/10cdff4d/attachment.htm>


More information about the Insight-users mailing list