NumCpp  2.17.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
Loading...
Searching...
No Matches
applyThreshold.hpp
Go to the documentation of this file.
1
28#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
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:139
Definition applyThreshold.hpp:34
NdArray< bool > applyThreshold(const NdArray< dtype > &inImageArray, dtype inThreshold)
Definition applyThreshold.hpp:44