NumCpp  2.8.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
complementaryMedianFilter.hpp
Go to the documentation of this file.
1 #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:
49  template<typename dtype>
51  uint32 inSize,
52  Boundary inBoundaryType = Boundary::REFLECT,
53  dtype inConstantValue = 0)
54  {
55  NdArray<dtype> inImageArrayCopy(inImageArray);
56  inImageArrayCopy -= medianFilter(inImageArray, inSize, inBoundaryType, inConstantValue);
57 
58  return inImageArrayCopy;
59  }
60  } // namespace filter
61 } // namespace nc
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:72
NdArray< dtype > complementaryMedianFilter(const NdArray< dtype > &inImageArray, uint32 inSize, Boundary inBoundaryType=Boundary::REFLECT, dtype inConstantValue=0)
Definition: complementaryMedianFilter.hpp:50
NdArray< dtype > medianFilter(const NdArray< dtype > &inImageArray, uint32 inSize, Boundary inBoundaryType=Boundary::REFLECT, dtype inConstantValue=0)
Definition: medianFilter.hpp:54
Boundary
Boundary condition to apply to the image filter.
Definition: Boundary.hpp:38
Definition: Coordinate.hpp:45
std::uint32_t uint32
Definition: Types.hpp:40