 |
NumCpp
1.0
A C++ implementation of the Python Numpy library
|
Go to the documentation of this file.
58 template<
typename dtype>
68 constexpr
uint32 MIN_KERNEL_SIZE = 5;
70 if (kernelSize % 2 == 0)
75 const double kernalHalfSize =
static_cast<double>(kernelSize / 2);
79 for (
double i = 0; i < kernelSize; ++i)
91 inConstantValue).template astype<dtype>();
value_type item() const
Definition: NdArrayCore.hpp:2950
NdArray< dtype > convolve1d(const NdArray< dtype > &inImageArray, const NdArray< dtype > &inWeights, Boundary inBoundaryType=Boundary::REFLECT, dtype inConstantValue=0)
Definition: convolve1d.hpp:57
std::uint32_t uint32
Definition: Types.hpp:41
double gaussian1d(double inX, double inMu, double inSigma) noexcept
Definition: gaussian1d.hpp:49
NdArray< dtype > sum(Axis inAxis=Axis::NONE) const
Definition: NdArrayCore.hpp:4411
Definition: Coordinate.hpp:45
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition: Error.hpp:37
Boundary
Boundary condition to apply to the image filter.
Definition: Boundary.hpp:38
NdArray< dtype > max(const NdArray< dtype > &inArray, Axis inAxis=Axis::NONE)
Definition: max.hpp:46
NdArray< dtype > gaussianFilter1d(const NdArray< dtype > &inImageArray, double inSigma, Boundary inBoundaryType=Boundary::REFLECT, dtype inConstantValue=0)
Definition: gaussianFilter1d.hpp:59
dtype ceil(dtype inValue) noexcept
Definition: ceil.hpp:49