[Insight-users] about resampling a point set

Luis Ibanez luis.ibanez at kitware.com
Tue Oct 25 02:03:26 EDT 2005


Hi Yixun,

By a "dense" point set, do you mean an ITK image
where the pixel type is itk::Point ?

if so, sure you can get a spare sampling from it.

The questions is:

   Do you want to select the points based on a
   specific criterion ?

   or just to extract a random sampling ?

if a random sampling is ok, you can use the RandomImageIterator
as it is described in the ITK Software Guide


      http://www.itk.org/ItkSoftwareGuide.pdf


in the "Iterators" chapter.


The resulting set of points can be stored in an itk::PointSet
class, as described in the "Data Representation" Chapter of
the ITK Software Guide.



    Regards,



       Luis


-----------------
Yixun Liu wrote:
> Hi,
>  
> I hava a dense point set and I want to resample it to a sparse point 
> set. Dose ITK support it?
>  
> Regards,
>  
> Yixun Liu
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users



More information about the Insight-users mailing list