Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   Related Pages   Examples  

Histogram related operations


Compounds

class  Histogram

Functions

 Histogram (Image< T > &input, int no_bins=100)
 Histogram (Image< T > &input, int no_bins, T min, T max)
void equalize (Image< T > &output)
void showHistogram ()
void writeHistogram (char *type, char *file_name)
void closeWindow ()

Detailed Description

This group contains methods implementing histogram computations and other histogram related operations.

Function Documentation

template<class T>
Histogram< T >::Histogram<T> ( Image< T > & input,
int no_bins,
T min,
T max )
 

Constructor - It computes the gray level histogram for those pixels in the input image whose gray levels are in the range [min; max] using the indicated number of bins.

Definition at line 45 of file Histogram.cpp.

template<class T>
Histogram< T >::Histogram<T> ( Image< T > & input,
int no_bins = 100 )
 

Constructor - It computes the gray level histogram of the input image using the indicated number of bins. It takes in consideration all gray levels in the input image.

Definition at line 10 of file Histogram.cpp.

template<class T>
void Histogram<T>::closeWindow ( )
 

Function related to the drawing methods (i.e. showHistogram() and writeHistogram()). It is available only if Plotutils package with libplotter class library is installed (see instalation notes).

It closes the window opened by showHistogram().

Referenced by Histogram::~Histogram().

template<class T>
void Histogram< T >::equalize ( Image< T > & output )
 

Performs histogram equalization of the image img and stores the result in the output image. If in the constructor a range was specified for which the histogram to be computed, then the equalization is applied only to those values inside the specified range.

Definition at line 97 of file Histogram.cpp.

template<class T>
void Histogram<T>::showHistogram<T> ( )
 

Drawing method available only if Plotutils package with libplotter class library is installed (see instalation notes).

It opens a window and plots in it the histogram or parts of it. The way of plotting the histogram as well as which part of it is plotted are determined by a number of parameters, which can be adjusted using methods provided by the Histogram class (we call these methods "methods related to the drawing subroutines").

template<class T>
void Histogram<T>::writeHistogram<T> ( char * type,
char * file_name )
 

Drawing method available only if Plotutils package with libplotter class library is installed (see instalation notes).

It plots the histogram or parts of it in the file indicated by the parameter file_name, in a format given by the parameter type. The allowed types are: gif, PS, fig, and bmp. The way of plotting the histogram as well as which part of it is plotted are determined by a number of parameters, which can be adjusted using methods provided by the Histogram class (we call these methods "methods related to the drawing subroutines").