diff --git a/Documentation/file-specifications/camera-calibration.md b/Documentation/file-specifications/camera-calibration.md index bd77bd15..4a8942d9 100644 --- a/Documentation/file-specifications/camera-calibration.md +++ b/Documentation/file-specifications/camera-calibration.md @@ -24,6 +24,12 @@ We mean it. |`view-angle`| The view angle of the camera. | |`image-width`| The width of the image. | |`image-height`| The height of the image. | +|`clipping-range`| The range of the closest and farthest objects that will affect the rendering. | + +::: {warning} +The `clipping-range` is not currently used by Autoscoper. This is used to +communicate information within the AutoscoperM Slicer extension. +::: ### Example @@ -37,6 +43,7 @@ We mean it. "view-angle": 30.0, "image-width": 1760, "image-height": 1760, + "clipping-range": [0.1, 1000], } ``` ## MayaCam 2.0 @@ -269,4 +276,4 @@ f_x = \frac{image\_size_x}{2 \cdot \tan(\frac{view\_angle}{2})} ```{math} f_y = \frac{image\_size_y}{2 \cdot \tan(\frac{view\_angle}{2})} -``` \ No newline at end of file +``` diff --git a/libautoscoper/src/schema/vtkCamera-schema-v1.0.json b/libautoscoper/src/schema/vtkCamera-schema-v1.0.json index ed1c444b..c9ccea4b 100644 --- a/libautoscoper/src/schema/vtkCamera-schema-v1.0.json +++ b/libautoscoper/src/schema/vtkCamera-schema-v1.0.json @@ -47,6 +47,15 @@ "image-height": { "description": "The height of the DRR image", "type": "integer" + }, + "clipping-range": { + "description": "The range of the closest and farthest objects that will affect the rendering", + "type": "array", + "items": { + "type": "number" + }, + "minItems": 2, + "maxItems": 2 } }, "required": [ @@ -58,4 +67,4 @@ "image-width", "image-height" ] -} \ No newline at end of file +}