commit 15766ecbf3aa622b21e12133e019ffef7a06c407
parent cc0783e9a031727f53c165307fca4e568f17fbb4
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Thu, 30 Mar 2023 13:55:45 -0700
doc
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lechatphp/mod.rs b/src/lechatphp/mod.rs
@@ -389,12 +389,12 @@ fn get_contour_red_pixels(top_left_pt: &Point, img: &DynamicImage) -> Vec<Point>
}
}
};
- // process points on x axis
+ // process points on x axis, top/bottom lines
for x in 0..img_width {
add_px(x, 0);
add_px(x, img_height-1);
}
- // Process points on y axis excluding the first line and last line
+ // Process points on y axis, left/right columns, excluding the first line and last line
// We exclude first/last lines to avoid processing the corners twice
for y in 1..img_height-1 {
add_px(0, y);