Back to FabImage Library website
You are here: Start » Function Reference » Image » Image Features » ImageMassCenter
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Computes a point with coordinates equal to image mass center in brightness scale.
Syntax
C++
C#
void fil::ImageMassCenter ( const fil::Image& inImage, ftl::Optional<const fil::Region&> inRoi, fil::Point2D& outMassCenter )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inImage | const Image& | Input image | |
![]() |
inRoi | Optional<const Region&> | NIL | Range of pixels to be processed |
![]() |
outMassCenter | Point2D& |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Black image on input in ImageMassCenter. |
DomainError | Empty region on input in ImageMassCenter. |
DomainError | Region exceeds an input image in ImageMassCenter. |