51 template<
typename dtype>
55 dtype inConstantValue = 0)
61 const uint32 boundarySize = inSize / 2;
62 const uint32 endPoint = boundarySize + inImageArray.
size();
64 for (
uint32 i = boundarySize; i < endPoint; ++i)
68 output[i - boundarySize] = window.
max().
item();
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:139
self_type max(Axis inAxis=Axis::NONE) const
Definition: NdArrayCore.hpp:3041
size_type size() const noexcept
Definition: NdArrayCore.hpp:4524
value_type item() const
Definition: NdArrayCore.hpp:3022
A Class for slicing into NdArrays.
Definition: Slice.hpp:45
NdArray< dtype > addBoundary1d(const NdArray< dtype > &inImage, Boundary inBoundaryType, uint32 inKernalSize, dtype inConstantValue=0)
Definition: addBoundary1d.hpp:56
Definition: addBoundary1d.hpp:44
NdArray< dtype > maximumFilter1d(const NdArray< dtype > &inImageArray, uint32 inSize, Boundary inBoundaryType=Boundary::REFLECT, dtype inConstantValue=0)
Definition: maximumFilter1d.hpp:52
Boundary
Boundary condition to apply to the image filter.
Definition: Boundary.hpp:36
std::uint32_t uint32
Definition: Types.hpp:40