Photoshop raster op equations

PE
Posted By
phoney.email
Mar 1, 2004
Views
744
Replies
7
Status
Closed
Does anybody happen to know equations for Photoshop raster ops?

The only link I found on Google is:
http://www.photo.net/photo/edscott/ms000020.htm
but it’s incomplete.

Thanks!

Don.

Must-have mockup pack for every graphic designer 🔥🔥🔥

Easy-to-use drag-n-drop Photoshop scene creator with more than 2800 items.

PE
phoney.email
Mar 4, 2004
Anyone…?

Don.

On Mon, 01 Mar 2004 19:05:47 GMT, (Don) wrote:

Does anybody happen to know equations for Photoshop raster ops?
The only link I found on Google is:
http://www.photo.net/photo/edscott/ms000020.htm
but it’s incomplete.

Thanks!

Don.
H
hoffmann
Mar 4, 2004
(Don) wrote in message news:…
Does anybody happen to know equations for Photoshop raster ops? The only link I found on Google is:
http://www.photo.net/photo/edscott/ms000020.htm
but it’s incomplete.
Thanks!
Don.

Don,

I think there is one important operation missing:
Y=G*(X1-X2)+O

O is an offset, e.g. O=128
G is a gain, e.g. G=10

This would allow to visualize small signed differences by amplifying by G and shifting to O .

Please check whether these options are available for "subtract" (don´t have PhS on my actual PC).

Best regards –Gernot Hoffmann
PE
phoney.email
Mar 5, 2004
On 4 Mar 2004 09:45:45 -0800, (Gernot Hoffmann)
wrote:

Does anybody happen to know equations for Photoshop raster ops? The only link I found on Google is:
http://www.photo.net/photo/edscott/ms000020.htm
but it’s incomplete.
Thanks!
Don.

Don,

I think there is one important operation missing:
Y=G*(X1-X2)+O

O is an offset, e.g. O=128
G is a gain, e.g. G=10

Which operation is that? I’m still missing equations for the following operations:

Color Dodge
Color Burn
Screen
Overlay
Soft Light
Hard Light
Exclusion

BTW, thanks for replying! Nobody else seems to care for these equations… 🙂

Don.
H
hoffmann
Mar 5, 2004
(Don) wrote in message news:…
On 4 Mar 2004 09:45:45 -0800, (Gernot Hoffmann)
wrote:

Does anybody happen to know equations for Photoshop raster ops? The only link I found on Google is:
http://www.photo.net/photo/edscott/ms000020.htm
but it’s incomplete.
Thanks!
Don.

Don,

I think there is one important operation missing:
Y=G*(X1-X2)+O

O is an offset, e.g. O=128
G is a gain, e.g. G=10

Which operation is that? I’m still missing equations for the following operations:

Color Dodge
Color Burn
Screen
Overlay
Soft Light
Hard Light
Exclusion

BTW, thanks for replying! Nobody else seems to care for these equations… 🙂

Don.

Don,

it´s Subtract. The Gain is actually called Scale.
I´m not a PhS expert, programming my own stuff.

Best regards –Gernot Hoffmann
BV
Bart van der Wolf
Mar 5, 2004
"Don" wrote in message
SNIP
BTW, thanks for replying! Nobody else seems to care
for these equations… 🙂

Most of the modes missing from your function list are more creative than scientifically relevant. It may therefore be less obvious to find them spelled out. Their functionality is described in the help file, but you’ll have to convert it into a mathematical function yourself, unless someone does step forward with the answers.

I find it easier to appreciate the creative effects of some of these functions by layering 2 linear RGB gradients at 90 degree angles. Using an image size of 256×256 pixels, and making sure the gradients are non-dithered and absolutely linear, will provide all possible 8-bit channel combinations possible with blending. You’ll see that many blends result in non-linear results, so it may be a bit hard to grasp the actual underlying function. Multiplication and division will result in clipping, and many modes use the RGB values as transparency masks where 0=0.0 and 255=1.0 or the reciprocal of it, or with 128 as 0.0 and ranging from -1.0 to 1.0.

All said and done, if you do find the mathematical foundations, I’m sure there will be some that will appreciate to learn from your findings, so feedback is of course welcome…

Bart
PE
phoney.email
Mar 6, 2004
On 5 Mar 2004 03:51:55 -0800, (Gernot Hoffmann)
wrote:

(Don) wrote in message news:…
On 4 Mar 2004 09:45:45 -0800, (Gernot Hoffmann)
wrote:

Does anybody happen to know equations for Photoshop raster ops? The only link I found on Google is:
http://www.photo.net/photo/edscott/ms000020.htm
but it’s incomplete.
Thanks!
Don.

Don,

I think there is one important operation missing:
Y=G*(X1-X2)+O

O is an offset, e.g. O=128
G is a gain, e.g. G=10

Which operation is that? I’m still missing equations for the following operations:

Color Dodge
Color Burn
Screen
Overlay
Soft Light
Hard Light
Exclusion

BTW, thanks for replying! Nobody else seems to care for these equations… 🙂

Don.

Don,

it
PE
phoney.email
Mar 6, 2004
On Fri, 5 Mar 2004 14:38:11 +0100, "Bart van der Wolf" wrote:

I find it easier to appreciate the creative effects of some of these functions by layering 2 linear RGB gradients at 90 degree angles. Using an image size of 256×256 pixels, and making sure the gradients are non-dithered and absolutely linear, will provide all possible 8-bit channel combinations possible with blending. You’ll see that many blends result in non-linear results, so it may be a bit hard to grasp the actual underlying function. Multiplication and division will result in clipping, and many modes use the RGB values as transparency masks where 0=0.0 and 255=1.0 or the reciprocal of it, or with 128 as 0.0 and ranging from -1.0 to 1.0.

I’ve just started to do something similar but limiting myself to 9 levels (0 to 255 in increments of 32) and applying the raster op 9 times (using the same values). The idea is to plot this and to try and see if it makes any sense.

This is, of course, very time consuming and not always easy especially since I don’t have any scientific software which evaluates such function curves automatically.

All said and done, if you do find the mathematical foundations, I’m sure there will be some that will appreciate to learn from your findings, so feedback is of course welcome…

I sure will, but as you say this is not very easy to do, so nobody hold their breath and risk getting a blue cast… ;o)

Don.

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!

Related Discussion Topics

Nice and short text about related topics in discussion sections