123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586 |
- using OpenCVForUnity.CoreModule;
- using OpenCVForUnity.UtilsModule;
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- namespace OpenCVForUnity.TrackingModule
- {
- // C++: class Params
- public class TrackerKCF_Params : DisposableOpenCVObject
- {
- protected override void Dispose(bool disposing)
- {
- try
- {
- if (disposing)
- {
- }
- if (IsEnabledDispose)
- {
- if (nativeObj != IntPtr.Zero)
- tracking_TrackerKCF_1Params_delete(nativeObj);
- nativeObj = IntPtr.Zero;
- }
- }
- finally
- {
- base.Dispose(disposing);
- }
- }
- protected internal TrackerKCF_Params(IntPtr addr) : base(addr) { }
- public IntPtr getNativeObjAddr() { return nativeObj; }
- // internal usage only
- public static TrackerKCF_Params __fromPtr__(IntPtr addr) { return new TrackerKCF_Params(addr); }
- //
- // C++: cv::TrackerKCF::Params::Params()
- //
- public TrackerKCF_Params()
- {
- nativeObj = DisposableObject.ThrowIfNullIntPtr(tracking_TrackerKCF_1Params_TrackerKCF_1Params_10());
- }
- //
- // C++: float TrackerKCF_Params::detect_thresh
- //
- public float get_detect_thresh()
- {
- ThrowIfDisposed();
- return tracking_TrackerKCF_1Params_get_1detect_1thresh_10(nativeObj);
- }
- //
- // C++: void TrackerKCF_Params::detect_thresh
- //
- public void set_detect_thresh(float detect_thresh)
- {
- ThrowIfDisposed();
- tracking_TrackerKCF_1Params_set_1detect_1thresh_10(nativeObj, detect_thresh);
- }
- //
- // C++: float TrackerKCF_Params::sigma
- //
- public float get_sigma()
- {
- ThrowIfDisposed();
- return tracking_TrackerKCF_1Params_get_1sigma_10(nativeObj);
- }
- //
- // C++: void TrackerKCF_Params::sigma
- //
- public void set_sigma(float sigma)
- {
- ThrowIfDisposed();
- tracking_TrackerKCF_1Params_set_1sigma_10(nativeObj, sigma);
- }
- //
- // C++: float TrackerKCF_Params::lambda
- //
- public float get_lambda()
- {
- ThrowIfDisposed();
- return tracking_TrackerKCF_1Params_get_1lambda_10(nativeObj);
- }
- //
- // C++: void TrackerKCF_Params::lambda
- //
- public void set_lambda(float lambda)
- {
- ThrowIfDisposed();
- tracking_TrackerKCF_1Params_set_1lambda_10(nativeObj, lambda);
- }
- //
- // C++: float TrackerKCF_Params::interp_factor
- //
- public float get_interp_factor()
- {
- ThrowIfDisposed();
- return tracking_TrackerKCF_1Params_get_1interp_1factor_10(nativeObj);
- }
- //
- // C++: void TrackerKCF_Params::interp_factor
- //
- public void set_interp_factor(float interp_factor)
- {
- ThrowIfDisposed();
- tracking_TrackerKCF_1Params_set_1interp_1factor_10(nativeObj, interp_factor);
- }
- //
- // C++: float TrackerKCF_Params::output_sigma_factor
- //
- public float get_output_sigma_factor()
- {
- ThrowIfDisposed();
- return tracking_TrackerKCF_1Params_get_1output_1sigma_1factor_10(nativeObj);
- }
- //
- // C++: void TrackerKCF_Params::output_sigma_factor
- //
- public void set_output_sigma_factor(float output_sigma_factor)
- {
- ThrowIfDisposed();
- tracking_TrackerKCF_1Params_set_1output_1sigma_1factor_10(nativeObj, output_sigma_factor);
- }
- //
- // C++: float TrackerKCF_Params::pca_learning_rate
- //
- public float get_pca_learning_rate()
- {
- ThrowIfDisposed();
- return tracking_TrackerKCF_1Params_get_1pca_1learning_1rate_10(nativeObj);
- }
- //
- // C++: void TrackerKCF_Params::pca_learning_rate
- //
- public void set_pca_learning_rate(float pca_learning_rate)
- {
- ThrowIfDisposed();
- tracking_TrackerKCF_1Params_set_1pca_1learning_1rate_10(nativeObj, pca_learning_rate);
- }
- //
- // C++: bool TrackerKCF_Params::resize
- //
- public bool get_resize()
- {
- ThrowIfDisposed();
- return tracking_TrackerKCF_1Params_get_1resize_10(nativeObj);
- }
- //
- // C++: void TrackerKCF_Params::resize
- //
- public void set_resize(bool resize)
- {
- ThrowIfDisposed();
- tracking_TrackerKCF_1Params_set_1resize_10(nativeObj, resize);
- }
- //
- // C++: bool TrackerKCF_Params::split_coeff
- //
- public bool get_split_coeff()
- {
- ThrowIfDisposed();
- return tracking_TrackerKCF_1Params_get_1split_1coeff_10(nativeObj);
- }
- //
- // C++: void TrackerKCF_Params::split_coeff
- //
- public void set_split_coeff(bool split_coeff)
- {
- ThrowIfDisposed();
- tracking_TrackerKCF_1Params_set_1split_1coeff_10(nativeObj, split_coeff);
- }
- //
- // C++: bool TrackerKCF_Params::wrap_kernel
- //
- public bool get_wrap_kernel()
- {
- ThrowIfDisposed();
- return tracking_TrackerKCF_1Params_get_1wrap_1kernel_10(nativeObj);
- }
- //
- // C++: void TrackerKCF_Params::wrap_kernel
- //
- public void set_wrap_kernel(bool wrap_kernel)
- {
- ThrowIfDisposed();
- tracking_TrackerKCF_1Params_set_1wrap_1kernel_10(nativeObj, wrap_kernel);
- }
- //
- // C++: bool TrackerKCF_Params::compress_feature
- //
- public bool get_compress_feature()
- {
- ThrowIfDisposed();
- return tracking_TrackerKCF_1Params_get_1compress_1feature_10(nativeObj);
- }
- //
- // C++: void TrackerKCF_Params::compress_feature
- //
- public void set_compress_feature(bool compress_feature)
- {
- ThrowIfDisposed();
- tracking_TrackerKCF_1Params_set_1compress_1feature_10(nativeObj, compress_feature);
- }
- //
- // C++: int TrackerKCF_Params::max_patch_size
- //
- public int get_max_patch_size()
- {
- ThrowIfDisposed();
- return tracking_TrackerKCF_1Params_get_1max_1patch_1size_10(nativeObj);
- }
- //
- // C++: void TrackerKCF_Params::max_patch_size
- //
- public void set_max_patch_size(int max_patch_size)
- {
- ThrowIfDisposed();
- tracking_TrackerKCF_1Params_set_1max_1patch_1size_10(nativeObj, max_patch_size);
- }
- //
- // C++: int TrackerKCF_Params::compressed_size
- //
- public int get_compressed_size()
- {
- ThrowIfDisposed();
- return tracking_TrackerKCF_1Params_get_1compressed_1size_10(nativeObj);
- }
- //
- // C++: void TrackerKCF_Params::compressed_size
- //
- public void set_compressed_size(int compressed_size)
- {
- ThrowIfDisposed();
- tracking_TrackerKCF_1Params_set_1compressed_1size_10(nativeObj, compressed_size);
- }
- //
- // C++: int TrackerKCF_Params::desc_pca
- //
- public int get_desc_pca()
- {
- ThrowIfDisposed();
- return tracking_TrackerKCF_1Params_get_1desc_1pca_10(nativeObj);
- }
- //
- // C++: void TrackerKCF_Params::desc_pca
- //
- public void set_desc_pca(int desc_pca)
- {
- ThrowIfDisposed();
- tracking_TrackerKCF_1Params_set_1desc_1pca_10(nativeObj, desc_pca);
- }
- //
- // C++: int TrackerKCF_Params::desc_npca
- //
- public int get_desc_npca()
- {
- ThrowIfDisposed();
- return tracking_TrackerKCF_1Params_get_1desc_1npca_10(nativeObj);
- }
- //
- // C++: void TrackerKCF_Params::desc_npca
- //
- public void set_desc_npca(int desc_npca)
- {
- ThrowIfDisposed();
- tracking_TrackerKCF_1Params_set_1desc_1npca_10(nativeObj, desc_npca);
- }
- #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
- const string LIBNAME = "__Internal";
- #else
- const string LIBNAME = "opencvforunity";
- #endif
- // C++: cv::TrackerKCF::Params::Params()
- [DllImport(LIBNAME)]
- private static extern IntPtr tracking_TrackerKCF_1Params_TrackerKCF_1Params_10();
- // C++: float TrackerKCF_Params::detect_thresh
- [DllImport(LIBNAME)]
- private static extern float tracking_TrackerKCF_1Params_get_1detect_1thresh_10(IntPtr nativeObj);
- // C++: void TrackerKCF_Params::detect_thresh
- [DllImport(LIBNAME)]
- private static extern void tracking_TrackerKCF_1Params_set_1detect_1thresh_10(IntPtr nativeObj, float detect_thresh);
- // C++: float TrackerKCF_Params::sigma
- [DllImport(LIBNAME)]
- private static extern float tracking_TrackerKCF_1Params_get_1sigma_10(IntPtr nativeObj);
- // C++: void TrackerKCF_Params::sigma
- [DllImport(LIBNAME)]
- private static extern void tracking_TrackerKCF_1Params_set_1sigma_10(IntPtr nativeObj, float sigma);
- // C++: float TrackerKCF_Params::lambda
- [DllImport(LIBNAME)]
- private static extern float tracking_TrackerKCF_1Params_get_1lambda_10(IntPtr nativeObj);
- // C++: void TrackerKCF_Params::lambda
- [DllImport(LIBNAME)]
- private static extern void tracking_TrackerKCF_1Params_set_1lambda_10(IntPtr nativeObj, float lambda);
- // C++: float TrackerKCF_Params::interp_factor
- [DllImport(LIBNAME)]
- private static extern float tracking_TrackerKCF_1Params_get_1interp_1factor_10(IntPtr nativeObj);
- // C++: void TrackerKCF_Params::interp_factor
- [DllImport(LIBNAME)]
- private static extern void tracking_TrackerKCF_1Params_set_1interp_1factor_10(IntPtr nativeObj, float interp_factor);
- // C++: float TrackerKCF_Params::output_sigma_factor
- [DllImport(LIBNAME)]
- private static extern float tracking_TrackerKCF_1Params_get_1output_1sigma_1factor_10(IntPtr nativeObj);
- // C++: void TrackerKCF_Params::output_sigma_factor
- [DllImport(LIBNAME)]
- private static extern void tracking_TrackerKCF_1Params_set_1output_1sigma_1factor_10(IntPtr nativeObj, float output_sigma_factor);
- // C++: float TrackerKCF_Params::pca_learning_rate
- [DllImport(LIBNAME)]
- private static extern float tracking_TrackerKCF_1Params_get_1pca_1learning_1rate_10(IntPtr nativeObj);
- // C++: void TrackerKCF_Params::pca_learning_rate
- [DllImport(LIBNAME)]
- private static extern void tracking_TrackerKCF_1Params_set_1pca_1learning_1rate_10(IntPtr nativeObj, float pca_learning_rate);
- // C++: bool TrackerKCF_Params::resize
- [DllImport(LIBNAME)]
- [return: MarshalAs(UnmanagedType.U1)]
- private static extern bool tracking_TrackerKCF_1Params_get_1resize_10(IntPtr nativeObj);
- // C++: void TrackerKCF_Params::resize
- [DllImport(LIBNAME)]
- private static extern void tracking_TrackerKCF_1Params_set_1resize_10(IntPtr nativeObj, [MarshalAs(UnmanagedType.U1)] bool resize);
- // C++: bool TrackerKCF_Params::split_coeff
- [DllImport(LIBNAME)]
- [return: MarshalAs(UnmanagedType.U1)]
- private static extern bool tracking_TrackerKCF_1Params_get_1split_1coeff_10(IntPtr nativeObj);
- // C++: void TrackerKCF_Params::split_coeff
- [DllImport(LIBNAME)]
- private static extern void tracking_TrackerKCF_1Params_set_1split_1coeff_10(IntPtr nativeObj, [MarshalAs(UnmanagedType.U1)] bool split_coeff);
- // C++: bool TrackerKCF_Params::wrap_kernel
- [DllImport(LIBNAME)]
- [return: MarshalAs(UnmanagedType.U1)]
- private static extern bool tracking_TrackerKCF_1Params_get_1wrap_1kernel_10(IntPtr nativeObj);
- // C++: void TrackerKCF_Params::wrap_kernel
- [DllImport(LIBNAME)]
- private static extern void tracking_TrackerKCF_1Params_set_1wrap_1kernel_10(IntPtr nativeObj, [MarshalAs(UnmanagedType.U1)] bool wrap_kernel);
- // C++: bool TrackerKCF_Params::compress_feature
- [DllImport(LIBNAME)]
- [return: MarshalAs(UnmanagedType.U1)]
- private static extern bool tracking_TrackerKCF_1Params_get_1compress_1feature_10(IntPtr nativeObj);
- // C++: void TrackerKCF_Params::compress_feature
- [DllImport(LIBNAME)]
- private static extern void tracking_TrackerKCF_1Params_set_1compress_1feature_10(IntPtr nativeObj, [MarshalAs(UnmanagedType.U1)] bool compress_feature);
- // C++: int TrackerKCF_Params::max_patch_size
- [DllImport(LIBNAME)]
- private static extern int tracking_TrackerKCF_1Params_get_1max_1patch_1size_10(IntPtr nativeObj);
- // C++: void TrackerKCF_Params::max_patch_size
- [DllImport(LIBNAME)]
- private static extern void tracking_TrackerKCF_1Params_set_1max_1patch_1size_10(IntPtr nativeObj, int max_patch_size);
- // C++: int TrackerKCF_Params::compressed_size
- [DllImport(LIBNAME)]
- private static extern int tracking_TrackerKCF_1Params_get_1compressed_1size_10(IntPtr nativeObj);
- // C++: void TrackerKCF_Params::compressed_size
- [DllImport(LIBNAME)]
- private static extern void tracking_TrackerKCF_1Params_set_1compressed_1size_10(IntPtr nativeObj, int compressed_size);
- // C++: int TrackerKCF_Params::desc_pca
- [DllImport(LIBNAME)]
- private static extern int tracking_TrackerKCF_1Params_get_1desc_1pca_10(IntPtr nativeObj);
- // C++: void TrackerKCF_Params::desc_pca
- [DllImport(LIBNAME)]
- private static extern void tracking_TrackerKCF_1Params_set_1desc_1pca_10(IntPtr nativeObj, int desc_pca);
- // C++: int TrackerKCF_Params::desc_npca
- [DllImport(LIBNAME)]
- private static extern int tracking_TrackerKCF_1Params_get_1desc_1npca_10(IntPtr nativeObj);
- // C++: void TrackerKCF_Params::desc_npca
- [DllImport(LIBNAME)]
- private static extern void tracking_TrackerKCF_1Params_set_1desc_1npca_10(IntPtr nativeObj, int desc_npca);
- // native support for java finalize()
- [DllImport(LIBNAME)]
- private static extern void tracking_TrackerKCF_1Params_delete(IntPtr nativeObj);
- }
- }
|