pub struct PlanarArrayCalibrationParameters {
pub translation: [Option<CalibrationParameterSpec>; 3],
pub rotation: [Option<CalibrationParameterSpec>; 3],
pub pitch: [Option<CalibrationParameterSpec>; 2],
pub reference_index: [Option<CalibrationParameterSpec>; 2],
pub position_offsets: BTreeMap<usize, [CalibrationParameterSpec; 3]>,
pub relative_source_power: Option<CalibrationParameterSpec>,
pub frame_gains: Option<CalibrationParameterSpec>,
}Expand description
Explicit selection and numerical configuration of planar-array parameters.
None means inactive. Position-offset entries are keyed by stable row-major
physical source index and contain (x, y, z) specifications in metres.
Fields§
§translation: [Option<CalibrationParameterSpec>; 3]Optional (tx, ty, tz) specifications in metres.
rotation: [Option<CalibrationParameterSpec>; 3]Optional active-extrinsic (rx, ry, rz) specifications in radians.
pitch: [Option<CalibrationParameterSpec>; 2]Optional (pitch_x, pitch_y) specifications in metres.
reference_index: [Option<CalibrationParameterSpec>; 2]Optional fractional (reference_column, reference_row) specifications.
position_offsets: BTreeMap<usize, [CalibrationParameterSpec; 3]>Explicit source-indexed local (offset_x, offset_y, offset_z) specifications.
relative_source_power: Option<CalibrationParameterSpec>One optional specification shared by all stable relative source powers.
frame_gains: Option<CalibrationParameterSpec>One optional specification shared by all acquisition-frame gains.
Implementations§
Source§impl PlanarArrayCalibrationParameters
impl PlanarArrayCalibrationParameters
Sourcepub fn builder() -> PlanarArrayCalibrationParametersBuilder
pub fn builder() -> PlanarArrayCalibrationParametersBuilder
Starts a builder with every parameter inactive.
Sourcepub fn has_active_parameters(&self) -> bool
pub fn has_active_parameters(&self) -> bool
Returns whether at least one physical or multiplicative parameter is active.
Sourcepub fn validate_for(&self, illumination: &Illumination) -> Result<()>
pub fn validate_for(&self, illumination: &Illumination) -> Result<()>
Validates specifications, selected sources, supported geometry, and gauges.
Trait Implementations§
Source§impl Clone for PlanarArrayCalibrationParameters
impl Clone for PlanarArrayCalibrationParameters
Source§fn clone(&self) -> PlanarArrayCalibrationParameters
fn clone(&self) -> PlanarArrayCalibrationParameters
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for PlanarArrayCalibrationParameters
impl<'de> Deserialize<'de> for PlanarArrayCalibrationParameters
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>,
Source§impl PartialEq for PlanarArrayCalibrationParameters
impl PartialEq for PlanarArrayCalibrationParameters
Source§fn eq(&self, other: &PlanarArrayCalibrationParameters) -> bool
fn eq(&self, other: &PlanarArrayCalibrationParameters) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PlanarArrayCalibrationParameters
Auto Trait Implementations§
impl Freeze for PlanarArrayCalibrationParameters
impl RefUnwindSafe for PlanarArrayCalibrationParameters
impl Send for PlanarArrayCalibrationParameters
impl Sync for PlanarArrayCalibrationParameters
impl Unpin for PlanarArrayCalibrationParameters
impl UnsafeUnpin for PlanarArrayCalibrationParameters
impl UnwindSafe for PlanarArrayCalibrationParameters
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more