pub struct Nd2File { /* private fields */ }Expand description
Main reader for ND2 files
Implementations§
Source§impl Nd2File
impl Nd2File
Sourcepub fn attributes(&mut self) -> Result<&Attributes>
pub fn attributes(&mut self) -> Result<&Attributes>
Get image attributes
Sourcepub fn experiment(&mut self) -> Result<&Vec<ExpLoop>>
pub fn experiment(&mut self) -> Result<&Vec<ExpLoop>>
Get experiment loop definitions
Sourcepub fn text_info(&mut self) -> Result<&TextInfo>
pub fn text_info(&mut self) -> Result<&TextInfo>
Get text info (descriptions, author, date, etc.)
Sourcepub fn chunk_names(&self) -> Vec<String>
pub fn chunk_names(&self) -> Vec<String>
List all chunk names in the file
Sourcepub fn sizes(&mut self) -> Result<HashMap<String, usize>>
pub fn sizes(&mut self) -> Result<HashMap<String, usize>>
Dimensions (P,T,C,Z,Y,X) derived from attributes + experiment. When experiment is empty, infers minimal structure from sequence_count.
Sourcepub fn loop_indices(&mut self) -> Result<Vec<HashMap<String, usize>>>
pub fn loop_indices(&mut self) -> Result<Vec<HashMap<String, usize>>>
Loop indices for each sequence chunk: seq_index -> axis name -> index. Channel is omitted when stored in-pixel instead of as separate chunks.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Nd2File
impl RefUnwindSafe for Nd2File
impl Send for Nd2File
impl Sync for Nd2File
impl Unpin for Nd2File
impl UnsafeUnpin for Nd2File
impl UnwindSafe for Nd2File
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