Struct smartcrop::Analyzer
[−]
[src]
pub struct Analyzer { /* fields omitted */ }
Methods
impl Analyzer
[src]
pub fn new(settings: CropSettings) -> Analyzer
[src]
pub fn find_best_crop<I: Image + ResizableImage<RI>, RI: Image>(
&self,
img: &I,
width: u32,
height: u32
) -> Result<ScoredCrop, Error>
[src]
&self,
img: &I,
width: u32,
height: u32
) -> Result<ScoredCrop, Error>