Back to Adaptive Vision Library website

You are here: Start » Function Reference » Image Point Transforms » SquareRootImage

SquareRootImage


Transforms pixel values to their square roots pixel by pixel.

Header:AVL.h

Syntax

C++
C#
 
void avl::SquareRootImage
(
	const avl::Image& inImage,
	atl::Optional<const avl::Region&> inRoi,
	avl::Image& outImage
)

Parameters

Name Type Default Description
inImage const Image& Input image
inRoi Optional<const Region&> NIL Range of pixels to be processed
outImage Image& Output image

Requirements

For input inImage only pixel formats are supported: uint8, uint16.

Read more about pixel formats in Image documentation.

Description

The operation decreases the brightness of an image by transforming each pixel value to its square root.

Examples

The SquareRootImage performed on the sample image.

In-place Processing

This function supports in-place data processing - you can pass the same reference to inImage and outImage

Hardware Acceleration

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

This operation supports automatic parallelization for multicore and multiprocessor systems.

Errors

Error type Description
DomainError Not an unsigned-valued image in SquareRootImage.

See Also

  • SquareImage – Raises pixel values to the second power pixel by pixel.