Skip to content

Commit

Permalink
update samples
Browse files Browse the repository at this point in the history
  • Loading branch information
shimat committed Jul 25, 2020
1 parent a82fa0a commit e0643d0
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
41 changes: 41 additions & 0 deletions src/OpenCvSharpExtern/tracking_UnscentedKalmanFilter.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#ifndef _CPP_TRACKING_UNSCENTEDKALMANFILTER_H_
#define _CPP_TRACKING_UNSCENTEDKALMANFILTER_H_

// ReSharper disable IdentifierTypo
// ReSharper disable CppInconsistentNaming
// ReSharper disable CppNonInlineFunctionDefinitionInHeaderFile

// TODO
#if false
#include "include_opencv.h"
#include <opencv2/tracking/kalman_filters.hpp>

CVAPI(ExceptionStatus) tracking_createUnscentedKalmanFilter(
cv::Ptr<cv::tracking::UnscentedKalmanFilter> **returnValue)
{
BEGIN_WRAP
const auto p = cv::tracking::createUnscentedKalmanFilter();
*returnValue = clone(p);
END_WRAP
}

CVAPI(ExceptionStatus) tracking_Ptr_UnscentedKalmanFilter_delete(
cv::Ptr<cv::tracking::UnscentedKalmanFilter> *ptr)
{
BEGIN_WRAP
delete ptr;
END_WRAP
}

CVAPI(ExceptionStatus) tracking_Ptr_UnscentedKalmanFilter_get(
cv::Ptr<cv::tracking::UnscentedKalmanFilter> *ptr,
cv::tracking::UnscentedKalmanFilter **returnValue)
{
BEGIN_WRAP
*returnValue = ptr->get();
END_WRAP
}

#endif

#endif

0 comments on commit e0643d0

Please sign in to comment.