NumCpp  2.6.2
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 
35 namespace nc
36 {
37  namespace filter
38  {
39  //============================================================================
40  // Method Description:
50  template<typename dtype>
52  Boundary inBoundaryType = Boundary::REFLECT, dtype inConstantValue = 0)
53  {
54  NdArray<dtype> inImageArrayCopy(inImageArray);
55  inImageArrayCopy -= medianFilter1d(inImageArray, inSize, inBoundaryType, inConstantValue);
56 
57  return inImageArrayCopy;
58  }
59  } // namespace filter
60 } // namespace nc
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:72
NdArray< dtype > medianFilter1d(const NdArray< dtype > &inImageArray, uint32 inSize, Boundary inBoundaryType=Boundary::REFLECT, dtype inConstantValue=0)
Definition: medianFilter1d.hpp:54
Boundary
Boundary condition to apply to the image filter.
Definition: Boundary.hpp:37
NdArray< dtype > complementaryMedianFilter1d(const NdArray< dtype > &inImageArray, uint32 inSize, Boundary inBoundaryType=Boundary::REFLECT, dtype inConstantValue=0)
Definition: complementaryMedianFilter1d.hpp:51
Definition: Coordinate.hpp:45
std::uint32_t uint32
Definition: Types.hpp:40