ArithmeticSquare Method

CVB.Net Documentation
Squares the pixel values of the input image to obtain the output image.

Namespace:  Stemmer.Cvb.Foundation
Assembly:  Stemmer.Cvb.Foundation (in Stemmer.Cvb.Foundation.dll) Version: 14.0.0.0
Syntax

public static Image Square(
	Image img,
	PixelOverflow overflow
)

Parameters

img
Type: Stemmer.CvbImage
Input image
overflow
Type: Stemmer.Cvb.FoundationPixelOverflow
Defines how arithmetic overflow is handled.

Return Value

Type: Image
Result image
Exceptions

ExceptionCondition
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed
Remarks

If the parameter overflow is set to Scale, the resulting pixel values are divided to fit the dynamic range of the image (truncated otherwise). Scaling effectively turns this function into a gamma correction with a gamma value of 2.
See Also

Reference