NumCpp  2.4.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:
50  template<typename dtype>
52  Boundary inBoundaryType = Boundary::REFLECT, dtype inConstantValue = 0)
53  {
54  NdArray<dtype> inImageArrayCopy(inImageArray);
55  inImageArrayCopy -= medianFilter(inImageArray, inSize, inBoundaryType, inConstantValue);
56 
57  return inImageArrayCopy;
58  }
59  } // namespace filter
60 } // namespace nc
nc::NdArray< dtype >
nc::uint32
std::uint32_t uint32
Definition: Types.hpp:40
NdArray.hpp
Boundary.hpp
nc::filter::medianFilter
NdArray< dtype > medianFilter(const NdArray< dtype > &inImageArray, uint32 inSize, Boundary inBoundaryType=Boundary::REFLECT, dtype inConstantValue=0)
Definition: medianFilter.hpp:54
nc::filter::Boundary::REFLECT
@ REFLECT
nc
Definition: Coordinate.hpp:44
nc::filter::Boundary
Boundary
Boundary condition to apply to the image filter.
Definition: Boundary.hpp:37
Types.hpp
nc::filter::complementaryMedianFilter
NdArray< dtype > complementaryMedianFilter(const NdArray< dtype > &inImageArray, uint32 inSize, Boundary inBoundaryType=Boundary::REFLECT, dtype inConstantValue=0)
Definition: complementaryMedianFilter.hpp:51
medianFilter.hpp