Jump to content


Photo

Recolour choice


  • Please log in to reply
6 replies to this topic

#1 Red ochre

Red ochre
  • Members
  • 555 posts
  • LocationSurrey, England
  • Reputation:67

Posted 10 April 2012 - 08:27 PM

Recolour choice

8 differnt ways to select and replace a colour.

There are many plugins allowing selection and replacement of colours and
there are the built in tools, magic wand and recolor. These are all good and useful
in different situations. However, I was working on a picture and found I couldn't select the region I wanted,
so I decided to experiment with different algorithms.

I have also included a 'blend' slider to soften the replaced colour.

If you duplicate the layer first and select the 'keep unaltered selected' checkbox,
you will be left with the selected region as an object on its own layer for further
processing.

Tip: It's easiest to use the ink dropper tool to select the desired detection colour before running the plugin.

It is in my plugin pack here:
Red ochre plugin pack

Posted Image

Here's the codelab code if you want to play with the algorithms!
This thread is relevant too http://forums.getpai...or-bucket-tool/
Hidden Content:

Posted Image
Red ochre Plugin pack............................................................... Diabolical Drawings

#2 Djisves

Djisves
  • Members
  • 151 posts
  • LocationCyprus
  • Reputation:5

Posted 19 April 2012 - 02:06 PM

Thank you Red ochre. Being able to play with different algorithms in addition to colour tolerance will certainly make life easier for a lot of users.
The "keep unaltered" selection option is brilliant too.

No signature image good enough for this forum


#3 blackpenny

blackpenny
  • Members
  • 262 posts
  • LocationCanada
  • Reputation:20

Posted 19 April 2012 - 05:16 PM

Well, this is just cool! Recolor doesn't always work the way I want but this does. And I can get neat effects when I play with the tolerance and transparency.

Thank you!

#4 nitenurse79

nitenurse79

    2012 Signature of the Year Award Winner

  • Members
  • 1,133 posts
  • LocationSweden
  • Reputation:120

Posted 19 April 2012 - 07:40 PM

This will be useful, great plug-in redochre :) many thanks for your on going developing.

signaturewithcurl_zps4c5b278b.png

Sig battles won 17. Image battles won - 2


#5 Red ochre

Red ochre
  • Members
  • 555 posts
  • LocationSurrey, England
  • Reputation:67

Posted 19 April 2012 - 09:18 PM

Hello Djisves, Blackpenny and Nitenurse. Many thanks for replying - it's very appreciated :smile:

I'm glad you're finding it useful. Writing plugins is addictive you know!
Posted Image
Red ochre Plugin pack............................................................... Diabolical Drawings

#6 Origami

Origami
  • Newbies
  • 4 posts
  • Reputation:0

Posted 22 July 2012 - 05:16 PM

Hi Red ochre,

Thanks for this neat plugin. I know Christmas is still a long time from now, but if I may write my wish list for this plugin, it would be :
- On the top of the window, next to the RGB values, put the HSV values. (like in the Paint.NET color picker windows) so that the user can see both values (RGB and HSV).
- Instead of having a Tolerance slider which applies to the 3 values, leave the possibility to have a tolerance for each value (RGB or HSV). And the Tolerance, instead of being in %, should be a threshold. For example you could say : I want to replace the colors with Hue = 130 (with a Threshold of 10, meaning that I can go from 120 to 140), and Saturation = 50 (with a threshold of 30 : I take all the values from 20 to 80) and Value = 10 (with a threshold of 40 : I take all the values from 0 to 50)

I hope my description is clear.

Thanks again for your great plugin.

#7 Red ochre

Red ochre
  • Members
  • 555 posts
  • LocationSurrey, England
  • Reputation:67

Posted 22 July 2012 - 09:56 PM

Hello Origami, welcome to the forum.

Thanks for the positive feedback.

Re: the Christmas wish list (I can think of few things myself!),

The color picker is generated by 'codelab' and is standard. It would be great if it offered the less/more option (showing HSV and alpha) like the main color window, but sadly it does'nt. A similar window could be created using Visual studio, but unfortunately that's too hard to use (for a simpleton like myself anyway).

The other suggestion for seperate sliders for Hue, Saturation and Value, with corresponding integer tolerance sliders would be possible but would ideally be 'linked' to the BGR values (again something that can only be done in Visual studio). Also adding 6 more sliders would make the interface massive. So I won't be changing this plugin.

It would however be relatively easy to create a simpler plugin that only does the specific task you described (using codelab). Probably easiest to have one plugin just for HSV and another just for BGR.

eg/ 3 HSV sliders, 3 tolerance sliders, a BGR color picker for the replacement colour? - or use the secondary color as replacement (easiest)? - or 3 HSV sliders and a transparency slider for the replacement?
(It would be tricky to show the detection colour range from the HSV values on the interface, but a checkbox could be used to show this on an area of the image [uncheck before rendering].)

I have included the codelab code above and I'd like to encourage you to download codelab and have a go at altering my code to suit your needs. Read BoltBait's tutorials first and see how you get on.

If you really need this, and I get the time, I'll see what Santa can do.

All the best
Posted Image
Red ochre Plugin pack............................................................... Diabolical Drawings