matrix implementation for color changes

V
Posted By
vreijs
Feb 29, 2004
Views
969
Replies
10
Status
Closed
Hello all of you,

For some basic research on color optimization I am looking for the possibility of doing matrix caluclatiosn within Adobe Photoshop. So I would like to be able multiply the existing RGB values with a three by three matrix I want to input by myself, is that possible? I coudl not fidn this option in Photoshop 8.0, but perhaps I overlooked it (could also not find a help related to ‘matrix’).

Thanks for your help.

All the best,

Victor

How to Improve Photoshop Performance

Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!

J
Jim
Feb 29, 2004
The scheme is better know as convolution. It would be very unlikely that Photoshop didn’t use convolution as a method for all kinds of tasks. However, I doubt that the provide the means for doing so yourself.

So, all you need to do is to write a C++ program which performs what ever matrix manipulations you wish.

Jim
wrote in message
Hello all of you,

For some basic research on color optimization I am looking for the
possibility of doing matrix caluclatiosn within Adobe Photoshop. So I would like to be able multiply the existing RGB values with a three by three matrix I want to input by myself, is that possible? I coudl not fidn this option in Photoshop 8.0, but perhaps I overlooked it (could also not find a help related to ‘matrix’).
Thanks for your help.

All the best,

Victor
J
Jim
Feb 29, 2004
"Jim" wrote in message
The scheme is better know as convolution. It would be very unlikely that Photoshop didn’t use convolution as a method for all kinds of tasks. However, I doubt that the provide the means for doing so yourself.
So, all you need to do is to write a C++ program which performs what ever matrix manipulations you wish.
And convert it to a plugin.
Jim
wrote in message
Hello all of you,

For some basic research on color optimization I am looking for the
possibility of doing matrix caluclatiosn within Adobe Photoshop. So I
would
like to be able multiply the existing RGB values with a three by three matrix I want to input by myself, is that possible? I coudl not fidn this option in Photoshop 8.0, but perhaps I overlooked it (could also not find
a
help related to ‘matrix’).
Thanks for your help.

All the best,

Victor

C
crames
Mar 1, 2004
wrote in message news:…
Hello all of you,

For some basic research on color optimization I am looking for the possibility of doing matrix caluclatiosn within Adobe Photoshop. So I would like to be able multiply the existing RGB values with a three by three matrix I want to input by myself, is that possible? I coudl not fidn this option in Photoshop 8.0, but perhaps I overlooked it (could also not find a help related to ‘matrix’).

Thanks for your help.

All the best,

Victor

That’s what the Channel Mixer does.

Regards,
Cliff Rames
Miami
BO
Burton_Ogden
Mar 4, 2004
Victor,

There a couple of things you might want to look at. Filter> Other> Custom lets you design your own convolution kernel.

Also, Photoshop ships with something called Filter Factory. For information on that and related matters, checkout the following links:

How can I create my own plug-in <http://www.adobeforums.com/cgi-bin/webx?13@@.2cce7dad/0>

Documentation for developing plug-ins <http://www.adobeforums.com/cgi-bin/webx?128@@.2ccf2064>

The Complete Guide to Creating Photoshop Filters < http://www.creativemac.com/2002/02_feb/tutorials/cmfilterfac torycomplete.htm>

Photoshop Filters <http://www.photoshop-filters.com/>

FilterMeister graphics plugin creator <http://www.filtermeister.com/>

— Burton —
CC
Chris_Cox
Mar 4, 2004
Victor – you can do it, to a limited degree, using the Channel Mixer.

And no, it’s not in the help that way because 99.9999% of Photoshop users wouldn’t understand it as a matrix.
V
vreijs
Mar 4, 2004
Thanks Chris and Bruton,

I think that the channel mixer and curve dialog are the ones I am looking for. Thanks for pointing me in this direction. Do you know if the file formats of the *.acv and *.cha files are somewhere available, so that I can generate the files myself (I hope that as a private person with limited amount of money I don’t need the full sdk).

Thanks for the help.

All the best,

Victor
CC
Chris_Cox
Mar 4, 2004
Those are only documented in the Photoshop SDK.
V
vreijs
Mar 5, 2004
Thanks for the feedback. I am working on it (also trying to figure out the file format using a hex-editor, who knows).

All the best,

Victor
CC
Chris_Cox
Mar 6, 2004
The arbitrary map format for curves (use the pencil version) is simple and straightforward.

The curves are not, and the channel mixer file format isn’t super simple.

You might look for older versions of the SDK available freely on the net (or on the CD with Photoshop 6 or earlier).
V
vreijs
Mar 6, 2004
Thanks Chris,

I have determined the file-format of the avc and cha file (both are simple to generate using a small C/BASIC program). Thanks again for the links.

All the best,

Victor

How to Master Sharpening in Photoshop

Give your photos a professional finish with sharpening in Photoshop. Learn to enhance details, create contrast, and prepare your images for print, web, and social media.

Related Discussion Topics

Nice and short text about related topics in discussion sections