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
31
#include "
NumCpp/Core/Internal/StaticAsserts.hpp
"
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
{
50
STATIC_ASSERT_ARITHMETIC
(dtype);
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
include
NumCpp
ImageProcessing
applyThreshold.hpp
Generated by
1.8.17