Back to FabImage Library website

You are here: Start » Function Reference » Image Vector Transforms » NormalizePixelVectors

NormalizePixelVectors


Header:FIL.h
Namespace:fil

Adjusts gradient angles to a given range.

Syntax

C++
C#
 
void fil::NormalizePixelVectors
(
	const fil::Image& inImage,
	ftl::Optional<const fil::Region&> inRoi,
	fil::GradientAngleRange::Type inAngleRange,
	fil::Image& outImage
)

Parameters

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

Requirements

For input inImage only pixel formats are supported: 2⨯uint8, 2⨯uint16, 2⨯int8, 2⨯int16, 2⨯int32, 2⨯real.

Read more about pixel formats in Image documentation.

Errors

List of possible exceptions:

Error type Description
DomainError Region exceeds an input image in NormalizePixelVectors.
DomainError Not supported inImage pixel format in NormalizePixelVectors.