Jump to: Board index » General » Fusion

Frequency seperation in Fusion

Learn about 3D compositing, animation, broadcast design and VFX workflows.
  • Author
  • Message
Offline
User avatar

Leonhard Wolf

  • Posts: 24
  • Joined: Sat Jul 01, 2017 11:10 am

Frequency seperation in Fusion

PostThu Mar 01, 2018 3:11 pm

Hi,
I recently started switching to Fusion for my picture post processing. The node based workflow just seems more versatile to me.

I also like doing some retouching on my portraits. For that I found the frequency seperation to be a very useful tool.

Here is a link on how to seperate the frequencies in Photoshop: https://fstoppers.com/post-production/ultimate-guide-frequency-separation-technique-8699

In that explanation I am having trouble to replicate step 3 and 4 in Fusion. I do not really understand what the scale and offset value in the apply image dialogue mean.

I tried to duplicate what was shown in Resolve:
. I set Fusion to 32 bit but it created some strange artefacts which you can have a look at in the image below.
[img]
artefacts.JPG
[/img]

I think I would have to improve my technical understanding. But quick help would be very much appreciated!
Attachments
artefacts.JPG
artefacts.JPG (130.08 KiB) Viewed 1603 times
Mainboard: Asus Maximus Ranger VII
CPU: Intel i7-4790k (not overclocked)
GPU: AMD Radeon HD 6870
RAM: 12 GB
Soundcard: Avid Eleven Rack
HDD: 2 TB
OS: Windows 10 Home, 64 bit
Offline
User avatar

Bryan Ray

  • Posts: 2485
  • Joined: Mon Nov 28, 2016 5:32 am
  • Location: Los Angeles, CA, USA

Re: Frequency seperation in Fusion

PostThu Mar 01, 2018 5:50 pm

Why do you have an Unsharp Mask in there? The frequency separation technique is essentially already a variation on USM, so using the node there is going to just confuse your results and is likely the source of the artifacts. I'm not sure what artifacts you're talking about, by the way, as your screenshot is rather low-res. I suspect it's the ringing visible in a few strands of hair and around some of the bright highlights—those almost certainly caused by the unsharp mask.

When you're doing work of this kind, it's critical to always view your work at 100% scale in the Viewer. You don't want the Viewer's filtering to disguise anything. Also, you might experiment with using the Box Blur rather than Gaussian. It's slower, but it produces a smoother blur that might better separate your frequency windows. You'll want the number of passes in that mode to be high—10 or so.

Okay, on to the theory.

When you're in floating point space, addition and subtraction work just like they do in arithmetic: 3 - 5 = -2. -2 + 5 = 3. That is, if you subtract one image from another, you can get the original back by adding it again. It's important to know that this works only in float. If you're in integer mode, even if it's 32-bit, the math doesn't work because integer mode doesn't allow negative numbers or values above 1.0. Int mode causes clipping.

In Fusion, just because you set your project to float32, that doesn't necessarily mean the image stream you're working with is float32. You often need to explicitly convert your image's bit depth, as Fusion's defaults will allow the stream to inherit the depth of the source file. You can see the actual bit depth of your image in the upper-right corner of the Viewer.

Excuse the confusing little collage here, but it illustrates the settings:


Untitled.png
Untitled.png (175.51 KiB) Viewed 1544 times



I've circled the place where you can see your image's qualities in the Viewer: resolution and depth. Also, in the Preferences, you've probably set the Frame Format correctly, but you also have to set the Loaders to use Fusion's Default instead of the file's Format. If you already have Loaders in your scene when you change this Preference, they will not be updated, so you need to go into the Import tab of the Loaders and change the setting there.

Or you can just forget about all of that and force the stream to float32 using a ChangeDepth node. That's my preferred method, as it makes it obvious in the Flow itself what's happened.

Once you're sure you're in floating point mode (and 16-bit or 32-bit actually doesn't usually matter—it's the floating point numbers that are critical), the additions and subtractions will work correctly. When using the ChannelBooleans for this purpose, it's good practice to set the Alpha to Do Nothing. If you start using the Blend controls to influence the strength of the effect, your Alpha values will become unpredictable, and you'll find yourself needing to force it back to white at some point. Better to simply exclude it from all the calculations.

The initial subtraction of the blurred image from the original gives you an image with only the details. This image is the mask referred to in an Unsharp Mask operation. The detail mask has pixels with negative values, so you must be careful with operations you perform on it. For instance, a Color Correct's Gain control is a multiplier. Since some of the pixels are negative, the Gain will actually make those pixels darker instead of brighter. Gamma adjustments can likewise have unpredictable effects. Suffice to say, don't take anything for granted when manipulating the detail branch.

When you add the blurred and detail images together again (assuming you have changed nothing in your detail layer), you should get the original image, just as expected. If you instead add the details to the original image, you will get the same result as an Unsharp Mask.

I've got to get to work now—I'm already late. If you have more questions, feel free to ask; there was also another discussion of this topic here recently. I think the thread title had something to do with convolution sharpening, but the conversation quickly veered into the Unsharp Mask.
Bryan Ray
http://www.bryanray.name
http://www.sidefx.com
Offline
User avatar

Leonhard Wolf

  • Posts: 24
  • Joined: Sat Jul 01, 2017 11:10 am

Re: Frequency seperation in Fusion

PostThu Mar 01, 2018 6:55 pm

The Unsharp Mask was only there because the extracted details looked so weak. So I thought my image was not sharp enough.
I just used the snipping tool for the screenshot. That is the reason for the low resolution (and my not 4k monitor).
The artifacts I meant were these strange soft lines around detailed areas like the eyebrows. And there is something like a Soft Glow added to the image.
Changing the loaders bit depth solved the problem.

Thanks for the solution and all these little tips you also put in your text (like setting the alpha in the Channel Booleans to do nothing etc.).I feel like there are thousands of tutorials on After Effects but Fusion seems more for professionals who know a lot already. It is very valuable for me to get help this quick!
Mainboard: Asus Maximus Ranger VII
CPU: Intel i7-4790k (not overclocked)
GPU: AMD Radeon HD 6870
RAM: 12 GB
Soundcard: Avid Eleven Rack
HDD: 2 TB
OS: Windows 10 Home, 64 bit
Offline

Curtis Polk

  • Posts: 24
  • Joined: Mon Nov 02, 2015 4:52 pm

Re: Frequency seperation in Fusion

PostMon Nov 12, 2018 3:24 am

When I added a Change Depth node, I ended up with no image - just a checkerboard. What went wrong?

Return to Fusion

Who is online

Users browsing this forum: jsghost777 and 18 guests