Skip to content

Commit e0643d0

Browse files
committed
update samples
1 parent a82fa0a commit e0643d0

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#ifndef _CPP_TRACKING_UNSCENTEDKALMANFILTER_H_
2+
#define _CPP_TRACKING_UNSCENTEDKALMANFILTER_H_
3+
4+
// ReSharper disable IdentifierTypo
5+
// ReSharper disable CppInconsistentNaming
6+
// ReSharper disable CppNonInlineFunctionDefinitionInHeaderFile
7+
8+
// TODO
9+
#if false
10+
#include "include_opencv.h"
11+
#include <opencv2/tracking/kalman_filters.hpp>
12+
13+
CVAPI(ExceptionStatus) tracking_createUnscentedKalmanFilter(
14+
cv::Ptr<cv::tracking::UnscentedKalmanFilter> **returnValue)
15+
{
16+
BEGIN_WRAP
17+
const auto p = cv::tracking::createUnscentedKalmanFilter();
18+
*returnValue = clone(p);
19+
END_WRAP
20+
}
21+
22+
CVAPI(ExceptionStatus) tracking_Ptr_UnscentedKalmanFilter_delete(
23+
cv::Ptr<cv::tracking::UnscentedKalmanFilter> *ptr)
24+
{
25+
BEGIN_WRAP
26+
delete ptr;
27+
END_WRAP
28+
}
29+
30+
CVAPI(ExceptionStatus) tracking_Ptr_UnscentedKalmanFilter_get(
31+
cv::Ptr<cv::tracking::UnscentedKalmanFilter> *ptr,
32+
cv::tracking::UnscentedKalmanFilter **returnValue)
33+
{
34+
BEGIN_WRAP
35+
*returnValue = ptr->get();
36+
END_WRAP
37+
}
38+
39+
#endif
40+
41+
#endif

0 commit comments

Comments
 (0)