summaryrefslogtreecommitdiff
path: root/macros/checkCCE.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/checkCCE.sci')
-rw-r--r--macros/checkCCE.sci11
1 files changed, 11 insertions, 0 deletions
diff --git a/macros/checkCCE.sci b/macros/checkCCE.sci
new file mode 100644
index 0000000..a6396e9
--- /dev/null
+++ b/macros/checkCCE.sci
@@ -0,0 +1,11 @@
+function checkCCE(varargin)
+ errors = varargin(1)
+
+ if ~isfield(errors, 'IntrinsicsErrors' ) | ~isfield(errors, 'ExtrinsicsErrors') then
+ error(msprintf("A CameraCalibrationErrors Struct expected."))
+ end
+
+ checkCIE(errors.IntrinsicsErrors);
+ checkCEE(errors.ExtrinsicsErrors);
+endfunction
+