https://github.com/mshr-h/color_transferring
Transfer color to grayscale image
https://github.com/mshr-h/color_transferring
colorization computer-vision image-processing transfer-color
Last synced: 12 months ago
JSON representation
Transfer color to grayscale image
- Host: GitHub
- URL: https://github.com/mshr-h/color_transferring
- Owner: mshr-h
- License: mit
- Created: 2017-02-12T03:18:13.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-14T06:49:46.000Z (over 9 years ago)
- Last Synced: 2025-06-23T18:07:54.283Z (12 months ago)
- Topics: colorization, computer-vision, image-processing, transfer-color
- Language: C
- Size: 1.72 MB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Transfer color to grayscale image
[](https://travis-ci.org/mshr-h/Color_Transferring)
[](https://github.com/mshr-h/Color_Transferring/blob/master/LICENSE)
## Description
This is an implementation of color transferring using C/C++ on Qt platform.
The algorithm is entirely [written in C](lib_c/transfer_color.c).
## What's the Colorization
Colorization is a technique to convert a grayscale image into a colored image.
- [Film colorization - Wikipedia, the free encyclopedia](https://en.wikipedia.org/wiki/Film_colorization)
- [Hand-colouring of photographs - Wikipedia, the free encyclopedia](https://en.wikipedia.org/wiki/Hand-colouring_of_photographs)
## Example
| target | reference | output |
| :----: | :-------: | :----: |
|  |  |  |
|  |  |  |
|  |  |  |
- Window size: 5x5 pixels
- Sampling method: regular sampling
## Requirement
- Qt 5.3 or newer (probably works on older than 5.3 but not tested)
## Directory tree
```text
include/ header files
inImg_db/ sample input images
lib_c/ C code
lib_qc/ C structure <-> C++ data conversion
outImg_db/ sample output images
```
## Reference
- [T Welsh, M Ashikhmin, K Mueller, Transferring color to greyscale images, ACM Transactions on Graphics (TOG), 2002](https://classes.soe.ucsc.edu/cmps290b/Fall05/readings/colorize-sig02.pdf)