Jump to content
How to Install Plugins ×

Color inpainting v1.0

Recommended Posts

You can download now: See link in next post (Updated 2010-02-21)

Color Inpainting

This plugin colors gray areas in a picture where colors are only known in few parts of the picture.

If your picture is already fully colored, applying this filter will NOT change anything.

Quick steps:

1) Open a color picture.

2) Make a rectangle selection in the middle of the picture.

3) Apply Adjustement -> Black and white to the selection

4) Deselect.

5) Apply this filter (Color -> Color inpainting)

It will color the area where you removed it.

The plugin implements "Fast Image and Video Colorization Using Chrominance Blending", Yatziv and Sapiro, 2006.

Manual Color

This plugin lets you colorize a selection with the color of your choice.

Quick steps:

1) Open a black and white picture. (Or turn a color picture into black and white)

2) make a selection with the lasso.

3) Apply Color -> Manual color with the color of your choice.

Using together

These two plugins are ment to be used together in real life scenario.

It attempts to solve the problem of colorizing a completely black and white picture semi-automatically.

Quick steps:

1) Open your black and white picture

2) Apply Adjustement -> Black and white, to make sure it's really black and white.

Info: A black and white looking JPEG picture is not necessarily REALLY black and white. JPEG uses the fact your eyes are not too sensible to colors to seamlessly alter them. Then, a pixel that was a real shade of gray, after being saved in JPEG format, can become something that looks like a shade of gray but isn't. In this case, this plugin will detect such pixels as colored, and will not color them. Actually, it will even propagate that color which is a shade of gray.

3) Using the lasso and the "Manual color" plugin, colorize some parts of the picture.

4) Apply "Color inpainting" to color automatically the rest of the picture.

5) If you are not satisfied with the result, cancel, colorize more parts of the picture, and go to 4).





Known issues

  • [*:1vdxvq8o] Luminosity is not preserved.

Link to comment
Share on other sites

  • 1 month later...

Oh my god, that's seamless.

Here are some before and afters:

Before: colorin1.png

B+W: colorin2.png

After: colorin3.png

If you want to put them in your original post, feel free to do so:

Before: [img=http://img163.imageshack.us/img163/2529/colorin1.png]

B+W: [img=http://img153.imageshack.us/img153/6984/colorin2.png]

After: [img=http://img707.imageshack.us/img707/3969/colorin3.png]

Link to comment
Share on other sites

Thanks for the pictures, but i'm not working on this plugin for now.

It was just a proof of concept.

It shows that the technique in the paper I got can be successfully (and easily) implemented and gives good results and also that it's not fast enough for realtime unlike what the paper's authors said.

Because they are implemented as filters, the interactivity is terrible, and luminosity is altered several times.

It would be much nicer as a tool, in pdn's tool bar or with a canvas window like pyrochild's plugins.

I'm not working on that now. Maybe later... who knows...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...