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
Input value inImage Image Input image
Input value inRoi Region | None None Range of pixels to be processed
Input value inMomentType ImageMomentType ImageMomentType._00
Input value inCentral bool False
Output value outMoment float
Output value outNormMoment float

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.