average:transform:width:height: Instance Method

- (float) average:(PxCutout *) cutout transform:(const PxMatrixF *) transform width:(unsigned int) width height:(unsigned int) height;

References: PxCutout, PxMatrixF

Writes the accumulated average cutout, scaled to the given dimensions and transformed by the given matrix, into cutout.

Parameters

  • cutout — The cutout to populate with the averaged result.
  • transform — The transformation matrix to apply.
  • width — The target width to scale the cutout to.
  • height — The target height to scale the cutout to.

Return Value

How close the resulting cutout is to filling the entire image.

Top