Grazer Posted November 3, 2017 Share Posted November 3, 2017 Hi, I use Calculations in Photoshop to create alpha masks. Just wondering is there an equivalent somewhere in AP? Thanks Grazer Quote Link to comment Share on other sites More sharing options...
Staff James Ritson Posted November 10, 2017 Staff Share Posted November 10, 2017 Hi Grazer, you can indeed do this in Photo. There are several approaches, one involving the Channels panel and blend modes, but here's something that is closer to your calculations approach. In this example we'll add the Red and Blue channels together, invert the blue channel and add an offset - seems this is used for alpha selections of hair? Duplicate the image layer you want to create an alpha mask from. Uncheck/hide the original (so you can preview the alpha effect) Filter > Apply Image Click Use Current Layer As Source, then check Equations to enable channel equations In DA (Destination Alpha), you can type this: SR+SB to add red and blue channels together Now we need to invert the blue channel, so your equation becomes: SR+(1-SB) Finally, to add an offset to the overall result, we can type: SR+(1-SB)-0.2 Click Apply and you'll now have a pixel layer with a modified alpha channel. At this point, you can either work on the pixel layer or go to Layer > Rasterise to Mask to convert it to a mask layer (which you can then drag inside other layers to mask them). Hope that's what you're after and that you find it useful. In theory, you should be able to achieve most if not all of the Calculations behaviour using the channel equations in Photo's Apply Image dialog. Bear in mind that values in channel equations go from 0 to 1 and are in float. You can use expressions like lerp(SR, SB, 0.5) to linear interpolate between two channels, and as seen above use bracketed notation to isolate expressions. stokerg, Alfred, R C-R and 1 other 4 Quote Product Expert (Affinity Photo) & Product Expert Team Leader @JamesR_Affinity for tutorial sneak peeks and more Official Affinity Photo tutorials Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.