OptrisOptrisDocumentation

Documentation/OTC SDK/optris_sdk — Python API referencev12.0

PictureCorrection

class optris_sdk.camera.PictureCorrection

What the two optical corrections are actually doing right now.

Camera.distortion_correction and Camera.size_of_source_correction say what was asked for. Neither says what is happening, and for these two the difference is not a detail: both depend on calibration data a given camera and optics may simply not carry. Asking for a correction the camera cannot do is not an error -- both default to on, so refusing would make every such camera fail to open -- which is why the reason lives here instead of in an exception.

A snapshot, not a handle. Re-read it after changing a correction or after an operation mode change; both rebuild the tables these describe.

PictureCorrection — properties

rdc_active

Whether distortion correction is reshaping the picture.

Written as a property rather than left to a comparison because the tempting shorthand is rdc != RDC_STATUS_OFF, and that counts RDC_STATUS_NO_COEFFICIENTS -- a camera that was asked and cannot -- as corrected.

sos_active

Whether size-of-source correction is changing pixels.

Same caution as rdc_active, and it bites harder here: the majority state on a camera that has a table is SOS_STATUS_ZERO_STRENGTH, which is an exact identity.

PictureCorrection — methods

__repr__()