diff --git a/configure.cmake b/configure.cmake index e9c2a3b..3bfdd9b 100644 --- a/configure.cmake +++ b/configure.cmake @@ -4,7 +4,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_INSTALL_PREFIX}/share/CMake" find_package ( Eigen3 CONFIG REQUIRED ) -find_package ( Imath CONFIG REQUIRED ) +# find_package ( Imath CONFIG REQUIRED ) find_package ( Ceres REQUIRED ) find_package ( Boost REQUIRED COMPONENTS diff --git a/src/rawtoaces_idt/CMakeLists.txt b/src/rawtoaces_idt/CMakeLists.txt index 62f56df..f9bdf30 100644 --- a/src/rawtoaces_idt/CMakeLists.txt +++ b/src/rawtoaces_idt/CMakeLists.txt @@ -16,8 +16,8 @@ target_link_libraries( Boost::boost Boost::system Boost::filesystem - Imath::Imath - Imath::ImathConfig +# Imath::Imath +# Imath::ImathConfig ) if ( ${Ceres_VERSION_MAJOR} GREATER 1 ) diff --git a/src/rawtoaces_util/acesrender.cpp b/src/rawtoaces_util/acesrender.cpp index 0a22378..111ef68 100644 --- a/src/rawtoaces_util/acesrender.cpp +++ b/src/rawtoaces_util/acesrender.cpp @@ -2027,8 +2027,11 @@ void AcesRender::acesWrite( const char *name, float *aces, float ratio ) const FORJ( channels * width ) { - Imath::half tmpV( aces[k++] ); - halfIn[j] = tmpV.bits(); + Eigen::half h( aces[k++] ); + //ceres::h + //ceres::half; + //Imath::half tmpV( aces[k++] ); + halfIn[j] = *(uint16_t *)(&h); } x.storeHalfRow( halfIn, i ); } diff --git a/unittest/CMakeLists.txt b/unittest/CMakeLists.txt index f8ca8d9..138dc0f 100644 --- a/unittest/CMakeLists.txt +++ b/unittest/CMakeLists.txt @@ -25,8 +25,8 @@ target_link_libraries( Test_IDT PUBLIC ${RAWTOACESLIB} - Imath::Imath - Imath::ImathConfig +# Imath::Imath +# Imath::ImathConfig Boost::boost Boost::filesystem Boost::unit_test_framework