48 template<
typename dtype>
53 std::vector<Centroid<dtype>> centroids(inClusters.size());
57 [](
const auto& cluster) ->
Centroid<dtype> { return Centroid<dtype>(cluster); });
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:39
holds the information for a centroid
Definition: Centroid.hpp:50
Holds the information for a cluster of pixels.
Definition: Cluster.hpp:53
Definition: applyThreshold.hpp:34
std::vector< Centroid< dtype > > centroidClusters(const std::vector< Cluster< dtype > > &inClusters)
Definition: centroidClusters.hpp:49
OutputIt transform(InputIt first, InputIt last, OutputIt destination, UnaryOperation unaryFunction)
Definition: StlAlgorithms.hpp:775