image = | unionLinearClosing2dImg (inImg,radius) |
image = | unionLinearClosing2dImg (inImg,radius,nbAngles) |
image = | unionLinearClosing2dImg (inImg,radius,inOptBorderExtensionPolicy) |
image = | unionLinearClosing2dImg (inImg,radius,nbAngles,inOptBorderExtensionPolicy) |
Union of closings calculated for several linear structuring element orientations.
The 2d union linear closing algorithm computes closings in several directions with linear structuring elements and combines them to keep the maximum pixel intensity. This algorithm is usefull to fill circular dark holes inside light objects while preserving thin dark structures.
Just like Closing 2d, the algorithm can handle holes to avoid contact with the image border. See the Closing 2d description for more details.
By default, the algorithm uses 4 different angles : ,
,
and
. To have a good compromise between detection accuracy and calculation time, it is advised to use
angles for small structuring elements (
).
The figure below highlights the efficacy of this algorithm. Here, we used a radius of 32 and 15 different structuring element orientations: