Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Update schema to include clipping-range #277

Merged
merged 1 commit into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
]
}
}
Loading