pub trait Transform<B, const D: usize>: Sizedwhere
B: Backend,{
// Required method
fn transform_points(&self, points: Tensor<f32, B>) -> Tensor<f32, B>;
// Provided method
fn inverse(&self) -> Option<Self> { ... }
}Expand description
Transform trait for spatial coordinate transformations.
Maps points from one physical space to another. All transforms must implement this trait to be used in registration. Trainability is a separate concern, so pure and trainable transforms can implement the same spatial contract.
§Type Parameters
B- The Coeus compute backendD- The spatial dimensionality (2 or 3)
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".