Skip to content

How can I isolate crawling edges around a replacement hairstyle when neon lighting makes the colors distracting?

Make an edge-only inspection copy. It reduces the influence of changing color and helps you see short jumps in the hair boundary relative to a nearby stable outline.

PLAN AN EXTERNAL VIDEO REPAIRAISwapLab team · Editorial methodPublished 2 min read
See the recorded exampleExplore 67 Image SkillsIndependent finishing · Check the actual file

Set up the edit

Choose the interval around the head turn. Inspect the shoulder and a background line alongside the hair and keep the original colored image open. Adjust edge thresholds if most of the image disappears.

shell
ffmpeg -i neon-result-v1.mp4 -filter_complex "[0:v:0]edgedetect=low=0.08:high=0.22[proof]" -map "[proof]" -fps_mode passthrough -c:v ffv1 inspection.mkv

Read the result

A bright edge that vanishes for one frame while nearby outlines remain continuous is worth checking in the full-color original. Neon contrast itself can also make a real edge disappear from the diagnostic.

With the returned neon dance, the local FFmpeg run decoded 158 video frames at 1920 × 1080 pixels. Use the linked file to reproduce the example. This was an offline edit of the existing public clip.

If the first pass falls short

Do not publish the edge map or use it as a quality score. If the apparent jump is absent in the decoded color frames, leave the output alone.

Sources

Review the result in context.

Compare the recorded example and its documented limitations.

See the recorded example