Such a function constructs an object of a QgarLib class (for example a partition of clusters using a distance function), without explicitely invoking the corresponding constructor.
Helpers allow a functional programming style, whereas Qgar coding philosophy is rather based on a constructor-call programming style, as emphasized in [ Rendek-et-al-04a ] and [ Tombre-et-al-98 ].
KMeans helper functions | |
| template<class T> | |
| std::vector< GenCluster< T > > | qgar::qgKMeans (const std::vector< T > &anObjVect, double(*aDistFunction)(const T &, const T &), int aClusterCnt=3) throw (QgarErrorAlgorithm) |
| Construct a partition of clusters using a distance function. | |
| template<class T> | |
| std::vector< GenCluster< T > > | qgar::qgKMeans (const std::vector< T > &anObjVect, double(*aDistFunction)(const T &, const T &), std::vector< T * > &aCenterVector, int aClusterCnt=3) throw (QgarErrorAlgorithm) |
| Construct a partition of clusters of given centers, using a distance function. | |
Kanungo degradation helper functions | |
| void | qgar::qgKanungoDegradation (BinaryImage &anImg, double alpha0, double alpha, double beta0, double beta, double eta, int structEltSize) throw (QgarErrorInvalidArg) |
| Degrade a given image. | |
Binarization helper functions | |
| ThresBinaryImage | qgar::qgThresBinarization (const GreyLevelImage &anImg, int aThres) |
| Returns a binary image, result of the binarization of the given grey-level image, using a constant threshold. | |
|
||||||||||||||||||||||||||||||||
|
Degrade a given image. If the provided structural element size is 0 (argument structEltSize), the final closing, as described in Kanungo's method, is not performed.
Definition at line 86 of file KanungoBinaryImage.C. References qgar::CloseBinaryImage::perform(), qgar::QGE_BW_BLACK, and qgar::QGE_BW_WHITE. Referenced by qgar::KanungoBinaryImage::KanungoBinaryImage(). |
|
||||||||||||||||||||||||
|
Construct a partition of clusters of given centers, using a distance function.
Definition at line 611 of file GenKMeans.TCC. |
|
||||||||||||||||||||
|
Construct a partition of clusters using a distance function.
Definition at line 595 of file GenKMeans.TCC. |
|
||||||||||||
|
Returns a binary image, result of the binarization of the given grey-level image, using a constant threshold.
Definition at line 97 of file ThresBinaryImage.C. |