function
SLAM.LoopClosure.RGBDKeyframes.ValidCalibration
Public declarations
Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.
| Role | Name | Type | Dimensions / attributes / default | Description |
|---|---|---|---|---|
| input | calibration | Real | [4] | |
| input | imageSize | Integer | [2] | |
| output | valid | Boolean | |
Modelica declarations and implementation
Show parameters, interfaces and source
Parameters, inputs, outputs, defaults and equations from the source file.
function ValidCalibration
input Real calibration[4];
input Integer imageSize[2];
output Boolean valid;
algorithm
valid := imageSize[1] > 0 and imageSize[1] <= 8192
and imageSize[2] > 0 and imageSize[2] <= 8192
and calibration[1] > 0 and calibration[1] <= 1e6
and calibration[2] > 0 and calibration[2] <= 1e6
and abs(calibration[3]) <= 8192 and abs(calibration[4]) <= 8192;
end ValidCalibration;