123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461 |
-
- using OpenCVForUnity.CoreModule;
- using OpenCVForUnity.UtilsModule;
- using OpenCVForUnity.VideoModule;
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- namespace OpenCVForUnity.OptflowModule
- {
- // C++: class Optflow
- //javadoc: Optflow
- public class Optflow
- {
- // C++: enum GPCDescType
- public const int GPC_DESCRIPTOR_DCT = 0;
- public const int GPC_DESCRIPTOR_WHT = 0 + 1;
- //
- // C++: Ptr_DenseOpticalFlow cv::optflow::createOptFlow_DeepFlow()
- //
- //javadoc: createOptFlow_DeepFlow()
- public static DenseOpticalFlow createOptFlow_DeepFlow ()
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- DenseOpticalFlow retVal = DenseOpticalFlow.__fromPtr__(optflow_Optflow_createOptFlow_1DeepFlow_10());
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: Ptr_DenseOpticalFlow cv::optflow::createOptFlow_Farneback()
- //
- //javadoc: createOptFlow_Farneback()
- public static DenseOpticalFlow createOptFlow_Farneback ()
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- DenseOpticalFlow retVal = DenseOpticalFlow.__fromPtr__(optflow_Optflow_createOptFlow_1Farneback_10());
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: Ptr_DenseOpticalFlow cv::optflow::createOptFlow_PCAFlow()
- //
- //javadoc: createOptFlow_PCAFlow()
- public static DenseOpticalFlow createOptFlow_PCAFlow ()
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- DenseOpticalFlow retVal = DenseOpticalFlow.__fromPtr__(optflow_Optflow_createOptFlow_1PCAFlow_10());
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: Ptr_DenseOpticalFlow cv::optflow::createOptFlow_SimpleFlow()
- //
- //javadoc: createOptFlow_SimpleFlow()
- public static DenseOpticalFlow createOptFlow_SimpleFlow ()
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- DenseOpticalFlow retVal = DenseOpticalFlow.__fromPtr__(optflow_Optflow_createOptFlow_1SimpleFlow_10());
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: Ptr_DenseOpticalFlow cv::optflow::createOptFlow_SparseToDense()
- //
- //javadoc: createOptFlow_SparseToDense()
- public static DenseOpticalFlow createOptFlow_SparseToDense ()
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- DenseOpticalFlow retVal = DenseOpticalFlow.__fromPtr__(optflow_Optflow_createOptFlow_1SparseToDense_10());
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: Ptr_DualTVL1OpticalFlow cv::optflow::createOptFlow_DualTVL1()
- //
- //javadoc: createOptFlow_DualTVL1()
- public static DualTVL1OpticalFlow createOptFlow_DualTVL1 ()
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- DualTVL1OpticalFlow retVal = DualTVL1OpticalFlow.__fromPtr__(optflow_Optflow_createOptFlow_1DualTVL1_10());
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: double cv::motempl::calcGlobalOrientation(Mat orientation, Mat mask, Mat mhi, double timestamp, double duration)
- //
- //javadoc: calcGlobalOrientation(orientation, mask, mhi, timestamp, duration)
- public static double calcGlobalOrientation (Mat orientation, Mat mask, Mat mhi, double timestamp, double duration)
- {
- if (orientation != null) orientation.ThrowIfDisposed ();
- if (mask != null) mask.ThrowIfDisposed ();
- if (mhi != null) mhi.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double retVal = optflow_Optflow_calcGlobalOrientation_10(orientation.nativeObj, mask.nativeObj, mhi.nativeObj, timestamp, duration);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: void cv::motempl::calcMotionGradient(Mat mhi, Mat& mask, Mat& orientation, double delta1, double delta2, int apertureSize = 3)
- //
- //javadoc: calcMotionGradient(mhi, mask, orientation, delta1, delta2, apertureSize)
- public static void calcMotionGradient (Mat mhi, Mat mask, Mat orientation, double delta1, double delta2, int apertureSize)
- {
- if (mhi != null) mhi.ThrowIfDisposed ();
- if (mask != null) mask.ThrowIfDisposed ();
- if (orientation != null) orientation.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- optflow_Optflow_calcMotionGradient_10(mhi.nativeObj, mask.nativeObj, orientation.nativeObj, delta1, delta2, apertureSize);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: calcMotionGradient(mhi, mask, orientation, delta1, delta2)
- public static void calcMotionGradient (Mat mhi, Mat mask, Mat orientation, double delta1, double delta2)
- {
- if (mhi != null) mhi.ThrowIfDisposed ();
- if (mask != null) mask.ThrowIfDisposed ();
- if (orientation != null) orientation.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- optflow_Optflow_calcMotionGradient_11(mhi.nativeObj, mask.nativeObj, orientation.nativeObj, delta1, delta2);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::motempl::segmentMotion(Mat mhi, Mat& segmask, vector_Rect& boundingRects, double timestamp, double segThresh)
- //
- //javadoc: segmentMotion(mhi, segmask, boundingRects, timestamp, segThresh)
- public static void segmentMotion (Mat mhi, Mat segmask, MatOfRect boundingRects, double timestamp, double segThresh)
- {
- if (mhi != null) mhi.ThrowIfDisposed ();
- if (segmask != null) segmask.ThrowIfDisposed ();
- if (boundingRects != null) boundingRects.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
- Mat boundingRects_mat = boundingRects;
- optflow_Optflow_segmentMotion_10(mhi.nativeObj, segmask.nativeObj, boundingRects_mat.nativeObj, timestamp, segThresh);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::motempl::updateMotionHistory(Mat silhouette, Mat& mhi, double timestamp, double duration)
- //
- //javadoc: updateMotionHistory(silhouette, mhi, timestamp, duration)
- public static void updateMotionHistory (Mat silhouette, Mat mhi, double timestamp, double duration)
- {
- if (silhouette != null) silhouette.ThrowIfDisposed ();
- if (mhi != null) mhi.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- optflow_Optflow_updateMotionHistory_10(silhouette.nativeObj, mhi.nativeObj, timestamp, duration);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::optflow::calcOpticalFlowSF(Mat from, Mat to, Mat& flow, int layers, int averaging_block_size, int max_flow, double sigma_dist, double sigma_color, int postprocess_window, double sigma_dist_fix, double sigma_color_fix, double occ_thr, int upscale_averaging_radius, double upscale_sigma_dist, double upscale_sigma_color, double speed_up_thr)
- //
- //javadoc: calcOpticalFlowSF(from, to, flow, layers, averaging_block_size, max_flow, sigma_dist, sigma_color, postprocess_window, sigma_dist_fix, sigma_color_fix, occ_thr, upscale_averaging_radius, upscale_sigma_dist, upscale_sigma_color, speed_up_thr)
- public static void calcOpticalFlowSF (Mat from, Mat to, Mat flow, int layers, int averaging_block_size, int max_flow, double sigma_dist, double sigma_color, int postprocess_window, double sigma_dist_fix, double sigma_color_fix, double occ_thr, int upscale_averaging_radius, double upscale_sigma_dist, double upscale_sigma_color, double speed_up_thr)
- {
- if (from != null) from.ThrowIfDisposed ();
- if (to != null) to.ThrowIfDisposed ();
- if (flow != null) flow.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- optflow_Optflow_calcOpticalFlowSF_10(from.nativeObj, to.nativeObj, flow.nativeObj, layers, averaging_block_size, max_flow, sigma_dist, sigma_color, postprocess_window, sigma_dist_fix, sigma_color_fix, occ_thr, upscale_averaging_radius, upscale_sigma_dist, upscale_sigma_color, speed_up_thr);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::optflow::calcOpticalFlowSF(Mat from, Mat to, Mat& flow, int layers, int averaging_block_size, int max_flow)
- //
- //javadoc: calcOpticalFlowSF(from, to, flow, layers, averaging_block_size, max_flow)
- public static void calcOpticalFlowSF (Mat from, Mat to, Mat flow, int layers, int averaging_block_size, int max_flow)
- {
- if (from != null) from.ThrowIfDisposed ();
- if (to != null) to.ThrowIfDisposed ();
- if (flow != null) flow.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- optflow_Optflow_calcOpticalFlowSF_11(from.nativeObj, to.nativeObj, flow.nativeObj, layers, averaging_block_size, max_flow);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::optflow::calcOpticalFlowSparseToDense(Mat from, Mat to, Mat& flow, int grid_step = 8, int k = 128, float sigma = 0.05f, bool use_post_proc = true, float fgs_lambda = 500.0f, float fgs_sigma = 1.5f)
- //
- //javadoc: calcOpticalFlowSparseToDense(from, to, flow, grid_step, k, sigma, use_post_proc, fgs_lambda, fgs_sigma)
- public static void calcOpticalFlowSparseToDense (Mat from, Mat to, Mat flow, int grid_step, int k, float sigma, bool use_post_proc, float fgs_lambda, float fgs_sigma)
- {
- if (from != null) from.ThrowIfDisposed ();
- if (to != null) to.ThrowIfDisposed ();
- if (flow != null) flow.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- optflow_Optflow_calcOpticalFlowSparseToDense_10(from.nativeObj, to.nativeObj, flow.nativeObj, grid_step, k, sigma, use_post_proc, fgs_lambda, fgs_sigma);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: calcOpticalFlowSparseToDense(from, to, flow, grid_step, k, sigma, use_post_proc, fgs_lambda)
- public static void calcOpticalFlowSparseToDense (Mat from, Mat to, Mat flow, int grid_step, int k, float sigma, bool use_post_proc, float fgs_lambda)
- {
- if (from != null) from.ThrowIfDisposed ();
- if (to != null) to.ThrowIfDisposed ();
- if (flow != null) flow.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- optflow_Optflow_calcOpticalFlowSparseToDense_11(from.nativeObj, to.nativeObj, flow.nativeObj, grid_step, k, sigma, use_post_proc, fgs_lambda);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: calcOpticalFlowSparseToDense(from, to, flow, grid_step, k, sigma, use_post_proc)
- public static void calcOpticalFlowSparseToDense (Mat from, Mat to, Mat flow, int grid_step, int k, float sigma, bool use_post_proc)
- {
- if (from != null) from.ThrowIfDisposed ();
- if (to != null) to.ThrowIfDisposed ();
- if (flow != null) flow.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- optflow_Optflow_calcOpticalFlowSparseToDense_12(from.nativeObj, to.nativeObj, flow.nativeObj, grid_step, k, sigma, use_post_proc);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: calcOpticalFlowSparseToDense(from, to, flow, grid_step, k, sigma)
- public static void calcOpticalFlowSparseToDense (Mat from, Mat to, Mat flow, int grid_step, int k, float sigma)
- {
- if (from != null) from.ThrowIfDisposed ();
- if (to != null) to.ThrowIfDisposed ();
- if (flow != null) flow.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- optflow_Optflow_calcOpticalFlowSparseToDense_13(from.nativeObj, to.nativeObj, flow.nativeObj, grid_step, k, sigma);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: calcOpticalFlowSparseToDense(from, to, flow, grid_step, k)
- public static void calcOpticalFlowSparseToDense (Mat from, Mat to, Mat flow, int grid_step, int k)
- {
- if (from != null) from.ThrowIfDisposed ();
- if (to != null) to.ThrowIfDisposed ();
- if (flow != null) flow.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- optflow_Optflow_calcOpticalFlowSparseToDense_14(from.nativeObj, to.nativeObj, flow.nativeObj, grid_step, k);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: calcOpticalFlowSparseToDense(from, to, flow, grid_step)
- public static void calcOpticalFlowSparseToDense (Mat from, Mat to, Mat flow, int grid_step)
- {
- if (from != null) from.ThrowIfDisposed ();
- if (to != null) to.ThrowIfDisposed ();
- if (flow != null) flow.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- optflow_Optflow_calcOpticalFlowSparseToDense_15(from.nativeObj, to.nativeObj, flow.nativeObj, grid_step);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: calcOpticalFlowSparseToDense(from, to, flow)
- public static void calcOpticalFlowSparseToDense (Mat from, Mat to, Mat flow)
- {
- if (from != null) from.ThrowIfDisposed ();
- if (to != null) to.ThrowIfDisposed ();
- if (flow != null) flow.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- optflow_Optflow_calcOpticalFlowSparseToDense_16(from.nativeObj, to.nativeObj, flow.nativeObj);
-
- return;
- #else
- return;
- #endif
- }
- #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
- const string LIBNAME = "__Internal";
- #else
- const string LIBNAME = "opencvforunity";
- #endif
- // C++: Ptr_DenseOpticalFlow cv::optflow::createOptFlow_DeepFlow()
- [DllImport (LIBNAME)]
- private static extern IntPtr optflow_Optflow_createOptFlow_1DeepFlow_10 ();
- // C++: Ptr_DenseOpticalFlow cv::optflow::createOptFlow_Farneback()
- [DllImport (LIBNAME)]
- private static extern IntPtr optflow_Optflow_createOptFlow_1Farneback_10 ();
- // C++: Ptr_DenseOpticalFlow cv::optflow::createOptFlow_PCAFlow()
- [DllImport (LIBNAME)]
- private static extern IntPtr optflow_Optflow_createOptFlow_1PCAFlow_10 ();
- // C++: Ptr_DenseOpticalFlow cv::optflow::createOptFlow_SimpleFlow()
- [DllImport (LIBNAME)]
- private static extern IntPtr optflow_Optflow_createOptFlow_1SimpleFlow_10 ();
- // C++: Ptr_DenseOpticalFlow cv::optflow::createOptFlow_SparseToDense()
- [DllImport (LIBNAME)]
- private static extern IntPtr optflow_Optflow_createOptFlow_1SparseToDense_10 ();
- // C++: Ptr_DualTVL1OpticalFlow cv::optflow::createOptFlow_DualTVL1()
- [DllImport (LIBNAME)]
- private static extern IntPtr optflow_Optflow_createOptFlow_1DualTVL1_10 ();
- // C++: double cv::motempl::calcGlobalOrientation(Mat orientation, Mat mask, Mat mhi, double timestamp, double duration)
- [DllImport (LIBNAME)]
- private static extern double optflow_Optflow_calcGlobalOrientation_10 (IntPtr orientation_nativeObj, IntPtr mask_nativeObj, IntPtr mhi_nativeObj, double timestamp, double duration);
- // C++: void cv::motempl::calcMotionGradient(Mat mhi, Mat& mask, Mat& orientation, double delta1, double delta2, int apertureSize = 3)
- [DllImport (LIBNAME)]
- private static extern void optflow_Optflow_calcMotionGradient_10 (IntPtr mhi_nativeObj, IntPtr mask_nativeObj, IntPtr orientation_nativeObj, double delta1, double delta2, int apertureSize);
- [DllImport (LIBNAME)]
- private static extern void optflow_Optflow_calcMotionGradient_11 (IntPtr mhi_nativeObj, IntPtr mask_nativeObj, IntPtr orientation_nativeObj, double delta1, double delta2);
- // C++: void cv::motempl::segmentMotion(Mat mhi, Mat& segmask, vector_Rect& boundingRects, double timestamp, double segThresh)
- [DllImport (LIBNAME)]
- private static extern void optflow_Optflow_segmentMotion_10 (IntPtr mhi_nativeObj, IntPtr segmask_nativeObj, IntPtr boundingRects_mat_nativeObj, double timestamp, double segThresh);
- // C++: void cv::motempl::updateMotionHistory(Mat silhouette, Mat& mhi, double timestamp, double duration)
- [DllImport (LIBNAME)]
- private static extern void optflow_Optflow_updateMotionHistory_10 (IntPtr silhouette_nativeObj, IntPtr mhi_nativeObj, double timestamp, double duration);
- // C++: void cv::optflow::calcOpticalFlowSF(Mat from, Mat to, Mat& flow, int layers, int averaging_block_size, int max_flow, double sigma_dist, double sigma_color, int postprocess_window, double sigma_dist_fix, double sigma_color_fix, double occ_thr, int upscale_averaging_radius, double upscale_sigma_dist, double upscale_sigma_color, double speed_up_thr)
- [DllImport (LIBNAME)]
- private static extern void optflow_Optflow_calcOpticalFlowSF_10 (IntPtr from_nativeObj, IntPtr to_nativeObj, IntPtr flow_nativeObj, int layers, int averaging_block_size, int max_flow, double sigma_dist, double sigma_color, int postprocess_window, double sigma_dist_fix, double sigma_color_fix, double occ_thr, int upscale_averaging_radius, double upscale_sigma_dist, double upscale_sigma_color, double speed_up_thr);
- // C++: void cv::optflow::calcOpticalFlowSF(Mat from, Mat to, Mat& flow, int layers, int averaging_block_size, int max_flow)
- [DllImport (LIBNAME)]
- private static extern void optflow_Optflow_calcOpticalFlowSF_11 (IntPtr from_nativeObj, IntPtr to_nativeObj, IntPtr flow_nativeObj, int layers, int averaging_block_size, int max_flow);
- // C++: void cv::optflow::calcOpticalFlowSparseToDense(Mat from, Mat to, Mat& flow, int grid_step = 8, int k = 128, float sigma = 0.05f, bool use_post_proc = true, float fgs_lambda = 500.0f, float fgs_sigma = 1.5f)
- [DllImport (LIBNAME)]
- private static extern void optflow_Optflow_calcOpticalFlowSparseToDense_10 (IntPtr from_nativeObj, IntPtr to_nativeObj, IntPtr flow_nativeObj, int grid_step, int k, float sigma, bool use_post_proc, float fgs_lambda, float fgs_sigma);
- [DllImport (LIBNAME)]
- private static extern void optflow_Optflow_calcOpticalFlowSparseToDense_11 (IntPtr from_nativeObj, IntPtr to_nativeObj, IntPtr flow_nativeObj, int grid_step, int k, float sigma, bool use_post_proc, float fgs_lambda);
- [DllImport (LIBNAME)]
- private static extern void optflow_Optflow_calcOpticalFlowSparseToDense_12 (IntPtr from_nativeObj, IntPtr to_nativeObj, IntPtr flow_nativeObj, int grid_step, int k, float sigma, bool use_post_proc);
- [DllImport (LIBNAME)]
- private static extern void optflow_Optflow_calcOpticalFlowSparseToDense_13 (IntPtr from_nativeObj, IntPtr to_nativeObj, IntPtr flow_nativeObj, int grid_step, int k, float sigma);
- [DllImport (LIBNAME)]
- private static extern void optflow_Optflow_calcOpticalFlowSparseToDense_14 (IntPtr from_nativeObj, IntPtr to_nativeObj, IntPtr flow_nativeObj, int grid_step, int k);
- [DllImport (LIBNAME)]
- private static extern void optflow_Optflow_calcOpticalFlowSparseToDense_15 (IntPtr from_nativeObj, IntPtr to_nativeObj, IntPtr flow_nativeObj, int grid_step);
- [DllImport (LIBNAME)]
- private static extern void optflow_Optflow_calcOpticalFlowSparseToDense_16 (IntPtr from_nativeObj, IntPtr to_nativeObj, IntPtr flow_nativeObj);
- }
- }
|