diff options
Diffstat (limited to 'include/lib/algo/flood_fill.h')
-rw-r--r-- | include/lib/algo/flood_fill.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/lib/algo/flood_fill.h b/include/lib/algo/flood_fill.h index f446e3b..3bacaf9 100644 --- a/include/lib/algo/flood_fill.h +++ b/include/lib/algo/flood_fill.h @@ -12,9 +12,12 @@ // 1. Check that the (x,y) is within the picture // 2. Check if the (x,y) coordinate in the mask is unused // 3. Check if the (x,y) coordinate in the image is non-background -// 4. Check if the (x,y) coordinate in the image is the same color as the fill color +// 4. Check if the (x,y) coordinate in the image is the same color as the fill +// color // 5. If all hold, set the label for the pixel, and check each neighbor // Otherwise, stop flooding -bool_t flood(ImageData_t* image, MaskData_t* mask, size_t width, size_t height, size_t channels, size_t x, size_t y, ImageData_t* fill_color, MaskData_t label); +bool_t flood(ImageData_t *image, MaskData_t *mask, size_t width, size_t height, + size_t channels, size_t x, size_t y, ImageData_t *fill_color, + MaskData_t label); #endif |