image_scaled#

deltacamera.Camera.image_scaled(factor, center_subpixels=False)[source]#

Return a camera adjusted for a uniformly scaled image.

Scales both focal length and principal point (origin-anchored). If image_shape is set, it is also scaled accordingly.

Parameters:
  • factor – Scale factor (>1 makes image larger)

  • center_subpixels – If True, shift the principal point by (factor-1)/2 so that each block of factor x factor subpixels is centered on the corresponding original pixel. Use this when supersampling for subsequent area downsampling.

Returns:

New Camera for the scaled image

Return type:

Camera