image = | unionLinearOpening2dImg (inImg,radius) |
image = | unionLinearOpening2dImg (inImg,radius,nbAngles) |
image = | unionLinearOpening2dImg (inImg,radius,inOptBorderExtensionPolicy) |
image = | unionLinearOpening2dImg (inImg,radius,nbAngles,inOptBorderExtensionPolicy) |
Union of opening calculated for several linear structuring element orientations.
The 2d union linear opening algorithm computes openings in several directions with linear structuring elements and combines them to keep the maximum pixel intensity. This algorithm is usefull to fill circular light holes inside dark objects while preserving thin light structures.
Just like Opening 2d, the algorithm can handle holes to avoid contact with the image border. See the Opening 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 (
).
A particularly relevant application example is presented in the Union linear closing 2d description.