NumCpp  2.1.0
A C++ implementation of the Python Numpy library
applyThreshold.hpp
Go to the documentation of this file.
1 #pragma once
30 
32 #include "NumCpp/NdArray.hpp"
33 
34 namespace nc
35 {
36  namespace imageProcessing
37  {
38  //============================================================================
39  // Method Description:
47  template<typename dtype>
48  NdArray<bool> applyThreshold(const NdArray<dtype>& inImageArray, dtype inThreshold)
49  {
51 
52  return inImageArray > inThreshold;
53  }
54  } // namespace imageProcessing
55 } // namespace nc
StaticAsserts.hpp
STATIC_ASSERT_ARITHMETIC
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:38
nc::NdArray< bool >
NdArray.hpp
nc
Definition: Coordinate.hpp:45
nc::imageProcessing::applyThreshold
NdArray< bool > applyThreshold(const NdArray< dtype > &inImageArray, dtype inThreshold)
Definition: applyThreshold.hpp:48