21 #ifndef mia_core_distance_hh
22 #define mia_core_distance_hh
61 template <
typename InputIterator,
typename OutputIterator>
63 OutputIterator out_begin,
bool to_mask)
66 std::transform(in_begin, in_end, out_begin,
68 return x ? 0.0f : std::numeric_limits<float>::max();
71 std::transform(in_begin, in_end, out_begin, [](
float x) {
void distance_transform_prepare(InputIterator in_begin, InputIterator in_end, OutputIterator out_begin, bool to_mask)
void EXPORT_CORE distance_transform_inplace(std::vector< float > &r)
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
#define EXPORT_CORE
Macro to manage Visual C++ style dllimport/dllexport.
#define NS_MIA_END
conveniance define to end the mia namespace