[Insight-users] Two-dimensional histogram
Luis Ibanez
luis.ibanez at kitware.com
Sun Feb 3 17:52:25 EST 2008
Hi Serg,
There are many different ways of doing this,
but
here is a suggestion that would require a rather small
amount of code writing on your part:
1) Take your input image and pass it through the
itkMeanImageFilter.
http://www.itk.org/Insight/Doxygen/html/classitk_1_1MeanImageFilter.html
2) Take both the input, and the output of the Mean
image filter and connect them as inputs to the
JoinImageFilter.
http://www.itk.org/Insight/Doxygen/html/classitk_1_1JoinImageFilter.html
The output of this filter will
be an image of pixels with two components where
the first component is the pixel value of the
original input image and the second component
is the mean value around that pixel.
3) Connect the output of the JoinImageFilter to
the ImageToHistogramGenerator.
http://www.itk.org/Insight/Doxygen/html/classitk_1_1Statistics_1_1ImageToHistogramGenerator.html
The output of the generator will be the 2-D
histogram that you seem to be looking for.
BTW, You may find useful to look at the code in
Insight/Examples/Statistics/ImageHistogram3.cxx
Please let us know if you find any problems.
Thanks
Luis
----------------------
Serg Buslovsky wrote:
> Hi, All.
>
> I need to generate 2-dimensional histogram based on intensity and local
> mean(neighbors intensity mean).
>
> Can you point me out where to digg the ITK?
>
>
> Thanks in advance.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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