![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Set the intensity to 1 if the number of neighbours with higher values are greater than the specified input value. More...
| IPSDKIPLBASICMORPHOLOGY_API image::ImagePtr | ipsdk::imaproc::morpho::checkMultiphasedNeighourhood2dImg (const image::ImageConstPtr &pInLabelImg, const ipUInt32 nbLabels, const ipBool bIgnoreForeground) |
| wrapper function for Set the intensity to 1 if the number of neighbours with higher values are greater than the specified input value More... | |
| IPSDKIPLBASICMORPHOLOGY_API void | ipsdk::imaproc::morpho::checkMultiphasedNeighourhood2dImg (const image::ImageConstPtr &pInLabelImg, const ipUInt32 nbLabels, const ipBool bIgnoreForeground, const image::ImagePtr &pOutImg) |
| wrapper function for Set the intensity to 1 if the number of neighbours with higher values are greater than the specified input value More... | |
Set the intensity to 1 if the number of neighbours with higher values are greater than the specified input value.
Given an input label image, the algorithm computes a binary image in which pixels are set to 1 if the label image counts at least InNbLabels different labels in its 3x3 neighbourhood.
It is possible to process only background pixels by setting the InIgnoreForeground flag to true.
Here is an example of an result for InNbLabels = 3 (the selected pixels are displayed in green):
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InLabelImg | [Input] label image for processing operation | X |
| ipsdk::imaproc::attr::InNbLabels | [Input] number of labels for processing operation | X |
| ipsdk::imaproc::attr::InIgnoreForeground | [Input] Flags indicating if the forground is ignored during a calculation | X |
| ipsdk::imaproc::attr::OutBinImg | [Output] binary image for processing operation | ipsdk::imaproc::duplicateInOut (_pOutBinImg, _pInLabelImg, ipsdk::image::eImageBufferType::eIBT_Binary) |
Global rule description for algorithm :
ipsdk::imaproc::matchSize (_pInLabelImg,_pOutBinImg)
| IPSDKIPLBASICMORPHOLOGY_API image::ImagePtr ipsdk::imaproc::morpho::checkMultiphasedNeighourhood2dImg | ( | const image::ImageConstPtr & | pInLabelImg, |
| const ipUInt32 | nbLabels, | ||
| const ipBool | bIgnoreForeground | ||
| ) |
wrapper function for Set the intensity to 1 if the number of neighbours with higher values are greater than the specified input value
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLBASICMORPHOLOGY_API void ipsdk::imaproc::morpho::checkMultiphasedNeighourhood2dImg | ( | const image::ImageConstPtr & | pInLabelImg, |
| const ipUInt32 | nbLabels, | ||
| const ipBool | bIgnoreForeground, | ||
| const image::ImagePtr & | pOutImg | ||
| ) |
wrapper function for Set the intensity to 1 if the number of neighbours with higher values are greater than the specified input value
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14