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

AVL.MaximumImage Method

Creates an image from the higher pixel values of each corresponding pair.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void MaximumImage(
	AvlNet.Image inImage1,
	AvlNet.Image inImage2,
	AvlNet.Region inRoi,
	out AvlNet.Image outImage
)

Parameters

Name Type Range Default Description
inImage1AvlNet.ImageFirst input image.
inImage2AvlNet.ImageSecond input image.
inRoiAvlNet.RegionRange of pixels to be processed. Default value: atl::NIL, or null.
outImageAvlNet.ImageOutput image.

Description

The operation computes the maximum of two images. Each outImage pixel is equal to the brighter of the corresponding pixels of the input images.

In multichannel (color) images each pixel channel is processed separately.

The operation requires that the images being processed have equal format and dimensions, otherwise an error with appropriate description occurs. To obtain an image of desired dimensions one can use ResizeImage or CropImage filter. To alter the pixel type of an image one can use ConvertPixelType filter. ConvertToMultichannel and AverageChannels filters allow to alter the number of image channels.

Examples

MaximumImage performed on the sample images.

Hardware Acceleration

This operation is optimized for SSE2 technology for pixels of types: UINT8, SINT8, UINT16, SINT16, REAL.

This operation supports automatic parallelization for multicore and multiprocessor systems.

Hardware acceleration settings may be manipulated with Settings class.

Errors

Error type Description
DomainError Image sizes are not equal in MaximumImage.
DomainError Image formats are not the same in MaximumImage.

See also