Suppress some warning in iplocallab.cc improcfun.cc
This commit is contained in:
parent
b2059f9527
commit
fe014c3d89
@ -257,9 +257,9 @@ void ImProcFunctions::ciecam_02 (CieImage* ncie, double adap, int begh, int endh
|
|||||||
int width = lab->W, height = lab->H;
|
int width = lab->W, height = lab->H;
|
||||||
float minQ = 10000.f;
|
float minQ = 10000.f;
|
||||||
float maxQ = -1000.f;
|
float maxQ = -1000.f;
|
||||||
float w_h;
|
float w_h = 0.f;
|
||||||
float a_w;
|
float a_w = 0.f;
|
||||||
float c_;
|
float c_ = 0.f;
|
||||||
float f_l;
|
float f_l;
|
||||||
double Yw;
|
double Yw;
|
||||||
Yw = 1.0;
|
Yw = 1.0;
|
||||||
|
@ -4125,7 +4125,7 @@ void ImProcFunctions::Lab_Local (int call, int sp, float** shbuffer, LabImage *
|
|||||||
float **bufchro = nullptr;
|
float **bufchro = nullptr;
|
||||||
float **buflightslid = nullptr;
|
float **buflightslid = nullptr;
|
||||||
|
|
||||||
int bfh, bfw;
|
int bfh = 0.f, bfw = 0.f;
|
||||||
|
|
||||||
|
|
||||||
float adjustr = 1.0f;
|
float adjustr = 1.0f;
|
||||||
@ -5254,12 +5254,12 @@ void ImProcFunctions::Lab_Local (int call, int sp, float** shbuffer, LabImage *
|
|||||||
float Chprov1 = sqrtBuffer[x];
|
float Chprov1 = sqrtBuffer[x];
|
||||||
sincosval.y = sincosyBuffer[x];
|
sincosval.y = sincosyBuffer[x];
|
||||||
sincosval.x = sincosxBuffer[x];
|
sincosval.x = sincosxBuffer[x];
|
||||||
float chr;
|
float chr = 0.f;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
float aa = transformed->a[y][x];
|
float aa = transformed->a[y][x];
|
||||||
float bb = transformed->b[y][x];
|
float bb = transformed->b[y][x];
|
||||||
float HH, chr;
|
float HH = 0.f, chr = 0.f;
|
||||||
|
|
||||||
if (needHH) { // only do expensive atan2 calculation if needed
|
if (needHH) { // only do expensive atan2 calculation if needed
|
||||||
HH = xatan2f (bb, aa);
|
HH = xatan2f (bb, aa);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user