You are here: Start » AVL.NET » AVL.DilateImage_Mask(AvlNet.Image, AvlNet.Region, AvlNet.MorphologyKernel, AvlNet.Image)

AVL.DilateImage_Mask(AvlNet.Image, AvlNet.Region, AvlNet.MorphologyKernel, AvlNet.Image)

Replaces each pixel with the maximum of pixels within a small rectangular kernel.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void DilateImage_Mask(
	AvlNet.Image inImage,
	AvlNet.Region inRoi,
	AvlNet.MorphologyKernel inKernel,
	out AvlNet.Image outImage
)

Parameters

inImage
Type: AvlNet.Image
Input image
inRoi
Type: AvlNet.Region
Range of outImage pixels to be computed, or null.
inKernel
Type: AvlNet.MorphologyKernel
Selects a predefined kernel
outImage
Type: AvlNet.Image
Output image

Description

The operation replaces each pixel with the brightest pixel in its neighbourhood, thus shrinking dark areas in inImage and expanding the bright ones.

This filter is a simplified version of DilateImage. 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 DilateImage filter.

Examples

DilateImage_Mask performed on the sample image with inKernel = Box3x3.

Hardware Acceleration

This operation is optimized for SSE2 technology for pixels of type: UINT8.

This operation supports automatic parallelization for multicore and multiprocessor systems.

Hardware acceleration settings may be manipulated with Settings class.

See also