Linux compilation fix II

This commit is contained in:
Jakub Melka 2023-11-19 18:02:32 +01:00
parent e476c4ea11
commit 5746412e31
2 changed files with 2 additions and 2 deletions

View File

@ -174,7 +174,7 @@ float PDFColorConvertor::correctLigthnessBySigmoidFunction(float lightness) cons
float PDFColorConvertor::sigmoidFunction(float value) const
{
return 1.0f / (1.0f + std::expf(-m_sigmoidParamC * (value - 0.5f)));
return 1.0f / (1.0f + std::exp(-m_sigmoidParamC * (value - 0.5f)));
}
float PDFColorConvertor::sigmoidParamC_Black() const

View File

@ -167,7 +167,7 @@ int PDFImageConversion::calculateOtsu1DThreshold() const
u1 /= w1;
}
const float variance = w0 * w1 * std::powf(u0 - u1, 2);
const float variance = w0 * w1 * std::pow(u0 - u1, 2);
interClassVariance[i] = variance;
}