How do I apply a hue to a greyscale image?

Post Reply
sisom
Posts: 143
Joined: Sun Jan 14, 2007 10:47 pm

How do I apply a hue to a greyscale image?

Post by sisom »

Hi, I am trying to make background images for website navigation bars, footer bars, etc. using patterns which I have created by using
Effect - Creative - Kaleidoscope Effect
and then
Effect - Fills and Textures - Texture Filter - Metallic

By doing this I can take a random photograph and turn it into any number of useful background patterns, which are completely unrecognisable from the original image.

I then turn the image to greyscale, and I want to give it a given hue - in this particular case, it's #582511 or 'Hue: 19'.

Does anybody know how to do this?
I've tried:

Photo - Colour - Hue and Saturation - Colorize
but the 'Hue' value in that dialogue box doesn't correspond to the hue I am trying to get - '19' is supposed to be a dark brown, but it comes out as blue!
Do I just have to subtract a value from the '19' to get the correct value in that dialogue box? The values I get for the colour I am trying to copy, using ColorPic, are:

Hue: 19
Sat: 206
Val: 88 (which I presume is Brightness)

What I would really like to find is a function that lets me enter a hex value, and then turns a greyscale image into shades of that colour only, is that possible?
LeviFiction
Advisor
Posts: 6831
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Re: How do I apply a hue to a greyscale image?

Post by LeviFiction »

The funny part about Hue Saturation and Value(Brightness/lightness) is there isn't just one method for it that everyone uses. HSV is what's known as a perceptual color. Photoshop values, for instance, don't work with Paint Shop Pro.

I think one good example of how different HSV interpretations can be between programs is this, I downloaded ColorPic and selected a random color.

HSV 0, 177, 189

RGB 189, 58, 58

In PaintShop Pro entering in those values for HSV gave me an RGB of 235,143,143

And if I entered the RGB I got an HSL(V) of 255,144,121

So you can see how far off these two were. And what's even more interesting is the colors still didn't look the same. So different equations for conversion and different color models will really effect the outcome of the colors.

So, if you have the RGB values for your HSV you can find out what the PI equivalent numbers are by entering the Hex or RGB values into your Color Panel and seeing the resulting HSV values. Then try using those.

Using the same method described above PaintShop Pro, entering the RGB to see how PSP converts to HSV, gives an HSL of 13,173,53 for the color you provided.
https://levifiction.wordpress.com/
sisom
Posts: 143
Joined: Sun Jan 14, 2007 10:47 pm

Re: How do I apply a hue to a greyscale image?

Post by sisom »

Many thanks for your help, I will give it a go tonight!
Post Reply