54 template<
typename dtype>
58 dtype inConstantValue = 0)
66 constexpr uint32 MIN_KERNEL_SIZE = 5;
68 std::max(
static_cast<uint32>(std::ceil(inSigma * 2. * 4.)), MIN_KERNEL_SIZE);
69 if (kernelSize % 2 == 0)
74 const auto kernalHalfSize =
static_cast<double>(kernelSize / 2);
78 for (
double i = 0; i < kernelSize; ++i)
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition Error.hpp:37
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:135
value_type item() const
Definition NdArrayCore.hpp:3098
self_type sum(Axis inAxis=Axis::NONE) const
Definition NdArrayCore.hpp:4694
Definition addBoundary1d.hpp:42
NdArray< dtype > convolve1d(const NdArray< dtype > &inImageArray, const NdArray< dtype > &inWeights, Boundary inBoundaryType=Boundary::REFLECT, dtype inConstantValue=0)
Definition convolve1d.hpp:54
NdArray< dtype > gaussianFilter1d(const NdArray< dtype > &inImageArray, double inSigma, Boundary inBoundaryType=Boundary::REFLECT, dtype inConstantValue=0)
Definition gaussianFilter1d.hpp:55
Boundary
Boundary condition to apply to the image filter.
Definition Boundary.hpp:36
@ REFLECT
Definition Boundary.hpp:37
double gaussian1d(double inX, double inMu, double inSigma) noexcept
Definition gaussian1d.hpp:46
NdArray< dtypeOut > astype(const NdArray< dtype > inArray)
Definition astype.hpp:43
std::uint32_t uint32
Definition Types.hpp:40