Union of closings calculated for several linear structuring element orientations.
More...
| IPSDKIPLBASICMORPHOLOGY_API image::ImagePtr | ipsdk::imaproc::morpho::unionLinearClosing2dImg (const image::ImageConstPtr &pInImg, const ipsdk::ipReal64 radius) |
| | wrapper function for Union of closings calculated for several linear structuring element orientations More...
|
| |
| IPSDKIPLBASICMORPHOLOGY_API image::ImagePtr | ipsdk::imaproc::morpho::unionLinearClosing2dImg (const image::ImageConstPtr &pInImg, const ipsdk::ipReal64 radius, const ipsdk::ipUInt32 nbAngles) |
| | wrapper function for Union of closings calculated for several linear structuring element orientations More...
|
| |
| IPSDKIPLBASICMORPHOLOGY_API image::ImagePtr | ipsdk::imaproc::morpho::unionLinearClosing2dImg (const image::ImageConstPtr &pInImg, const ipsdk::ipReal64 radius, const attr::eBorderExtensionPolicy &inOptBorderExtensionPolicy) |
| | wrapper function for Union of closings calculated for several linear structuring element orientations More...
|
| |
| IPSDKIPLBASICMORPHOLOGY_API image::ImagePtr | ipsdk::imaproc::morpho::unionLinearClosing2dImg (const image::ImageConstPtr &pInImg, const ipsdk::ipReal64 radius, const ipsdk::ipUInt32 nbAngles, const attr::eBorderExtensionPolicy &inOptBorderExtensionPolicy) |
| | wrapper function for Union of closings calculated for several linear structuring element orientations More...
|
| |
| IPSDKIPLBASICMORPHOLOGY_API void | ipsdk::imaproc::morpho::unionLinearClosing2dImg (const image::ImageConstPtr &pInImg, const ipsdk::ipReal64 radius, const image::ImagePtr &pOutImg) |
| | wrapper function for Union of closings calculated for several linear structuring element orientations More...
|
| |
| IPSDKIPLBASICMORPHOLOGY_API void | ipsdk::imaproc::morpho::unionLinearClosing2dImg (const image::ImageConstPtr &pInImg, const ipsdk::ipReal64 radius, const ipsdk::ipUInt32 nbAngles, const image::ImagePtr &pOutImg) |
| | wrapper function for Union of closings calculated for several linear structuring element orientations More...
|
| |
| IPSDKIPLBASICMORPHOLOGY_API void | ipsdk::imaproc::morpho::unionLinearClosing2dImg (const image::ImageConstPtr &pInImg, const ipsdk::ipReal64 radius, const attr::eBorderExtensionPolicy &inOptBorderExtensionPolicy, const image::ImagePtr &pOutImg) |
| | wrapper function for Union of closings calculated for several linear structuring element orientations More...
|
| |
| IPSDKIPLBASICMORPHOLOGY_API void | ipsdk::imaproc::morpho::unionLinearClosing2dImg (const image::ImageConstPtr &pInImg, const ipsdk::ipReal64 radius, const ipsdk::ipUInt32 nbAngles, const attr::eBorderExtensionPolicy &inOptBorderExtensionPolicy, const image::ImagePtr &pOutImg) |
| | wrapper function for Union of closings calculated for several linear structuring element orientations More...
|
| |
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:
Attributes description
Attribute description for algorithm :
Global Rule description
Global rule description for algorithm :
(ipsdk::imaproc::matchSizeAndType (_pInImg,_pOutImg)) &&
(ipsdk::imaproc::customImageProperty (_pOutWk1Img,
matchBorderExtension1 (_pInImg,_pInRadius,eSEXYSubType::eSEXY_Linear,_pInOptBorderExtensionPolicy))) &&
(ipsdk::imaproc::customImageProperty (_pOutWk2Img,
matchBorderExtension1 (_pInImg,_pInRadius,eSEXYSubType::eSEXY_Linear,_pInOptBorderExtensionPolicy))) &&
(ipsdk::processor::ifIsSet (_pOutOptWk1Img,
ipsdk::imaproc::customImageProperty (_pOutOptWk1Img,
matchBorderExtension1 (_pInImg,_pInRadius,eSEXYSubType::eSEXY_Linear,_pInOptBorderExtensionPolicy)))) &&
(ipsdk::processor::ifIsSet (_pOutOptWk2Img,
ipsdk::imaproc::customImageProperty (_pOutOptWk2Img,
matchBorderExtension1 (_pInImg,_pInRadius,eSEXYSubType::eSEXY_Linear,_pInOptBorderExtensionPolicy))))
Example of Python code :
Example imports
import PyIPSDK
import PyIPSDK.IPSDKIPLBasicMorphology as morpho
Code Example
radius = 4
outImg = morpho.unionLinearClosing2dImg(inImg, radius)
Example of C++ code :
Example informations
Associated library
IPSDKIPLBasicMorphology
Header file
Code Example
- See also
- UnionLinearClosing2dImgLvl1
◆ unionLinearClosing2dImg() [1/8]
wrapper function for Union of closings calculated for several linear structuring element orientations
- Exceptions
-
◆ unionLinearClosing2dImg() [2/8]
wrapper function for Union of closings calculated for several linear structuring element orientations
- Exceptions
-
◆ unionLinearClosing2dImg() [3/8]
wrapper function for Union of closings calculated for several linear structuring element orientations
- Exceptions
-
◆ unionLinearClosing2dImg() [4/8]
wrapper function for Union of closings calculated for several linear structuring element orientations
- Exceptions
-
◆ unionLinearClosing2dImg() [5/8]
wrapper function for Union of closings calculated for several linear structuring element orientations
- Exceptions
-
◆ unionLinearClosing2dImg() [6/8]
wrapper function for Union of closings calculated for several linear structuring element orientations
- Exceptions
-
◆ unionLinearClosing2dImg() [7/8]
wrapper function for Union of closings calculated for several linear structuring element orientations
- Exceptions
-
◆ unionLinearClosing2dImg() [8/8]
wrapper function for Union of closings calculated for several linear structuring element orientations
- Exceptions
-