123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158 |
-
- using OpenCVForUnity.CoreModule;
- using OpenCVForUnity.UtilsModule;
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- namespace OpenCVForUnity.ObjdetectModule
- {
- // C++: class HOGDescriptor
- //javadoc: HOGDescriptor
- public class HOGDescriptor : DisposableOpenCVObject
- {
- 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)
- objdetect_HOGDescriptor_delete(nativeObj);
- nativeObj = IntPtr.Zero;
- }
- } finally {
- base.Dispose (disposing);
- }
- #else
- return;
- #endif
- }
- protected internal HOGDescriptor (IntPtr addr) : base (addr) { }
- public IntPtr getNativeObjAddr () { return nativeObj; }
- // internal usage only
- public static HOGDescriptor __fromPtr__ (IntPtr addr) { return new HOGDescriptor (addr); }
- // C++: enum HistogramNormType
- public const int L2Hys = 0;
- // C++: enum DescriptorStorageFormat
- public const int DESCR_FORMAT_COL_BY_COL = 0;
- public const int DESCR_FORMAT_ROW_BY_ROW = 1;
- // C++: enum <unnamed>
- public const int DEFAULT_NLEVELS = 64;
- //
- // C++: cv::HOGDescriptor::HOGDescriptor(Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins, int _derivAperture = 1, double _winSigma = -1, HOGDescriptor_HistogramNormType _histogramNormType = HOGDescriptor::L2Hys, double _L2HysThreshold = 0.2, bool _gammaCorrection = false, int _nlevels = HOGDescriptor::DEFAULT_NLEVELS, bool _signedGradient = false)
- //
- //javadoc: HOGDescriptor::HOGDescriptor(_winSize, _blockSize, _blockStride, _cellSize, _nbins, _derivAperture, _winSigma, _histogramNormType, _L2HysThreshold, _gammaCorrection, _nlevels, _signedGradient)
- public HOGDescriptor (Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins, int _derivAperture, double _winSigma, int _histogramNormType, double _L2HysThreshold, bool _gammaCorrection, int _nlevels, bool _signedGradient)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- nativeObj = objdetect_HOGDescriptor_HOGDescriptor_10(_winSize.width, _winSize.height, _blockSize.width, _blockSize.height, _blockStride.width, _blockStride.height, _cellSize.width, _cellSize.height, _nbins, _derivAperture, _winSigma, _histogramNormType, _L2HysThreshold, _gammaCorrection, _nlevels, _signedGradient);
-
- return;
- #else
- return null;
- #endif
- }
- //javadoc: HOGDescriptor::HOGDescriptor(_winSize, _blockSize, _blockStride, _cellSize, _nbins, _derivAperture, _winSigma, _histogramNormType, _L2HysThreshold, _gammaCorrection, _nlevels)
- public HOGDescriptor (Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins, int _derivAperture, double _winSigma, int _histogramNormType, double _L2HysThreshold, bool _gammaCorrection, int _nlevels)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- nativeObj = objdetect_HOGDescriptor_HOGDescriptor_11(_winSize.width, _winSize.height, _blockSize.width, _blockSize.height, _blockStride.width, _blockStride.height, _cellSize.width, _cellSize.height, _nbins, _derivAperture, _winSigma, _histogramNormType, _L2HysThreshold, _gammaCorrection, _nlevels);
-
- return;
- #else
- return null;
- #endif
- }
- //javadoc: HOGDescriptor::HOGDescriptor(_winSize, _blockSize, _blockStride, _cellSize, _nbins, _derivAperture, _winSigma, _histogramNormType, _L2HysThreshold, _gammaCorrection)
- public HOGDescriptor (Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins, int _derivAperture, double _winSigma, int _histogramNormType, double _L2HysThreshold, bool _gammaCorrection)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- nativeObj = objdetect_HOGDescriptor_HOGDescriptor_12(_winSize.width, _winSize.height, _blockSize.width, _blockSize.height, _blockStride.width, _blockStride.height, _cellSize.width, _cellSize.height, _nbins, _derivAperture, _winSigma, _histogramNormType, _L2HysThreshold, _gammaCorrection);
-
- return;
- #else
- return null;
- #endif
- }
- //javadoc: HOGDescriptor::HOGDescriptor(_winSize, _blockSize, _blockStride, _cellSize, _nbins, _derivAperture, _winSigma, _histogramNormType, _L2HysThreshold)
- public HOGDescriptor (Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins, int _derivAperture, double _winSigma, int _histogramNormType, double _L2HysThreshold)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- nativeObj = objdetect_HOGDescriptor_HOGDescriptor_13(_winSize.width, _winSize.height, _blockSize.width, _blockSize.height, _blockStride.width, _blockStride.height, _cellSize.width, _cellSize.height, _nbins, _derivAperture, _winSigma, _histogramNormType, _L2HysThreshold);
-
- return;
- #else
- return null;
- #endif
- }
- //javadoc: HOGDescriptor::HOGDescriptor(_winSize, _blockSize, _blockStride, _cellSize, _nbins, _derivAperture, _winSigma, _histogramNormType)
- public HOGDescriptor (Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins, int _derivAperture, double _winSigma, int _histogramNormType)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- nativeObj = objdetect_HOGDescriptor_HOGDescriptor_14(_winSize.width, _winSize.height, _blockSize.width, _blockSize.height, _blockStride.width, _blockStride.height, _cellSize.width, _cellSize.height, _nbins, _derivAperture, _winSigma, _histogramNormType);
-
- return;
- #else
- return null;
- #endif
- }
- //javadoc: HOGDescriptor::HOGDescriptor(_winSize, _blockSize, _blockStride, _cellSize, _nbins, _derivAperture, _winSigma)
- public HOGDescriptor (Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins, int _derivAperture, double _winSigma)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- nativeObj = objdetect_HOGDescriptor_HOGDescriptor_15(_winSize.width, _winSize.height, _blockSize.width, _blockSize.height, _blockStride.width, _blockStride.height, _cellSize.width, _cellSize.height, _nbins, _derivAperture, _winSigma);
-
- return;
- #else
- return null;
- #endif
- }
- //javadoc: HOGDescriptor::HOGDescriptor(_winSize, _blockSize, _blockStride, _cellSize, _nbins, _derivAperture)
- public HOGDescriptor (Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins, int _derivAperture)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- nativeObj = objdetect_HOGDescriptor_HOGDescriptor_16(_winSize.width, _winSize.height, _blockSize.width, _blockSize.height, _blockStride.width, _blockStride.height, _cellSize.width, _cellSize.height, _nbins, _derivAperture);
-
- return;
- #else
- return null;
- #endif
- }
- //javadoc: HOGDescriptor::HOGDescriptor(_winSize, _blockSize, _blockStride, _cellSize, _nbins)
- public HOGDescriptor (Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- nativeObj = objdetect_HOGDescriptor_HOGDescriptor_17(_winSize.width, _winSize.height, _blockSize.width, _blockSize.height, _blockStride.width, _blockStride.height, _cellSize.width, _cellSize.height, _nbins);
-
- return;
- #else
- return null;
- #endif
- }
- //
- // C++: cv::HOGDescriptor::HOGDescriptor(String filename)
- //
- //javadoc: HOGDescriptor::HOGDescriptor(filename)
- public HOGDescriptor (string filename)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- nativeObj = objdetect_HOGDescriptor_HOGDescriptor_18(filename);
-
- return;
- #else
- return null;
- #endif
- }
- //
- // C++: cv::HOGDescriptor::HOGDescriptor()
- //
- //javadoc: HOGDescriptor::HOGDescriptor()
- public HOGDescriptor ()
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- nativeObj = objdetect_HOGDescriptor_HOGDescriptor_19();
-
- return;
- #else
- return null;
- #endif
- }
- //
- // C++: bool cv::HOGDescriptor::checkDetectorSize()
- //
- //javadoc: HOGDescriptor::checkDetectorSize()
- public bool checkDetectorSize ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bool retVal = objdetect_HOGDescriptor_checkDetectorSize_10(nativeObj);
-
- return retVal;
- #else
- return false;
- #endif
- }
- //
- // C++: bool cv::HOGDescriptor::load(String filename, String objname = String())
- //
- //javadoc: HOGDescriptor::load(filename, objname)
- public bool load (string filename, string objname)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bool retVal = objdetect_HOGDescriptor_load_10(nativeObj, filename, objname);
-
- return retVal;
- #else
- return false;
- #endif
- }
- //javadoc: HOGDescriptor::load(filename)
- public bool load (string filename)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bool retVal = objdetect_HOGDescriptor_load_11(nativeObj, filename);
-
- return retVal;
- #else
- return false;
- #endif
- }
- //
- // C++: double cv::HOGDescriptor::getWinSigma()
- //
- //javadoc: HOGDescriptor::getWinSigma()
- public double getWinSigma ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double retVal = objdetect_HOGDescriptor_getWinSigma_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: size_t cv::HOGDescriptor::getDescriptorSize()
- //
- //javadoc: HOGDescriptor::getDescriptorSize()
- public long getDescriptorSize ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- long retVal = objdetect_HOGDescriptor_getDescriptorSize_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: static vector_float cv::HOGDescriptor::getDaimlerPeopleDetector()
- //
- //javadoc: HOGDescriptor::getDaimlerPeopleDetector()
- public static MatOfFloat getDaimlerPeopleDetector ()
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- MatOfFloat retVal = MatOfFloat.fromNativeAddr(objdetect_HOGDescriptor_getDaimlerPeopleDetector_10());
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: static vector_float cv::HOGDescriptor::getDefaultPeopleDetector()
- //
- //javadoc: HOGDescriptor::getDefaultPeopleDetector()
- public static MatOfFloat getDefaultPeopleDetector ()
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- MatOfFloat retVal = MatOfFloat.fromNativeAddr(objdetect_HOGDescriptor_getDefaultPeopleDetector_10());
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: void cv::HOGDescriptor::compute(Mat img, vector_float& descriptors, Size winStride = Size(), Size padding = Size(), vector_Point locations = std::vector<Point>())
- //
- //javadoc: HOGDescriptor::compute(img, descriptors, winStride, padding, locations)
- public void compute (Mat img, MatOfFloat descriptors, Size winStride, Size padding, MatOfPoint locations)
- {
- ThrowIfDisposed ();
- if (img != null) img.ThrowIfDisposed ();
- if (descriptors != null) descriptors.ThrowIfDisposed ();
- if (locations != null) locations.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
- Mat descriptors_mat = descriptors;
- Mat locations_mat = locations;
- objdetect_HOGDescriptor_compute_10(nativeObj, img.nativeObj, descriptors_mat.nativeObj, winStride.width, winStride.height, padding.width, padding.height, locations_mat.nativeObj);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: HOGDescriptor::compute(img, descriptors, winStride, padding)
- public void compute (Mat img, MatOfFloat descriptors, Size winStride, Size padding)
- {
- ThrowIfDisposed ();
- if (img != null) img.ThrowIfDisposed ();
- if (descriptors != null) descriptors.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
- Mat descriptors_mat = descriptors;
- objdetect_HOGDescriptor_compute_11(nativeObj, img.nativeObj, descriptors_mat.nativeObj, winStride.width, winStride.height, padding.width, padding.height);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: HOGDescriptor::compute(img, descriptors, winStride)
- public void compute (Mat img, MatOfFloat descriptors, Size winStride)
- {
- ThrowIfDisposed ();
- if (img != null) img.ThrowIfDisposed ();
- if (descriptors != null) descriptors.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
- Mat descriptors_mat = descriptors;
- objdetect_HOGDescriptor_compute_12(nativeObj, img.nativeObj, descriptors_mat.nativeObj, winStride.width, winStride.height);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: HOGDescriptor::compute(img, descriptors)
- public void compute (Mat img, MatOfFloat descriptors)
- {
- ThrowIfDisposed ();
- if (img != null) img.ThrowIfDisposed ();
- if (descriptors != null) descriptors.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
- Mat descriptors_mat = descriptors;
- objdetect_HOGDescriptor_compute_13(nativeObj, img.nativeObj, descriptors_mat.nativeObj);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::HOGDescriptor::computeGradient(Mat img, Mat& grad, Mat& angleOfs, Size paddingTL = Size(), Size paddingBR = Size())
- //
- //javadoc: HOGDescriptor::computeGradient(img, grad, angleOfs, paddingTL, paddingBR)
- public void computeGradient (Mat img, Mat grad, Mat angleOfs, Size paddingTL, Size paddingBR)
- {
- ThrowIfDisposed ();
- if (img != null) img.ThrowIfDisposed ();
- if (grad != null) grad.ThrowIfDisposed ();
- if (angleOfs != null) angleOfs.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- objdetect_HOGDescriptor_computeGradient_10(nativeObj, img.nativeObj, grad.nativeObj, angleOfs.nativeObj, paddingTL.width, paddingTL.height, paddingBR.width, paddingBR.height);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: HOGDescriptor::computeGradient(img, grad, angleOfs, paddingTL)
- public void computeGradient (Mat img, Mat grad, Mat angleOfs, Size paddingTL)
- {
- ThrowIfDisposed ();
- if (img != null) img.ThrowIfDisposed ();
- if (grad != null) grad.ThrowIfDisposed ();
- if (angleOfs != null) angleOfs.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- objdetect_HOGDescriptor_computeGradient_11(nativeObj, img.nativeObj, grad.nativeObj, angleOfs.nativeObj, paddingTL.width, paddingTL.height);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: HOGDescriptor::computeGradient(img, grad, angleOfs)
- public void computeGradient (Mat img, Mat grad, Mat angleOfs)
- {
- ThrowIfDisposed ();
- if (img != null) img.ThrowIfDisposed ();
- if (grad != null) grad.ThrowIfDisposed ();
- if (angleOfs != null) angleOfs.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- objdetect_HOGDescriptor_computeGradient_12(nativeObj, img.nativeObj, grad.nativeObj, angleOfs.nativeObj);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::HOGDescriptor::detect(Mat img, vector_Point& foundLocations, vector_double& weights, double hitThreshold = 0, Size winStride = Size(), Size padding = Size(), vector_Point searchLocations = std::vector<Point>())
- //
- //javadoc: HOGDescriptor::detect(img, foundLocations, weights, hitThreshold, winStride, padding, searchLocations)
- public void detect (Mat img, MatOfPoint foundLocations, MatOfDouble weights, double hitThreshold, Size winStride, Size padding, MatOfPoint searchLocations)
- {
- ThrowIfDisposed ();
- if (img != null) img.ThrowIfDisposed ();
- if (foundLocations != null) foundLocations.ThrowIfDisposed ();
- if (weights != null) weights.ThrowIfDisposed ();
- if (searchLocations != null) searchLocations.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
- Mat foundLocations_mat = foundLocations;
- Mat weights_mat = weights;
- Mat searchLocations_mat = searchLocations;
- objdetect_HOGDescriptor_detect_10(nativeObj, img.nativeObj, foundLocations_mat.nativeObj, weights_mat.nativeObj, hitThreshold, winStride.width, winStride.height, padding.width, padding.height, searchLocations_mat.nativeObj);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: HOGDescriptor::detect(img, foundLocations, weights, hitThreshold, winStride, padding)
- public void detect (Mat img, MatOfPoint foundLocations, MatOfDouble weights, double hitThreshold, Size winStride, Size padding)
- {
- ThrowIfDisposed ();
- if (img != null) img.ThrowIfDisposed ();
- if (foundLocations != null) foundLocations.ThrowIfDisposed ();
- if (weights != null) weights.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
- Mat foundLocations_mat = foundLocations;
- Mat weights_mat = weights;
- objdetect_HOGDescriptor_detect_11(nativeObj, img.nativeObj, foundLocations_mat.nativeObj, weights_mat.nativeObj, hitThreshold, winStride.width, winStride.height, padding.width, padding.height);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: HOGDescriptor::detect(img, foundLocations, weights, hitThreshold, winStride)
- public void detect (Mat img, MatOfPoint foundLocations, MatOfDouble weights, double hitThreshold, Size winStride)
- {
- ThrowIfDisposed ();
- if (img != null) img.ThrowIfDisposed ();
- if (foundLocations != null) foundLocations.ThrowIfDisposed ();
- if (weights != null) weights.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
- Mat foundLocations_mat = foundLocations;
- Mat weights_mat = weights;
- objdetect_HOGDescriptor_detect_12(nativeObj, img.nativeObj, foundLocations_mat.nativeObj, weights_mat.nativeObj, hitThreshold, winStride.width, winStride.height);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: HOGDescriptor::detect(img, foundLocations, weights, hitThreshold)
- public void detect (Mat img, MatOfPoint foundLocations, MatOfDouble weights, double hitThreshold)
- {
- ThrowIfDisposed ();
- if (img != null) img.ThrowIfDisposed ();
- if (foundLocations != null) foundLocations.ThrowIfDisposed ();
- if (weights != null) weights.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
- Mat foundLocations_mat = foundLocations;
- Mat weights_mat = weights;
- objdetect_HOGDescriptor_detect_13(nativeObj, img.nativeObj, foundLocations_mat.nativeObj, weights_mat.nativeObj, hitThreshold);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: HOGDescriptor::detect(img, foundLocations, weights)
- public void detect (Mat img, MatOfPoint foundLocations, MatOfDouble weights)
- {
- ThrowIfDisposed ();
- if (img != null) img.ThrowIfDisposed ();
- if (foundLocations != null) foundLocations.ThrowIfDisposed ();
- if (weights != null) weights.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
- Mat foundLocations_mat = foundLocations;
- Mat weights_mat = weights;
- objdetect_HOGDescriptor_detect_14(nativeObj, img.nativeObj, foundLocations_mat.nativeObj, weights_mat.nativeObj);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::HOGDescriptor::detectMultiScale(Mat img, vector_Rect& foundLocations, vector_double& foundWeights, double hitThreshold = 0, Size winStride = Size(), Size padding = Size(), double scale = 1.05, double finalThreshold = 2.0, bool useMeanshiftGrouping = false)
- //
- //javadoc: HOGDescriptor::detectMultiScale(img, foundLocations, foundWeights, hitThreshold, winStride, padding, scale, finalThreshold, useMeanshiftGrouping)
- public void detectMultiScale (Mat img, MatOfRect foundLocations, MatOfDouble foundWeights, double hitThreshold, Size winStride, Size padding, double scale, double finalThreshold, bool useMeanshiftGrouping)
- {
- ThrowIfDisposed ();
- if (img != null) img.ThrowIfDisposed ();
- if (foundLocations != null) foundLocations.ThrowIfDisposed ();
- if (foundWeights != null) foundWeights.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
- Mat foundLocations_mat = foundLocations;
- Mat foundWeights_mat = foundWeights;
- objdetect_HOGDescriptor_detectMultiScale_10(nativeObj, img.nativeObj, foundLocations_mat.nativeObj, foundWeights_mat.nativeObj, hitThreshold, winStride.width, winStride.height, padding.width, padding.height, scale, finalThreshold, useMeanshiftGrouping);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: HOGDescriptor::detectMultiScale(img, foundLocations, foundWeights, hitThreshold, winStride, padding, scale, finalThreshold)
- public void detectMultiScale (Mat img, MatOfRect foundLocations, MatOfDouble foundWeights, double hitThreshold, Size winStride, Size padding, double scale, double finalThreshold)
- {
- ThrowIfDisposed ();
- if (img != null) img.ThrowIfDisposed ();
- if (foundLocations != null) foundLocations.ThrowIfDisposed ();
- if (foundWeights != null) foundWeights.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
- Mat foundLocations_mat = foundLocations;
- Mat foundWeights_mat = foundWeights;
- objdetect_HOGDescriptor_detectMultiScale_11(nativeObj, img.nativeObj, foundLocations_mat.nativeObj, foundWeights_mat.nativeObj, hitThreshold, winStride.width, winStride.height, padding.width, padding.height, scale, finalThreshold);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: HOGDescriptor::detectMultiScale(img, foundLocations, foundWeights, hitThreshold, winStride, padding, scale)
- public void detectMultiScale (Mat img, MatOfRect foundLocations, MatOfDouble foundWeights, double hitThreshold, Size winStride, Size padding, double scale)
- {
- ThrowIfDisposed ();
- if (img != null) img.ThrowIfDisposed ();
- if (foundLocations != null) foundLocations.ThrowIfDisposed ();
- if (foundWeights != null) foundWeights.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
- Mat foundLocations_mat = foundLocations;
- Mat foundWeights_mat = foundWeights;
- objdetect_HOGDescriptor_detectMultiScale_12(nativeObj, img.nativeObj, foundLocations_mat.nativeObj, foundWeights_mat.nativeObj, hitThreshold, winStride.width, winStride.height, padding.width, padding.height, scale);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: HOGDescriptor::detectMultiScale(img, foundLocations, foundWeights, hitThreshold, winStride, padding)
- public void detectMultiScale (Mat img, MatOfRect foundLocations, MatOfDouble foundWeights, double hitThreshold, Size winStride, Size padding)
- {
- ThrowIfDisposed ();
- if (img != null) img.ThrowIfDisposed ();
- if (foundLocations != null) foundLocations.ThrowIfDisposed ();
- if (foundWeights != null) foundWeights.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
- Mat foundLocations_mat = foundLocations;
- Mat foundWeights_mat = foundWeights;
- objdetect_HOGDescriptor_detectMultiScale_13(nativeObj, img.nativeObj, foundLocations_mat.nativeObj, foundWeights_mat.nativeObj, hitThreshold, winStride.width, winStride.height, padding.width, padding.height);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: HOGDescriptor::detectMultiScale(img, foundLocations, foundWeights, hitThreshold, winStride)
- public void detectMultiScale (Mat img, MatOfRect foundLocations, MatOfDouble foundWeights, double hitThreshold, Size winStride)
- {
- ThrowIfDisposed ();
- if (img != null) img.ThrowIfDisposed ();
- if (foundLocations != null) foundLocations.ThrowIfDisposed ();
- if (foundWeights != null) foundWeights.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
- Mat foundLocations_mat = foundLocations;
- Mat foundWeights_mat = foundWeights;
- objdetect_HOGDescriptor_detectMultiScale_14(nativeObj, img.nativeObj, foundLocations_mat.nativeObj, foundWeights_mat.nativeObj, hitThreshold, winStride.width, winStride.height);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: HOGDescriptor::detectMultiScale(img, foundLocations, foundWeights, hitThreshold)
- public void detectMultiScale (Mat img, MatOfRect foundLocations, MatOfDouble foundWeights, double hitThreshold)
- {
- ThrowIfDisposed ();
- if (img != null) img.ThrowIfDisposed ();
- if (foundLocations != null) foundLocations.ThrowIfDisposed ();
- if (foundWeights != null) foundWeights.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
- Mat foundLocations_mat = foundLocations;
- Mat foundWeights_mat = foundWeights;
- objdetect_HOGDescriptor_detectMultiScale_15(nativeObj, img.nativeObj, foundLocations_mat.nativeObj, foundWeights_mat.nativeObj, hitThreshold);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: HOGDescriptor::detectMultiScale(img, foundLocations, foundWeights)
- public void detectMultiScale (Mat img, MatOfRect foundLocations, MatOfDouble foundWeights)
- {
- ThrowIfDisposed ();
- if (img != null) img.ThrowIfDisposed ();
- if (foundLocations != null) foundLocations.ThrowIfDisposed ();
- if (foundWeights != null) foundWeights.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
- Mat foundLocations_mat = foundLocations;
- Mat foundWeights_mat = foundWeights;
- objdetect_HOGDescriptor_detectMultiScale_16(nativeObj, img.nativeObj, foundLocations_mat.nativeObj, foundWeights_mat.nativeObj);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::HOGDescriptor::save(String filename, String objname = String())
- //
- //javadoc: HOGDescriptor::save(filename, objname)
- public void save (string filename, string objname)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- objdetect_HOGDescriptor_save_10(nativeObj, filename, objname);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: HOGDescriptor::save(filename)
- public void save (string filename)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- objdetect_HOGDescriptor_save_11(nativeObj, filename);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::HOGDescriptor::setSVMDetector(Mat svmdetector)
- //
- //javadoc: HOGDescriptor::setSVMDetector(svmdetector)
- public void setSVMDetector (Mat svmdetector)
- {
- ThrowIfDisposed ();
- if (svmdetector != null) svmdetector.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- objdetect_HOGDescriptor_setSVMDetector_10(nativeObj, svmdetector.nativeObj);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: Size HOGDescriptor::winSize
- //
- //javadoc: HOGDescriptor::get_winSize()
- public Size get_winSize ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double[] tmpArray = new double[2];
- objdetect_HOGDescriptor_get_1winSize_10(nativeObj, tmpArray);
- Size retVal = new Size (tmpArray);
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: Size HOGDescriptor::blockSize
- //
- //javadoc: HOGDescriptor::get_blockSize()
- public Size get_blockSize ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double[] tmpArray = new double[2];
- objdetect_HOGDescriptor_get_1blockSize_10(nativeObj, tmpArray);
- Size retVal = new Size (tmpArray);
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: Size HOGDescriptor::blockStride
- //
- //javadoc: HOGDescriptor::get_blockStride()
- public Size get_blockStride ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double[] tmpArray = new double[2];
- objdetect_HOGDescriptor_get_1blockStride_10(nativeObj, tmpArray);
- Size retVal = new Size (tmpArray);
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: Size HOGDescriptor::cellSize
- //
- //javadoc: HOGDescriptor::get_cellSize()
- public Size get_cellSize ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double[] tmpArray = new double[2];
- objdetect_HOGDescriptor_get_1cellSize_10(nativeObj, tmpArray);
- Size retVal = new Size (tmpArray);
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: int HOGDescriptor::nbins
- //
- //javadoc: HOGDescriptor::get_nbins()
- public int get_nbins ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- int retVal = objdetect_HOGDescriptor_get_1nbins_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: int HOGDescriptor::derivAperture
- //
- //javadoc: HOGDescriptor::get_derivAperture()
- public int get_derivAperture ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- int retVal = objdetect_HOGDescriptor_get_1derivAperture_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: double HOGDescriptor::winSigma
- //
- //javadoc: HOGDescriptor::get_winSigma()
- public double get_winSigma ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double retVal = objdetect_HOGDescriptor_get_1winSigma_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: HOGDescriptor_HistogramNormType HOGDescriptor::histogramNormType
- //
- //javadoc: HOGDescriptor::get_histogramNormType()
- public int get_histogramNormType ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- int retVal = objdetect_HOGDescriptor_get_1histogramNormType_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: double HOGDescriptor::L2HysThreshold
- //
- //javadoc: HOGDescriptor::get_L2HysThreshold()
- public double get_L2HysThreshold ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double retVal = objdetect_HOGDescriptor_get_1L2HysThreshold_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: bool HOGDescriptor::gammaCorrection
- //
- //javadoc: HOGDescriptor::get_gammaCorrection()
- public bool get_gammaCorrection ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bool retVal = objdetect_HOGDescriptor_get_1gammaCorrection_10(nativeObj);
-
- return retVal;
- #else
- return false;
- #endif
- }
- //
- // C++: vector_float HOGDescriptor::svmDetector
- //
- //javadoc: HOGDescriptor::get_svmDetector()
- public MatOfFloat get_svmDetector ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- MatOfFloat retVal = MatOfFloat.fromNativeAddr(objdetect_HOGDescriptor_get_1svmDetector_10(nativeObj));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: int HOGDescriptor::nlevels
- //
- //javadoc: HOGDescriptor::get_nlevels()
- public int get_nlevels ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- int retVal = objdetect_HOGDescriptor_get_1nlevels_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: bool HOGDescriptor::signedGradient
- //
- //javadoc: HOGDescriptor::get_signedGradient()
- public bool get_signedGradient ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bool retVal = objdetect_HOGDescriptor_get_1signedGradient_10(nativeObj);
-
- return retVal;
- #else
- return false;
- #endif
- }
- #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
- const string LIBNAME = "__Internal";
- #else
- const string LIBNAME = "opencvforunity";
- #endif
- // C++: cv::HOGDescriptor::HOGDescriptor(Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins, int _derivAperture = 1, double _winSigma = -1, HOGDescriptor_HistogramNormType _histogramNormType = HOGDescriptor::L2Hys, double _L2HysThreshold = 0.2, bool _gammaCorrection = false, int _nlevels = HOGDescriptor::DEFAULT_NLEVELS, bool _signedGradient = false)
- [DllImport (LIBNAME)]
- private static extern IntPtr objdetect_HOGDescriptor_HOGDescriptor_10 (double _winSize_width, double _winSize_height, double _blockSize_width, double _blockSize_height, double _blockStride_width, double _blockStride_height, double _cellSize_width, double _cellSize_height, int _nbins, int _derivAperture, double _winSigma, int _histogramNormType, double _L2HysThreshold, bool _gammaCorrection, int _nlevels, bool _signedGradient);
- [DllImport (LIBNAME)]
- private static extern IntPtr objdetect_HOGDescriptor_HOGDescriptor_11 (double _winSize_width, double _winSize_height, double _blockSize_width, double _blockSize_height, double _blockStride_width, double _blockStride_height, double _cellSize_width, double _cellSize_height, int _nbins, int _derivAperture, double _winSigma, int _histogramNormType, double _L2HysThreshold, bool _gammaCorrection, int _nlevels);
- [DllImport (LIBNAME)]
- private static extern IntPtr objdetect_HOGDescriptor_HOGDescriptor_12 (double _winSize_width, double _winSize_height, double _blockSize_width, double _blockSize_height, double _blockStride_width, double _blockStride_height, double _cellSize_width, double _cellSize_height, int _nbins, int _derivAperture, double _winSigma, int _histogramNormType, double _L2HysThreshold, bool _gammaCorrection);
- [DllImport (LIBNAME)]
- private static extern IntPtr objdetect_HOGDescriptor_HOGDescriptor_13 (double _winSize_width, double _winSize_height, double _blockSize_width, double _blockSize_height, double _blockStride_width, double _blockStride_height, double _cellSize_width, double _cellSize_height, int _nbins, int _derivAperture, double _winSigma, int _histogramNormType, double _L2HysThreshold);
- [DllImport (LIBNAME)]
- private static extern IntPtr objdetect_HOGDescriptor_HOGDescriptor_14 (double _winSize_width, double _winSize_height, double _blockSize_width, double _blockSize_height, double _blockStride_width, double _blockStride_height, double _cellSize_width, double _cellSize_height, int _nbins, int _derivAperture, double _winSigma, int _histogramNormType);
- [DllImport (LIBNAME)]
- private static extern IntPtr objdetect_HOGDescriptor_HOGDescriptor_15 (double _winSize_width, double _winSize_height, double _blockSize_width, double _blockSize_height, double _blockStride_width, double _blockStride_height, double _cellSize_width, double _cellSize_height, int _nbins, int _derivAperture, double _winSigma);
- [DllImport (LIBNAME)]
- private static extern IntPtr objdetect_HOGDescriptor_HOGDescriptor_16 (double _winSize_width, double _winSize_height, double _blockSize_width, double _blockSize_height, double _blockStride_width, double _blockStride_height, double _cellSize_width, double _cellSize_height, int _nbins, int _derivAperture);
- [DllImport (LIBNAME)]
- private static extern IntPtr objdetect_HOGDescriptor_HOGDescriptor_17 (double _winSize_width, double _winSize_height, double _blockSize_width, double _blockSize_height, double _blockStride_width, double _blockStride_height, double _cellSize_width, double _cellSize_height, int _nbins);
- // C++: cv::HOGDescriptor::HOGDescriptor(String filename)
- [DllImport (LIBNAME)]
- private static extern IntPtr objdetect_HOGDescriptor_HOGDescriptor_18 (string filename);
- // C++: cv::HOGDescriptor::HOGDescriptor()
- [DllImport (LIBNAME)]
- private static extern IntPtr objdetect_HOGDescriptor_HOGDescriptor_19 ();
- // C++: bool cv::HOGDescriptor::checkDetectorSize()
- [DllImport (LIBNAME)]
- private static extern bool objdetect_HOGDescriptor_checkDetectorSize_10 (IntPtr nativeObj);
- // C++: bool cv::HOGDescriptor::load(String filename, String objname = String())
- [DllImport (LIBNAME)]
- private static extern bool objdetect_HOGDescriptor_load_10 (IntPtr nativeObj, string filename, string objname);
- [DllImport (LIBNAME)]
- private static extern bool objdetect_HOGDescriptor_load_11 (IntPtr nativeObj, string filename);
- // C++: double cv::HOGDescriptor::getWinSigma()
- [DllImport (LIBNAME)]
- private static extern double objdetect_HOGDescriptor_getWinSigma_10 (IntPtr nativeObj);
- // C++: size_t cv::HOGDescriptor::getDescriptorSize()
- [DllImport (LIBNAME)]
- private static extern long objdetect_HOGDescriptor_getDescriptorSize_10 (IntPtr nativeObj);
- // C++: static vector_float cv::HOGDescriptor::getDaimlerPeopleDetector()
- [DllImport (LIBNAME)]
- private static extern IntPtr objdetect_HOGDescriptor_getDaimlerPeopleDetector_10 ();
- // C++: static vector_float cv::HOGDescriptor::getDefaultPeopleDetector()
- [DllImport (LIBNAME)]
- private static extern IntPtr objdetect_HOGDescriptor_getDefaultPeopleDetector_10 ();
- // C++: void cv::HOGDescriptor::compute(Mat img, vector_float& descriptors, Size winStride = Size(), Size padding = Size(), vector_Point locations = std::vector<Point>())
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_compute_10 (IntPtr nativeObj, IntPtr img_nativeObj, IntPtr descriptors_mat_nativeObj, double winStride_width, double winStride_height, double padding_width, double padding_height, IntPtr locations_mat_nativeObj);
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_compute_11 (IntPtr nativeObj, IntPtr img_nativeObj, IntPtr descriptors_mat_nativeObj, double winStride_width, double winStride_height, double padding_width, double padding_height);
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_compute_12 (IntPtr nativeObj, IntPtr img_nativeObj, IntPtr descriptors_mat_nativeObj, double winStride_width, double winStride_height);
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_compute_13 (IntPtr nativeObj, IntPtr img_nativeObj, IntPtr descriptors_mat_nativeObj);
- // C++: void cv::HOGDescriptor::computeGradient(Mat img, Mat& grad, Mat& angleOfs, Size paddingTL = Size(), Size paddingBR = Size())
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_computeGradient_10 (IntPtr nativeObj, IntPtr img_nativeObj, IntPtr grad_nativeObj, IntPtr angleOfs_nativeObj, double paddingTL_width, double paddingTL_height, double paddingBR_width, double paddingBR_height);
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_computeGradient_11 (IntPtr nativeObj, IntPtr img_nativeObj, IntPtr grad_nativeObj, IntPtr angleOfs_nativeObj, double paddingTL_width, double paddingTL_height);
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_computeGradient_12 (IntPtr nativeObj, IntPtr img_nativeObj, IntPtr grad_nativeObj, IntPtr angleOfs_nativeObj);
- // C++: void cv::HOGDescriptor::detect(Mat img, vector_Point& foundLocations, vector_double& weights, double hitThreshold = 0, Size winStride = Size(), Size padding = Size(), vector_Point searchLocations = std::vector<Point>())
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_detect_10 (IntPtr nativeObj, IntPtr img_nativeObj, IntPtr foundLocations_mat_nativeObj, IntPtr weights_mat_nativeObj, double hitThreshold, double winStride_width, double winStride_height, double padding_width, double padding_height, IntPtr searchLocations_mat_nativeObj);
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_detect_11 (IntPtr nativeObj, IntPtr img_nativeObj, IntPtr foundLocations_mat_nativeObj, IntPtr weights_mat_nativeObj, double hitThreshold, double winStride_width, double winStride_height, double padding_width, double padding_height);
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_detect_12 (IntPtr nativeObj, IntPtr img_nativeObj, IntPtr foundLocations_mat_nativeObj, IntPtr weights_mat_nativeObj, double hitThreshold, double winStride_width, double winStride_height);
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_detect_13 (IntPtr nativeObj, IntPtr img_nativeObj, IntPtr foundLocations_mat_nativeObj, IntPtr weights_mat_nativeObj, double hitThreshold);
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_detect_14 (IntPtr nativeObj, IntPtr img_nativeObj, IntPtr foundLocations_mat_nativeObj, IntPtr weights_mat_nativeObj);
- // C++: void cv::HOGDescriptor::detectMultiScale(Mat img, vector_Rect& foundLocations, vector_double& foundWeights, double hitThreshold = 0, Size winStride = Size(), Size padding = Size(), double scale = 1.05, double finalThreshold = 2.0, bool useMeanshiftGrouping = false)
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_detectMultiScale_10 (IntPtr nativeObj, IntPtr img_nativeObj, IntPtr foundLocations_mat_nativeObj, IntPtr foundWeights_mat_nativeObj, double hitThreshold, double winStride_width, double winStride_height, double padding_width, double padding_height, double scale, double finalThreshold, bool useMeanshiftGrouping);
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_detectMultiScale_11 (IntPtr nativeObj, IntPtr img_nativeObj, IntPtr foundLocations_mat_nativeObj, IntPtr foundWeights_mat_nativeObj, double hitThreshold, double winStride_width, double winStride_height, double padding_width, double padding_height, double scale, double finalThreshold);
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_detectMultiScale_12 (IntPtr nativeObj, IntPtr img_nativeObj, IntPtr foundLocations_mat_nativeObj, IntPtr foundWeights_mat_nativeObj, double hitThreshold, double winStride_width, double winStride_height, double padding_width, double padding_height, double scale);
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_detectMultiScale_13 (IntPtr nativeObj, IntPtr img_nativeObj, IntPtr foundLocations_mat_nativeObj, IntPtr foundWeights_mat_nativeObj, double hitThreshold, double winStride_width, double winStride_height, double padding_width, double padding_height);
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_detectMultiScale_14 (IntPtr nativeObj, IntPtr img_nativeObj, IntPtr foundLocations_mat_nativeObj, IntPtr foundWeights_mat_nativeObj, double hitThreshold, double winStride_width, double winStride_height);
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_detectMultiScale_15 (IntPtr nativeObj, IntPtr img_nativeObj, IntPtr foundLocations_mat_nativeObj, IntPtr foundWeights_mat_nativeObj, double hitThreshold);
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_detectMultiScale_16 (IntPtr nativeObj, IntPtr img_nativeObj, IntPtr foundLocations_mat_nativeObj, IntPtr foundWeights_mat_nativeObj);
- // C++: void cv::HOGDescriptor::save(String filename, String objname = String())
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_save_10 (IntPtr nativeObj, string filename, string objname);
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_save_11 (IntPtr nativeObj, string filename);
- // C++: void cv::HOGDescriptor::setSVMDetector(Mat svmdetector)
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_setSVMDetector_10 (IntPtr nativeObj, IntPtr svmdetector_nativeObj);
- // C++: Size HOGDescriptor::winSize
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_get_1winSize_10 (IntPtr nativeObj, double[] retVal);
- // C++: Size HOGDescriptor::blockSize
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_get_1blockSize_10 (IntPtr nativeObj, double[] retVal);
- // C++: Size HOGDescriptor::blockStride
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_get_1blockStride_10 (IntPtr nativeObj, double[] retVal);
- // C++: Size HOGDescriptor::cellSize
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_get_1cellSize_10 (IntPtr nativeObj, double[] retVal);
- // C++: int HOGDescriptor::nbins
- [DllImport (LIBNAME)]
- private static extern int objdetect_HOGDescriptor_get_1nbins_10 (IntPtr nativeObj);
- // C++: int HOGDescriptor::derivAperture
- [DllImport (LIBNAME)]
- private static extern int objdetect_HOGDescriptor_get_1derivAperture_10 (IntPtr nativeObj);
- // C++: double HOGDescriptor::winSigma
- [DllImport (LIBNAME)]
- private static extern double objdetect_HOGDescriptor_get_1winSigma_10 (IntPtr nativeObj);
- // C++: HOGDescriptor_HistogramNormType HOGDescriptor::histogramNormType
- [DllImport (LIBNAME)]
- private static extern int objdetect_HOGDescriptor_get_1histogramNormType_10 (IntPtr nativeObj);
- // C++: double HOGDescriptor::L2HysThreshold
- [DllImport (LIBNAME)]
- private static extern double objdetect_HOGDescriptor_get_1L2HysThreshold_10 (IntPtr nativeObj);
- // C++: bool HOGDescriptor::gammaCorrection
- [DllImport (LIBNAME)]
- private static extern bool objdetect_HOGDescriptor_get_1gammaCorrection_10 (IntPtr nativeObj);
- // C++: vector_float HOGDescriptor::svmDetector
- [DllImport (LIBNAME)]
- private static extern IntPtr objdetect_HOGDescriptor_get_1svmDetector_10 (IntPtr nativeObj);
- // C++: int HOGDescriptor::nlevels
- [DllImport (LIBNAME)]
- private static extern int objdetect_HOGDescriptor_get_1nlevels_10 (IntPtr nativeObj);
- // C++: bool HOGDescriptor::signedGradient
- [DllImport (LIBNAME)]
- private static extern bool objdetect_HOGDescriptor_get_1signedGradient_10 (IntPtr nativeObj);
- // native support for java finalize()
- [DllImport (LIBNAME)]
- private static extern void objdetect_HOGDescriptor_delete (IntPtr nativeObj);
- }
- }
|