Jump to content
You must now use your email address to sign in [click for more info] ×

Recommended Posts

Hello

I would like to create manually the frequency separation layers, as I prefer to use median blur instead of gaussian blur, but somehow I get stuck on apply image as it as fewer options than Photoshop.

Can anyone point me to a tutorial or some resources as how I can do this?

 

Thanks

Macbook Pro // M2 16GB // Ventura 13.2.1 

Link to comment
Share on other sites

Yes, that's the video.

 

Let me explain a little better. In Affinity, you just got to Filters/Frequency Separation and that's it.

 

In Photoshop, you have to:

1 - create two layers

2 - blur the bottom layer

3 - subtract the bottom layer from the upper layer

4 - change the top layer blending mode to Linear Light.

 

Now, what I'm looking for is to recreate the steps on the photoshop, specially the step 3. Why? Because I don't like the gaussian blur and prefer to use median blur, and the Affinity filter uses gaussian blur.

 

So the problem I have is with Apply Image. It doesn't have the same parameters as Photoshop, and I cannot recreate the effect.

 

Hope this help clarifying what I'm looking for, and thank you for taking the time 

Macbook Pro // M2 16GB // Ventura 13.2.1 

Link to comment
Share on other sites

If you don't like the built-in low frequency result, can't you simply delete that layer, paste the original image back in and apply the median blur that you prefer?

 

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

16 minutes ago, Alfred said:

If you don't like the built-in low frequency result, can't you simply delete that layer, paste the original image back in and apply the median blur that you prefer?

 

That wouldn't work because you have to split the image in a way that both layers, Low and High, when combined, form exactly the original image. By adding a new layer with a different blur and not subtracting it from the base image you're just adding additional information to the image that wasn't there in the first place.

 

Macbook Pro // M2 16GB // Ventura 13.2.1 

Link to comment
Share on other sites

I see, thanks. I thought I might have been missing something!

 

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

2 hours ago, MartinsRibeiro said:

In Photoshop, you have to:

1 - create two layers

2 - blur the bottom layer

3 - subtract the bottom layer from the upper layer

4 - change the top layer blending mode to Linear Light.

 

 

I see.

 

That is an interesting approach but not what I would call "Frequency Separation".

 

 

Windows PCs. Photo and Designer, latest non-beta versions.

Link to comment
Share on other sites

8 minutes ago, toltec said:

That is an interesting approach but not what I would call "Frequency Separation".

It seems consistent with what this "Ultimate Guide" suggests, except for the type of blur applied.

 

I tried to duplicate that guide's 'Apply Image' method's steps in Affinity Photo but got stuck at step 3 -- I have no idea if there are equivalent settings in AP's "Apply image" filter for the ones shown for PS for scale & offset. Nothing I tried resulted in the high & low frequency layers I created using the guide's approach combining to look like the original image, as suggested in its step 4.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

I'm following a retouch tutorial by Sef McCullogh and it was him o suggested to use median blur instead of gaussian blur, to avoid having the edges blured. I've tested it and to me it's a great improvement,

 

I guess there must be a way to do it, since the Frequency Separation filter in Affinity Photo does it.

Macbook Pro // M2 16GB // Ventura 13.2.1 

Link to comment
Share on other sites

Issue solved! This is useful to subtract one layer from the other, for example for Frequency separation.

 

So this is how I did it for a 8 bits image (16 bits should need a change in the 2 and .5 values bellow)

 

1 - Create two layers with the same image 

2 - Change the layer bellow as you like (gaussian blur, median blur or anything else)

