pub struct Registration {
pub schema_version: String,
pub id: String,
pub moving: Option<ContentReference>,
pub fixed: Option<ContentReference>,
pub transform: RigidTransform,
pub method: RegistrationMethod,
pub landmarks: Option<Vec<LandmarkPair>>,
pub rms_residual_mm: Option<f64>,
pub note: Option<String>,
}Expand description
A versioned registration record: the transform, its method, the landmarks that produced it, the achieved residual, and content bindings of the moving/fixed images when known.
Fields§
§schema_version: String§id: String§moving: Option<ContentReference>Content binding of the moving image artifact, when encoded.
fixed: Option<ContentReference>Content binding of the fixed (target) image artifact.
transform: RigidTransform§method: RegistrationMethod§landmarks: Option<Vec<LandmarkPair>>The landmark pairs actually used by a landmark fit.
rms_residual_mm: Option<f64>RMS point residual of the fit in millimetres.
note: Option<String>Free-text provenance note (fiducial system, external tool).
Implementations§
Source§impl Registration
impl Registration
pub fn validate(&self) -> Result<(), RegistrationError>
Trait Implementations§
Source§impl Clone for Registration
impl Clone for Registration
Source§fn clone(&self) -> Registration
fn clone(&self) -> Registration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Registration
impl Debug for Registration
Source§impl<'de> Deserialize<'de> for Registration
impl<'de> Deserialize<'de> for Registration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Registration
impl PartialEq for Registration
Source§impl Serialize for Registration
impl Serialize for Registration
impl StructuralPartialEq for Registration
Auto Trait Implementations§
impl Freeze for Registration
impl RefUnwindSafe for Registration
impl Send for Registration
impl Sync for Registration
impl Unpin for Registration
impl UnsafeUnpin for Registration
impl UnwindSafe for Registration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more