@@ -35,9 +35,9 @@ This schema defines the properties for projection data in THD JSON format.
| `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 |
| `pixel_pitch_height_mm` | number | Pixel pitch in millimeters (height) | 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 |
| `image_height_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 |
...
...
@@ -68,3 +68,54 @@ def main():
projection_validator = get_projection_validator()
projection_validator.folder(FOLDER)
```
## Contribute
- For changes please make a pull request.
- Update the version and date number of the schema.
- Add a new datatyp:
- add a moulde to `src`\ `thd_json`\ `new_data_type`
- add a validation function to the `__init__.py` of the `new_data_typ`. Example of [`projection`.\__init\__.py"](./src/thd_json/projection/__init__.py):