All Projects → kornelski → Dssim

kornelski / Dssim

Licence: agpl-3.0
Image similarity comparison simulating human perception (multiscale SSIM in Rust)

Programming Languages

c
50402 projects - #5 most used programming language
rust
11053 projects

Projects that are alternatives of or similar to Dssim

mrivis
medical image visualization library and development toolkit
Stars: ✭ 19 (-97.16%)
Mutual labels:  similarity, comparison
Python String Similarity
A library implementing different string similarity and distance measures using Python.
Stars: ✭ 546 (-18.26%)
Mutual labels:  similarity
goodreads-toolbox
9 tools for Goodreads.com, for finding people based on the books they’ve read, finding books popular among the people you follow, following new book reviews, etc
Stars: ✭ 56 (-91.62%)
Mutual labels:  similarity
Cfviz
Visualizes user data from codeforces.com using the official API
Stars: ✭ 472 (-29.34%)
Mutual labels:  comparison
HashCompare
Compare various different Hashing Algorithms
Stars: ✭ 18 (-97.31%)
Mutual labels:  comparison
Final word similarity
综合了同义词词林扩展版与知网(Hownet)的词语相似度计算方法,词汇覆盖更多、结果更准确。
Stars: ✭ 485 (-27.4%)
Mutual labels:  similarity
pybraincompare
brain image comparison and visualization methods for python!
Stars: ✭ 16 (-97.6%)
Mutual labels:  comparison
Sirix
SirixDB is a temporal, evolutionary database system, which uses an accumulate only approach. It keeps the full history of each resource. Every commit stores a space-efficient snapshot through structural sharing. It is log-structured and never overwrites data. SirixDB uses a novel page-level versioning approach called sliding snapshot.
Stars: ✭ 638 (-4.49%)
Mutual labels:  comparison
Recordlinkage
A toolkit for record linkage and duplicate detection in Python
Stars: ✭ 532 (-20.36%)
Mutual labels:  similarity
Comparers
The last comparison library you'll ever need!
Stars: ✭ 319 (-52.25%)
Mutual labels:  comparison
Macropodus
自然语言处理工具Macropodus,基于Albert+BiLSTM+CRF深度学习网络架构,中文分词,词性标注,命名实体识别,新词发现,关键词,文本摘要,文本相似度,科学计算器,中文数字阿拉伯数字(罗马数字)转换,中文繁简转换,拼音转换。tookit(tool) of NLP,CWS(chinese word segnment),POS(Part-Of-Speech Tagging),NER(name entity recognition),Find(new words discovery),Keyword(keyword extraction),Summarize(text summarization),Sim(text similarity),Calculate(scientific calculator),Chi2num(chinese number to arabic number)
Stars: ✭ 309 (-53.74%)
Mutual labels:  similarity
case-insensitive
Case insensitive string comparison
Stars: ✭ 24 (-96.41%)
Mutual labels:  comparison
Japicmp
Comparison of two versions of a jar archive
Stars: ✭ 490 (-26.65%)
Mutual labels:  comparison
catch-lest-other-comparison
Tabularised feature comparison between Catch, doctest and lest C++ test frameworks
Stars: ✭ 20 (-97.01%)
Mutual labels:  comparison
Semver
Work with Semantic Versions in Go
Stars: ✭ 608 (-8.98%)
Mutual labels:  comparison
Multi-Face-Comparison
This repo is meant for backend API for face comparision and computer vision. It is built on python flask framework
Stars: ✭ 20 (-97.01%)
Mutual labels:  comparison
Rust Os Comparison
A comparison of operating systems written in Rust
Stars: ✭ 292 (-56.29%)
Mutual labels:  comparison
Swapview Rosetta
Print swap usage per process. Implemented in various programming languages
Stars: ✭ 474 (-29.04%)
Mutual labels:  comparison
React Animation Comparison
A tour of React animation libraries with a focus on developer experience
Stars: ✭ 646 (-3.29%)
Mutual labels:  comparison
Flatbuffer
FlatBuffer : Android Sample Application
Stars: ✭ 612 (-8.38%)
Mutual labels:  comparison

RGBA Structural Similarity

This tool computes (dis)similarity between two or more images using an algorithm approximating human vision. Comparison is done using a variant of the SSIM algorithm.

The value returned is 1/SSIM-1, where 0 means identical image, and >0 (unbounded) is amount of difference. Values are not directly comparable with other tools. See below on interpreting the values.

Features

  • Improved algorithm
    • Compares at multiple weighed resolutions, and scaling is done in linear-light RGB. It's sensitive to distortions of various sizes and blends colors correctly to detect e.g. chroma subsampling errors.
    • Uses L*a*b* color space for the SSIM algorithm. It measures brightness and color much better than metrics from average of RGB channels.
  • Supports alpha channel.
  • Supports images with color profiles.
  • Takes advantage of multi-core CPUs.
  • Can be used as a library in C, Rust, and WASM.
  • No OpenCV or MATLAB needed.

Usage

dssim file-original.png file-modified.png

Will output something like "0.02341" (smaller is better) followed by a filename.

You can supply multiple filenames to compare them all with the first file:

dssim file.png modified1.png modified2.png modified3.png

You can save an image visualising the difference between the files:

dssim -o difference.png file.png file-modified.png

It's also usable as a library.

Please be mindful about color profiles in the images. Different profiles, or lack of support for profiles in other tools, can make images appear different even when the pixels are the same.

Interpreting the values

The amount of difference goes from 0 to infinity. It's not a percentage.

If you're comparing two different image compression codecs, then ensure you either:

  • compress images to the same file size, and then use DSSIM to compare which one is closests to the original, or
  • compress images to the same DSSIM value, and compare file sizes to see how much file size gain each option gives.

More about benchmarking image compression.

When you quote results, please include the DSSIM version. The scale has changed between versions. The version is printed when you run dssim -h.

Download

Download from releases page. It's also available in Mac Homebrew and Ubuntu Snaps.

Build from source

You'll need Rust 1.48 or later. Clone the repo and run:

cargo build --release

Will give you ./target/release/dssim.

Accuracy

Scores for version 3.0 measured against TID2013 database:

TID2013 Spearman Kendall
Noise -0.9392 -0.7789
Actual -0.9448 -0.7913
Simple -0.9499 -0.8082
Exotic -0.8436 -0.6574
New -0.8717 -0.6963
Color -0.8789 -0.7032
Full -0.8711 -0.6984

License

DSSIM is dual-licensed under AGPL or commercial license.

The algorithm improvements in DSSIM

  • The comparison is done on multiple weighed scales (based on IWSSIM) to measure features of different sizes. A single-scale SSIM is biased towards differences smaller than its gaussian kernel.
  • Scaling is done in linear-light RGB to model physical effects of viewing distance/lenses. Scaling in sRGB or Lab would have incorrect gamma and mask distortions caused by chroma subsampling.
  • a/b channels of Lab are compared with lower spatial precision to simulate eyes' higher sensitivity to brightness than color changes.
  • The lightness component of SSIM is ignored when comparing color channels.
  • SSIM score is pooled using mean absolute deviation. You can get per-pixel SSIM from the API to implement custom pooling.
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].