optimal-transport-color-transportation

Optimal transport applied to color transportation in image processing.

https://github.com/adrienc21/optimal-transport-color-transportation

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.5%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

Optimal transport applied to color transportation in image processing.

Basic Info
  • Host: GitHub
  • Owner: AdrienC21
  • License: mit
  • Language: Python
  • Default Branch: main
  • Size: 22.1 MB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Created about 5 years ago · Last pushed over 3 years ago
Metadata Files
Readme License Citation

README.md

Optimal transport applied to infographics (color transportation problem)

Optimal transport applied to color transportation in the field of infographics / image processing.

Abstract

The shortest path principle guides most decisions in life and sciences and therefore, optimization problems have came to the fore. The goal of Optimal Transport as a mathematical gem at the interface between probability, analysis and optimization is to find the least costly transport. This work reviews this field with a bias toward numerical methods and their applications in computer graphics, and sheds lights on the impact of the given distance on the final result.

alt text

Article

A short article has been written (in french) to sum up the ideas behind and the key results.

Installation

Clone this repository :

bash git clone https://github.com/AdrienC21/optimal-transport-color-transportation.git

Make sure the following packages are installed. If not, type in a python console :

```python pip install --upgrade pip pip install setuptools pip install --upgrade setuptools --ignore-installed

pip install numpy pip install matplotlib pip install scipy pip install cython pip install POT pip install colour-science pip install colour-science[optional] pip install colour-science[plotting] pip install colour-science[tests] pip install colour-science[docs] pip install colour-science[development]

pip install pymanopt autograd ```

How to use

Edit in parameters.py the following lines :

```python

name of the source image (the one that will change color)

imageSourceName = "bluebutterfly.jpg"

name of the target image (colors of this one will be transported

onto the source image)

imageTargetName = "pinkfield.jpeg" nbpixels = 1000 # number of pixels that will be randomly chosen ```

Run runoptimaltransport.py to apply transport optimal algorithms.

WARNING : The complexity of our methods are O(nm1 + n*4) where n is equal to nbpixels and m1 is the number of pixels in the source image, which means that nbpixels is a really sensitive parameter regarding the running time.

Bibliography

[1] Cohen Scott : Finding color and shape patterns in images, Thèse, InfoLab Stanford, Chapitre 4, Mai 1999

[2] Gabriel Peyré : Le transport optimal: de Gaspard Monge à la science des données,Conférence, 2018

[3] Ferradans, S., Papadakis, N., Peyre, G., & Aujol, J. F. : (2014). Regularized discrete optimal transport. SIAM Journal on Imaging Sciences, 7(3), 1853-1882

[4] M. Perrot, N. Courty, R. Flamary, A. Habrard : "Mapping estimation for discrete optimal transport", Neural Information Processing Systems (NIPS), 2016

[5] Gabriel Peyré : Convex Optimization, note de cours

[6] Lindbloom Bruce : RGB/XYZ Matrices : http://www.brucelindbloom.com/index.html?EqnRGBXYZ_Matrix.html, consultation : Nov 2018

[7] Gabriel Peyré : Computational Optimal Transport, Mars 2018

[8] Yann Brenier, Thierry Viéville : «La brouette de Monge ou le transport optimal » - Images des Mathématiques, CNRS, 2012

License

MIT

Owner

  • Name: Adrien Carrel
  • Login: AdrienC21
  • Kind: user
  • Location: London

Quantitative Researcher MSc Imperial College London (Advanced Computing) MEng CentraleSupélec (Applied Mathematics, Diplôme d'ingénieur)

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Carrel"
  given-names: "Adrien"
  orcid: "https://orcid.org/0000-0002-0051-2247"
title: "Optimal transport applied to color transportation in image processing."
version: 1.0.0
date-released: 2019-08-01
url: "https://github.com/AdrienC21/optimal-transport-color-transportation"

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels