![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Look for particular patterns of foreground and background given as structuring elements. More...
| IPSDKIPLBASICMORPHOLOGY_API image::ImagePtr | ipsdk::imaproc::morpho::hitAndMiss2dImg (const image::ImageConstPtr &pInBinImg, const StructuringElementXYInfoConstPtr &pInForegroundSEXY, const StructuringElementXYInfoConstPtr &pInBackgroundSEXY) |
| wrapper function for Look for particular patterns of foreground and background given as structuring elements More... | |
| IPSDKIPLBASICMORPHOLOGY_API void | ipsdk::imaproc::morpho::hitAndMiss2dImg (const image::ImageConstPtr &pInBinImg, const StructuringElementXYInfoConstPtr &pInForegroundSEXY, const StructuringElementXYInfoConstPtr &pInBackgroundSEXY, const image::ImagePtr &pOutBinImg) |
| wrapper function for Look for particular patterns of foreground and background given as structuring elements More... | |
Look for particular patterns of foreground and background given as structuring elements.
The Hit and Miss, also known as Hit or Miss, is a binary morphological operation used to find a particular pattern. This algorithm generates a binary image where pixels with the value 1 (or true) match the pattern given by the foreground and background structuring elements.
The foreground structuring element contains relative coordinates in the current pixel neighbourhood whith an intensity of 1, whereas the background structuring element determines the pixels that must have an intensity of 0. If a pixel can indefferently equal 0 or 1, its coordinate is not specified. Obviously, a pixel coordinate can not appear in both structuring elements.
The figure below illustrate an example where two patterns can be accepted by the algorithm. The object must describe a 3x3 cross but allows the top-right neigbhour to either belong to the foreground or the background since it is absent in both structuring elements.
Here is the result of the hit and miss operation applied to a binary input image (we are here looking for top left corners) :
Attribute description for algorithm :
| Name | ToolTip | Default Initializer |
|---|---|---|
| ipsdk::imaproc::attr::InBinImg | [Input] binary image for processing operation | X |
| ipsdk::imaproc::attr::InSEXY1 | [Input] first structuring element xy for processing operation | X |
| ipsdk::imaproc::attr::InSEXY2 | [Input] second structuring element xy for processing operation | X |
| ipsdk::imaproc::attr::OutBinImg | [Output] binary image for processing operation | ipsdk::imaproc::duplicateInOut (_pOutBinImg, _pInBinImg) |
Global rule description for algorithm :
ipsdk::imaproc::matchSizeAndType (_pInBinImg,_pOutBinImg)
| IPSDKIPLBASICMORPHOLOGY_API image::ImagePtr ipsdk::imaproc::morpho::hitAndMiss2dImg | ( | const image::ImageConstPtr & | pInBinImg, |
| const StructuringElementXYInfoConstPtr & | pInForegroundSEXY, | ||
| const StructuringElementXYInfoConstPtr & | pInBackgroundSEXY | ||
| ) |
wrapper function for Look for particular patterns of foreground and background given as structuring elements
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
| IPSDKIPLBASICMORPHOLOGY_API void ipsdk::imaproc::morpho::hitAndMiss2dImg | ( | const image::ImageConstPtr & | pInBinImg, |
| const StructuringElementXYInfoConstPtr & | pInForegroundSEXY, | ||
| const StructuringElementXYInfoConstPtr & | pInBackgroundSEXY, | ||
| const image::ImagePtr & | pOutBinImg | ||
| ) |
wrapper function for Look for particular patterns of foreground and background given as structuring elements
| ipsdk::processor::IPSDKBaseProcessingException | on failure |
1.8.14