Functions
contrib/mul/vil3d/algo/vil3d_histogram.h File Reference

Construct histogram from pixels in given image. More...

#include <vcl_vector.h>
#include <vxl_config.h>
#include <vcl_algorithm.h>
#include <vil3d/vil3d_image_view.h>

Go to the source code of this file.

Functions

template<class T >
void vil3d_histogram (const vil3d_image_view< T > &image, vcl_vector< double > &histo, double min, double max, unsigned n_bins)
 Construct histogram from pixels in given image.
void vil3d_histogram_byte (const vil3d_image_view< vxl_byte > &image, vcl_vector< double > &histo)
 Construct histogram from pixels in given image of bytes.

Detailed Description

Construct histogram from pixels in given image.

Author:
Tim Cootes

Definition in file vil3d_histogram.h.


Function Documentation

template<class T >
void vil3d_histogram ( const vil3d_image_view< T > &  image,
vcl_vector< double > &  histo,
double  min,
double  max,
unsigned  n_bins 
) [inline]

Construct histogram from pixels in given image.

Definition at line 16 of file vil3d_histogram.h.

void vil3d_histogram_byte ( const vil3d_image_view< vxl_byte > &  image,
vcl_vector< double > &  histo 
)

Construct histogram from pixels in given image of bytes.

Resulting histogram has 256 bins

Definition at line 10 of file vil3d_histogram.cxx.