pub trait Resampleable<B, const D: usize>where
B: Backend,{
// Required method
fn resample(
&self,
shape: [usize; D],
origin: Point<D>,
spacing: Spacing<D>,
direction: Direction<D>,
) -> Self;
}Expand description
Trait for transforms that can be resampled to a new grid/resolution.
This is used in multi-resolution registration to adapt the transform (e.g., displacement field) when moving from coarse to fine levels.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".