NumCpp  2.12.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
complementaryMeanFilter1d.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 auto inImageArrayCopy = inImageArray.template astype<double>();
54 inImageArrayCopy -= meanFilter1d(inImageArray, inSize, inBoundaryType, inConstantValue);
55
56 return inImageArrayCopy;
57 }
58} // namespace nc::filter
Definition: addBoundary1d.hpp:44
NdArray< double > complementaryMeanFilter1d(const NdArray< dtype > &inImageArray, uint32 inSize, Boundary inBoundaryType=Boundary::REFLECT, dtype inConstantValue=0)
Definition: complementaryMeanFilter1d.hpp:48
NdArray< double > meanFilter1d(const NdArray< dtype > &inImageArray, uint32 inSize, Boundary inBoundaryType=Boundary::REFLECT, dtype inConstantValue=0)
Definition: meanFilter1d.hpp:50
Boundary
Boundary condition to apply to the image filter.
Definition: Boundary.hpp:36
std::uint32_t uint32
Definition: Types.hpp:40