moments

Functionality

Calculates all of the moments up to the third order of a polygon or rasterized shape.

Inputs

  • binaryImage_in – If it is true, all non-zero image pixels are treated as 1’s. The parameter is used for images only.
  • image_in – Raster image (single-channel, 8-bit or floating-point 2D array) or an array

Outputs

  • moments_out – Output moments.

Locals

Examples