Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

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

#include <Thresholding.h>

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

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

Detailed Description

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

The base class for thresholding which allows user give it's own threshold.

Public Methods

 Thresholding (T lowerThreshold, T upperThreshold=0)
 Constructor of thresholding.

 ~Thresholding ()
 The destructor of thresholding.

util::Matrix< T > getTransformedImage (const util::Matrix< T > &mat) throw (ImageTransformException&)
 Makes the thresholding for the picture by given threshold.

getLowerThreshold (void) const
 Gives the value of threshold.

getUpperThreshold (void) const
void setLowerThreshold (T threshold)
 Set the new value for threshold.

void setUpperThreshold (T threshold)

Protected Methods

 Thresholding ()
 Constructor used if need to calculate threshold before it will be used.

Protected Attributes

 _threshold is the value of threshold.


Constructor & Destructor Documentation

template<class T>
prapi::texture::Thresholding< T >::Thresholding   lowerThreshold,
  upperThreshold = 0

Constructor of thresholding.

lowerThreshold  is the lower threshold.
upperThreshold  is the higher threshold. Note. If the upperThreshold is zero it's the same as there were no upper threshold.

Member Function Documentation

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

Makes the thresholding for the picture by given threshold.

mat  which wanted to use thresholding.

Implements prapi::ImageTransform< T, T >.

Reimplemented in prapi::texture::HysteresisThresholding< 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.