Frequency Separator v1.1
This location is for Registered Users Only.
Perhaps you need to login or register.
10.0, 9.0, 8.0, 7.1, 7.0, 6.3, 6.2, 6.1, 6.0 or later
Linux, Mac, Windows
Now Updated with #
This is a simple script that uses the Frequency Separation technique from Photoshop, in order to split the image to Texture and Lighting passes so you can control each one separately.
You can use the paint node in either the Low frequency image, to do lighting corrections, or paint the High frequency channel to fix Texture details.
Please remember to always have an Alpha channel in you image, or else the PSD Merge node will not function
Usage:
1. Adjust the Gaussian Blur (1) until you dont see the texture detail that you want to correct.
2. Use the RotoPaint2(2) with the Blur Brush to do lighting and chroma corrections without touching the texture
3. You can use any other node after the RotoPaint2(2) and the final Merge(4), to blur sections of the image, like Blurs with mask regions tracked to the object, etc.
4. Use the RotoPaint1(3) with the Clone Brush to correct texture details, like blemishes and spotches.
5. You can also use tracked surfaces to help with the clone process after the RotoPaint1(3).
Examples:
Blur usage for fixing blemishes and lighting
k
Clone Tool usage for removing texture errors
Comments
do you know what the maths is for the psd merge operation ?
It works great, except that it create some bad stuff in the highlights areas. We found out that if you change the color space to sRGB before your tool and switching back to linear after it remove that bug. I'm wondering if there is anyway we can change de psd merge by some regular merges...? That way we can stay linear all the way! And nuke loves Linear!
MergeExpression {
inputs 2
expr0 "Ar > .5 ? Br + (2*(Ar-.5)) : Br + 2*Ar -1"
expr1 "Ag > .5 ? Bg + (2*(Ag-.5)) : Bg + 2*Ag -1"
expr2 "Ab > .5 ? Bb + (2*(Ab-.5)) : Bb + 2*Ab -1"
name Linear_Light_Me rge
label "Equivalent of a Linear Light\nblending mode in Photoshop"
selected true
xpos 795
ypos 1332
}
I cannot get this to work... all I get is a fully blurred image, using the 2 rotos affects nothing...
regarding "Please remember to always have an Alpha channel in you image, or else the PSD Merge node will not function" - where does this required alpha come from ?
on the pics In your example above you're using a jpg image which has no alpha...
any help appreciated !
Thanks.
I also recommend replacing the PSDmerge by a merge expression like this;
MergeExpression {
inputs 2
expr0 "Ar > .5 ? Br + (2*(Ar-.5)) : Br + 2*Ar -1"
expr1 "Ag > .5 ? Bg + (2*(Ag-.5)) : Bg + 2*Ag -1"
expr2 "Ab > .5 ? Bb + (2*(Ab-.5)) : Bb + 2*Ab -1"
name Linear_Light_Me rge
label "Equivalent of a Linear Light\nblending mode in Photoshop"
selected true
xpos 795
ypos 1332
}
It solves some problems I had with the PSD merge (as mentioned in my previous reply)
Quoting John Fitch:
thank you, that worked !
Follow up question: any advice on how to pull really good skin tone keys in Nuke avoiding eyes, hair, bg etc ?
I've tried IBK to get a skin tone key, but the results are not as good as in other apps that have dedicated HSL keyer...
Thanks.
Was thinking I might build something like this myself, did a quick search and found yours.
Works like a charm!
1) in the high pass group, replace the "Merge" and "Expression" nodes with a single "Merge - average"
2) Add a "Grade" to the high pass stream before the final merge, set:
multiply: 2
offset: -1
black clamp: unchecked
3) Replace the final "Expression" with "Merge - plus"
:)
Quoting Adam Chan:
RSS feed for comments to this post