40 namespace imageProcessing
50 template<
typename dtype>
55 std::vector<Centroid<dtype>> centroids;
57 centroids.reserve(inClusters.size());
58 for (
auto& cluster : inClusters)
60 centroids.emplace_back(cluster);
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:37
Holds the information for a cluster of pixels.
Definition: Cluster.hpp:54
std::vector< Centroid< dtype > > centroidClusters(const std::vector< Cluster< dtype > > &inClusters)
Definition: centroidClusters.hpp:51
Definition: Coordinate.hpp:45