warnings
This commit is contained in:
@@ -447,7 +447,7 @@ int decomposeHomographyMat(InputArray _H,
|
||||
Mat K = _K.getMat().reshape(1, 3);
|
||||
CV_Assert(K.cols == 3 && K.rows == 3);
|
||||
|
||||
auto_ptr<HomographyDecomp> hdecomp(new HomographyDecompInria);
|
||||
cv::Ptr<HomographyDecomp> hdecomp(new HomographyDecompInria);
|
||||
|
||||
vector<CameraMotion> motions;
|
||||
hdecomp->decomposeHomography(H, K, motions);
|
||||
|
||||
@@ -455,8 +455,10 @@ template<typename _Tp, int n> inline v_reg<_Tp, n> operator ~ (const v_reg<_Tp,
|
||||
{
|
||||
v_reg<_Tp, n> c;
|
||||
for( int i = 0; i < n; i++ )
|
||||
{
|
||||
c.s[i] = V_TypeTraits<_Tp>::reinterpret_from_int(~V_TypeTraits<_Tp>::reinterpret_int(a.s[i]));
|
||||
return c;
|
||||
}
|
||||
return c;
|
||||
}
|
||||
|
||||
//! @brief Helper macro
|
||||
|
||||
@@ -1983,7 +1983,7 @@ static gboolean icvOnMouse( GtkWidget *widget, GdkEvent *event, gpointer user_da
|
||||
break;
|
||||
#endif //GTK_VERSION3_4
|
||||
case GDK_SCROLL_LEFT: cv_event = CV_EVENT_MOUSEHWHEEL;
|
||||
case GDK_SCROLL_UP: flags |= ((-(int)1 << 16));
|
||||
case GDK_SCROLL_UP: flags |= ~0xffff;
|
||||
break;
|
||||
case GDK_SCROLL_RIGHT: cv_event = CV_EVENT_MOUSEHWHEEL;
|
||||
case GDK_SCROLL_DOWN: flags |= (((int)1 << 16));
|
||||
|
||||
@@ -65,7 +65,9 @@ namespace
|
||||
virtual void impl(InputArray input0, InputArray input1, OutputArray dst) = 0;
|
||||
|
||||
private:
|
||||
#ifdef HAVE_OPENCL
|
||||
bool ocl_calc(InputArray frame0, InputArray frame1, OutputArray flow1, OutputArray flow2);
|
||||
#endif
|
||||
|
||||
int work_type_;
|
||||
|
||||
@@ -85,6 +87,7 @@ namespace
|
||||
{
|
||||
}
|
||||
|
||||
#ifdef HAVE_OPENCL
|
||||
bool CpuOpticalFlow::ocl_calc(InputArray _frame0, InputArray _frame1, OutputArray _flow1, OutputArray _flow2)
|
||||
{
|
||||
UMat frame0 = arrGetUMat(_frame0, ubuf_[0]);
|
||||
@@ -116,6 +119,7 @@ namespace
|
||||
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
void CpuOpticalFlow::calc(InputArray _frame0, InputArray _frame1, OutputArray _flow1, OutputArray _flow2)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user