13#ifndef ML_IDENTICAL_INTENSITIES_CLUSTER_ALGORITHM_H
14#define ML_IDENTICAL_INTENSITIES_CLUSTER_ALGORITHM_H
29template <
typename DATATYPE>
40 return *
static_cast<DATATYPE*
>(position);
52 return (currentValue == neighborValue);
ClusterAlgorithm(const ComputeClusterParameters ¶meters, Clusters *clusters)
Structure computes and holds all cluster information. For internal use.
static ML_FORCE_INLINE DATATYPE getVoxel(void *position)
Get the typed voxel value for current position.
ML_FORCE_INLINE bool isInTolerance(DATATYPE neighborValue, DATATYPE currentValue)
IdenticalIntensitiesClusterAlgorithm(const ComputeClusterParameters ¶meters, Clusters *clusters)
static ML_FORCE_INLINE MLdouble getVoxelAsDouble(void *position)
Structure to hold parameters for cluster computation.