55 template<
typename dtype>
59 dtype inConstantValue = 0)
63 if (inKernalSize % 2 == 0)
68 const uint32 boundarySize = inKernalSize / 2;
70 switch (inBoundaryType)
78 return constant1d(inImage, boundarySize, inConstantValue);
86 return mirror1d(inImage, boundarySize);
90 return wrap1d(inImage, boundarySize);
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition: Error.hpp:37
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:39
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:139
Definition: addBoundary1d.hpp:44
NdArray< dtype > reflect1d(const NdArray< dtype > &inImage, uint32 inBoundarySize)
Definition: reflect1d.hpp:48
NdArray< dtype > mirror1d(const NdArray< dtype > &inImage, uint32 inBoundarySize)
Definition: mirror1d.hpp:47
NdArray< dtype > wrap1d(const NdArray< dtype > &inImage, uint32 inBoundarySize)
Definition: wrap1d.hpp:46
NdArray< dtype > constant1d(const NdArray< dtype > &inImage, uint32 inBoundarySize, dtype inConstantValue)
Definition: constant1d.hpp:47
NdArray< dtype > addBoundary1d(const NdArray< dtype > &inImage, Boundary inBoundaryType, uint32 inKernalSize, dtype inConstantValue=0)
Definition: addBoundary1d.hpp:56
NdArray< dtype > nearest1d(const NdArray< dtype > &inImage, uint32 inBoundarySize)
Definition: nearest1d.hpp:45
Boundary
Boundary condition to apply to the image filter.
Definition: Boundary.hpp:36
std::uint32_t uint32
Definition: Types.hpp:40