pub struct ColorAnalyzer;Expand description
Color analysis component
Implementations§
Source§impl ColorAnalyzer
impl ColorAnalyzer
Sourcepub fn extract_colors(
&self,
_image: &PreprocessedImage,
) -> RragResult<Vec<Color>>
pub fn extract_colors( &self, _image: &PreprocessedImage, ) -> RragResult<Vec<Color>>
Extract dominant colors from image
Sourcepub fn analyze_harmony(&self, _colors: &[Color]) -> RragResult<ColorHarmony>
pub fn analyze_harmony(&self, _colors: &[Color]) -> RragResult<ColorHarmony>
Analyze color harmony
Auto Trait Implementations§
impl Freeze for ColorAnalyzer
impl RefUnwindSafe for ColorAnalyzer
impl Send for ColorAnalyzer
impl Sync for ColorAnalyzer
impl Unpin for ColorAnalyzer
impl UnwindSafe for ColorAnalyzer
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