13 #ifndef ML_COMPUTE_CLUSTERS_H
14 #define ML_COMPUTE_CLUSTERS_H
29 class ComputeClusters;
42 if (_parameters.contentImage)
44 switch (_parameters.clusterMode)
#define MLCLUSTERALGORITHM_EXPORT
@ CLUSTER_MODE_IdenticalIntensities
@ CLUSTER_MODE_VectorDirections
@ CLUSTER_MODE_SimilarIntensities
MLErrorCode runClustering()
Structure computes and holds all cluster information. For internal use.
void setUseBackgroundValue(bool useBackgroundValue)
void setSimilarityToleranceIntensities(MLdouble similarityTolerance)
void setClusterMode(CLUSTER_MODE_TYPE clusterMode)
void setNeighborhoodRelation(NBH_TYPE neighborhoodRelation)
void setMaskImage(PagedImage *maskImage)
void setProgressCB(MLRequestProgressCB *cb, void *userData)
void setSimilarityToleranceVectors(MLdouble similarityTolerance)
void setBackgroundValue(MLdouble backgroundValue)
void setContentImage(PagedImage *contentImage)
MLErrorCode computeClusters(Clusters *clusters)
Computes the actual clusters and fills the given structure on base of the set parameters.
void ensureClusterModeForImageDataType()
void setUseImageValueAsUserData(bool useImageValueAsUserData)
Implementation of a clustering algorithm checking for identical image intensity values.
The class PagedImage, representing a fragmented image that manages properties and data of an image lo...
Implementation of a SimilarIntensities clustering algorithm.
Implementation of a clustering algorithm for vector data types.
MLErrorCode runClustering()
TypedComputeClusters(ComputeClusters *computer, Clusters *clusters)
MLErrorCode getErrorCode() const
#define ML_BAD_PARAMETER
A bad/invalid parameter (or even an inappropriate image) has been passed to a module or an algorithm,...
MLint32 MLErrorCode
Type of an ML Error code.
#define mlError(FUNCTION,...)
Logs an error for FUNCTION with optional MLErrorCode.
void MLRequestProgressCB(void *usrData, double progress)
Structure to hold parameters for cluster computation.