pub struct PureRustImageOps;Expand description
Pure-Rust implementation of element-wise and reduction ImageOpsPort methods.
gaussian_blur and resize return
ImageOpsError::Backend("unsupported in PureRustImageOps: requires OpenCV backend");
they are outside scope for pure-Rust reimplementation per issue #1.
Trait Implementations§
Source§impl Clone for PureRustImageOps
impl Clone for PureRustImageOps
Source§fn clone(&self) -> PureRustImageOps
fn clone(&self) -> PureRustImageOps
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PureRustImageOps
impl Debug for PureRustImageOps
Source§impl Default for PureRustImageOps
impl Default for PureRustImageOps
Source§fn default() -> PureRustImageOps
fn default() -> PureRustImageOps
Returns the “default value” for a type. Read more
Source§impl ImageOpsPort for PureRustImageOps
impl ImageOpsPort for PureRustImageOps
Source§fn cvt_color(
&self,
src: &dyn MatView,
conv: ColorConversion,
) -> Result<OwnedMatView, ImageOpsError>
fn cvt_color( &self, src: &dyn MatView, conv: ColorConversion, ) -> Result<OwnedMatView, ImageOpsError>
Convert
src between color spaces per ColorConversion.Source§fn gaussian_blur(
&self,
_src: &dyn MatView,
_ksize: (u32, u32),
_sigma_x: f64,
_sigma_y: f64,
) -> Result<OwnedMatView, ImageOpsError>
fn gaussian_blur( &self, _src: &dyn MatView, _ksize: (u32, u32), _sigma_x: f64, _sigma_y: f64, ) -> Result<OwnedMatView, ImageOpsError>
Apply a Gaussian blur with the given kernel size and sigmas.
Source§fn threshold(
&self,
src: &dyn MatView,
thresh: f64,
max_val: f64,
kind: ThresholdKind,
) -> Result<OwnedMatView, ImageOpsError>
fn threshold( &self, src: &dyn MatView, thresh: f64, max_val: f64, kind: ThresholdKind, ) -> Result<OwnedMatView, ImageOpsError>
Threshold a grayscale image.
Source§fn absdiff(
&self,
lhs: &dyn MatView,
rhs: &dyn MatView,
) -> Result<OwnedMatView, ImageOpsError>
fn absdiff( &self, lhs: &dyn MatView, rhs: &dyn MatView, ) -> Result<OwnedMatView, ImageOpsError>
Element-wise absolute difference of two identically shaped images.
Source§fn convert_scale_abs(
&self,
src: &dyn MatView,
scale: f64,
offset: f64,
) -> Result<OwnedMatView, ImageOpsError>
fn convert_scale_abs( &self, src: &dyn MatView, scale: f64, offset: f64, ) -> Result<OwnedMatView, ImageOpsError>
Element-wise
saturate_u8(|src * scale + offset|).Source§fn min_max_loc(&self, src: &dyn MatView) -> Result<MinMaxResult, ImageOpsError>
fn min_max_loc(&self, src: &dyn MatView) -> Result<MinMaxResult, ImageOpsError>
Locate the minimum and maximum pixel values and their first positions.
Source§fn count_non_zero(&self, src: &dyn MatView) -> Result<u64, ImageOpsError>
fn count_non_zero(&self, src: &dyn MatView) -> Result<u64, ImageOpsError>
Count non-zero pixels in a grayscale image.
Source§fn resize(
&self,
_src: &dyn MatView,
_new_width: u32,
_new_height: u32,
) -> Result<OwnedMatView, ImageOpsError>
fn resize( &self, _src: &dyn MatView, _new_width: u32, _new_height: u32, ) -> Result<OwnedMatView, ImageOpsError>
Resize
src to the given dimensions.impl Copy for PureRustImageOps
Auto Trait Implementations§
impl Freeze for PureRustImageOps
impl RefUnwindSafe for PureRustImageOps
impl Send for PureRustImageOps
impl Sync for PureRustImageOps
impl Unpin for PureRustImageOps
impl UnsafeUnpin for PureRustImageOps
impl UnwindSafe for PureRustImageOps
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