 |
NumCpp
1.0
A C++ implementation of the Python Numpy library
|
Go to the documentation of this file.
47 namespace imageProcessing
61 template<
typename dtype>
66 uint8 borderWidthPre = 0;
67 uint8 borderWidthPost = 0;
68 if (inWindowType.compare(
"pre") == 0)
70 borderWidthPre = inBorderWidth;
72 else if (inWindowType.compare(
"post") == 0)
74 borderWidthPost = inBorderWidth;
88 if (borderWidthPre > 0)
94 std::vector<Cluster<dtype> > clusters =
clusterPixels(inImageArray, xcds, borderWidthPost);
std::vector< Cluster< dtype > > clusterPixels(const NdArray< dtype > &inImageArray, const NdArray< bool > &inExceedances, uint8 inBorderWidth=0)
Definition: clusterPixels.hpp:55
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:38
dtype generateThreshold(const NdArray< dtype > &inImageArray, double inRate)
Definition: generateThreshold.hpp:58
std::uint8_t uint8
Definition: Types.hpp:43
NdArray< bool > windowExceedances(const NdArray< bool > &inExceedances, uint8 inBorderWidth) noexcept
Definition: windowExceedances.hpp:51
std::vector< Centroid< dtype > > centroidClusters(const std::vector< Cluster< dtype > > &inClusters)
Definition: centroidClusters.hpp:52
Definition: Coordinate.hpp:45
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition: Error.hpp:37
NdArray< bool > applyThreshold(const NdArray< dtype > &inImageArray, dtype inThreshold)
Definition: applyThreshold.hpp:48
std::vector< Centroid< dtype > > generateCentroids(const NdArray< dtype > &inImageArray, double inRate, const std::string inWindowType, uint8 inBorderWidth=0)
Definition: generateCentroids.hpp:62