Merge branch 'dev' into spot-removal-tool
This commit is contained in:
@@ -18,7 +18,10 @@
|
||||
*/
|
||||
#include <cstring>
|
||||
#include <cstdio>
|
||||
|
||||
#include "colortemp.h"
|
||||
#include "image8.h"
|
||||
#include "imagefloat.h"
|
||||
#include "rtengine.h"
|
||||
|
||||
using namespace rtengine;
|
||||
@@ -230,10 +233,10 @@ void Image8::getStdImage (const ColorTemp &ctemp, int tran, Imagefloat* image, c
|
||||
lineB[dst_x] = CLIP(bm * btot);
|
||||
} else {
|
||||
// computing a special factor for this incomplete sub-region
|
||||
float area = src_sub_width * src_sub_height;
|
||||
lineR[dst_x] = CLIP(rm2 * rtot / area);
|
||||
lineG[dst_x] = CLIP(gm2 * gtot / area);
|
||||
lineB[dst_x] = CLIP(bm2 * btot / area);
|
||||
float larea = src_sub_width * src_sub_height;
|
||||
lineR[dst_x] = CLIP(rm2 * rtot / larea);
|
||||
lineG[dst_x] = CLIP(gm2 * gtot / larea);
|
||||
lineB[dst_x] = CLIP(bm2 * btot / larea);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user