NumCpp
2.9.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
30
#include "
NumCpp/Core/Internal/StaticAsserts.hpp
"
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
{
48
STATIC_ASSERT_ARITHMETIC
(dtype);
49
50
return
inImageArray > inThreshold;
51
}
52
}
// namespace imageProcessing
53
}
// namespace nc
NdArray.hpp
StaticAsserts.hpp
STATIC_ASSERT_ARITHMETIC
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition:
StaticAsserts.hpp:37
nc::NdArray< bool >
nc::imageProcessing::applyThreshold
NdArray< bool > applyThreshold(const NdArray< dtype > &inImageArray, dtype inThreshold)
Definition:
applyThreshold.hpp:46
nc
Definition:
Coordinate.hpp:45
include
NumCpp
ImageProcessing
applyThreshold.hpp
Generated by
1.9.1