Skip to content

noise behavior for dark scenes #820

Closed

Description

@Antoine-Pierson

Description :

When opening an ARW image from ILCE-7MIV with dark areas, large pixels of color noise appear in the image:

Iso 25600:
Image

Iso 3200:

Image

Also, when zooming in and moving across the image, we can observe color noise chunks loading throughout the move :

Image

Adding more color noise reduction does not help.

Steps to reproduce:

  • Get an ARW image sample with a dark scene (I would love to provide one, but I can't add mine here, GitHub...)
  • Open it
  • Noise color should appear
  • Zoom in and move across the image to see noise chunks

Lightcraft version: v0.5

Environment :
Windows 11
CPU: I5-14600KF
GPU: RTX 4070

Activity

  1. Antoine-Pierson commented on Oct 10, 2026

    @Antoine-Pierson
    Author

    oh okay thanks for the infos, will keep an eye on that.

    here is a google drive link to get my two ARW files : https://drive.google.com/drive/folders/1ir-0iT7-3ClrSFZ-2FYJUmS-nvyk1A3w?usp=sharing

    one is a full size ARW RAW file (~70Mo), the other one is a Lossless RAW file (~34Mo)

  2. PiMinusMax commented on Oct 10, 2026

    @PiMinusMax
    Contributor

    I have the same in my own high-ISO Sony files. Two different things are mixed here:

  3. radialmonster commented on Oct 10, 2026

    @radialmonster
    Contributor

    Thanks for the two files. Both decode as raws, and I measured flat dark areas in each at Color noise reduction 0, 25 (the raw default) and 100.

    • The colour blotches come from the colour noise reduction, as Color noise reduction barely acts at the raw default (25) and fringes at high values #815 describes. At 25 it removes only 10 to 15 % of the colour noise (a*b* spread 4.99 → 4.49 at ISO 3200, 8.36 → 7.21 at ISO 25600). The coarse blotches barely change (2.70 → 2.62 at ISO 3200), and even at 100 they only drop to 1.95. That is why raising it doesn't seem to help.
    • At ISO 25600, raising it also tints the shadows purple. At 100 the average colour of a flat dark patch shifts: blue +68 %, red −30 % (linear). Noise reduction shouldn't move the average. It comes from the same near-black behaviour that Color noise reduction barely acts at the raw default (25) and fringes at high values #815's proposal replaces, and I've kept your files to test that fix.
    • The single bright dots aren't hot pixels. They don't line up between your two frames (169 matching positions, about 151 expected by chance), so they are noise peaks, not stuck photosites. Better colour noise reduction is the fix, not a hot pixel filter.
    • Side note: A7_07434 is stored in Sony's lossy "Compressed" format (8 bits per pixel), not Lossless Compressed. It isn't the cause, though: the uncompressed ISO 25600 file shows the same thing.

    About the chunks while panning: when zoomed in, the view renders tile by tile, so for a moment some tiles may look different from their neighbours. Do they still look different once the image has settled?

    If this solves it, please close the issue, thanks! If not, feel free to reply with more.

  4. PiMinusMax commented on Oct 11, 2026

    @PiMinusMax
    Contributor

    Thanks for measuring. We downloaded both of Antoine's files and also checked our own Sony shots (α77 II, ISO 8000).

    Not hot pixels – agreed. In two of our frames from the same camera the dots don't share a single position either (0 of 209 and 181).

    But they don't come from the colour noise reduction. They are just as there at Color 0 as at 25. They come from the camera look, in HueSat::apply (crates/engine/src/camera_preview.rs): after the hue/saturation table, luminance is restored with before / after. Near black, where noise makes some channels negative, the table can bring after close to 0, and the gain turns the pixel white.

    With a guard (restore only if the table keeps at least 25 % of the luminance) they disappear completely:

    • Antoine's files, a 1200 × 1200 px crop: 57 → 0 (ISO 3200) and 107 → 0 (ISO 25600)
    • our α77 II, whole frame: 209 → 0 and 181 → 0

    They stand out most in the fit view, because the preview is binned into superpixels without averaging. That's why they are so clear in Antoine's screenshots.

    A7_07434, ISO 3200, 1:1 crop enlarged 3×: main, Color 0, with the guard
    α77 II DSC07752, ISO 8000, same layout

    I opened #858 for this, with a test. It doesn't touch the colour blotches or the purple cast at high Color values; those stay with #815.

  5. Antoine-Pierson commented on Oct 11, 2026

    @Antoine-Pierson
    Author

    Thanks for the analysis. Concerning the chunks while panning when zoom in, the tiles are the same once the image has settled (I couldn't reproduce two different tiles ... maybe it was not settled correctly last time).

    So I think I can close this issue, as the problems were identified. Is that ok with you ?

  6. radialmonster commented on Oct 11, 2026

    @radialmonster
    Contributor

    @Antoine-Pierson yes, fine by me. The colour-noise work continues in #815, and the tiles settling is expected. Thanks for checking!

  7. bflatastic commented on Oct 11, 2026

    @bflatastic
    Member

    #858, which landed in #975, should fix the main symptom here: in the camera look, near-black noisy pixels could jump to white because the luminance-restoring step divided by a near-zero value. That guard now blends in smoothly instead of switching. Please try the next build and reopen if dark scenes still show bright speckles or odd noise; a sample file would help a lot.

    Thanks for reporting it! If you haven't already, come and join us on Discord: https://discord.gg/artcraft


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions