Skip to content

A Rust CLI program that consumes bitmaps and runs algorithms on them to produce modified bitmaps. Contains some helper modules, convolution processors, and algorithms.

Notifications You must be signed in to change notification settings

pseudoscalar/imagemanip

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imagemanip

This is a repo for image processing algorithms implemented in rust.

Algorithms

Currently the only algorithm is a "cartoonify" algorithm that flattens regions of similar color in the image creating a Miyazaki-esque cartoon or a watercolor-esque image.

It accepts 2 parameters which can be specified from the command line

  1. pct - This is the "sensitivity" of the algorithm. This property tells the algorithm what percentage of the lowest volatility regions to "flatten" after each pass. I've found somehwere from .5 to .85 to be good choices for this.
  2. passes - The algorithm always does one pass by subdividing the image into a grid. This parameter sets the number of times the algorithm will sweep the image with its convolution matrix. I've found 25 to 100 to be good choices for this.

Build

cargo build

Sample command

./target/debug/imagemanip in=/path/to/input/image.bmp out=/path/to/output/image.bmp passes=20 pct=.85

About

A Rust CLI program that consumes bitmaps and runs algorithms on them to produce modified bitmaps. Contains some helper modules, convolution processors, and algorithms.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%