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