Skip to content

rupansh/seamcarve-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

seamcarve-rs

Parallel seam carving in rust
WIP

Usage

Depends on image
Requires Rust Nightly

use image::io::Reader;
use seamcarve::seam_carve;

fn main() {
	let img = Reader::open("im.png").unwrap().decode().unwrap();
	let rgb = img.to_rgb8();
	let resized_luma = seam_carve(&rgb8, 1000);
	resized_luma.save("im_resized.png").unwrap();
}

Performance Improvements

There are several ways to improve performance right now:

  • Faster Edge Detection
  • Cached Edge Detection (Recalculating energy for necessary pixels only)
  • Improving the Seam container for better cache locality (we're using raw vec right now)

TODO

  • Horizontal Seams
  • Return RGB image

About

Parallel Seam Carving in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages