fix(raw): correct matrix direction and previewMatch block clipping condition for accurate RAW colors
This commit is contained in:
@@ -139,7 +139,7 @@ export function fitMatch(dev: Uint8Array, ref: Uint8Array, n = MATCH_GRID): Matc
|
||||
// only the pedestal, and one the develop clipped has lost the ratio between
|
||||
// its channels — none of them say anything about the rendering.
|
||||
if (t[0] > CLIP && t[1] > CLIP && t[2] > CLIP) continue;
|
||||
if (e[0] > CLIP || e[1] > CLIP || e[2] > CLIP) continue;
|
||||
if (e[0] > CLIP && e[1] > CLIP && e[2] > CLIP) continue;
|
||||
if (Math.max(t[0], t[1], t[2]) < FLOOR) continue;
|
||||
used++;
|
||||
blocks.push({ e, t });
|
||||
|
||||
Reference in New Issue
Block a user