Skip to content
Snippets Groups Projects
Commit 039c88ae authored by Simon Wittl's avatar Simon Wittl
Browse files

fixed typos and reqs

parent 880d3e94
No related branches found
No related tags found
No related merge requests found
......@@ -8,23 +8,14 @@
| Property | Type | Description | Constraints | Required |
|-------------------------------|----------|---------------------------------------------------------|---------------------------|----------|
| `focal_spot_position_mm` | array | Position of the focal spot in millimeters | 3 numbers | Yes |
| `focal_spot_orientation_quat` | array | Quaternion representing the focal spots orientation | 4 numbers | No |
| `detector_center_position_mm` | array | Center position of the detector in millimeters | 3 numbers | Yes |
| `detector_horizontal_vector` | array | Horizontal orientation vector of the detector | 3 numbers | Yes |
| `detector_vertical_vector` | array | Vertical orientation vector of the detector | 3 numbers | Yes |
| `detector_center_orientation_quat` | array | Quaternion representing the detector's center orientation | 4 numbers | Yes |
| `pixel_pitch_mm` | number | Pixel pitch in millimeters | - | Yes |
| `detector_horizontal_vector` | array | Horizontal orientation vector of the detector | 3 numbers | No |
| `detector_vertical_vector` | array | Vertical orientation vector of the detector | 3 numbers | No |
| `detector_center_orientation_quat` | array | Quaternion representing the detector's center orientation | 4 numbers | Yes |
| `pixel_pitch_width_mm` | number | Pixel pitch in millimeters (width) | Minimum 0.001 | Yes |
| `pixel_pitch_heigth_mm` | number | Pixel pitch in millimeters (heigth) | Minimum 0.001 | Yes |
| `image_width_px` | integer | Width of the image in pixels | Minimum 1 | Yes |
| `image_heigth_px` | integer | Height of the image in pixels | Minimum 1 | Yes |
| `projection_matrix_cera` | array | Projection matrix for CERA, representing transformations | 3 arrays of 4 numbers | No |
# Notes:
- **Arrays**:
- `focal_spot_position_mm`, `detector_center_position_mm`, `detector_horizontal_vector`, `detector_vertical_vector`: Arrays containing exactly **3 numbers**.
- `detector_center_orientation_quat`: Array containing exactly **4 numbers**.
- `projection_matrix_cera`: Optional 3x4 matrix (array of 3 arrays, each with 4 numbers).
- **Integers**:
- `image_width_px` and `image_heigth_px` have a minimum value constraint of 1.
- **Additional Properties**: No additional properties are allowed outside of those defined here.
......@@ -25,9 +25,10 @@
0.737277336810124,
0.0
],
"pixel_pitch_mm": 0.07479989711934157,
"pixel_pitch_width_mm": 0.07479989711934157,
"pixel_pitch_height_mm": 0.07479989711934157,
"image_width_px": 1944,
"image_heigth_px": 1536,
"image_height_px": 1536,
"projection_matrix_cera": [
[
-0.17494827015512399,
......
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Test THD File Schema",
"title": "THD Projection File Schema",
"type": "object",
"version": 0.1,
"properties": {
"focal_spot_position_mm": {
"type": "array",
......@@ -48,16 +49,22 @@
"minItems": 4,
"maxItems": 4
},
"pixel_pitch_mm": {
"pixel_pitch_width_mm": {
"type": "number",
"description": "Pixel pitch in millimeters."
"description": "Pixel pitch in width dimension measured in millimeters.",
"minimum": 0.001
},
"pixel_pitch_height_mm": {
"type": "number",
"description": "Pixel pitch in heigth dimension measured in millimeters.",
"minimum": 0.001
},
"image_width_px": {
"type": "integer",
"description": "Width of the image in pixels.",
"minimum": 1
},
"image_heigth_px": {
"image_height_px": {
"type": "integer",
"description": "Height of the image in pixels.",
"minimum": 1
......@@ -80,12 +87,11 @@
"required": [
"focal_spot_position_mm",
"detector_center_position_mm",
"detector_horizontal_vector",
"detector_vertical_vector",
"detector_center_orientation_quat",
"pixel_pitch_mm",
"pixel_pitch_height_mm",
"pixel_pitch_width_mm",
"image_width_px",
"image_heigth_px"
"image_height_px"
],
"additionalProperties": false
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment