Skip to content

Fast image transpose and flipping in Rust

License

BSD-3-Clause, Apache-2.0 licenses found

Licenses found

BSD-3-Clause
LICENSE.md
Apache-2.0
LICENSE-APACHE.md
Notifications You must be signed in to change notification settings

awxkee/fast_transpose

Fast image transpose

Fast and simple image rotating in Rust with flipping and flopping in-place and rotating by 180.

Supports:

  • Flipping ( Horizontal Mirror )
  • Flopping ( Vertical Mirror )
  • Transposing ( Rotate by 90 )
  • Rotate by 180
  • Rotate by 270

Adding to project

cargo add fast_transpose

Transpose RGB image

transpose_rgb(
    &img,
    &mut transposed,
    dimensions.0 as usize,
    dimensions.1 as usize,
    FlipMode::NoFlip,
    FlopMode::NoFlop,
)
.unwrap();

Features

Turning off unsafe feature will activate forbid unsafe mode.

This project is licensed under either of

  • BSD-3-Clause License (see LICENSE)
  • Apache License, Version 2.0 (see LICENSE)

at your option.

About

Fast image transpose and flipping in Rust

Topics

Resources

License

BSD-3-Clause, Apache-2.0 licenses found

Licenses found

BSD-3-Clause
LICENSE.md
Apache-2.0
LICENSE-APACHE.md

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages