[Insight-users] histogram

Luis Ibanez luis . ibanez at kitware . com
Thu, 20 Nov 2003 12:00:32 -0500


Hi David,

If you only want the histogram of the Red component from
and RGB image, you can use the ImageAdaptor as explained
in the SoftwareGuide:

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

Section 12.2, pdf-page 524, paper-page 550.

You will find the source code of this example under


   Insight/Examples/DataRepresentation/Image/ImageAdaptor2.cxx


Once you setup an image adaptor for extracting the Red channel,
you can proceed to compute the histogram of this adapted image
as you would do with any other grayscale image.

You will find instructions about this in the Statistics chapter,
under section 10.1.3, pdf-page 428, paper-page 452.

The source code of the example is available under

     Insight/Examples/Statistics/Histogram.cxx


Regards,


   Luis


---------------------
David Llanos wrote:
> hi to all, 
>  
> At the moment I am doing an application. I need to make the histogram of 
> an RGB image in the red component. The problem is that i don't know that 
> classes and methods to use for it. I have been studying the examples but 
> in none of it is carried out the histogram of an image introduced by the 
> user. 
>  
> Thanks