Author: post
Date: 2009-07-05 20:40:24 +0200 (Sun, 05 Jul 2009)
New Revision: 76
Modified:
RawSpeed/RawImage.cpp
Log:
All formats: More precise white level.
Modified: RawSpeed/RawImage.cpp
===================================================================
--- RawSpeed/RawImage.cpp 2009-07-05 15:36:47 UTC (rev 75)
+++ RawSpeed/RawImage.cpp 2009-07-05 18:40:24 UTC (rev 76)
@@ -120,7 +120,7 @@
whitePoint = m;
}
gw = dim.x*cpp;
- float f = 65535.0f / (float)whitePoint;
+ float f = 65535.0f / (float)(whitePoint-blackLevel);
int scale = (int)(16384.0f*f); // 14 bit fraction
for (int y = 0; y < dim.y; y++) {
gushort *pixel = (gushort*)getData(0,y);
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit