[Insight-users] Export data
Karthik Krishnan
Karthik.Krishnan at kitware.com
Mon Aug 1 06:40:48 EDT 2005
On Mon, 2005-08-01 at 14:36 +0530, Suresh G N wrote:
> I have two silly questions please:
>
> 1) I am trying to get data from a itk::Image. I found the below one,
> but not my requirement. Can any one tell me is there a facility to
> import data from an itk::Image type to C array?
>
>
> ImportImageFilter provides a mechanism for importing data into an
> itk::Image. ImportImageFilter is an image source, so it behaves like
> any other pipeline object. what abt other way?
You could write a simple iterator that does the job for you.
IteratorType it( image, image->GetBufferedRegion() );
it.GoToBegin();
while( !it.IsAtEnd() )
{
*cdata = it.Get();
++it;
++cdata;
}
>
> 2) Is it possible to find the Mean, variance and other statistical
> values of a given volume using itk
>
>
http://www.itk.org/Insight/Doxygen/html/classitk_1_1LabelStatisticsImageFilter.html
http://www.itk.org/Insight/Doxygen/html/classitk_1_1ImageMomentsCalculator.html
> Thanx in advance
>
>
> Suresh
>
>
> _______________________________________________
> 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