rusty_vision/traits/resize.rs
1#![allow(dead_code)]
2use crate::{error::Error, geometry::Shape};
3
4#[derive(Default)]
5pub struct NearestNeighborParams;
6
7#[derive(Default)]
8pub struct BiCubicParams;
9
10#[derive(Debug, Default)]
11pub struct BiLinearParams;
12
13pub trait Resizable<T> {
14 fn resize(&mut self, shape: Shape) -> Result<(), Error>;
15}