Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

Threshold.hpp File Reference

#include <ImLib3D/ImageProcessor.hpp>
#include <ImLib3D/Threshold.hxx>

Include dependency graph for Threshold.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  IP3D

Functions

template<class ImageType>
void SimpleThreshold (const ImageType &src, const typename ImageType::value_type &t, Mask3D &res)
template<class ImageType>
void SimpleThresholds2 (const ImageType &src, const typename ImageType::value_type &t1, const typename ImageType::value_type &t2, Mask3D &res)
template<class ImageType>
void LimitThreshold (const ImageType &src, const typename ImageType::value_type &t1, const typename ImageType::value_type &t2, ImageType &res)
template<class ImageType>
void OtsuThresholds (const ImageType &src, Mask3D &res, int nbClasses=2, vector< double > *pthresholds=NULL, int nbBins=1000)
void UniModalThreshold (const Image3Df &src, double &threshold, Mask3D *res=NULL)


Detailed Description

Definition in file Threshold.hpp.


Function Documentation

template<class ImageType>
void IP3D::SimpleThreshold const ImageType &  src,
const typename ImageType::value_type &  t,
Mask3D res
 

#&SimpleThreshold&# Simple Threshold. Result=1 if value>threshold. Result is a Mask3D.

Source image type:ImageType Threshold type:Im3DValue Result mask type:Mask3D ~

Definition at line 41 of file Threshold.hpp.

References Container3D< Im3DValue >::begin(), and Container3D< Im3DValue >::Resize().

Referenced by IP3D::UniModalThreshold().

template<class ImageType>
void IP3D::SimpleThresholds2 const ImageType &  src,
const typename ImageType::value_type &  t1,
const typename ImageType::value_type &  t2,
Mask3D res
 

#&SimpleThresholds2&# Simple Threshold between 2 values Result is 1 for values between t1 and t2, 0 otherwise.

Source image type:ImageType Threshold 1 type:Im3DValue Threshold 2 type:Im3DValue Result mask type:Mask3D ~

Definition at line 67 of file Threshold.hpp.

References Container3D< Im3DValue >::begin(), and Container3D< Im3DValue >::Resize().

template<class ImageType>
void IP3D::LimitThreshold const ImageType &  src,
const typename ImageType::value_type &  t1,
const typename ImageType::value_type &  t2,
ImageType &  res
 

#&LimitThreshold&# Limits range of image values to t1 t2 If image value less than t1 or image value greater than t2 then image value equals t1 or t2 respectively, otherwise conserves original value. Keeps mask

Source image type:ImageType Lower limit type:Im3DValue Upper limit type:Im3DValue Result image type:ImageType ~

Definition at line 97 of file Threshold.hpp.

template<class ImageType>
void IP3D::OtsuThresholds const ImageType &  src,
Mask3D res,
int  nbClasses = 2,
vector< double > *  pthresholds = NULL,
int  nbBins = 1000
 

#&OtsuThresholds&# Use otsu histogram partitioning to automatically determine thresholds and apply them on an image. The algorithm brute-force searches all possible threshhold combinations to find the one that minimizes interclass variance. This can be long if the number of classes is high.

Source image type:ImageType Result image type:Mask3D Number of classes type:int Result thresholds type:vector<double> Number of bins in histogram type:int ~

void IP3D::UniModalThreshold const Image3Df src,
double &  threshold,
Mask3D res = NULL
 

#&UniModalThreshold&#


Generated on Fri Jun 17 13:36:17 2005 for ImLib3D by  doxygen 1.4.2