pub struct ImagePyramid { /* private fields */ }Expand description
Image pyramid for multi-resolution search.
Implementations§
Source§impl ImagePyramid
impl ImagePyramid
Sourcepub fn build(
&mut self,
src: &[u8],
width: usize,
height: usize,
num_levels: usize,
)
pub fn build( &mut self, src: &[u8], width: usize, height: usize, num_levels: usize, )
Builds the pyramid from source image data.
Sourcepub fn num_levels(&self) -> usize
pub fn num_levels(&self) -> usize
Returns the number of levels.
Sourcepub fn get_level(&self, index: usize) -> Option<&PyramidLevel>
pub fn get_level(&self, index: usize) -> Option<&PyramidLevel>
Gets a pyramid level.
Sourcepub fn coarsest(&self) -> Option<&PyramidLevel>
pub fn coarsest(&self) -> Option<&PyramidLevel>
Gets the coarsest level.
Sourcepub fn finest(&self) -> Option<&PyramidLevel>
pub fn finest(&self) -> Option<&PyramidLevel>
Gets the finest level (original).
Trait Implementations§
Source§impl Clone for ImagePyramid
impl Clone for ImagePyramid
Source§fn clone(&self) -> ImagePyramid
fn clone(&self) -> ImagePyramid
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 ImagePyramid
impl Debug for ImagePyramid
Auto Trait Implementations§
impl Freeze for ImagePyramid
impl RefUnwindSafe for ImagePyramid
impl Send for ImagePyramid
impl Sync for ImagePyramid
impl Unpin for ImagePyramid
impl UnsafeUnpin for ImagePyramid
impl UnwindSafe for ImagePyramid
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