White balance was not applied for standard images at 1:1 scale

This commit is contained in:
natureh 510
2013-03-16 02:10:58 +01:00
parent 70f7b061c9
commit cc32c232a4
3 changed files with 9 additions and 9 deletions

View File

@@ -187,9 +187,9 @@ void Image16::getStdImage (ColorTemp ctemp, int tran, Imagefloat* image, Preview
if (src_x>=maxx)
continue;
lineR[dst_x] = r(src_y, src_x);
lineG[dst_x] = g(src_y, src_x);
lineB[dst_x] = b(src_y, src_x);
lineR[dst_x] = CLIP(rm2*r(src_y, src_x));
lineG[dst_x] = CLIP(gm2*g(src_y, src_x));
lineB[dst_x] = CLIP(bm2*b(src_y, src_x));
}
}
else {

View File

@@ -161,9 +161,9 @@ void Image8::getStdImage (ColorTemp ctemp, int tran, Imagefloat* image, PreviewP
convertTo(r(src_y, src_x), r_);
convertTo(g(src_y, src_x), g_);
convertTo(b(src_y, src_x), b_);
lineR[dst_x] = r_;
lineG[dst_x] = g_;
lineB[dst_x] = b_;
lineR[dst_x] = CLIP(rm2*r_);
lineG[dst_x] = CLIP(gm2*g_);
lineB[dst_x] = CLIP(bm2*b_);
}
}
else {

View File

@@ -178,9 +178,9 @@ void Imagefloat::getStdImage (ColorTemp ctemp, int tran, Imagefloat* image, Prev
if (src_x>=maxx)
continue;
lineR[dst_x] = r(src_y, src_x);
lineG[dst_x] = g(src_y, src_x);
lineB[dst_x] = b(src_y, src_x);
lineR[dst_x] = CLIP(rm2*r(src_y, src_x));
lineG[dst_x] = CLIP(gm2*g(src_y, src_x));
lineB[dst_x] = CLIP(bm2*b(src_y, src_x));
}
}
else {