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

AVL.ImageMassCenter Method

Computes a point with coordinates equal to image mass center in brightness scale.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void ImageMassCenter(
	AvlNet.Image inImage,
	AvlNet.Region inRoi,
	out AvlNet.Point2D outMassCenter
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inRoiAvlNet.RegionRange of pixels to be processed. Default value: atl::NIL, or null.
outMassCenterAvlNet.Point2D

Errors

Error type Description
DomainError Empty region on input in ImageMassCenter.
DomainError Black image on input in ImageMassCenter.

See also