mirror of https://github.com/JakubMelka/PDF4QT.git
Linux compilation fix II
This commit is contained in:
parent
e476c4ea11
commit
5746412e31
|
@ -174,7 +174,7 @@ float PDFColorConvertor::correctLigthnessBySigmoidFunction(float lightness) cons
|
||||||
|
|
||||||
float PDFColorConvertor::sigmoidFunction(float value) const
|
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
|
float PDFColorConvertor::sigmoidParamC_Black() const
|
||||||
|
|
|
@ -167,7 +167,7 @@ int PDFImageConversion::calculateOtsu1DThreshold() const
|
||||||
u1 /= w1;
|
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;
|
interClassVariance[i] = variance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue