NumCpp
2.12.1
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
30
#include "
NumCpp/Core/Internal/StaticAsserts.hpp
"
31
#include "
NumCpp/NdArray.hpp
"
32
33
namespace
nc::imageProcessing
34
{
35
//============================================================================
36
// Method Description:
43
template
<
typename
dtype>
44
NdArray<bool>
applyThreshold
(
const
NdArray<dtype>
& inImageArray, dtype inThreshold)
45
{
46
STATIC_ASSERT_ARITHMETIC
(dtype);
47
48
return
inImageArray > inThreshold;
49
}
50
}
// namespace nc::imageProcessing
NdArray.hpp
StaticAsserts.hpp
STATIC_ASSERT_ARITHMETIC
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition:
StaticAsserts.hpp:39
nc::NdArray< bool >
nc::imageProcessing
Definition:
applyThreshold.hpp:34
nc::imageProcessing::applyThreshold
NdArray< bool > applyThreshold(const NdArray< dtype > &inImageArray, dtype inThreshold)
Definition:
applyThreshold.hpp:44
include
NumCpp
ImageProcessing
applyThreshold.hpp
Generated by
1.9.4