pub struct Glcm { /* private fields */ }Expand description
Gray-Level Co-occurrence Matrix
Implementations§
Source§impl Glcm
impl Glcm
Sourcepub fn new(gray_levels: usize, direction: Direction, distance: u32) -> Self
pub fn new(gray_levels: usize, direction: Direction, distance: u32) -> Self
Creates a new GLCM with given size
Sourcepub fn make_symmetric(&mut self)
pub fn make_symmetric(&mut self)
Makes the GLCM symmetric
Sourcepub fn gray_levels(&self) -> usize
pub fn gray_levels(&self) -> usize
Returns the gray levels
Sourcepub fn is_normalized(&self) -> bool
pub fn is_normalized(&self) -> bool
Returns whether normalized
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Glcm
impl RefUnwindSafe for Glcm
impl Send for Glcm
impl Sync for Glcm
impl Unpin for Glcm
impl UnsafeUnpin for Glcm
impl UnwindSafe for Glcm
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