Feature Request | Chromatic Aberration Correction

(I read " Your topic is similar to…" but didn’t quite see what I had in mind…)
Severe chromatic aberration is pretty much impossible to manually eliminate and would require some form of “intelligence” to correct, especially if it isn’t at all linear in its appearance (across an image).
A similar problem would be what’s known as “coma”…
AI based solutions would be sensational…

@beexact-77068 Thanks for sharing.

You’re right, doing this manually would be near impossible. At the same time something like this would be hard to build from an AI perspective as well. I’ll mention this to our developers to see if and when we could consider fitting this into our roadmap.

There are indeed a lot of problems that I only really became aware of through my involvement with AI.

We’re talking about open aperture, 1.2, 2.0, etc., so to speak.

As the thread creator already said coma, this comes from the physical shading of the lens and is design-related, the new RF 50 1.2L has this, for example, at open aperture, which is also reflected in the bokeh.

Chromatic aberration occurs not only at sharp edges but also in the bokeh, where they are not yet correctable.

And CA affects the white balance, which is why I always have problems with my EF 50mm 1.2L, because in the background the bokeh CA can virtually go over the entire background and thus distort the white balance.

While the white balance in the foreground is fine, e.g. where the people are, the entire out-of-focus background can become greenish.

1 Like

I’m using a Nikkor 70-200 VRII a lot…it’s a very good lens in my opinion, but it does produce some CA towards edges, if contrast is great…in many cases, I “correct” this in Photoshop, manually…it’s usually doable (but dull and time consuming).
I also have a Tokina 11-16, 2.8 lens that I first thought was very, very good, but later noticed pretty severe CA in corners of images…again, when there was high contrast content there…
I have kept some images in hopes of some day being able to “fix” them…

Years and years ago, I refrained from deleting some images that were just a tad too “soft”, hoping that some day, I might be able to “correct” them. This was long before there was any hint of AI based solutions and most people would have laughed at such a suggestion…(that “actual sharpening” could eventually become possible)…but here we are. What I have seen from Topaz, has been very, very impressive…
Sometimes you can just go ahead and take another shot…but sometimes you can’t…

1 Like

I’m glad you like it!!

Hello Tim,
Best wishes !
Is CA removal have been put on Topaz Video AI roadmap since then ?
It would be a serious asset to Topaz AI, considering that currently we need to mitigate this manually, which is imperfect and time consuming…
Thank you to consider it :slight_smile:

1 Like

I often manually remove disturbing fringing in photos blown up in AI or GP.
I know I am running into limitations of my lens at this point.
It would be great if there could be an AI de-fringing tool.
Just a thought.

It’d help if you could post a sample of what you’re calling “fringing”. The term, by itself, is too ambiguous.


look at the leaf edges on the right.

I use a blurring brush to get rid of the fringe in a case like this.

Knowing the camera info would help here, as would seeing the original image, pre-TPAI processing. If there’s EXIF info in the original file, it should resolve the “what camera and lens” question.

Frankly, there are a host of problems visible, making it hard to know which problems came from TPAI. For example, the blue edging on the leaves, also seen in some of the bird’s plumage, might be chromatic aberration originating in the camera. The darker area around the leaves, across the frame, could be TPAI, could be the blurring brush, could be… a number of things.

For comparison, here’s a barred owl, shot with a Sony DSC-RX10 M4. Post processing was PhotoLab 6 for cropping, lighting, color, noise reduction, then TPAI for enlargement and general cleanup.

ADDED: The EXIF info didn’t come along with the image - see below:
Filename - DSC05005_DxO-topaz.jpeg
Make - SONY
Model - DSC-RX10M4
Orientation - Top left
XResolution - 2400
YResolution - 2400
ResolutionUnit - Inch
Software - Topaz Photo AI 1.2.7
DateTime - 2023:04:02 15:32:27
Artist - Richard B Emerson
YCbCrPositioning - Centered
Copyright - Richard B Emerson
Exif-IFD-Offset - 270
ExposureTime - 1/640 seconds
FNumber - 4
ExposureProgram - Normal program
ISOSpeedRatings - 400
Recommended Exposure Index - 400
ExifVersion - 0231
DateTimeOriginal - 2022:03:20 19:41:05
DateTimeDigitized - 2022:03:20 19:41:05
OffsetTime - -04:00
OffsetTimeOriginal - -04:00
OffsetTimeDigitized - -04:00
ComponentsConfiguration - YCbCr
BrightnessValue - 7.26
ExposureBiasValue - -0.30
MaxApertureValue - F 4.00
MeteringMode - Center weighted average
LightSource - Daylight
FocalLength - 220 mm
MakerNote-IFD-Offset - 832
UserComment -
FlashPixVersion - 0100
ColorSpace - sRGB
ExifImageWidth - 1989
ExifImageHeight - 2983
FileSource - DSC - Digital still camera
SceneType - A directly photographed image
CustomRendered - Normal process
ExposureMode - Auto
White Balance - Manual
DigitalZoomRatio - 1 x
FocalLengthIn35mmFilm - 600 mm
SceneCaptureType - Standard
Contrast - Normal
Saturation - Normal
Sharpness - Normal
Lens Info - 8.80 220 2.40 4

