pub struct LEDArray {
pub grid_shape: (usize, usize),
pub pitch: f64,
pub distance: f64,
pub center: (f64, f64),
pub wavelength_override: Option<f64>,
pub illumination_order: Option<Vec<usize>>,
pub intensity_weights: Option<Vec<f64>>,
pub rotation_radians: f64,
}Fields§
§grid_shape: (usize, usize)§pitch: f64§distance: f64§center: (f64, f64)LED-grid coordinate that lies on the optical axis, (column, row).
wavelength_override: Option<f64>§illumination_order: Option<Vec<usize>>§intensity_weights: Option<Vec<f64>>§rotation_radians: f64Implementations§
Source§impl LEDArray
impl LEDArray
pub fn new() -> Self
pub fn grid_shape(self, shape: (usize, usize)) -> Self
pub fn pitch(self, pitch: f64) -> Self
pub fn distance(self, distance: f64) -> Self
pub fn center(self, center: (f64, f64)) -> Self
pub fn wavelength_override(self, wavelength: f64) -> Self
pub fn illumination_order(self, order: Vec<usize>) -> Self
pub fn intensity_weights(self, weights: Vec<f64>) -> Self
pub fn rotation_deg(self, degrees: f64) -> Self
pub fn validate(&self) -> Result<()>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LEDArray
impl<'de> Deserialize<'de> for LEDArray
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 IlluminationSource for LEDArray
impl IlluminationSource for LEDArray
fn k_vectors(&self, optics: &Optics) -> Result<Vec<KVector>>
Source§fn frame_gains(&self) -> Result<Option<Vec<f64>>>
fn frame_gains(&self) -> Result<Option<Vec<f64>>>
Optional multiplicative intensity gain for each compiled frame.
Source§fn multiplexing_matrix(&self) -> Result<Option<MultiplexingMatrix>>
fn multiplexing_matrix(&self) -> Result<Option<MultiplexingMatrix>>
Optional incoherent source weights for each measured frame.
Auto Trait Implementations§
impl Freeze for LEDArray
impl RefUnwindSafe for LEDArray
impl Send for LEDArray
impl Sync for LEDArray
impl Unpin for LEDArray
impl UnsafeUnpin for LEDArray
impl UnwindSafe for LEDArray
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