Tips and Techniques/Workflow/Probe Sequence
From VFXPedia
Contents |
How to find the brightest frame of a sequence
Summary
How to find the brightest frame of a sequence (Last Updated: July 21st, 2011)Sometimes you need to work out how luminance changes through a sequence and which frame is the brightest to synchronize your animation or color correction with the footage. It's especially useful if there are explosions, flashes or lightnings in the sequence or it's a time-lapse footage. The measured data can also be used for deflickering. Another purpose is checking whether any unwanted black or white clipping has occurred.
Description
- Create a Background
- RMB on it's Red control, select Modify With>Probe
- Go to the Modifiers tab, drag'n'drop your loader to the "Image to Probe" field
- Check "Probe Rectangle", set Width = 1, Height = 1, select Luma as the channel.
- See the Spline view for Background>Top Left Red
- You can RMB on the Background node, select Script>Bake Animation afterwards to prevent the probe from hard calculations each time.
- This curve in Spline can be used to determine the brightest frame and to see the luminance dynamics.
- Animation can be connected to it or synchronized with it by eye.
- In this example only luminance was measured. You can measure Red, Green, Blue separately assigning separate Probes to corresponding channels of the Background and selecting Red, Green and Blue in the Probes.
If you need to integrate an object into a BG plate with variable brightness or you want to perform a complicated luminance-based color correction on it,
- Create a Dissolve node, go to the Common Control tab (radiation), RMB on the Blend, select Modify With > Expression
- In the Expression controls, RMB on the Number in 1, select Modify With > Probe
- Go to the Probe controls, drag and drop the BG plate to "Image to Probe", Set the Channel to Luma, check the Probe Rectangle, set the Width and Height to 1.
- Select the Expression modifier, RMB on its header, run Script > Bake Animation for Number in 1
- Go to the Spline view, remove the top part of the "Number in 1" spline, press Ctrl+F. Locate the lowest value, copy the value to the clipboard undo the deletion of points. Remember the frame number with the lowest value.
- In the Number Out expression type "n1-" paste the value from the clipboard right after the minus sign.
- Go to the Spline view, remove the bottom part of the "Number in 1" spline, press Ctrl+F. Locate the highest value, go to the frame with the highest value. Remember the frame number.
- Check the current (the highest) value of the Blend parameter of the Dissolve, copy it to the clipboard.
- Go back to the Number Out expression, enclose everything you had there so far into brackets, enter "/" afterwards and paste the value from the clipboard right after the division sign. The expression should look like this: (n1-X)/Y, where X is the darkest value of the probe spline and Y is the value of n1-X in the frame with the brightest probe value.
- Create two separate setups for the brightest and the darkest frames, feed the darkest into the BG input of the Dissolve and brightest into the FG input.
If you want to find the brightest and darkest color values in the whole sequence regardless frame number
There is a great fuse, called "MIP" created by guys from anatomical travelogue.
This simple Fuse just takes a range over time and generates an image with the highest or lowest pixels. Great for normalizing. It does so for each channel, so it can be useful for color normalization too, or for finding the bounding box of a position pass. It can also be useful for making “summary” thumbnails of footage.
There is also an option to output the maximum (or minimum) pixel value from the entire sample, in X, Y, and Time. This is a number output suitable for connection to other number inputs.
You can grab it here: http://research.anatomicaltravel.com/2010/10/mip/
The Trails tool set to the Lighten or Darken apply modes in conjunction with the Probe can do the same trick:
Connect the Trails right after the sequence, switch to the desired mode, render the whole sequence - you will get the extreme values in the last frame.