54 const uint32_t num_elements =
src.num_elements();
56 #pragma omp parallel for
58 for(uint32_t i = 0; i < num_elements; ++i)
61 const int x = coord.
x();
62 const int y = coord.
y();
64 std::array<T, 9> neighbours = { { 0 } };
65 for(
int row = y - 1, j = 0; row <= y + 1; ++row)
67 for(
int col = x - 1; col <= x + 1; ++col, ++j)
75 dst[i] = *std::min_element(neighbours.cbegin(), neighbours.cend());