Maker Note (Vendor): -
Quality - RAW
High ISO NoiseReduction - Off
Sony Model ID - 365
Creative Style - Standard
Dynamic Range Optimizer - Auto
Image Stabilization - Off
Color Mode - Standard

1 Like


Original file is 25MB only jpg shows up when uploading, cam is Sony A6400 lens Sigma 100-400 5-6.3. Below is EXIF info:

Brightness Value: 8.955
CFA Pattern: 0, 1, 1, 2
Color Space: sRGB
Components Configuration: 1, 2, 3, 0
Compressed Bits Per Pixel: 8
Contrast: Normal
Custom Rendered: Normal process
Date Time Digitized: May 19, 2023 at 10:32:59
Date Time Original: May 19, 2023 at 10:32:59
Digital Zoom Ratio: 1
Exif Version: 2.3.1
Exposure Bias Value: 0
Exposure Mode: Manual exposure
Exposure Program: Manual
Exposure Time: 1/2000
File Source: DSC
Flash: Off, did not fire
FlashPix Version: 1.0
FNumber: 10
Focal Length: 400
Focal Length In 35mm Film: 600
Photographic Sensitivity (ISO): 1,250
Lens Model: 100-400mm F5-6.3 DG DN OS | Contemporary 020
Lens Specification: 100, 400, 5, 6.3
Light Source: unknown
Max Aperture Value: 5.312
Metering Mode: CenterWeightedAverage
Pixel X Dimension: 6,000
Pixel Y Dimension: 4,000
RecommendedExposureIndex: 1,250
Saturation: Normal
Scene Capture Type: Standard
Scene Type: A directly photographed image
SensitivityType: Recommended exposure index (REI)
Sharpness: Normal
White Balance: Auto white balance
Flash Compensation: 0
Image Stabilization: Panning
Lens ID: 65,535
Lens Info: 100, 400, 5, 6.3
Lens Model: Sony E 100-400mm F5.0-6.3

Taking the original, as available here, and feeding it to TPAI 1.3.6, here’s a grab of TPAI at work. I don’t see any major flaws. Particularly as I think the original exposure, no offense meant, less than desirable.

FWIW, I use a rather dated laptop running Win10, and the grab is off an auxiliary 21" screen (i.e., nothing special).

Hi Folks:

I have a couple of suggestions.

1). Address longitudinal chromatic aberration - both in high contrast areas and before/after the focal plane. These lens defects are quite difficult to correct in traditional photo editing software.

2). Look at lens profiles (center sharpness, LOCA performance, edge sharpness, vignetting) and use the existing tools to repair an image. For example - many wide angle lenses at low F stop have very predictable defects. Your de-blur algorithms could work more strongly in the corners and less in the center of the image to bring back the full original detail. The metadata of the photo often has key information about the lens, the shutter speed, the F stop and the ISO - all which could be used as inputs to the model. The model could also quickly correct barrel distortion and pincushion distortion. These are real world problems AI could help solve.

From a business partnering perspective - you could work with the more budget lens providers (Viltrox, Samyang, 7Artisans, TTArtisans, etc) to get profiles for their lenses. If software can make their lower cost lenses perform like more expensive Sony or Sigma lenses then the value is clear. Whether you sell more software or more cloud computing of your models - having their lens profiles would benefit both of you.

PhotoAI does a lot of great stuff - but there’s a few things that would be great to add.

Thanks - Good luck with Starlight. I have my first sample video being rendered.

Daryll Fogal.

…I agree…
Gunnar

•••••••••