Colour Match

Easily map colours from a source colour to a target colour. Very effective for matching skin tones across images or between people.

Relatively quick (but not earth shattering). It doesn't work with grayscale or indexed images. Has preview, works with selections and layers, etc. Very, easy to use, and quite useful for portraits or recolouring graphics.


A demonstration: Lenna's face is mapped to the colour of the feather on her hat. This was done by selecting a colour from her face, then selecting a colour from the feather.

If you have an x86_64 version of GIMP 2.7 on linux, bunzip2 and move the colour-match file to your plugin directory:
bunzip2 colour-match.bz2
chmod 700 colour-match (Make it executable)
mv colour-match ~/.gimp-2.7/plug-ins/colour-match

To build it type: gimptool-2.0 --install colour-match.c
You will need libgimp-dev, and libgtk2.0-dev packages if you didn't build GIMP from source.

The algorithm is based on the relative color remap plug-in by Lars Clausen ( http://registry.gimp.org/node/5442 ).

AttachmentSize
colour-match.c9.81 KB
colour-match.bz28.63 KB
0
Average: 5 (1 vote)

Comments

Thank you for the Windows plugin

Merci samj!

Works good on Ubuntu Karmic Koala 64bit

Still interested in seeing it work on Windows.

Windows Version

I don't have windows, but if somebody wants to supply a binary I can include it.

Windows binaries

(Edit )

Bonjour,

An other version for Windows with source code (version 2009-11-25).
It works with RGB and RGBA images.

Link :
http://www.aljacom.com/~gimp/colour-match-25novembre2009.zip

Windows binaries

thank this works well

Sweeeet! And Thanks, SamJ and Bleg!

Works like a charm. Good job!

Windows binary

I have just supplied one today. You may include it. If so, I'll delete my post.
But now it seems to crash too. Maybe I'll have to remove it anyway. If someone can understand why it works, then crashes...

Link is MIA

i tried that from ffaat ..
weird sometimes crash sometimes not even using same image as test

I compiled one

and it worked yesterday, but today it always crashes:

---------------------------
GNU Image Manipulation Program: colour-match.exe - Application Error
---------------------------
The instruction at "0x7c91a60c" referenced memory at "0x00f0a002". The memory could not be "written".

Click on OK to terminate the program
Click on CANCEL to debug the program
---------------------------
OK Cancel
---------------------------

Plug-in crashed: "colour-match.exe"
(C:\Documents and Settings\Me\.gimp-2.6\plug-ins\colour-match.exe)

Sometimes I also get:
gimp_plugin_tile_get:ERROR.

-Rob A>

Is this plug-in trying to

Is this plug-in trying to access a layer that has not been attached to an image?

Does this error mean anything?

GLib-ERROR**: gmem.c:136: failed to allocate 12288 bytes aborting... followed by a runtime error msg.

As a guess No space or

As a guess
"No space or permission for (temporary storage of) 12Kb "

well a problem of space for less of 13Kb seems not reasonable even with a almost full HD or few ram

We do not know how much more

We do not know how much more memory the process had allocated already. The 12kB is just the part that couldn't be allocated anymore.

And today it works

Here is a zip of the windows compile.

It seems.....intermittent for me.

http://ffaat.pointclark.net/incoming/colour-match.zip

-Rob A>

It got halfway before crashing

But I consider that an improvement, whereas before it crashed right out of the gate.

So far, it hasn't worked, but I appreciate you sharing the file, Rob.

Minor suggestion

Since the plug-in raises a dialog box, there should be ellipses after the name in the menus: "Colour Match..."

Make a build?

Can someone supply a built script? I have windows and it is a pain to build it on this system.

I have compiled it under msys

It is working for me. If the author wants to attach to the main post I cam provide it by email. just PM me with the information.

-Rob A>

I hope he wants !

I hope he wants !

Syndicate content