Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

prapi::texture::HysteresisThresholding< T > Class Template Reference

#include <Thresholding.h>

Inheritance diagram for prapi::texture::HysteresisThresholding< T >:

prapi::texture::Thresholding< T > prapi::ImageTransform< T, T > List of all members.

Detailed Description

template<class T>
class prapi::texture::HysteresisThresholding< T >

HysteresisThersholding of edge pixels.

Starting at pixels with a value greater than the upperThreshold, trace a connected sequence of pixels that have a value greater than the lowerThrehsold.


Public Methods

 HysteresisThresholding (T lowerThreshold, T upperThreshold)
 Constructor which you have to give the lower and upper limits.

 HysteresisThresholding (const util::List< int > &histogram)
 Constructor which calculates the threshold from the histogram given in constructor.

 ~HysteresisThresholding ()
 Destructor of HysteresisThresholding.

util::Matrix< T > getTransformedImage (const util::Matrix< T > &mat) throw (ImageTransformException&)
 The fuction makes the hysteresis threshold for the Matrix.

void estimateThreshold (const util::List< int > &histogram)
 Estimate Theshold estimates the threshold from the histogram of matrix.


Constructor & Destructor Documentation

template<class T>
prapi::texture::HysteresisThresholding< T >::HysteresisThresholding   lowerThreshold,
  upperThreshold
[inline]
 

Constructor which you have to give the lower and upper limits.

Parameters:
lowerThreshold  The threshold used when the edge has been found.
upperThreshold  The threshold used when locating the edges beginning.

template<class T>
prapi::texture::HysteresisThresholding< T >::HysteresisThresholding const util::List< int > &    histogram [inline]
 

Constructor which calculates the threshold from the histogram given in constructor.

The limits are calculated so that the higher limit is 80 % of all the pixels and the lower limit is first nonzero index (in histogram) + higher limit divided by 2.

Parameters:
histogram  The integer histogram (featureVector) of the Matrix.


Member Function Documentation

template<class T>
void prapi::texture::HysteresisThresholding< T >::estimateThreshold const util::List< int > &    histogram
 

Estimate Theshold estimates the threshold from the histogram of matrix.

The limits are calculated so that the higher limit is 80 % of all the pixels and the lower limit is first nonzero index (in histogram) + higher limit divided by 2. The limit values will be saved on the Threshold object and they will be get with methods getLowerThreshold and getUpperThreshold. The old threshold values will be destroyed.

Parameters:
histogram  The integer histogram (featureVector) of the Matrix.

template<class T>
util::Matrix< T > prapi::texture::HysteresisThresholding< T >::getTransformedImage const util::Matrix< T > &    mat throw (ImageTransformException&) [virtual]
 

The fuction makes the hysteresis threshold for the Matrix.

Note that if Constructor which calculates the threshold is used then the threshold are only specified for that specific Matrix and if other threshold calculation is wanted the estimateThreshold fuction must be used.

Parameters:
mat  The matrix wanted to threshold.

Reimplemented from prapi::texture::Thresholding< T >.


The documentation for this class was generated from the following file:
Documentation generated on 11.09.2003 with Doxygen.
The documentation is copyrighted material.
Copyright © Topi Mäenpää 2003. All rights reserved.