Mask of Largest Object Filter

Finds the mask of the largest object in a mask or classification image and returns a new mask with just that object.

Category

category_image_operation Image Processing

Node

maskoflargestobject_node

Parameters

(none)

Inputs

Input: the input mask or classification image

Outputs

Output: the output mask

Effect of the Filter

The filter takes in a mask or classification image and will output a mask of the same size that contains only the largest object of the input mask, the rest being masked to background.

This filter does not work in line scan mode and can only be applied to entire images.

The following table illustrates the input and output of the filter when applied to a mask with objects of varying sizes.

maskoflargestobject_pre

maskoflargestobject_post

See also