i3dlib

Documentation

i3d::HistFinder< T > Class Template Reference
[Histogram manipulation]

#include <threshold.h>

List of all members.


Public Member Functions

find (const Image3d< T > &img, const VOI< size_t > &voi) const

Protected Attributes

size_t smooth_diff

Detailed Description

template<class T>
class i3d::HistFinder< T >

HistFinder is class which provides a member function with prototype: T find(const Image3d<T> &img, const VOI<size_t> &voi)

this function is called in LocalThreshold function when a threshold for VOI in image have to be found. The reference to a ThresholdFinder is the last parameter of the LocalThreshold function. This function uses the member abstract function AnalyzeHist, whose implementation represents the method for finding the threshold from the histogram.


Member Function Documentation

template<class T>
T i3d::HistFinder< T >::find ( const Image3d< T > &  img,
const VOI< size_t > &  voi 
) const

class method needed for searching for the threshold value the inputs are image 'img' and volume for interest 'voi'. For global thresholding the 'voi' is equal to the whole image, while for local thresholding the 'voi' changes.


Member Data Documentation

template<class T>
size_t i3d::HistFinder< T >::smooth_diff [protected]

represents the function used in member function HistFinder::find for histogram smoothing smooth_diff == 0 -> without smoothing smooth_diff == 1 -> function SmoothHist(const Histogram &in, Histogram &out) is used smooth_diff > 1 -> function SmoothHist(const Histogram &in, Histogram &out, size_t diff) is used


The documentation for this class was generated from the following files: