All Projects â†’ bokuweb â†’ lcs-image-diff-rs

bokuweb / lcs-image-diff-rs

Licence: MIT license
🖼 Image diff tool with LCS algorithm

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to lcs-image-diff-rs

rdp
A library providing FFI access to fast Ramer–Douglas–Peucker and Visvalingam-Whyatt line simplification algorithms
Stars: ✭ 20 (-70.15%)
Mutual labels:  rust-library
waihona
Rust crate for performing cloud storage CRUD actions across major cloud providers e.g aws
Stars: ✭ 46 (-31.34%)
Mutual labels:  rust-library
bitcrust
Bitcoin software suite
Stars: ✭ 61 (-8.96%)
Mutual labels:  rust-library
eslint-plugin-diff
Run ESLint on your changes only
Stars: ✭ 80 (+19.4%)
Mutual labels:  diff
whoami
Rust crate to get the current user and environment.
Stars: ✭ 68 (+1.49%)
Mutual labels:  rust-library
cala
Cross-platform system interface for hardware IO
Stars: ✭ 46 (-31.34%)
Mutual labels:  rust-library
speech-recognition-evaluation
Evaluate results from ASR/Speech-to-Text quickly
Stars: ✭ 25 (-62.69%)
Mutual labels:  diff
ecomparatio
eComparatio: text diff and support for digital edition
Stars: ✭ 21 (-68.66%)
Mutual labels:  diff
pinto
Query builder (SQL) in Rust
Stars: ✭ 23 (-65.67%)
Mutual labels:  rust-library
twang
Library for pure Rust advanced audio synthesis.
Stars: ✭ 83 (+23.88%)
Mutual labels:  rust-library
webbrowser-rs
Rust library to open URLs in the web browsers available on a platform
Stars: ✭ 150 (+123.88%)
Mutual labels:  rust-library
microdiff
A fast, zero dependency object and array comparison library. Significantly faster than most other deep comparison libraries and has full TypeScript support.
Stars: ✭ 3,138 (+4583.58%)
Mutual labels:  diff
Differentia.js
No longer being supported or maintained. A Graph Theory & Data Structure Library for JavaScript.
Stars: ✭ 13 (-80.6%)
Mutual labels:  diff
mailparse
Rust library to parse mail files
Stars: ✭ 148 (+120.9%)
Mutual labels:  rust-library
hassle-rs
🦀 This crate provides an FFI layer and idiomatic rust wrappers for the new DirectXShaderCompiler library.
Stars: ✭ 34 (-49.25%)
Mutual labels:  rust-library
spotdiff.vim
A range and area selectable diffthis to compare partially
Stars: ✭ 29 (-56.72%)
Mutual labels:  diff
elixir-utilities-web
Utilties for the Developer. Regex, HTTP echo. Diffing
Stars: ✭ 36 (-46.27%)
Mutual labels:  diff
intersection-wasm
Mesh-Mesh and Triangle-Triangle Intersection tests based on the algorithm by Tomas Akenine-Möller
Stars: ✭ 17 (-74.63%)
Mutual labels:  rust-library
ctrs
Category Theory For Programmers (Bartosz Milewski)
Stars: ✭ 62 (-7.46%)
Mutual labels:  rust-library
InputBot
A Rust library for creating global hotkeys, and emulating inputs.
Stars: ✭ 246 (+267.16%)
Mutual labels:  rust-library

lcs-image-diff

Image diff library and tool with LCS algorithm. rust port of murooka/go-diff-image

CircleCI

Requirements

  • latest Rust (recommend rustup)

Library

Usage

# Cargo.toml
[dependencies]
image = "0.20"
lcs-image-diff = { version = "0.1", default-features = false }
use lcs_image_diff::compare;

let mut before = image::open("before.png")?;
let mut after = image::open("after.png")?;

let diff = compare(&mut before, &mut after, 100.0 / 256.0)?;

before.save("marked_before.png")?;
after.save("marked_after.png")?;
diff.save("diff.png")?;

Binary

Installation

cargo install lcs-image-diff

Usage

lcs-image-diff path/to/before.png path/to/after.png path/to/diff.png

Example

before.png after.png diff.png

lcs-image-diff outputs marked before and after images too.

marked_before.png marked_after.png

LICENSE

The MIT License (MIT)

Copyright (c) 2018 @bokuweb

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].