This video is a detailed technical tutorial on how to manually edit Depth Maps to improve 3D conversions or depth-of-field effects in post-production. It focuses on fixing common “bleeding” or “halo” issues where the depth information doesn’t perfectly align with the subject.
Explains “depth bleeding.” The narrator shows how a depth map often overflows the physical boundaries of an object (e.g., a person’s shoulder), causing blurry artifacts in the final 3D render.
0:46 – 1:30
Demonstrates how to use a Difference Matte or manual rotoscoping to isolate the subject from the background to create a “clean” edge for the depth map.
1:31 – 2:45
Shows the process of “choking” or expanding the mask. This ensures the white/light areas of the depth map (foreground) match the subject’s silhouette perfectly.
2:46 – 4:15
The tutorial covers manual painting techniques to fill in gaps within the depth map, ensuring a smooth gradient from foreground to background without “holes.”
4:16 – 4:51
A side-by-side look at the “Before” (unrefined depth map with artifacts) and the “After” (clean, edited map with sharp 3D separation).
Key Takeaways
1. Prioritize Edge Accuracy
The most frequent failure in 3D conversion is “depth bleeding.” If the white pixels of your foreground object extend even a single pixel beyond the actual silhouette of the subject, you will see a “halo” or “ghosting” effect.
The Fix: Always “choke” or contract your depth mask slightly so it sits just inside the subject’s boundary.
2. Grayscale is Geometry
Understanding the math of the grayscale is vital for realistic spatial placement:
Pure White (255, 255, 255): Represents the point closest to the lens.
Pure Black (0, 0, 0): Represents the “infinite” background or furthest point.
Gradients: Use smooth gradients to represent receding surfaces (like a floor or a long table) to avoid “cardboarding,” where objects look like flat 2D cutouts.
3. Manual Correction is Necessary for Complexity
AI and automated tools often struggle with “holes” (e.g., the space between a person’s arm and their torso).
Takeaway: You must manually paint these areas to match the background depth value, otherwise, the background will appear to “stick” to the foreground object when the camera moves.
4. Use “Clean Plates” for Better Results
When you move a foreground object in 3D space, it reveals what was behind it.
Takeaway: Successful depth editing often requires “In-painting” or creating a clean plate of the background so that there are no “smearing” artifacts when the perspective shifts.
Common Issues & Fixes
Issue
Cause
Solution
Halos/Ghosting
Depth map is too large for the subject.
Erode/Choke the mask edges.
Flatness
Subject is a solid gray value.
Add a subtle gradient to reflect the object’s lean.
The video is a tutorial for the Lytro Desktop Software version 4, specifically highlighting the revolutionary Focus Spread feature. This feature allows users to control the range of focus in an image after it has been captured, a capability unique to Lytro’s light-field technology.
Introduction: Title card showing the Lytro camera. The narrator introduces Lytro Desktop Software version 4.1 and mentions workflow enhancements and the “Focus Spread” feature.
00:10 – 00:18
Photographer’s Perspective: Stephen Eastwood, a fashion and beauty photographer, explains the flexibility “Focus Spread” provides, allowing him to control the range of focus from a single shot.
00:19 – 00:25
Behind the Scenes: A scene in a studio where Stephen is shooting two models. He decides to “fix it in post,” demonstrating the power of Lytro’s light-field capture.
00:26 – 00:28
Workflow: A close-up of a hand inserting an SD card into a card reader, showing the transition from capture to post-processing.
00:29 – 00:48
Software Demo – Initial Focus: Christina Szczupak, a photo editor at Lytro, and Stephen are at a computer. Christina demonstrates how they can adjust the focus to f/16 to bring both models into focus, but Stephen notes the background is too “busy.”
00:49 – 01:17
Software Demo – Focus Spread: Christina explains how she adjusted the image to f/16 for the models and then shifted the “Focus Spread” to push the background out of the refocusable range, effectively blurring it while keeping both models sharp.
01:18 – 01:30
Capture: A close-up of the Lytro Illum camera screen as Stephen takes a shot, showing the real-time feedback and focus options.
01:31 – 02:22
Deep Dive into Focus Spread Tools: Christina shows the “Focus Spread” slider in the software. She explains the color-coded guides: blue for foreground and orange for background. Moving the sliders adjusts the “refocusable range.”
02:23 – 02:34
f/1 Background Blur: Christina demonstrates pushing the background to f/1 while keeping the models at f/16 for maximum sharpness and isolation.
02:35 – 03:09
Advanced Depth Tools: Introduction of the Depth Map and the Depth Assist button, providing a visual representation of foreground, middle ground, and background. Christina also shows the 1-to-1 viewer for checking sharpness.
03:10 – 03:26
Conclusion: Stephen and Christina recap the benefits of the new software, emphasizing the newfound control and workflow improvements.
03:27 – 03:38
Montage: A series of photographs showcasing the refocusing capabilities of Lytro cameras.
03:39 – 03:48
Closing: Credits and Lytro logo with the tagline “Life in a Different Light.”
Key Takeaways
Post-Capture Focus Control: The primary breakthrough of Focus Spread is the ability to adjust the range of focus after the shot is taken, essentially allowing photographers to “fix it in post” without losing image quality.
Independent Subject and Background Tuning: Photographers can now decouple the sharpness of the subject from the blur of the background. For example, you can set the subjects to f/16 for maximum sharpness while pushing the background to f/1 to create a creamy bokeh effect.
The Focus Spread Slider: This tool allows editors to “stretch” the focus area. By manipulating the slider, you can define exactly where the focus starts and ends within a 3D space.
Color-Coded Depth Feedback: The software uses a visual “Depth Assist” overlay to guide the user:
Blue represents the foreground limit.
Orange represents the background limit.
Depth Map Integration: The software generates a sophisticated depth map that understands the physical distance of every pixel. This allows for precise selection of what should be sharp and what should be blurred based on actual spatial data rather than just contrast.
Workflow Flexibility: For professional shoots, this technology reduces the risk of missed focus and allows a single exposure to be repurposed into multiple different compositions (e.g., one version with a deep focus and another with a shallow focus).
LitByLeia devices, such as the RED Hydrogen One smartphone and Lume Pad (2020) tablet, leverage JPEG file formats with embedded Leia Image Format (LIF) metadata. This proprietary encoding enables these devices’ unique lightfield displays to render depth information while ensuring easy file sharing compatibility. Unfortunately, most communication platforms and viewing devices flatten these 3D files into standard 2D images. The good news is you can extract the hidden right image in these JPEG files to create your own stereogram. Let’s explore two methods to do this.
Comparison of the observable left image and extracted right albedo image within LIF-embedded JPEG.
Prerequisite
The simplest way to move a LIF-embedded JPEG file from your LitByLeia device to a computer is through direct transfer. Here are a few options:
USB-C Cable: Connect your Leia device to a PC or Mac using a USB-C cable.
USB Storage: Copy the image to a USB drive and transfer it to another device.
If either of those direct transfer options are not possible then we recommend compressing the JPEG file into a ZIP archive and emailing yourself the file as an attachment to preserve the 3D quality of your spatial images.
Extracting the Right Image of the Stereoscopic Pair
The following methods for extracting hidden images depends on the version of the Camera app (Holocam) on your device. For newer versions of Holocam (like v1.22.7), Method #1 is recommended. We’ve tested this method with the specified version and it works. For older versions (like v1.14.0), Method #2 is suggested. Please note that these methods are mutually exclusive. If one works, the other will not.
Method #1: Using Photopea
Photopea is a free online photo editor that can handle various image formats, including JPEG files embedded with LIF metadata. Here’s how to extract the hidden image using Photopea:
1. Access the Editor: Navigate to photopea.com.
2. Initialize: If you are a first-time user, click the “Start using Photopea” button to enter the workspace.
3. Import Your File:
Click on “Open From Computer” in the center of the screen, or go to File > Open in the top menu.
Select your JPEG file with LIF metadata and click Open.
4. Verify Layers: Look at the Layers panel on the right side of the workspace to ensure all elements are visible and unlocked.
5. Extract All Assets:
Navigate to the File menu at the top left.
Select Export Layers (Note: In Photopea, this is the standard way to extract all individual layers at once).
6. Download: A dialog box will appear allowing you to choose the format (PNG, JPG, etc.). Once configured, click Save to download a .zip file containing all your extracted layers.
Method #2: Using ExifTool
ExifTool is a powerful command-line tool that can extract metadata from various image formats, including JPEG files embedded with Leia Lightfield Formatting. Here’s how to use it:
2. Install ExifTool: Follow the installation instructions for your operating system.
3. Open a command prompt or terminal: The exact steps may vary depending on your operating system. To open the Command Prompt (CMD) in Windows, you can use the keyboard shortcut “Windows key + R” to open the Run dialog box, then type “cmd” and click OK.
4. Navigate to your directory: Use the cd command to change to the directory containing your photo. In the following example, the file path “C:\Users\Realistec\Pictures” refers to a directory (or folder) on a Windows computer. Here’s a breakdown of its components:
C: This is the drive letter of the primary hard drive on the computer.
Users: This is a folder that typically contains subfolders for individual user accounts on the computer.
Realistec: This is the name of a specific user account on the computer.
Pictures: This is a subfolder within the user’s account that is typically used to store images and photos.
Therefore, the full path “C:\Users\Realistec\Pictures” points to the “Pictures” folder within the “Realistec” user account on the primary hard drive (C drive) of the computer.
Example: cd C:\Users\Realistec\Pictures
5. Run ExifTool: Start by using the following command to generate an output (*.txt) file with detailed metadata information:
exiftool -a -u -g1 -w txt myphoto.jpg
Remember to replace “exiftool” with the entire file path to your installation.
Also, remember to replace myphoto.jpg with the actual filename of your lightfield photo.
The text file will be saved as myphoto.txt
Example: C:\Users\Realistec\Desktop\exiftool-12.97_64\exiftool -a -u -g1 -w txt IMG_20240705_16504194.jpg
6. Open the newly created sidecar text file: This file provides important metadata, including Image Size, Megapixels, and the Holocam software version.
7. Check for the ‘Right Albedo’ metatag: If the file contains this specific metatag, as shown below, proceed to the next step. Otherwise, follow the instructions in Method #1.
8. Extract the XMP-LImage: Use the following command to extract the right stereoscopic image, which is identified by the ‘-RightAlbedo’ Extensible Metadata Platform (XMP) tag:
The right image has a lower resolution (1280×720) compared to the left image (3840×2160). To achieve a seamless stereoscopic viewing experience, either the right image will need to be upscaled (resampled) to match the left image’s resolution or the left image will need to be downscaled to match the right image’s resolution.
To help your stereogram software correctly combine the images, make a copy of the original (left) image and rename it “myphoto_left.jpg.” This will make it easier for the software to identify and pair the images.
Conclusion
By following these methods, you can successfully extract the hidden image from your LIF files and enjoy them on various devices and platforms.
Wigglegram (aka Animated GIF) using both the visible left image and hidden right image