Function enimda::enimda
[−]
[src]
pub fn enimda(
path: &Path,
frames: Option<u32>,
size: Option<u32>,
columns: Option<u32>,
depth: Option<f32>,
threshold: Option<f32>,
deep: Option<bool>
) -> Result<Borders, Box<Error>>
Scan image and find its borders
path
- path to image file
frames
- frame limit to use in case of animated image, optimization parameter, no limit by
default, if set then random frames will be used for scan
size
- fit image to this size in pixels to improve performance, optimization parameter, no
resize by default
columns
- column limit to use for scan, optimization parameter, no limit by default, if set
then random columns will be used for scan
depth
- percent of pixels of image height to use for scan, 0.25 by default
threshold
- threshold, aggressiveness of algorithm, 0.5 by default
deep
- iteratively find deep borders, true by default (less performant, but more accurate)
Returns Borders struct