From e0643d0226d6cbc23aef0cb58eca3a76cddddaa0 Mon Sep 17 00:00:00 2001 From: shimat Date: Sat, 25 Jul 2020 11:39:43 +0900 Subject: [PATCH] update samples --- samples | 2 +- .../tracking_UnscentedKalmanFilter.h | 41 +++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 src/OpenCvSharpExtern/tracking_UnscentedKalmanFilter.h diff --git a/samples b/samples index 29879526a..6f3675725 160000 --- a/samples +++ b/samples @@ -1 +1 @@ -Subproject commit 29879526a86e6f0694932132aef27c7f070149b2 +Subproject commit 6f36757252ac80310bcb39b9e607720317cc740c diff --git a/src/OpenCvSharpExtern/tracking_UnscentedKalmanFilter.h b/src/OpenCvSharpExtern/tracking_UnscentedKalmanFilter.h new file mode 100644 index 000000000..a867149ce --- /dev/null +++ b/src/OpenCvSharpExtern/tracking_UnscentedKalmanFilter.h @@ -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 + +CVAPI(ExceptionStatus) tracking_createUnscentedKalmanFilter( + cv::Ptr **returnValue) +{ + BEGIN_WRAP + const auto p = cv::tracking::createUnscentedKalmanFilter(); + *returnValue = clone(p); + END_WRAP +} + +CVAPI(ExceptionStatus) tracking_Ptr_UnscentedKalmanFilter_delete( + cv::Ptr *ptr) +{ + BEGIN_WRAP + delete ptr; + END_WRAP +} + +CVAPI(ExceptionStatus) tracking_Ptr_UnscentedKalmanFilter_get( + cv::Ptr *ptr, + cv::tracking::UnscentedKalmanFilter **returnValue) +{ + BEGIN_WRAP + *returnValue = ptr->get(); + END_WRAP +} + +#endif + +#endif \ No newline at end of file