Struct convert_image::RoiImage
source · pub struct RoiImage<'a, F> { /* private fields */ }
Expand description
An RoiImage maintains a reference to the original image but views a subregion of the original data.
Implementations§
Trait Implementations§
source§impl<'a, F> ImageData<F> for RoiImage<'a, F>
impl<'a, F> ImageData<F> for RoiImage<'a, F>
source§fn buffer_ref(&self) -> ImageBufferRef<'_, F>
fn buffer_ref(&self) -> ImageBufferRef<'_, F>
Returns the image buffer specified by pixel format
F
. Read moresource§fn buffer(self) -> ImageBuffer<F>
fn buffer(self) -> ImageBuffer<F>
Returns the image buffer specified by pixel format
F
. Read moreAuto Trait Implementations§
impl<'a, F> Freeze for RoiImage<'a, F>
impl<'a, F> RefUnwindSafe for RoiImage<'a, F>where
F: RefUnwindSafe,
impl<'a, F> Send for RoiImage<'a, F>where
F: Send,
impl<'a, F> Sync for RoiImage<'a, F>where
F: Sync,
impl<'a, F> Unpin for RoiImage<'a, F>where
F: Unpin,
impl<'a, F> UnwindSafe for RoiImage<'a, F>where
F: UnwindSafe,
Blanket Implementations§
source§impl<S, F> AsImageData<F> for Swhere
S: ImageData<F>,
impl<S, F> AsImageData<F> for Swhere
S: ImageData<F>,
fn as_image_data(&self) -> &dyn ImageData<F>
source§impl<S, F> AsImageStride<F> for Swhere
S: ImageStride<F>,
impl<S, F> AsImageStride<F> for Swhere
S: ImageStride<F>,
fn as_image_stride(&self) -> &dyn ImageStride<F>
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
source§impl<S, F> ImageStride<F> for S
impl<S, F> ImageStride<F> for S
fn rowchunks_exact(&self) -> RowChunksExact<'_>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more