Comment on page
FloodFill
The
FloodFill
node in AugeLab Studio applies the flood fill algorithm to an input grayscale image, filling enclosed shapes with a specified color.The
FloodFill
node uses the flood fill algorithm to fill enclosed shapes in an input grayscale image. It starts from a seed point and fills all connected pixels with the specified color until a boundary is encountered.- Node Title: FloodFill
- Node ID: OP_NODE_FLOODFILL
The
FloodFill
node has the following input socket:- Image: The input grayscale image to be processed. Connect a grayscale image to this socket.
The
FloodFill
node has the following output socket:- Image: The resulting grayscale image with filled shapes.
The
FloodFill
node does not have any configuration options.- 1.Drag and drop the
FloodFill
node from the node library onto the canvas in AugeLab Studio. - 2.Connect the input grayscale image to the Image input socket of the
FloodFill
node. - 3.Run the pipeline.
- 4.The
FloodFill
node will apply the flood fill algorithm to the input image and produce the image with filled shapes at the Image output socket.
- The
FloodFill
node uses thecv2.floodFill
function from OpenCV to perform the flood fill operation. - The flood fill algorithm starts from a seed point and fills all connected pixels with the specified color until a boundary is encountered.
- The seed point is set to (0, 0) in the implementation, but you can modify it according to your needs.
- The filled shapes in the resulting image will have white pixels, while the background will be black.
- The flood fill operation modifies the input image in place, so the output image is a copy of the input image with the filled shapes.
- Connect the output of the
FloodFill
node to other nodes in the pipeline for further processing or analysis.
That concludes the documentation for the
FloodFill
node in AugeLab Studio. This node allows you to apply the flood fill algorithm to fill enclosed shapes in a grayscale image.