From 5bdeb648b2c863699cea4e82c1a19b9cd46b87c0 Mon Sep 17 00:00:00 2001 From: YTY Date: Tue, 4 Dec 2018 23:49:52 +0200 Subject: [PATCH] fbs bug fix --- modules/ximgproc/src/fbs_filter.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/ximgproc/src/fbs_filter.cpp b/modules/ximgproc/src/fbs_filter.cpp index 5f88cc2f2..27859669e 100644 --- a/modules/ximgproc/src/fbs_filter.cpp +++ b/modules/ximgproc/src/fbs_filter.cpp @@ -66,8 +66,6 @@ typedef std::unordered_map mapId; #endif -#define EPS 1e-43f - namespace cv { namespace ximgproc @@ -501,7 +499,7 @@ namespace ximgproc x(i) = cv::saturate_cast(pft[i])/255.0f; } } - else if(confidence.depth() == CV_32F) + else if(target.depth() == CV_32F) { const float *pft = reinterpret_cast(target.data); for (int i = 0; i < npixels; i++)