Loading...
Searching...
No Matches
camera_optics.h
Go to the documentation of this file.
111 const double result = 2 * std::atan(sourceHeight / (2 * focalPixels * framing.scale)) * radiansToDegrees;
static Crop crop(int sourceWidth, int sourceHeight, int width, int height, int inset=0, double rotationBoundDegrees=0)
Fit an output aspect ratio inside source bounds and rotation margin.
Definition image_framing.h:239
Crop, resample, and rotate BGRA images into the requested camera frame.
Definition camera_optics.h:32
User-supplied exposure labels written to simulated-photo EXIF.
Definition camera_optics.h:38
void validate() const
Reject values that cannot be represented as bounded EXIF metadata.
Definition camera_optics.h:44
std::string hardwareIdentifier
Definition camera_optics.h:41
Source-space crop and uniform scale needed for an output frame.
Definition image_framing.h:225
Engineering lens-distortion and lateral colour-scale parameters.
Definition camera_optics.h:56
Nominal Pi AI Camera geometry used by the simulator rendering profile.
Definition camera_optics.h:66
static ImageFraming::Crop crop(int sourceWidth, int sourceHeight, int inset)
Compute a centered source crop matching the nominal sensor frame.
Definition camera_optics.h:84
static constexpr double radiansToDegrees
Definition camera_optics.h:72
static double horizontalFov()
Return nominal horizontal field of view in degrees.
Definition camera_optics.h:98
static constexpr double focalPixels
Definition camera_optics.h:73
static double viewportFov(int sourceWidth, int sourceHeight, int inset)
Find the simulator vertical FOV that yields this captured viewport.
Definition camera_optics.h:109
static double verticalFov()
Return nominal vertical field of view in degrees.
Definition camera_optics.h:94
static constexpr double clearDayShutterSeconds
Definition camera_optics.h:69
static constexpr double sensorHeightMm
Definition camera_optics.h:71
static constexpr double greenScale
Definition camera_optics.h:75
static constexpr double sensorWidthMm
Definition camera_optics.h:70