[Insight-users] Create histogram of the deformation field magnitude

Xiang, Hong HXIANG at LROC.HARVARD.EDU
Mon May 15 11:08:14 EDT 2006


Thanks Luis for walking through the steps, I'll let you know if I have any
problem in getting the intended histograms.

Regards,
Hong

-----Original Message-----
From: Luis Ibanez [mailto:luis.ibanez at kitware.com]
Sent: Mon 5/15/2006 10:54 AM
To: Xiang, Hong
Cc: Karthik.Krishnan at kitware.com; insight-users at itk.org
Subject: Re: [Insight-users] Create histogram of the deformation field magnitude
 

Hi Hong,

Sure,
  you can generate this histogram in the following way:

1) pass your deformation filed to the filter:

    GradientToMagnitudeImageFilter:

http://www.itk.org/Insight/Doxygen/html/classitk_1_1GradientToMagnitudeImageFilt
er.html

2) Take the output Scalar image and pass it to a histogram calculator.

    ScalarImageToHistogramGenerator
http://www.itk.org/Insight/Doxygen/html/classitk_1_1Statistics_1_1ScalarImageToH
istogramGenerator.html


    You will find an example on how to compute histograms in the file


       Insight/Examples/Statistics/ImageHistogram2.cxx


    This example is described in the ITK Software Guide


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





Regards,



     Luis



-====================
Xiang, Hong wrote:
> Hello Karthik and Luis, or any users who may have done this before...
> 
> I wish to generate histograms for the magnitudes of the vector displace-
> ments (deformation fields) given outputs of deformable registrations. Is
> there a good way in ITK or paraview to help with this?
> 
> Thanks in advance,
> Hong
>  
> 
> 
> 
> 
> _______________________________________________
> 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