Union of opening calculated for several linear structuring element orientations.
More...
| IPSDKIPLBASICMORPHOLOGY_API image::ImagePtr | ipsdk::imaproc::morpho::unionLinearOpening2dImg (const image::ImageConstPtr &pInImg, const ipsdk::ipReal64 radius) |
| | wrapper function for Union of opening calculated for several linear structuring element orientations More...
|
| |
| IPSDKIPLBASICMORPHOLOGY_API image::ImagePtr | ipsdk::imaproc::morpho::unionLinearOpening2dImg (const image::ImageConstPtr &pInImg, const ipsdk::ipReal64 radius, const ipsdk::ipUInt32 nbAngles) |
| | wrapper function for Union of opening calculated for several linear structuring element orientations More...
|
| |
| IPSDKIPLBASICMORPHOLOGY_API image::ImagePtr | ipsdk::imaproc::morpho::unionLinearOpening2dImg (const image::ImageConstPtr &pInImg, const ipsdk::ipReal64 radius, const attr::eBorderExtensionPolicy &inOptBorderExtensionPolicy) |
| | wrapper function for Union of opening calculated for several linear structuring element orientations More...
|
| |
| IPSDKIPLBASICMORPHOLOGY_API image::ImagePtr | ipsdk::imaproc::morpho::unionLinearOpening2dImg (const image::ImageConstPtr &pInImg, const ipsdk::ipReal64 radius, const ipsdk::ipUInt32 nbAngles, const attr::eBorderExtensionPolicy &inOptBorderExtensionPolicy) |
| | wrapper function for Union of opening calculated for several linear structuring element orientations More...
|
| |
| IPSDKIPLBASICMORPHOLOGY_API void | ipsdk::imaproc::morpho::unionLinearOpening2dImg (const image::ImageConstPtr &pInImg, const ipsdk::ipReal64 radius, const image::ImagePtr &pOutImg) |
| | wrapper function for Union of opening calculated for several linear structuring element orientations More...
|
| |
| IPSDKIPLBASICMORPHOLOGY_API void | ipsdk::imaproc::morpho::unionLinearOpening2dImg (const image::ImageConstPtr &pInImg, const ipsdk::ipReal64 radius, const ipsdk::ipUInt32 nbAngles, const image::ImagePtr &pOutImg) |
| | wrapper function for Union of opening calculated for several linear structuring element orientations More...
|
| |
| IPSDKIPLBASICMORPHOLOGY_API void | ipsdk::imaproc::morpho::unionLinearOpening2dImg (const image::ImageConstPtr &pInImg, const ipsdk::ipReal64 radius, const attr::eBorderExtensionPolicy &inOptBorderExtensionPolicy, const image::ImagePtr &pOutImg) |
| | wrapper function for Union of opening calculated for several linear structuring element orientations More...
|
| |
| IPSDKIPLBASICMORPHOLOGY_API void | ipsdk::imaproc::morpho::unionLinearOpening2dImg (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 opening calculated for several linear structuring element orientations More...
|
| |
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.
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
inImg = PyIPSDK.loadTiffImageFile(inputImgPath)
radius = 4
outImg = morpho.unionLinearOpening2dImg(inImg, radius)
Example of C++ code :
Example informations
Associated library
IPSDKIPLBasicMorphology
Header file
Code Example
- See also
- UnionLinearOpening2dImgLvl1
◆ unionLinearOpening2dImg() [1/8]
wrapper function for Union of opening calculated for several linear structuring element orientations
- Exceptions
-
◆ unionLinearOpening2dImg() [2/8]
wrapper function for Union of opening calculated for several linear structuring element orientations
- Exceptions
-
◆ unionLinearOpening2dImg() [3/8]
wrapper function for Union of opening calculated for several linear structuring element orientations
- Exceptions
-
◆ unionLinearOpening2dImg() [4/8]
wrapper function for Union of opening calculated for several linear structuring element orientations
- Exceptions
-
◆ unionLinearOpening2dImg() [5/8]
wrapper function for Union of opening calculated for several linear structuring element orientations
- Exceptions
-
◆ unionLinearOpening2dImg() [6/8]
wrapper function for Union of opening calculated for several linear structuring element orientations
- Exceptions
-
◆ unionLinearOpening2dImg() [7/8]
wrapper function for Union of opening calculated for several linear structuring element orientations
- Exceptions
-
◆ unionLinearOpening2dImg() [8/8]
wrapper function for Union of opening calculated for several linear structuring element orientations
- Exceptions
-