Help requested on a University research topic

Dear CreativeScrash forum users,

My name is Martin Constable and I am research professor at Nanyang Technological University in Singapore. I have a problem that, hopefully, will present something of a challenge. We are working on the topic of hue contrast, which is something that we feel Photoshop isn't very good at. What is hue contrast? Consider a tree whose leaves range in hue from blue-green to yellow-green. A hue contrast stretch would pull these values out so that they extend fully from yellow to blue. A hue contrast compress would reduce the range of hue values to a single value (e.g. all blue-green). 

The attached two images hopefully show what I mean. These were made using software that we are developing and we would love to have the help of the Photoshop community in testing our assumption that Photoshop is not able to perform such functions. Our challenge: using Photoshop, can anyone reproduce our results? The original (rather large) files are here (right click to downlaod): 

Hue contrast compress target:
http://opticalenquiry.com/nuke/documents/contrast/compress\_target.tif

Hue contrast compress result:

http://opticalenquiry.com/nuke/documents/contrast/spread\_result.tif

Hue contrast spread target:

http://opticalenquiry.com/nuke/documents/contrast/spread\_target.tif

 Hue contrast spread result:

[url=http://opticalenquiry.com/nuke/documents/contrast/contrast/spread_result.tif]http://opticalenquiry.com/nuke/documents/contrast/contrast/spread_result.tif


[/url]

Photoshop isnt a good all araound pixel manipulation software (for image measurements for example), its aimed at print production. Theres a LOT of things that photoshop leaves to be desired, when it comes to actually manipulating raw pixel data. Realize that 1/3 of the entire price of the software is just the color management and print instructions core. Hell even GIMP is better at pure pixel manipulation than photoshop is, even if its gui is terrible*. As theres TONS of basic things photoshop doesnt do at all or is very hard to do in it such as rgb to hsv conversion, which makes this trivial to do.

Yet you can do this with photoshop. the compression is trivial, the expansion is not so trivial.

Copression is just a select color range combined by a hue saturation mask with value set to colorize

expansion can be done in severeal ways, One with 2 selected masks and 2 hue saturations but you can do this in several different ways too with image calculations. I must chek the accuracy of this tough.

Theres nothing wrong with making your own tool for this tough, its not a big deal to wrirte this code in say python, if your not interested in bulk manipulation.

  • doing this in GIMP is easy, doing this in something like fusion, shake or nuke is trivial use thse if you need to manipulate a LOT of images.  Since theese are general image manipulation tools, but they arent good for print in the way phostoshop is. So you still need photoshop anyway.