Skip to main content

MaskConnectedComponentParameters

MaskConnectedComponentParameters

#include <mask_connected_component.hpp>

Inherits from TransformParametersBase

Public Attributes

Name
int threshold
Minimum size (in pixels) for a connected component to be preserved.

Additional inherited members

Public Functions inherited from TransformParametersBase

Name
virtual ~TransformParametersBase() =default

Public Attributes Documentation

variable threshold

int threshold = 10;

Minimum size (in pixels) for a connected component to be preserved.

Connected components smaller than this threshold will be removed from the mask. Must be greater than 0.


Updated on 2026-11-13 at 20:25:39 +0000