Skip to content

Commit

Permalink
ENH: Update schema to include cliping range
Browse files Browse the repository at this point in the history
Note: clipping range is currently not used within Autoscoper,
this is used by SlicerAutoscoperM to communicate information.
  • Loading branch information
NicerNewerCar committed Apr 3, 2024
1 parent e78b70e commit c08ff47
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Documentation/file-specifications/camera-calibration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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})}
```
```
11 changes: 10 additions & 1 deletion libautoscoper/src/schema/vtkCamera-schema-v1.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand All @@ -58,4 +67,4 @@
"image-width",
"image-height"
]
}
}

0 comments on commit c08ff47

Please sign in to comment.