pub struct ChunkedRaster<R: RasterSource> {
pub source: R,
pub total_width: usize,
pub total_height: usize,
pub chunk_size: usize,
pub halo: usize,
}Expand description
A tiled view of a RasterSource that yields overlapping chunks with halo
(ghost / border) cells for seamless neighbourhood processing.
Create with ChunkedRaster::new and iterate with ChunkedRaster::iter.
Fields§
§source: RThe underlying raster data source.
total_width: usizeTotal width of the source raster in pixels.
total_height: usizeTotal height of the source raster in pixels.
chunk_size: usizeTarget core width and height of each chunk (actual edge chunks may be smaller).
halo: usizeNumber of halo pixels added on each side of every chunk.
Implementations§
Source§impl<R: RasterSource> ChunkedRaster<R>
impl<R: RasterSource> ChunkedRaster<R>
Sourcepub fn iter(&self) -> ChunkIterator<'_, R> ⓘ
pub fn iter(&self) -> ChunkIterator<'_, R> ⓘ
Returns a ChunkIterator that yields all chunks in raster-scan order.
Auto Trait Implementations§
impl<R> Freeze for ChunkedRaster<R>where
R: Freeze,
impl<R> RefUnwindSafe for ChunkedRaster<R>where
R: RefUnwindSafe,
impl<R> Send for ChunkedRaster<R>where
R: Send,
impl<R> Sync for ChunkedRaster<R>where
R: Sync,
impl<R> Unpin for ChunkedRaster<R>where
R: Unpin,
impl<R> UnsafeUnpin for ChunkedRaster<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for ChunkedRaster<R>where
R: UnwindSafe,
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