optris::sdk::SimulatedConfig::RawDetector
Give the camera a radiometrically meaningful detector, instead of the identity one.
A simulated camera already runs the real pipeline either way -- that is not what this switches on. What it switches is which calibration it runs through, and the difference decides what the pipeline can be used to measure.
Off (the default). The camera runs on the synthetic identity calibration of synthetic_calibration.h: unity gain, a straight-line characteristic curve, a flat field that is flat. Every stage executes and costs what it costs on a real frame, so filters and detail enhancement behave, but the scene comes back bit-exact across the interior because nothing in the calibration alters a pixel. That is deliberate -- every existing simulated scene and the tests written against them assume the frame says what the scene put in -- and it is why that calibration documents itself as not radiometrically meaningful.
On. The camera gets a calibration with physics in it: a plausible characteristic curve, a cos^4 flat field, per-pixel gain and offset spread, a scatter of dead pixels, and an optic in front of it. The scene is then treated as a radiance field rather than as an answer -- projected through that optic, composed forwards exactly as apply_emissivity() takes it back out, and inverted into the ADU a detector would have produced. What comes out is the scene as that camera would have measured it, so the radiometry, the flat field, the dead-pixel substitution, size-of-source and the distortion correction can be measured rather than merely exercised.
The cost of that is the picture no longer equals the scene, which is why this is not the default.
The scene is composed with the radiation in force when the camera opens -- what the object really is -- and every frame is measured with the radiation set now, so an emissivity, transmissivity or ambient changed through Radiometry::Set() afterwards moves the reading as it does on a real camera. A region's own emissivity reaches its readings in this mode, through the same curve, and never the picture: there is no image-side path, so such a region reports RegionEmissivityState::kReadingOnly.
Detail enhancement does not reach the picture in this mode: it is a display-only pass written by the pipeline backend, and this path runs pl::process() directly. The temperatures are unaffected.
FIXED once the camera is open: it decides what the camera IS.
Public attributes
enabled
bool enabled = false
Switches the mode on. Everything below is ignored while it is false.
calibration_dir
std::string calibration_dir
Calibration directory, holding Cali-<serial>.xml, the .dat and the .prn. Empty means "write a synthetic one and use
that". Point it at a real directory to use real calibration data.
calibration_serial
uint32_t calibration_serial = 0
Serial the calibration files are named for. Zero takes the camera's own serial.
fov
int fov = 0
Field of view the calibration files are named for, in degrees. Zero takes a 60 degree optic.
zemax_distortion_path
std::string zemax_distortion_path
A Zemax field-curvature listing to take the optic from. Empty means a rectilinear optic, which distorts nothing and leaves the distortion correction with nothing to do -- an honest answer rather than an invented lens.
pixel_pitch_mm
double pixel_pitch_mm = 0.017
Detector pitch in millimetres, for reading that listing.
correct_distortion
bool correct_distortion = false
Pipeline stages to switch on. They are off by default for the same reason the mode is: a camera that quietly corrected something would make the correction impossible to see. correct_distortion and sos_kernel_px are spelled unlike their pipeline counterparts (rdc_enabled, sos_kernel_size) on purpose; do not rename either. Run the distortion correction, so the picture is corrected for the optic above rather than left as the detector saw it.
rdc_wide
bool rdc_wide = false
Correct in wide mode, which reaches further into the corners and leaves a border the optic cannot measure.
sos_enabled
bool sos_enabled = false
Run the size-of-source correction.
sos_strength
float sos_strength = 0.0f
How much of the size-of-source correction to apply, 0 to 1.
sos_kernel_px
uint32_t sos_kernel_px = 0
Size-of-source kernel width in pixels.
read_noise_adu
double read_noise_adu = 0.0
Detector read noise, 1 sigma in ADU. Zero -- the default -- keeps a run reproducible, which is what a gate needs.