NumCpp  2.12.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
complementaryMedianFilter1d.hpp
Go to the documentation of this file.
1
28#pragma once
29
30#include "NumCpp/Core/Types.hpp"
33#include "NumCpp/NdArray.hpp"
34
35namespace nc::filter
36{
37 //============================================================================
38 // Method Description:
47 template<typename dtype>
49 uint32 inSize,
50 Boundary inBoundaryType = Boundary::REFLECT,
51 dtype inConstantValue = 0)
52 {
53 NdArray<dtype> inImageArrayCopy(inImageArray);
54 inImageArrayCopy -= medianFilter1d(inImageArray, inSize, inBoundaryType, inConstantValue);
55
56 return inImageArrayCopy;
57 }
58} // namespace nc::filter
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:139
Definition: addBoundary1d.hpp:44
NdArray< dtype > complementaryMedianFilter1d(const NdArray< dtype > &inImageArray, uint32 inSize, Boundary inBoundaryType=Boundary::REFLECT, dtype inConstantValue=0)
Definition: complementaryMedianFilter1d.hpp:48
NdArray< dtype > medianFilter1d(const NdArray< dtype > &inImageArray, uint32 inSize, Boundary inBoundaryType=Boundary::REFLECT, dtype inConstantValue=0)
Definition: medianFilter1d.hpp:52
Boundary
Boundary condition to apply to the image filter.
Definition: Boundary.hpp:36
std::uint32_t uint32
Definition: Types.hpp:40