 |
NumCpp
1.0
A C++ implementation of the Python Numpy library
|
Go to the documentation of this file.
61 template<
typename dtype>
66 if (inKernalSize % 2 == 0)
71 const uint32 boundarySize = inKernalSize / 2;
73 switch (inBoundaryType)
81 return constant1d(inImage, boundarySize, inConstantValue);
89 return mirror1d(inImage, boundarySize);
93 return wrap1d(inImage, boundarySize);
NdArray< dtype > wrap1d(const NdArray< dtype > &inImage, uint32 inBoundarySize)
Definition: wrap1d.hpp:52
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:38
NdArray< dtype > addBoundary1d(const NdArray< dtype > &inImage, Boundary inBoundaryType, uint32 inKernalSize, dtype inConstantValue=0)
Definition: addBoundary1d.hpp:62
NdArray< dtype > reflect1d(const NdArray< dtype > &inImage, uint32 inBoundarySize)
Definition: reflect1d.hpp:53
std::uint32_t uint32
Definition: Types.hpp:41
NdArray< dtype > nearest1d(const NdArray< dtype > &inImage, uint32 inBoundarySize)
Definition: nearest1d.hpp:51
Definition: Coordinate.hpp:45
NdArray< dtype > constant1d(const NdArray< dtype > &inImage, uint32 inBoundarySize, dtype inConstantValue)
Definition: constant1d.hpp:53
#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 > mirror1d(const NdArray< dtype > &inImage, uint32 inBoundarySize)
Definition: mirror1d.hpp:53