Calculate Mask Areas
Function Description
Calculates the pixel area of masks in multiple images.
Use Cases
Performs subsequent sorting, filtering, and other operations based on the area values calculated by this step.
Inputs and Outputs
Input (Mask Image): Mask image list used for mask area calculation.
Output (Measured Area): List of mask area values for each image.
Parameters
Calculation Method
Supports the following calculation methods:
FilledContour: Extracts the outer contour of the non-zero region of the mask, and calculates the sum of pixel areas of the filled region between the outer contour and inner contours.
NonZerosPixel: Counts the number of non-zero pixels in the mask image as the area, which is the total effective pixel area.