Rotated Image VOI

A rotated Volume Of Interest can be defined interactively with XF.Interactive.DefineRotatedImageVOI. A new image can then be created (cropped) using Lucid.Core.CropRotatedImageVOI.

It is also possible to automatically create a RotatedImageVOI object from a processing task types. Examples of this are:

  • Lucid.Util.RotatedImageVOIFromRegistrationPoints

  • Lucid.Core.MomentOfInertiaTensor

Alternatively, one can think of the RotatedImageVOI object as a transformation matrix to rotate, translate, and scale the pixels in an image.

Schema

The following JSON Schema specifies the structure of a RotatedImageVOI object:

{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "definitions": {
        "parameter_type_image": {
            "$ref": "parameter_type_image.json#/definitions/parameter_type_image"
        },
        "parameter_type_rotated_image_voi": {
            "description": "Parameter type `RotatedImageVOI`",
            "type": "object",
            "properties": {
                "type": {
                    "const": "RotatedImageVOI"
                },
                "size": {
                    "description": "The size of the VOI in pixels in the X, Y and Z dimension.",
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                },
                "size_mm": {
                    "description": "The size of the VOI in mm in the X, Y and Z dimension.",
                    "type": "array",
                    "items": {
                        "type": "number"
                    }
                },
                "pos_mm": {
                    "description": "The position of the VOI within the image in mm in the X, Y and Z dimension.",
                    "type": "array",
                    "items": {
                        "type": "number"
                    }
                },
                "rotation": {
                    "description": "The 3x3 rotation matrix of the VOI.",
                    "type": "array",
                    "items": {
                        "type": "number"
                    }
                },
                "image": {
                    "description": "The image which the VOI was defined for.",
                    "$ref": "#/definitions/parameter_type_image"
                },
                "name": {
                    "description": "Optional display name of the VOI.",
                    "type": "string"
                },
                "category": {
                    "description": "Optional category name of the VOI.",
                    "type": "string"
                }
            },
            "additionalProperties": false,
            "required": [
                "type",
                "size",
                "size_mm",
                "pos_mm",
                "rotation",
                "image"
            ]
        }
    }
}