123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
-
- using OpenCVForUnity.CoreModule;
- using OpenCVForUnity.UtilsModule;
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- namespace OpenCVForUnity.PhotoModule {
- // C++: class CalibrateDebevec
- //javadoc: CalibrateDebevec
- public class CalibrateDebevec : CalibrateCRF {
- protected override void Dispose(bool disposing) {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- try {
- if (disposing) {
- }
- if (IsEnabledDispose) {
- if (nativeObj != IntPtr.Zero)
- photo_CalibrateDebevec_delete(nativeObj);
- nativeObj = IntPtr.Zero;
- }
- } finally {
- base.Dispose(disposing);
- }
- #else
- return;
- #endif
- }
- protected internal CalibrateDebevec(IntPtr addr) : base(addr) { }
- // internal usage only
- public static new CalibrateDebevec __fromPtr__(IntPtr addr) { return new CalibrateDebevec(addr); }
- //
- // C++: bool cv::CalibrateDebevec::getRandom()
- //
- //javadoc: CalibrateDebevec::getRandom()
- public bool getRandom() {
- ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- bool retVal = photo_CalibrateDebevec_getRandom_10(nativeObj);
- return retVal;
- #else
- return false;
- #endif
- }
- //
- // C++: float cv::CalibrateDebevec::getLambda()
- //
- //javadoc: CalibrateDebevec::getLambda()
- public float getLambda() {
- ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- float retVal = photo_CalibrateDebevec_getLambda_10(nativeObj);
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: int cv::CalibrateDebevec::getSamples()
- //
- //javadoc: CalibrateDebevec::getSamples()
- public int getSamples() {
- ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- int retVal = photo_CalibrateDebevec_getSamples_10(nativeObj);
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: void cv::CalibrateDebevec::setLambda(float lambda)
- //
- //javadoc: CalibrateDebevec::setLambda(lambda)
- public void setLambda(float lambda) {
- ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- photo_CalibrateDebevec_setLambda_10(nativeObj, lambda);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::CalibrateDebevec::setRandom(bool random)
- //
- //javadoc: CalibrateDebevec::setRandom(random)
- public void setRandom(bool random) {
- ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- photo_CalibrateDebevec_setRandom_10(nativeObj, random);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::CalibrateDebevec::setSamples(int samples)
- //
- //javadoc: CalibrateDebevec::setSamples(samples)
- public void setSamples(int samples) {
- ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- photo_CalibrateDebevec_setSamples_10(nativeObj, samples);
- return;
- #else
- return;
- #endif
- }
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- const string LIBNAME = "opencvforunity";
- // C++: bool cv::CalibrateDebevec::getRandom()
- [DllImport(LIBNAME)]
- private static extern bool photo_CalibrateDebevec_getRandom_10(IntPtr nativeObj);
- // C++: float cv::CalibrateDebevec::getLambda()
- [DllImport(LIBNAME)]
- private static extern float photo_CalibrateDebevec_getLambda_10(IntPtr nativeObj);
- // C++: int cv::CalibrateDebevec::getSamples()
- [DllImport(LIBNAME)]
- private static extern int photo_CalibrateDebevec_getSamples_10(IntPtr nativeObj);
- // C++: void cv::CalibrateDebevec::setLambda(float lambda)
- [DllImport(LIBNAME)]
- private static extern void photo_CalibrateDebevec_setLambda_10(IntPtr nativeObj, float lambda);
- // C++: void cv::CalibrateDebevec::setRandom(bool random)
- [DllImport(LIBNAME)]
- private static extern void photo_CalibrateDebevec_setRandom_10(IntPtr nativeObj, bool random);
- // C++: void cv::CalibrateDebevec::setSamples(int samples)
- [DllImport(LIBNAME)]
- private static extern void photo_CalibrateDebevec_setSamples_10(IntPtr nativeObj, int samples);
- // native support for java finalize()
- [DllImport(LIBNAME)]
- private static extern void photo_CalibrateDebevec_delete(IntPtr nativeObj);
- #endif
- }
- }
|