ImageMoment
Computes the selected moment of an image in regular and normalized (divided by sum of pixel values) variant.
Syntax
C++
Python
def ImageMoment( inImage: Image, /, *, inRoi: Region | None = None, inMomentType: ImageMomentType = ImageMomentType._00, inCentral: bool = False ) -> ( outMoment: float, outNormMoment: float )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inImage | Image | Input image | |
![]() |
inRoi | Region | None | None | Range of pixels to be processed |
![]() |
inMomentType | ImageMomentType | ImageMomentType._00 | |
![]() |
inCentral | bool | False | |
![]() |
outMoment | float | ||
![]() |
outNormMoment | float |
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.


