NumCpp  2.10.1
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 
34 {
35  //============================================================================
36  // Method Description:
43  template<typename dtype>
44  NdArray<bool> applyThreshold(const NdArray<dtype>& inImageArray, dtype inThreshold)
45  {
47 
48  return inImageArray > inThreshold;
49  }
50 } // namespace nc::imageProcessing
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:39
Definition: applyThreshold.hpp:34
NdArray< bool > applyThreshold(const NdArray< dtype > &inImageArray, dtype inThreshold)
Definition: applyThreshold.hpp:44