pub struct RphDecoder { /* private fields */ }Expand description
Random Projection Holography decoder.
Implementations§
Source§impl RphDecoder
impl RphDecoder
Sourcepub fn new(output_dim: usize, total_fragments: u16) -> Self
pub fn new(output_dim: usize, total_fragments: u16) -> Self
Create decoder for given output dimension.
Sourcepub fn add_fragment(&mut self, fragment: &HoloFragment) -> Result<()>
pub fn add_fragment(&mut self, fragment: &HoloFragment) -> Result<()>
Add fragment and update reconstruction.
Sourcepub fn reconstruct(&self) -> Vec<f32>
pub fn reconstruct(&self) -> Vec<f32>
Reconstruct tensor from accumulated projections.
Sourcepub fn fragments_loaded(&self) -> u16
pub fn fragments_loaded(&self) -> u16
Number of fragments loaded.
Auto Trait Implementations§
impl Freeze for RphDecoder
impl RefUnwindSafe for RphDecoder
impl Send for RphDecoder
impl Sync for RphDecoder
impl Unpin for RphDecoder
impl UnwindSafe for RphDecoder
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