OpticsUnit
public enum OpticsUnit
What the number in OperationMode.FieldOfView is measured in.
Optris optics come in two kinds and the camera's calibration says which: a wide lens is described by its field of view, in degrees, a long one by its focal length, in millimetres. Both are one whole number, so a 29 mm lens and a 29-degree lens carry the same value and nothing but this tells them apart.
Branch on this to label the number. Never infer the unit from the number itself -- there is no threshold at which degrees become millimetres, and picking one would mislabel exactly the optics this exists for.
The distinction is per mode, not per camera: one camera can carry a wide optic and a long one, and each is its own set of modes.
This enum is : int to match the C ABI. New members may be appended by a future SDK, so a switch over it should have a default arm.
| Value | ||
|---|---|---|
Unknown |
0 |
The source did not say. Not a synonym for degrees -- show no unit rather than the wrong one. A mode read from a camera with a calibration never reports this. |
Degrees |
1 |
A field of view in whole degrees. Label it "°". |
Millimetres |
2 |
A focal length in whole millimetres. Label it "mm". |