use image_convolution::*;
fn main() {
let file = std::env::args().nth(1).expect("image file name");
let file = std::path::Path::new(&file);
let input = Image::load(&file); let kernel = kernels::gaussian(0.8);
dbg!(kernel.size);
let device = gpu_device::create_gpu_device();
let output = futures::executor::block_on(convolution::run(&device, &input, &kernel));
output.save(file.with_extension("result.png"));
}