You are here: Start » Function Reference » Image Local Transforms » ErodeImage_Mask
ErodeImage_Mask
Replaces each pixel with the minimum of pixels within a small rectangular kernel.
Syntax
void avl::ErodeImage_Mask ( const avl::Image& inImage, atl::Optional<const avl::Region&> inRoi, avl::MorphologyKernel::Type inKernel, avl::Image& outImage )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inImage | const Image& | Input image | ||
inRoi | Optional<const Region&> | NIL | Range of outImage pixels to be computed | |
inKernel | MorphologyKernel::Type | Selects a predefined kernel | ||
outImage | Image& | Output image |
Description
The operation replaces each pixel with the darkest pixel in its neighbourhood, thus shrinking bright areas in inImage and expanding the dark ones.
This filter is a simplified version of ErodeImage. It is limited to only a few symmetric kernels and supports only basic ROI handling.
Please note that on some machines the filter execution time can be greater than execution time of the corresponding ErodeImage filter.
Examples
Hardware Acceleration
This operation is optimized for SSE2 technology for pixels of type: UINT8.
This operation supports automatic parallelization for multicore and multiprocessor systems.