Skip to main content

analysis_image

Function analysis_image 

Source
pub fn analysis_image(img: &DynamicImage) -> RgbaImage
Expand description

The image Eagle hands to the quantizer: img scaled down (never up) to at most ANALYSIS_WIDTH wide, keeping the aspect ratio.

Eagle draws onto a canvas with default smoothing, which Chromium does as a single bilinear sample per pixel; this mimics that rather than using an area filter.