1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-20 04:25:42 +08:00

fbs bug fix

This commit is contained in:
YTY
2018-12-04 23:49:52 +02:00
parent 09fc4303c8
commit 5bdeb648b2

View File

@@ -66,8 +66,6 @@
typedef std::unordered_map<long long /* hash */, int /* vert id */> mapId; typedef std::unordered_map<long long /* hash */, int /* vert id */> mapId;
#endif #endif
#define EPS 1e-43f
namespace cv namespace cv
{ {
namespace ximgproc namespace ximgproc
@@ -501,7 +499,7 @@ namespace ximgproc
x(i) = cv::saturate_cast<float>(pft[i])/255.0f; x(i) = cv::saturate_cast<float>(pft[i])/255.0f;
} }
} }
else if(confidence.depth() == CV_32F) else if(target.depth() == CV_32F)
{ {
const float *pft = reinterpret_cast<const float*>(target.data); const float *pft = reinterpret_cast<const float*>(target.data);
for (int i = 0; i < npixels; i++) for (int i = 0; i < npixels; i++)