39 namespace imageProcessing
55 for (
uint8 border = 0; border < inBorderWidth; ++border)
57 for (
int32 row = 0; row < static_cast<int32>(inShape.
rows); ++row)
59 for (
int32 col = 0; col < static_cast<int32>(inShape.
cols); ++col)
61 if (inExceedances(row, col))
64 xcds(
std::max(row - 1, 0), col) =
true;
65 xcds(
std::max(row - 1, 0), std::min<int32>(col + 1, inShape.
cols - 1)) =
true;
67 xcds(row, std::max<int32>(col - 1, 0)) =
true;
68 xcds(row, std::min<int32>(col + 1, inShape.
cols - 1)) =
true;
70 xcds(std::min<int32>(row + 1, inShape.
rows - 1),
std::max(col - 1, 0)) =
true;
71 xcds(std::min<int32>(row + 1, inShape.
rows - 1), col) =
true;
72 xcds(std::min<int32>(row + 1, inShape.
rows - 1), std::min<int32>(col + 1, inShape.
cols - 1)) =
true;