Back to Aurora Vision Library Lite website
You are here: Start » Image » Image Point Transforms » SquareRootImage
SquareRootImage
Header: | AVL.h |
---|---|
Namespace: | avl |
Transforms pixel values to their square roots pixel by pixel.
Syntax
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.
In-place Processing
This function supports in-place data processing - you can pass the same reference to inImage and outImage
Read more about In-place Computation.
Description
The operation decreases the brightness of an image by transforming each pixel value to its square root.
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.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Not an unsigned-valued image in SquareRootImage. |
DomainError | Region exceeds an input image in SquareRootImage. |
DomainError | Not supported inImage pixel format in SquareRootImage. Supported formats: UInt8, UInt16. |
See Also
- SquareImage – Raises pixel values to the second power pixel by pixel.