Main Page | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

ARLib::Graphics::AROtsuThresholding Class Reference

Class for performing the Otsu Thresholding algorithm. More...

#include <arotsuthresholding.h>

List of all members.

Public Member Functions

void ProcessImage (ARImage *image, int offset=0, bool useLuminance=true)
 Performs Otsu Thresholding against the passed image.


Detailed Description

Class for performing the Otsu Thresholding algorithm.

The Otsu algorithm performs black and white image segmentation using a dynamic threshold value.

The threshold value is obtained by analysising the histogram of the grey values of the image pixels. The threshold value is calculated as being the dip inbetween to the two highest peaks.


Member Function Documentation

void AROtsuThresholding::ProcessImage ARImage image,
int  offset = 0,
bool  useLuminance = true
 

Performs Otsu Thresholding against the passed image.

The alpha channel will be converted to 'pure' black and white based on the dynamic threshold value.

Parameters:
image Pointer to the image to process.
offset An optional amount to offset the dynamic threshold by.
useLuminance Denotes whether to use luminance formula for calculating the black and white values or to use an average of the red, green and blue components.


The documentation for this class was generated from the following files:
Generated on Wed Aug 31 18:01:39 2005 for ARLib by  doxygen 1.3.9.1