mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:24:03 +02:00
Fix gcc error, and MAC error (no pow).
This commit is contained in:
parent
fcd8a47bec
commit
2911b7dec6
2 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@ SET(CMAKE_AUTOMOC ON)
|
|||
setup_hifi_project(Core Widgets)
|
||||
|
||||
# Add compiler flags for building executables (-fPIE)
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
|
||||
|
||||
# Qt includes
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
|
|
@ -22,8 +22,8 @@ double ImageComparer::compareImages(QImage resultImage, QImage expectedImage) co
|
|||
}
|
||||
|
||||
const int L = 255; // (2^number of bits per pixel) - 1
|
||||
const double c1 = pow((K1 * L), 2);
|
||||
const double c2 = pow((K2 * L), 2);
|
||||
const double c1 = (K1 * L) * (K1 * L);
|
||||
const double c2 = (K2 * L) * (K2 * L);
|
||||
|
||||
// Coefficients for luminosity calculation
|
||||
const double RED_COEFFICIENT = 0.212655f;
|
||||
|
|
Loading…
Reference in a new issue