Processing with Refinement in Depthkit
🚧 Refinement is enabled on a per-sensor basis.
In order to get the most out of the Refinement workflow, enable and set the Refinement settings on each sensor so that all of them are set appropriately.
Refinement in Depthkit consists of a robust algorithm that refines depth data, allowing for:
- High-resolution exports
- Reduction of depth noise & artifacts
- Recovery of lost depth information, often caused by materials, lighting, and other capture conditions
There are two methods of applying the Refinement algorithm:
- Masked-Refinement
- Maskless-Refinement
Masked-Refinement\ For the highest-quality results, create a Refinement Mask for each of the color videos recorded from each sensor. These source videos from which to generate these mattes can be found in the following location: <Project Folder>/<Take Folder>/sensor<#>/sensor.mp4
The Refinement Mask informs the Refinement process to keep areas of the frame filled with white, and discard areas filled with black. This assists tools like Hole Filling to more accurately reconstruct missing depth data. For this reason, the quality of the key, rotoscoping, or other forms of background removal and their ability to accurately trace your subject directly affects the quality of the end result.
The Refinement Mask video should be the same resolution, frame rate, and duration as the source color video it corresponds to. See our guide for creating a Refinement Mask.
In the Isolate panel, link the masks to each corresponding recording.
2944\ Maskless-Refinement\ It is possible to enable refinement without the use of a Refinement Mask. This will increase the resolution of the exported asset, but not leverage the other capabilities of the Refinement algorithm like hole-filling.
Select Enable Refinement in the Refine panel, and set the Refinement parameters.
🚧\ Maskless Refinement parameters
If you are not applying a Refinement Mask as an input, it is recommended to reduce the Filter Size and Fill Amount to minimal values. While these higher values can repair depth artifacts, they work best when a Refinement Mask is applied, and may result in stray geometry added to your asset without a Refinement mask.
1000\ The Refinement algorithm consists of the following parameters, which are used to refine your footage, reduce depth noise, and remove artifacts.
Filter Size: You can think of this as the pixel size of the enhanced depth. This parameter will fill holes in your depth data and reduce depth noise. Start with a moderate value around 2-4. Increase if you have a lot of depth noise. Decrease if you are losing depth details, most noticeable around facial details.\ Sharpness: Adjusts the sharpness of the filter. This adjusts of the sharpness along edges of your capture, with a low value creating a gradual transition between elements at different depths, and a high value severing these transitions. This is most visible when areas of the subject overlap.\ Color Contribution: The percentage of how much the color video with influence the depth data. This is particularly noticeable when you have edges well defined in your color video that are not clear in the depth data alone. Increasing the color contribution in this case will allow the refinement algorithm to pull more cues from the color in order to modify the depth.\ Depth Contribution: The percentage of how much the depth data influences the refinement algorithm. At 100% contribution, your data will reflect the look of raw depth data. Decreasing the value will soften your data, putting more weight onto the other enhancement parameters.\ Fill Amount: Complements the Filter Size by providing a secondary fill value. Leave at the default value of 4 unless you are dealing with holes or abrupt clipping in your depth. Decrease the value to remove these artifacts.\ 2944