magic-kernel

Crates.iomagic-kernel
lib.rsmagic-kernel
version0.1.0
sourcesrc
created_at2024-05-19 14:07:16.644979
updated_at2024-05-19 14:07:16.644979
descriptionImplementation of Magic Kernel family of resizing algorithms.
homepage
repositoryhttps://github.com/SevInf/magic-kernel-rust
max_upload_size
id1244947
size45,670
Serhii Tatarintsev (SevInf)

documentation

README

Magic Kernel for Rust

Implementation of Magic Kernel family of resizing algorithms.

Usage:

use magic_kernel::{magic_resize, Version};
magic_resize(
    &image,
    Version::MagicKernelSharp2021, // algorithm version to use
    Some(1500), // width
    Some(500), // height
);

image is expected to be an instance magic_kernel::ImageF64. Example of creating ImageF64 from image crate can be found in examples directory.

Commit count: 9

cargo fmt