Commit 5473dbeb authored by Maksim Shabunin's avatar Maksim Shabunin

Fixed some build issues

parent 98f5fcd8
...@@ -247,15 +247,7 @@ template<typename T> struct OpAbsDiff ...@@ -247,15 +247,7 @@ template<typename T> struct OpAbsDiff
typedef T type1; typedef T type1;
typedef T type2; typedef T type2;
typedef T rtype; typedef T rtype;
T operator()(T a, T b) const { return (T)std::abs(a - b); } T operator()(T a, T b) const { return a > b ? a - b : b - a; }
};
template<typename T, typename WT=T> struct OpAbsDiffS
{
typedef T type1;
typedef WT type2;
typedef T rtype;
T operator()(T a, WT b) const { return saturate_cast<T>(std::abs(a - b)); }
}; };
template<typename T> struct OpAnd template<typename T> struct OpAnd
......
...@@ -9,4 +9,3 @@ endif() ...@@ -9,4 +9,3 @@ endif()
add_library(simple_hal simple.cpp) add_library(simple_hal simple.cpp)
set(OPENCV_HAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../..") set(OPENCV_HAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../..")
target_include_directories(simple_hal PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${OPENCV_HAL_DIR}/include) target_include_directories(simple_hal PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${OPENCV_HAL_DIR}/include)
...@@ -31,4 +31,3 @@ int slow_not8u(const uchar* src1, size_t step1, const uchar* src2, size_t step2, ...@@ -31,4 +31,3 @@ int slow_not8u(const uchar* src1, size_t step1, const uchar* src2, size_t step2,
dst[x] = ~src1[x]; dst[x] = ~src1[x];
return cv::hal::Error::Ok; return cv::hal::Error::Ok;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment