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;});