Colour negatives come out with a cast, cut highlights and no contrast: a better conversion, with more settings by hand #54
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
RollNote/rollscan#54
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What you'd like to do
Convert a colour negative in the app and get a positive that is ready to use: grey stays grey from the shadows to the highlights, the clouds keep their detail, and the picture has contrast. More settings to set by hand are fine if that's what it takes.
Why
A colour negative comes out with a strong cast in the mid-tones, flat and dark. Black and white is fine; colour is not usable without another program.
roll_01, a 120 colour negative shot with a Fujifilm X-T5, converted in the app with the base on the gap at the right and the frame drawn.
What was measured on that frame (the RAW shrunk 4 times, through the same steps as
src/negative.rs;rollscan convertgives the same levels: black 0.183 / 0.218 / 0.238, white 0.881 / 1.000 / 1.000):docs/negative-conversion.mdlists it under "Not done", and the tests' colour wedge (GAMMA = [0.55, 0.65, 0.75]) is only checked for its levels, never for grey mid-tones.encode()holdslinat 1, andlinis scaled by a fixedGAINmeasured on one roll. This scan's base reads 0.28 of the sensor's ceiling in green and 0.13 in blue, so the densest parts of the negative go past 1: 6.1 % of the frame in blue and 1.8 % in green are cut flat. The white point of both channels then sits on the cut (1.000), and the clouds go flat cyan-white. The app warns and says to shoot with more exposure, which would help, but the RAW still holds those tones.w ^ 1.8, then sRGB. The picture stays dark and flat (picture 3 below). There is no exposure, contrast or curve control, and brightness is a power on the levelled value.A quick prototype on the same frame, outside the repository (same base, frame and levels):
linno longer held at 1 before the levels. The cast swings to yellow: B/G 0.69, R/G 1.10.How it compares with the reference conversion
The present conversion was built to match a reference conversion, measured mostly on black-and-white frames (
docs/development/2026-11-18-negative-conversion-design.md). Step by step:0.01 * (1/n - 1/n_sat)in floating point, nothing held at 1w ^ 1.8onlyThe reference doesn't even out the layers' contrast either: it leaves that to its colour balance and per-channel curves, by hand. Matching it would fix points 2 to 4, not point 1. So this asks for more than the reference does.
What to build
In this order; each step is worth having on its own.
linno longer held at 1 (or scaled from the base instead of a fixedGAIN), so the scan's exposure doesn't decide what is lost, and the levels measured on that. Warn when the base reads far below the sensor's ceiling: a brighter scan has less noise in the dense parts.1 to 3 are shared by the roll, like the base; 4 and 5 are per frame, like today's adjustments.
How to check it
GAMMA = [0.55, 0.65, 0.75]) comes out grey at every step, not only at its ends; the same negative shot 2 stops darker gives the same positive.Setup
Fujifilm X-T5. 120 and 35 mm colour negatives: roll_01 is 120, the reference frames are CineStill 800T in 35 mm.