explaingit

murtazatunio/lenscorrect-ofx

Analysis updated 2026-05-18

3C++Audience · developer

TLDR

A DaVinci Resolve plugin that automatically fixes lens distortion, vignetting, and color fringing using camera calibration data.

Mindmap

mindmap
  root((lenscorrect-ofx))
    What it does
      Fixes lens distortion
      Removes vignetting
      Corrects color fringing
    Tech stack
      C++
      Metal
      Lensfun
    Use cases
      Clean up RAW photo edits
      Auto correct camera lenses
      Generate correction profiles
    Audience
      Video editors
      Photographers
    Platform
      Apple Silicon Mac
      DaVinci Resolve
      Windows planned

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Automatically remove lens distortion and vignetting from RAW photos and video inside DaVinci Resolve.

USE CASE 2

Generate a lens correction profile straight from a camera's original DNG or RAW file.

USE CASE 3

Fix color fringing around high contrast edges using precise per channel calibration data.

USE CASE 4

Batch generate correction profiles from the command line for a folder of media files.

What is it built with?

C++MetalLensfunOFXPython

How does it compare?

murtazatunio/lenscorrect-ofx4brm01/picture-pokerbong-water-water-bong/npu-gpu-cpu
Stars333
LanguageC++C++C++
Setup difficultyeasyhard
Complexity1/55/5
Audiencedevelopergeneralresearcher

Figures from each repo's GitHub metadata at analysis time.

In plain English

lenscorrect-ofx is a plugin for DaVinci Resolve, the video and photo editing software, that automatically corrects flaws caused by camera lenses. When you photograph or film something, the lens itself can bend straight lines, darken the corners of the image, or create colored fringes around high contrast edges. This plugin fixes those problems using calibration data from a project called Lensfun, or from metadata already stored inside RAW DNG photo files, so the correction matches the exact camera and lens that was used. The plugin was built especially with Resolve's newer photo editing tools in mind, since manually fixing vignetting or lens distortion is tedious without this kind of automated help. Its behavior was checked against a similar tool in the darktable photo editor, though the code itself was written independently rather than copied. On Apple Silicon Macs, all of the correction work runs in a single combined pass on the graphics chip for speed, with a slower fallback that runs on the regular processor. Inside Resolve, you add the plugin to a clip and work through a set of controls from top to bottom: choosing the color transfer function of the incoming image, loading or generating a lens correction profile, adjusting how strong the overall correction is, and separately turning lens distortion, vignette, and color fringing correction on or off. Profiles can be generated automatically by reading the original camera file and matching it against the Lensfun database, or you can save and reuse your own presets. There are also command line scripts for generating these correction profiles in bulk. This is an early release, version 0.1.0, and right now it only works on Apple Silicon Macs running DaVinci Resolve. Windows support is planned but not yet available, and the developer does not plan to support other editing software that uses the same plugin format, such as Nuke. Building it from source requires a Mac, Resolve, and a handful of command line tools installed through Homebrew, including CMake, ExifTool, and Lensfun itself.

Copy-paste prompts

Prompt 1
Help me install lenscorrect-ofx on my Apple Silicon Mac and set it up inside DaVinci Resolve.
Prompt 2
Explain how to generate a lens correction profile from an original DNG file using this plugin's scripts.
Prompt 3
Show me how to configure vignette and chromatic aberration correction settings in lenscorrect-ofx.
Prompt 4
Walk me through building lenscorrect-ofx from source with CMake and the required Homebrew packages.

Frequently asked questions

What is lenscorrect-ofx?

A DaVinci Resolve plugin that automatically fixes lens distortion, vignetting, and color fringing using camera calibration data.

What language is lenscorrect-ofx written in?

Mainly C++. The stack also includes C++, Metal, Lensfun.

Who is lenscorrect-ofx for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.