Comment on page
FloodFillnode in AugeLab Studio applies the flood fill algorithm to an input grayscale image, filling enclosed shapes with a specified color.
FloodFillnode 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
FloodFillnode has the following input socket:
- Image: The input grayscale image to be processed. Connect a grayscale image to this socket.
FloodFillnode has the following output socket:
- Image: The resulting grayscale image with filled shapes.
FloodFillnode does not have any configuration options.
- 1.Drag and drop the
FloodFillnode from the node library onto the canvas in AugeLab Studio.
- 2.Connect the input grayscale image to the Image input socket of the
- 3.Run the pipeline.
FloodFillnode will apply the flood fill algorithm to the input image and produce the image with filled shapes at the Image output socket.
FloodFillnode uses the
cv2.floodFillfunction 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
FloodFillnode to other nodes in the pipeline for further processing or analysis.
That concludes the documentation for the
FloodFillnode in AugeLab Studio. This node allows you to apply the flood fill algorithm to fill enclosed shapes in a grayscale image.