Giter VIP home page Giter VIP logo

image_colorization's Introduction

Image Colorization

The Image Colorization program reconstructs a color image using three separate, successively recorded and partially shifted intensity images. The color information, represented by three color channels (red, green, and blue), is interpreted as coordinates in the color space, providing a clear definition of each pixel's color.

Example Pictures

The provided example pictures follow Sergei Produkin-Gorski's method from the early 20th century. Three intensity images were captured in quick succession through red, blue, and green color filters. To recreate a color image, three projectors โ€” each equipped with a red, green, or blue color filter โ€” were used to project the individual images onto one another.

Procedure

The colorization process involves the following steps:

  • Edge detection
    • Gradient calculation (Sobel)
    • Binary image calculation
    • Edge detection
  • Translation of an image
  • Calculation and realisation of the shift
  • Combining the colour channels
  • Cropping the result
  • Creation and applying of a cartoon filter

Requirements

  • OpenCV 4.2.0
  • g++ 9.3.0
  • CMake 3.16.3

Installation Instructions

The easiest way to set up the project is to build a Docker image based on the provided Dockerfile and to use it within an interactive session. Input data is automatically read from JSON files, streamlining the calculation process.

$ docker build -t cvtask1 .

To list the JSON files:

$ ls src/cv/task1/*.json | xargs -n1 basename
boats.json
chalice.json
emir.json
train.json

To generate the output pictures out of JSON files above, use following command:

$ docker run --rm -it -v "./output:/app-data/src/cv/task1/output" cvtask1 <picture>.json

image_colorization's People

Contributors

astrokit avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.