3 - Make the top layer Linear Light (could be done afterwords but if you do it before Applying image, it's easy to see the result as it happens)

4 - Apply image with the following parameters:

Source: layer bellow modified

Blend mode: Normal

Equations: on

DR=(DR-SR)/2+0.5

DG=(DG-SG)/2+0.5

DB=(DB-SB)/2+0.5

DA=DA (no change to the Alpha )

 

A couple of explanations. In the equations:

DR stands for Destination Red an is the value of the Red in the layer you chose to Apply image (in this case the top Layer)

SR stands for Source Red and is the value of the Red in the source layer (in this case the layer bellow)

The 2 and 0.5 are based on this info: https://helpx.adobe.com/photoshop/using/channel-calculations.html (look for "Add and Subtract blending modes")

 

Hope this helps for future reference.

Captura de ecrã 2017-07-19, às 21.51.12.png

Macbook Pro // M2 16GB // Ventura 13.2.1 

Link to comment
Share on other sites

MartinsRibeiro: Great work figuring this out!!!

 

I tried making a macro to do your steps and almost succeeded. The problem seems to be in your step 4: I can select the blurred layer as the source by dragging it into the Apply Image window & I can apply the equations without errors while recording the macro, but it doesn't actually seem to be using the blurred layer as the source -- I just get a uniform 50% grey layer. My guess is that the macro can't, in its current fairly crude state of development, actually record the drag & drop action so the source channels are undefined or something.

 

However, doing all your steps manually works perfectly.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

I've also tried a macro and what I found out is that the action memorizes the content of the layer used when creating the macro.

Try using the action on a different image from the one you used when creating the macro and check it out.

 

So the next step is to improve the macros to use the apply image.

Macbook Pro // M2 16GB // Ventura 13.2.1 

Link to comment
Share on other sites

1 hour ago, MartinsRibeiro said:

I've also tried a macro and what I found out is that the action memorizes the content of the layer used when creating the macro.

Try using the action on a different image from the one you used when creating the macro and check it out.

Yes, it is as you say, or it least it is after I fixed a stupid error I made in the macros I was experimenting with. Doh! :$

 

It is a pity the only option in the macro for the Apply Image filter is setting the opacity. If it just had an option to allow the user to select the source image when the macro ran, it would be a workable solution.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

29 minutes ago, R C-R said:

Yes, it is as you say, or it least it is after I fixed a stupid error I made in the macros I was experimenting with. Doh! :$

 

It is a pity the only option in the macro for the Apply Image filter is setting the opacity. If it just had an option to allow the user to select the source image when the macro ran, it would be a workable solution.

I've already posted a feature request with exactly that. Let's hope it comes out in the next update.

Macbook Pro // M2 16GB // Ventura 13.2.1 

Link to comment
Share on other sites

For what little it is worth, I added a "+1" to your feature request & a link back to this topic.

 

I know the developers have said they want to improve the macro feature in the future, but it is unclear if that will happen in a 1.x update or in a 2.x paid upgrade. I am guessing that will include better editing for saved macros or when recording new ones (like being able to add, delete, or change a step anywhere in the macro) & maybe some more powerful features like conditionals, loops, & branching, as well as giving us more options for actions currently supported.

 

I think (but what do I know?) that adding the ability to set the source for the Apply Image step might be doable even in the current implementation, so it could make its way into a 1.x update. One can hope...

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

  • 10 months later...

There's an easy way to do this. Took me longer than it feels it should've to figure out, but the answer is here:

Quote

Apparently, Affinity makes the high pass layer by inverting the low pass layer, and blending it with the original layer (50% opacity, normal mode). When it is going haywire in LAB mode, it is setting the opacity of this inverted low pass layer to 100%.

I tested it with median blur as well and it works great. I agree that the median blur works better in many cases than gaussian due to less smudging of color. Also, a lot less color ends up in the high pass layer with median blur. Finally, if you want to isolate color in a separate layer, or strictly in the low pass layer, use LAB mode and do the frequency separation on the luminosity layer. Works great in my experience.

Link to comment
Share on other sites

1. Convert your image to LAB mode.

2. Duplicate the layer, and name the lower one "L" (luminosity) and the upper one "C" (color).

3. Go to the channels studio for "L" and click on the "..." for AOpponent, and click "Clear". Do the same for BOpponent.

4. Go to the channels studio for "C" and click on the "..." for Lightness, and click "Clear" and then "Invert".

5. Change the blend mode for "C" to "Color".

6. Duplicate "L" and name the lower one "L blur", then apply a blur filter of your choice (Gaussian or median, etc.) to this layer.

7. Create a new group named "High pass" and place "L" inside it. Then, duplicate "L blur" and place it above "L" (inside the "High pass" group).

8. Go to the channels studio for the copy of "L blur" inside the "High pass" group, click the "..." for Lightness, and click "Invert". Set the blend opacity to 50% (blend mode normal).

9. Set the blend mode for the "High pass" group to linear light, and then rasterize the group if you wish.

 

Link to comment
Share on other sites

  • 5 months later...
On 7/19/2017 at 5:05 PM, MartinsRibeiro said:

Issue solved! This is useful to subtract one layer from the other, for example for Frequency separation.

 

So this is how I did it for a 8 bits image (16 bits should need a change in the 2 and .5 values bellow)

 

1 - Create two layers with the same image 

2 - Change the layer bellow as you like (gaussian blur, median blur or anything else)

3 - Make the top layer Linear Light (could be done afterwords but if you do it before Applying image, it's easy to see the result as it happens)

4 - Apply image with the following parameters:

Source: layer bellow modified

Blend mode: Normal

Equations: on

DR=(DR-SR)/2+0.5

DG=(DG-SG)/2+0.5

DB=(DB-SB)/2+0.5

DA=DA (no change to the Alpha )

 

A couple of explanations. In the equations:

DR stands for Destination Red an is the value of the Red in the layer you chose to Apply image (in this case the top Layer)

SR stands for Source Red and is the value of the Red in the source layer (in this case the layer bellow)

The 2 and 0.5 are based on this info: https://helpx.adobe.com/photoshop/using/channel-calculations.html (look for "Add and Subtract blending modes")

 

Hope this helps for future reference.

Captura de ecrã 2017-07-19, às 21.51.12.png

Well Done Martin! I was looking for this. Excellent job! Thank you!

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.