Make some more files cppcheck clean (#6133)
* Make some more files cppcheck clean * revert change of dcrop.cc from last commit * Replace calculation: y = pow(x, 1/ (2.f * 2.f)) by y = sqrt(sqrt(x)) * Revert "Replace calculation: y = pow(x, 1/ (2.f * 2.f)) by y = sqrt(sqrt(x))" This reverts commit d639c67249f1723fa9f9e55e0442afcb862eba91.
This commit is contained in:
@@ -322,7 +322,7 @@ void ImProcFunctions::impulse_nrcam (CieImage* ncie, double thresh, float **buff
|
||||
hfnbrave += fabs(ncie->sh_p[i1][j1] - lpf[i1][j1]);
|
||||
}
|
||||
|
||||
impish[i][j] = (hpfabs > ((hfnbrave - hpfabs) * impthrDiv24));
|
||||
impish[i][j] = static_cast<float>(hpfabs > ((hfnbrave - hpfabs) * impthrDiv24));
|
||||
}
|
||||
|
||||
#ifdef __SSE2__
|
||||
@@ -353,7 +353,7 @@ void ImProcFunctions::impulse_nrcam (CieImage* ncie, double thresh, float **buff
|
||||
hfnbrave += fabs(ncie->sh_p[i1][j1] - lpf[i1][j1]);
|
||||
}
|
||||
|
||||
impish[i][j] = (hpfabs > ((hfnbrave - hpfabs) * impthrDiv24));
|
||||
impish[i][j] = static_cast<float>(hpfabs > ((hfnbrave - hpfabs) * impthrDiv24));
|
||||
}
|
||||
|
||||
for (; j < width; j++) {
|
||||
@@ -365,7 +365,7 @@ void ImProcFunctions::impulse_nrcam (CieImage* ncie, double thresh, float **buff
|
||||
hfnbrave += fabs(ncie->sh_p[i1][j1] - lpf[i1][j1]);
|
||||
}
|
||||
|
||||
impish[i][j] = (hpfabs > ((hfnbrave - hpfabs) * impthrDiv24));
|
||||
impish[i][j] = static_cast<float>(hpfabs > ((hfnbrave - hpfabs) * impthrDiv24));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user