123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
-
- using OpenCVForUnity.CoreModule;
- using OpenCVForUnity.UtilsModule;
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- namespace OpenCVForUnity.PhotoModule {
- // C++: class MergeRobertson
- //javadoc: MergeRobertson
- public class MergeRobertson : MergeExposures {
- protected override void Dispose(bool disposing) {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- try {
- if (disposing) {
- }
- if (IsEnabledDispose) {
- if (nativeObj != IntPtr.Zero)
- photo_MergeRobertson_delete(nativeObj);
- nativeObj = IntPtr.Zero;
- }
- } finally {
- base.Dispose(disposing);
- }
- #else
- return;
- #endif
- }
- protected internal MergeRobertson(IntPtr addr)
- : base(addr) {
- }
- // internal usage only
- public static new MergeRobertson __fromPtr__(IntPtr addr) {
- return new MergeRobertson(addr);
- }
- //
- // C++: void cv::MergeRobertson::process(vector_Mat src, Mat& dst, Mat times, Mat response)
- //
- //javadoc: MergeRobertson::process(src, dst, times, response)
- public override void process(List<Mat> src, Mat dst, Mat times, Mat response) {
- ThrowIfDisposed();
- if (dst != null)
- dst.ThrowIfDisposed();
- if (times != null)
- times.ThrowIfDisposed();
- if (response != null)
- response.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat src_mat = Converters.vector_Mat_to_Mat(src);
- photo_MergeRobertson_process_10(nativeObj, src_mat.nativeObj, dst.nativeObj, times.nativeObj, response.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::MergeRobertson::process(vector_Mat src, Mat& dst, Mat times)
- //
- //javadoc: MergeRobertson::process(src, dst, times)
- public void process(List<Mat> src, Mat dst, Mat times) {
- ThrowIfDisposed();
- if (dst != null)
- dst.ThrowIfDisposed();
- if (times != null)
- times.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat src_mat = Converters.vector_Mat_to_Mat(src);
- photo_MergeRobertson_process_11(nativeObj, src_mat.nativeObj, dst.nativeObj, times.nativeObj);
- return;
- #else
- return;
- #endif
- }
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- const string LIBNAME = "opencvforunity";
- // C++: void cv::MergeRobertson::process(vector_Mat src, Mat& dst, Mat times, Mat response)
- [DllImport(LIBNAME)]
- private static extern void photo_MergeRobertson_process_10(IntPtr nativeObj, IntPtr src_mat_nativeObj, IntPtr dst_nativeObj, IntPtr times_nativeObj, IntPtr response_nativeObj);
- // C++: void cv::MergeRobertson::process(vector_Mat src, Mat& dst, Mat times)
- [DllImport(LIBNAME)]
- private static extern void photo_MergeRobertson_process_11(IntPtr nativeObj, IntPtr src_mat_nativeObj, IntPtr dst_nativeObj, IntPtr times_nativeObj);
- // native support for java finalize()
- [DllImport(LIBNAME)]
- private static extern void photo_MergeRobertson_delete(IntPtr nativeObj);
- #endif
- }
- }
|