NumCpp  2.6.2
A Templatized Header Only C++ Implementation of the Python NumPy Library
applyThreshold.hpp
Go to the documentation of this file.
1 
28 #pragma once
29 
31 #include "NumCpp/NdArray.hpp"
32 
33 namespace nc
34 {
35  namespace imageProcessing
36  {
37  //============================================================================
38  // Method Description:
46  template<typename dtype>
47  NdArray<bool> applyThreshold(const NdArray<dtype>& inImageArray, dtype inThreshold)
48  {
50 
51  return inImageArray > inThreshold;
52  }
53  } // namespace imageProcessing
54 } // namespace nc
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:37
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:72
NdArray< bool > applyThreshold(const NdArray< dtype > &inImageArray, dtype inThreshold)
Definition: applyThreshold.hpp:47
Definition: Coordinate.hpp:45