OpenCV for Unity
2.6.2
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
|
This is a base class for all more or less complex algorithms in OpenCV. More...
Public Member Functions | |
IntPtr | getNativeObjAddr () |
virtual void | clear () |
Clears the algorithm state. More... | |
virtual bool | empty () |
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. More... | |
void | save (string filename) |
virtual string | getDefaultName () |
Public Member Functions inherited from OpenCVForUnity.DisposableObject | |
void | Dispose () |
void | ThrowIfDisposed () |
Static Public Member Functions | |
static Algorithm | __fromPtr__ (IntPtr addr) |
Static Public Member Functions inherited from OpenCVForUnity.DisposableObject | |
static IntPtr | ThrowIfNullIntPtr (IntPtr ptr) |
Protected Member Functions | |
override void | Dispose (bool disposing) |
Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject | |
DisposableOpenCVObject () | |
DisposableOpenCVObject (IntPtr ptr) | |
DisposableOpenCVObject (bool isEnabledDispose) | |
DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose) | |
override void | Dispose (bool disposing) |
Protected Member Functions inherited from OpenCVForUnity.DisposableObject | |
DisposableObject () | |
DisposableObject (bool isEnabledDispose) | |
Additional Inherited Members | |
Properties inherited from OpenCVForUnity.DisposableObject | |
bool | IsDisposed [get, protected set] |
bool | IsEnabledDispose [get, set] |
This is a base class for all more or less complex algorithms in OpenCV.
especially for classes of algorithms, for which there can be multiple implementations. The examples are stereo correspondence (for which there are algorithms like block matching, semi-global block matching, graph-cut etc.), background subtraction (which can be done using mixture-of-gaussians models, codebook-based algorithm etc.), optical flow (block matching, Lucas-Kanade, Horn-Schunck etc.).
Here is example of SimpleBlobDetector use in your application via Algorithm interface:
|
static |
|
virtual |
Clears the algorithm state.
Reimplemented in OpenCVForUnity.Features2dModule.DescriptorMatcher.
|
protectedvirtual |
Reimplemented from OpenCVForUnity.DisposableObject.
Reimplemented in OpenCVForUnity.FaceModule.FaceRecognizer, OpenCVForUnity.FaceModule.MACE, OpenCVForUnity.Features2dModule.SimpleBlobDetector, OpenCVForUnity.FaceModule.FacemarkTrain, OpenCVForUnity.Xfeatures2dModule.BoostDesc, OpenCVForUnity.BioinspiredModule.Retina, OpenCVForUnity.Xfeatures2dModule.BEBLID, OpenCVForUnity.XphotoModule.GrayworldWB, OpenCVForUnity.Xfeatures2dModule.TEBLID, OpenCVForUnity.FaceModule.Facemark, OpenCVForUnity.Xfeatures2dModule.LATCH, OpenCVForUnity.XimgprocModule.AdaptiveManifoldFilter, OpenCVForUnity.Xfeatures2dModule.VGG, OpenCVForUnity.Structured_lightModule.GrayCodePattern, OpenCVForUnity.Xfeatures2dModule.DAISY, OpenCVForUnity.Features2dModule.AKAZE, OpenCVForUnity.Features2dModule.MSER, OpenCVForUnity.BioinspiredModule.RetinaFastToneMapping, OpenCVForUnity.Xfeatures2dModule.TBMR, OpenCVForUnity.XphotoModule.LearningBasedWB, OpenCVForUnity.BioinspiredModule.TransientAreasSegmentationModule, OpenCVForUnity.TrackingModule.legacy_TrackerTLD, OpenCVForUnity.Xfeatures2dModule.FREAK, OpenCVForUnity.Xfeatures2dModule.PCTSignatures, OpenCVForUnity.MlModule.ANN_MLP, OpenCVForUnity.VideoModule.DISOpticalFlow, OpenCVForUnity.Phase_unwrappingModule.HistogramPhaseUnwrapping, OpenCVForUnity.Xfeatures2dModule.MSDDetector, OpenCVForUnity.PhotoModule.MergeMertens, OpenCVForUnity.XimgprocModule.SuperpixelSLIC, OpenCVForUnity.PhotoModule.TonemapDrago, OpenCVForUnity.VideoModule.VariationalRefinement, OpenCVForUnity.TrackingModule.legacy_TrackerMedianFlow, OpenCVForUnity.Xfeatures2dModule.AffineFeature2D, OpenCVForUnity.XimgprocModule.SuperpixelSEEDS, OpenCVForUnity.XphotoModule.TonemapDurand, OpenCVForUnity.MlModule.DTrees, OpenCVForUnity.PhotoModule.AlignMTB, OpenCVForUnity.BgsegmModule.BackgroundSubtractorGMG, OpenCVForUnity.XimgprocModule.ScanSegment, OpenCVForUnity.XimgprocModule.SuperpixelLSC, OpenCVForUnity.BgsegmModule.BackgroundSubtractorCNT, OpenCVForUnity.TrackingModule.legacy_TrackerKCF, OpenCVForUnity.TrackingModule.legacy_TrackerMIL, OpenCVForUnity.Xfeatures2dModule.LUCID, OpenCVForUnity.Features2dModule.FlannBasedMatcher, OpenCVForUnity.Features2dModule.ORB, OpenCVForUnity.ImgprocModule.LineSegmentDetector, OpenCVForUnity.ObjdetectModule.ArucoDetector, OpenCVForUnity.PhotoModule.TonemapReinhard, OpenCVForUnity.VideoModule.SparsePyrLKOpticalFlow, OpenCVForUnity.Xfeatures2dModule.PCTSignaturesSQFD, OpenCVForUnity.DnnModule.Layer, OpenCVForUnity.Features2dModule.BFMatcher, OpenCVForUnity.Features2dModule.KAZE, OpenCVForUnity.PhotoModule.CalibrateDebevec, OpenCVForUnity.PhotoModule.TonemapMantiuk, OpenCVForUnity.Img_hashModule.PHash, OpenCVForUnity.Structured_lightModule.SinusoidalPattern, OpenCVForUnity.TrackingModule.legacy_TrackerBoosting, OpenCVForUnity.Xfeatures2dModule.BriefDescriptorExtractor, OpenCVForUnity.XimgprocModule.RICInterpolator, OpenCVForUnity.Features2dModule.DescriptorMatcher, OpenCVForUnity.PhotoModule.CalibrateRobertson, OpenCVForUnity.PhotoModule.MergeDebevec, OpenCVForUnity.PhotoModule.MergeRobertson, OpenCVForUnity.VideoModule.BackgroundSubtractor, OpenCVForUnity.VideoModule.BackgroundSubtractorKNN, OpenCVForUnity.VideoModule.BackgroundSubtractorMOG2, OpenCVForUnity.BgsegmModule.BackgroundSubtractorGSOC, OpenCVForUnity.BgsegmModule.BackgroundSubtractorMOG, OpenCVForUnity.BgsegmModule.SyntheticSequenceGenerator, OpenCVForUnity.Img_hashModule.AverageHash, OpenCVForUnity.TextModule.ERFilter, OpenCVForUnity.TrackingModule.legacy_MultiTracker, OpenCVForUnity.TrackingModule.legacy_TrackerMOSSE, OpenCVForUnity.XimgprocModule.RidgeDetectionFilter, OpenCVForUnity.ImgprocModule.GeneralizedHoughBallard, OpenCVForUnity.ImgprocModule.GeneralizedHoughGuil, OpenCVForUnity.MlModule.Boost, OpenCVForUnity.MlModule.EM, OpenCVForUnity.MlModule.KNearest, OpenCVForUnity.MlModule.LogisticRegression, OpenCVForUnity.MlModule.NormalBayesClassifier, OpenCVForUnity.MlModule.RTrees, OpenCVForUnity.MlModule.SVM, OpenCVForUnity.MlModule.SVMSGD, OpenCVForUnity.FaceModule.BIF, OpenCVForUnity.Img_hashModule.BlockMeanHash, OpenCVForUnity.Img_hashModule.ColorMomentHash, OpenCVForUnity.Img_hashModule.MarrHildrethHash, OpenCVForUnity.Img_hashModule.RadialVarianceHash, OpenCVForUnity.TrackingModule.legacy_TrackerCSRT, OpenCVForUnity.XimgprocModule.ContourFitting, OpenCVForUnity.XimgprocModule.DisparityWLSFilter, OpenCVForUnity.XimgprocModule.DTFilter, OpenCVForUnity.XimgprocModule.FastBilateralSolverFilter, OpenCVForUnity.XimgprocModule.FastGlobalSmootherFilter, OpenCVForUnity.XimgprocModule.GuidedFilter, OpenCVForUnity.XimgprocModule.RFFeatureGetter, OpenCVForUnity.XphotoModule.SimpleWB, OpenCVForUnity.Features2dModule.AffineFeature, OpenCVForUnity.Features2dModule.SIFT, OpenCVForUnity.BgsegmModule.BackgroundSubtractorLSBP, OpenCVForUnity.Phase_unwrappingModule.PhaseUnwrapping, OpenCVForUnity.Structured_lightModule.StructuredLightPattern, OpenCVForUnity.Xfeatures2dModule.HarrisLaplaceFeatureDetector, OpenCVForUnity.Xfeatures2dModule.StarDetector, OpenCVForUnity.XimgprocModule.EdgeAwareInterpolator, OpenCVForUnity.XimgprocModule.FastLineDetector, OpenCVForUnity.XimgprocModule.GraphSegmentation, OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentation, OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentationStrategy, OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentationStrategyColor, OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentationStrategyFill, OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentationStrategySize, OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentationStrategyTexture, OpenCVForUnity.XimgprocModule.SparseMatchInterpolator, OpenCVForUnity.Features2dModule.AgastFeatureDetector, OpenCVForUnity.Features2dModule.BRISK, OpenCVForUnity.Features2dModule.FastFeatureDetector, OpenCVForUnity.Features2dModule.Feature2D, OpenCVForUnity.Features2dModule.GFTTDetector, OpenCVForUnity.ImgprocModule.CLAHE, OpenCVForUnity.ImgprocModule.GeneralizedHough, OpenCVForUnity.MlModule.StatModel, OpenCVForUnity.PhotoModule.AlignExposures, OpenCVForUnity.PhotoModule.CalibrateCRF, OpenCVForUnity.PhotoModule.MergeExposures, OpenCVForUnity.PhotoModule.Tonemap, OpenCVForUnity.VideoModule.DenseOpticalFlow, OpenCVForUnity.VideoModule.FarnebackOpticalFlow, OpenCVForUnity.VideoModule.SparseOpticalFlow, OpenCVForUnity.Img_hashModule.ImgHashBase, OpenCVForUnity.PlotModule.Plot2d, OpenCVForUnity.TrackingModule.legacy_Tracker, OpenCVForUnity.XimgprocModule.DisparityFilter, OpenCVForUnity.XimgprocModule.EdgeBoxes, OpenCVForUnity.XimgprocModule.EdgeDrawing, OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentationStrategyMultiple, OpenCVForUnity.XimgprocModule.StructuredEdgeDetection, OpenCVForUnity.XphotoModule.WhiteBalancer, OpenCVForUnity.ObjdetectModule.BaseCascadeClassifier, OpenCVForUnity.ObjdetectModule.CharucoDetector, OpenCVForUnity.FaceModule.BasicFaceRecognizer, OpenCVForUnity.FaceModule.EigenFaceRecognizer, OpenCVForUnity.FaceModule.FacemarkAAM, OpenCVForUnity.FaceModule.FacemarkKazemi, OpenCVForUnity.FaceModule.FacemarkLBF, OpenCVForUnity.FaceModule.FisherFaceRecognizer, and OpenCVForUnity.FaceModule.LBPHFaceRecognizer.
|
virtual |
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.
Reimplemented in OpenCVForUnity.Features2dModule.Feature2D, OpenCVForUnity.Features2dModule.DescriptorMatcher, and OpenCVForUnity.MlModule.StatModel.
|
virtual |
Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
Reimplemented in OpenCVForUnity.Features2dModule.ORB, OpenCVForUnity.Features2dModule.MSER, OpenCVForUnity.Features2dModule.AKAZE, OpenCVForUnity.Xfeatures2dModule.MSDDetector, OpenCVForUnity.Features2dModule.SIFT, OpenCVForUnity.Features2dModule.KAZE, OpenCVForUnity.Xfeatures2dModule.DAISY, OpenCVForUnity.Features2dModule.GFTTDetector, OpenCVForUnity.Features2dModule.BRISK, OpenCVForUnity.Features2dModule.Feature2D, OpenCVForUnity.Xfeatures2dModule.HarrisLaplaceFeatureDetector, OpenCVForUnity.Xfeatures2dModule.FREAK, OpenCVForUnity.Xfeatures2dModule.StarDetector, OpenCVForUnity.Xfeatures2dModule.LATCH, OpenCVForUnity.Features2dModule.AgastFeatureDetector, OpenCVForUnity.Features2dModule.FastFeatureDetector, OpenCVForUnity.Features2dModule.AffineFeature, OpenCVForUnity.Xfeatures2dModule.LUCID, OpenCVForUnity.Xfeatures2dModule.BEBLID, OpenCVForUnity.Xfeatures2dModule.BriefDescriptorExtractor, OpenCVForUnity.Xfeatures2dModule.VGG, OpenCVForUnity.Features2dModule.SimpleBlobDetector, OpenCVForUnity.Xfeatures2dModule.BoostDesc, and OpenCVForUnity.Xfeatures2dModule.TEBLID.
IntPtr OpenCVForUnity.CoreModule.Algorithm.getNativeObjAddr | ( | ) |
void OpenCVForUnity.CoreModule.Algorithm.save | ( | string | filename | ) |
Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).