pub struct TiffFolderOptions {
pub sum_chunks: bool,
pub pixel_policy: PixelValuePolicy,
}Expand description
Options controlling how a TIFF folder (or file) is loaded.
Fields§
§sum_chunks: boolSum DAQ chunks element-wise when a chunked folder is detected
(default true). When false, a multi-chunk folder is loaded
as the legacy lexicographic concatenation of all files. The flag
only affects folders with two or more chunks: single-chunk (and
non-chunk-patterned) folders load identically either way —
chunk-patterned names in numeric frame order, others
lexicographically.
The flag also decides how inconsistent chunks (ragged frame
counts/sets or duplicate (chunk, frame) pairs) are handled. With
summing on (the default), inconsistency is a hard
IoError::ChunkMismatch error — summing ragged chunks would
silently corrupt counts. With summing off, the legacy lexicographic
concatenation loads even for inconsistent chunks (there is nothing to
corrupt), and the irregularity is reported via
TiffLoadInfo::chunk_inconsistent rather than raised — inspecting
raw frames of a ragged folder is exactly when sum_chunks = false is
reached for.
pixel_policy: PixelValuePolicyPolicy for negative / non-finite pixel values (default
PixelValuePolicy::Reject).
Trait Implementations§
Source§impl Clone for TiffFolderOptions
impl Clone for TiffFolderOptions
Source§fn clone(&self) -> TiffFolderOptions
fn clone(&self) -> TiffFolderOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more