PANDORE Version 6 GREYC-IMAGE

phistogram



Creates histogram from grayscale image.



Synopsis

phistogram [-m mask] [im_in|-] [im_out|-]

Description

phistogram computes the histogram of the input image im_in. An histogram is an array where the item i indicates the number of pixel with grayscale value i.

For signed image, histogram is shifted so as the item 0 indicates the number of min value, and the last item (max-min) the number of max value.

The output image im_out is long 1D image.

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Builds the histogram of tangram.pan:

   phistogram tangram.pan a.pan
   pplot1d 256 256 0 0 0 a.pan b.pan
   pvisu b.pan

See also

Image Features Extraction

C++ prototype

Errc PHistogram( const Img2duc &im_in1, Img1dus &im_in2 );

Version française

Création de l'histogramme d'une image.


Author: Alexandre Duret-Lutz