pub struct HDRInput { /* private fields */ }
Expand description
Base input item that is used to process the HDR merge
Implementations§
Source§impl HDRInput
impl HDRInput
Sourcepub fn with_exposure_and_gain(
path: &Path,
exposure: Duration,
gain: f32,
) -> Result<Self, Error>
pub fn with_exposure_and_gain( path: &Path, exposure: Duration, gain: f32, ) -> Result<Self, Error>
Sourcepub fn with_image(
image: &DynamicImage,
exposure: Duration,
gain: f32,
) -> Result<Self, Error>
pub fn with_image( image: &DynamicImage, exposure: Duration, gain: f32, ) -> Result<Self, Error>
Sourcepub fn get_exposure(&self) -> f32
pub fn get_exposure(&self) -> f32
Get exposure of the input item
Sourcepub fn get_buffer(&self) -> &Array3<f32>
pub fn get_buffer(&self) -> &Array3<f32>
Get underlying image data for the input item
Sourcepub fn get_buffer_mut(&mut self) -> &mut Array3<f32>
pub fn get_buffer_mut(&mut self) -> &mut Array3<f32>
Get underlying image data for the input item
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HDRInput
impl RefUnwindSafe for HDRInput
impl Send for HDRInput
impl Sync for HDRInput
impl Unpin for HDRInput
impl UnwindSafe for HDRInput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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