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,
67 [](
bool x){
return x ? 0.0f : std::numeric_limits<float>::max();});
69 std::transform(in_begin, in_end, out_begin, [](
float x){
return x*x;});
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
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 EXPORT_CORE
Macro to manage Visual C++ style dllimport/dllexport.
#define NS_MIA_END
conveniance define to end the mia namespace