average:width:height: Instance Method

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

References: PxCutout

Writes the accumulated average cutout, scaled to the given dimensions, into cutout.

Parameters

  • cutout — The cutout to populate with the averaged result.
  • 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