Trait machine_vision_formats::ImageMutData
source · pub trait ImageMutData<F>: ImageData<F> {
// Required method
fn buffer_mut_ref(&mut self) -> ImageBufferMutRef<'_, F>;
}
Expand description
A mutable image.
The pixel format is specified as the type F
.
Required Methods§
sourcefn buffer_mut_ref(&mut self) -> ImageBufferMutRef<'_, F>
fn buffer_mut_ref(&mut self) -> ImageBufferMutRef<'_, F>
Returns the image mutable buffer specified by pixel format F
.
This does not copy the data but returns a mutable view of it.