darktable icon indicating copy to clipboard operation
darktable copied to clipboard

rotate and perspective highlight artefacts

Open kofa73 opened this issue 1 year ago • 4 comments

Describe the bug

Strange highlight artefacts appear on some images if rotate and perspective is used to rotate the image.

Steps to reproduce

Download the raw and its XMP from http://tech.kovacs-telekes.org/files/2024-04-11-rotate-and-perspective-highlight-issues/, open it in the darkroom. Select history entry 30: history30-rotate-and-perspective-off Select history entry 31: history31-rotate-and-perspective-on

Affects both filmic and sigmoid (see history entry 33). With/without OpenCL. Zoomed-in view as well as zoomed out. The exported JPG is also affected.

Expected behavior

No response

Logfile | Screenshot | Screencast

No response

Commit

No response

Where did you obtain darktable from?

self compiled

darktable version

4.7.0+909~gcaa592293e

What OS are you using?

Linux

What is the version of your OS?

Ubuntu 23.10

Describe your system?

XOrg Ryzen 5 5600X, 64 GB RAM GTK 3.24.38 GCC 13.2.0

Are you using OpenCL GPU in darktable?

Yes

If yes, what is the GPU card and driver?

NVidia 1060 with 6 GB, driver 535.161.07 (the CPU path is also affected)

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

No response

kofa73 avatar Apr 11 '24 20:04 kofa73

@kofa73 the problem seems to be "somewhere else". First test show the artifacts are introduced in the first instance of D&S, seems be be related to a combination of a) feathering b) details threshold c) no-cropping in rotate&perspective. Will investigate further (btw i can see "feathering blocky artifacts" here, it helps to use darkroom/ui/develop_mask=TRUE to visualize this.

EDIT: i think i got it. Fix coming soon...

jenshannoschwalm avatar Apr 12 '24 04:04 jenshannoschwalm

Even after the fix in above PR we still have a "strange looking" spot at that burned-out part. For those running into this issue, it's related to not-cropping in the rotate&perspective module. So we have the completely black border pretty close, that's affecting the guided filter.

jenshannoschwalm avatar Apr 14 '24 06:04 jenshannoschwalm

Even after the fix in above PR we still have a "strange looking" spot at that burned-out part. For those running into this issue, it's related to not-cropping in the rotate&perspective module. So we have the completely black border pretty close, that's affecting the guided filter.

I am indeed seeing artifacts as of today. Is there a workaround? How is it "Fixed in master" when it is actually not?

Edit: okay - maybe actually unrelated. My problem occurs with rotate and perspective disabled as well. And it is only evident with high quality processing - which is why I only noticed it after a lengthy export. I will try to pin it down more and report back with more details.

Edit 2: Seems to be something different. My issues manifests with bumped up exposure (+2.5,+3 EV), vignetting correcion and filmic. Not present with sigmoid, but sigmoid doesn't seem to be suited for massively bumped exposure values. Unfortunately I can't share the source file but can provide screenshots if its helpful.

I tried to disable diffuse and sharpen, chromatic abberation correction, color equalizer, rotate and perspective and denoising, none of them seemed to have much impact..Only when disabling vignetting correct the issue was gone. It shows itself as white, feathery, smooth blobs in image corners.

sans-c avatar Apr 19 '24 13:04 sans-c

@sans-c please open a "precise" & proper issue if you really think there is something wrong.

jenshannoschwalm avatar Apr 19 '24 17:04 jenshannoschwalm