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) {