You are here: Start » AVL.NET » AVL.DilateImage_Mask Method

AVL.DilateImage_Mask Method

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

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inRoiAvlNet.RegionRange of outImage pixels to be computed. Default value: atl::NIL, or null.
inKernelAvlNet.MorphologyKernelSelects a predefined kernel.
outImageAvlNet.ImageOutput 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