Ask Your Question
0

Colorization technique

asked 2015-03-19 09:25:06 -0500

begueradj gravatar image

updated 2015-03-19 11:18:25 -0500

In this GIMP tutorial, a colorization technique is used to color grayscale images.

I wonder what is this technique ?

I ask so, because I want to reproduce it in Python/OpenCV.

edit retag flag offensive close merge delete

Comments

@StevenPuttemans thank you. How to replace red color with opacity 50% by a green color of the same opacity ? which calculations to do ?

begueradj gravatar imagebegueradj ( 2015-03-20 05:45:07 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-03-20 05:09:09 -0500

Simply said what they do is

  1. Select an area that you want to edit
  2. Create a color mask for that area in a seperate layer
  3. On the original layer, for the mask area apply an opacity of 50%
  4. On the second colored layer, apply also an opacity of 50%
  5. Now fuse both layers together

There are enough functions to do something similar to this in OpenCV.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-03-19 09:25:06 -0500

Seen: 203 times

Last updated: Mar 19 '15