🖥
🖥
🖥
🖥
AugeLab Studio Manual
English
Ask or search…
K
Comment on page

FloodFill

Flood Fill Node Documentation

The FloodFill node in AugeLab Studio applies the flood fill algorithm to an input grayscale image, filling enclosed shapes with a specified color.

Node Overview

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 Properties

  • Node Title: FloodFill
  • Node ID: OP_NODE_FLOODFILL

Inputs

The FloodFill node has the following input socket:
  • Image: The input grayscale image to be processed. Connect a grayscale image to this socket.

Outputs

The FloodFill node has the following output socket:
  • Image: The resulting grayscale image with filled shapes.

Node Configuration

The FloodFill node does not have any configuration options.

Usage

  1. 1.
    Drag and drop the FloodFill node from the node library onto the canvas in AugeLab Studio.
  2. 2.
    Connect the input grayscale image to the Image input socket of the FloodFill node.
  3. 3.
    Run the pipeline.
  4. 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.

Notes

  • The FloodFill node uses the cv2.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.