12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
-
- 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_EDITOR)
- 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_EDITOR)
- 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_EDITOR)
- bgsegm_SyntheticSequenceGenerator_getNextFrame_10(nativeObj, frame.nativeObj, gtMask.nativeObj);
- return;
- #else
- return;
- #endif
- }
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- const string LIBNAME = "opencvforunity";
- // 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);
- #endif
- }
- }
|