radioviz.models.transform_model

Transform model definitions for RadioViz application.

This module defines data structures for representing geometric transformations including affine and homography transforms with their associated parameters.

Classes

Transform(type, params)

Data class representing a geometric transformation.

TransformType(*values)

Enumeration of supported transform types.

class radioviz.models.transform_model.Transform(type: TransformType, params: dict[str, Any])[source]

Bases: object

Data class representing a geometric transformation.

This class encapsulates the type and parameters of a geometric transformation, allowing for immutable storage and easy comparison of transformation configurations.

params: dict[str, Any]

Dictionary containing transformation parameters.

Type:

dict[str, Any]

type: TransformType

The type of transformation to apply.

Type:

TransformType

class radioviz.models.transform_model.TransformType(*values)[source]

Bases: StrEnum

Enumeration of supported transform types.

This enum defines the different types of geometric transformations that can be applied to images or coordinates in radio visualization applications.

static _generate_next_value_(name, start, count, last_values)

Return the lower-cased version of the member name.

AFFINE = 'Affine'

Affine transformation type.

HOMOGRAPHY = 'Homography'

Homography transformation type.