setFieldOfViewFromLensIntrinsics method

void setFieldOfViewFromLensIntrinsics({
  1. required double xFocalLength,
  2. required double yFocalLength,
  3. required double xPrincipal,
  4. required double yPrincipal,
  5. required double xImageSize,
  6. required double yImageSize,
  7. required DeviceOrientation deviceOrientation,
})

Matches the field of view of the scene view to the field of view of a camera lens using the lens characteristics.

All parameter values must be greater than 0.

Parameters:

  • xFocalLength — The pixel focal length along the x-axis. The units are in pixels. xFocal and yFocal should be identical for square pixels.
  • yFocalLength — The pixel focal length along the y-axis. The units are in pixels. xFocal and yFocal should be identical for square pixels.
  • xPrincipal — The distance along the x-axis between the principal point and the top-left corner of the image frame. The units are in pixels. This must also be less than xImageSize.
  • yPrincipal — The distance along the y-axis between the principal point and the top-left corner of the image frame. The units are in pixels. This must also be less than yImageSize.
  • xImageSize — The x value of the image size captured by the camera. The units are in pixels.
  • yImageSize — The y value of the image size captured by the camera. The units are in pixels.
  • deviceOrientation — The orientation of the device.