123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
-
- using OpenCVForUnity.CoreModule;
- using OpenCVForUnity.UtilsModule;
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- namespace OpenCVForUnity.BgsegmModule
- {
- // C++: class SyntheticSequenceGenerator
- //javadoc: SyntheticSequenceGenerator
- public class SyntheticSequenceGenerator : Algorithm
- {
- protected override void Dispose (bool disposing)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
- try {
- if (disposing) {
- }
- if (IsEnabledDispose) {
- if (nativeObj != IntPtr.Zero)
- bgsegm_SyntheticSequenceGenerator_delete(nativeObj);
- nativeObj = IntPtr.Zero;
- }
- } finally {
- base.Dispose (disposing);
- }
- #else
- return;
- #endif
- }
- protected internal SyntheticSequenceGenerator (IntPtr addr) : base (addr) { }
- // internal usage only
- public static new SyntheticSequenceGenerator __fromPtr__ (IntPtr addr) { return new SyntheticSequenceGenerator (addr); }
- //
- // C++: cv::bgsegm::SyntheticSequenceGenerator::SyntheticSequenceGenerator(Mat background, Mat _object, double amplitude, double wavelength, double wavespeed, double objspeed)
- //
- //javadoc: SyntheticSequenceGenerator::SyntheticSequenceGenerator(background, _object, amplitude, wavelength, wavespeed, objspeed)
- public SyntheticSequenceGenerator (Mat background, Mat _object, double amplitude, double wavelength, double wavespeed, double objspeed) :
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- base( bgsegm_SyntheticSequenceGenerator_SyntheticSequenceGenerator_10(background.nativeObj, _object.nativeObj, amplitude, wavelength, wavespeed, objspeed) )
-
- #else
- base (IntPtr.Zero)
- #endif
- {
- return;
- }
- //
- // C++: void cv::bgsegm::SyntheticSequenceGenerator::getNextFrame(Mat& frame, Mat& gtMask)
- //
- //javadoc: SyntheticSequenceGenerator::getNextFrame(frame, gtMask)
- public void getNextFrame (Mat frame, Mat gtMask)
- {
- ThrowIfDisposed ();
- if (frame != null) frame.ThrowIfDisposed ();
- if (gtMask != null) gtMask.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bgsegm_SyntheticSequenceGenerator_getNextFrame_10(nativeObj, frame.nativeObj, gtMask.nativeObj);
-
- return;
- #else
- return;
- #endif
- }
- #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
- const string LIBNAME = "__Internal";
- #else
- const string LIBNAME = "opencvforunity";
- #endif
- // C++: cv::bgsegm::SyntheticSequenceGenerator::SyntheticSequenceGenerator(Mat background, Mat _object, double amplitude, double wavelength, double wavespeed, double objspeed)
- [DllImport (LIBNAME)]
- private static extern IntPtr bgsegm_SyntheticSequenceGenerator_SyntheticSequenceGenerator_10 (IntPtr background_nativeObj, IntPtr _object_nativeObj, double amplitude, double wavelength, double wavespeed, double objspeed);
- // C++: void cv::bgsegm::SyntheticSequenceGenerator::getNextFrame(Mat& frame, Mat& gtMask)
- [DllImport (LIBNAME)]
- private static extern void bgsegm_SyntheticSequenceGenerator_getNextFrame_10 (IntPtr nativeObj, IntPtr frame_nativeObj, IntPtr gtMask_nativeObj);
- // native support for java finalize()
- [DllImport (LIBNAME)]
- private static extern void bgsegm_SyntheticSequenceGenerator_delete (IntPtr nativeObj);
- }
- }
|