OpenCV for Unity  2.6.0
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.9.0/index.html ) for the details of the argument of the method.
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
OpenCVForUnity.CoreModule.Algorithm Class Reference

This is a base class for all more or less complex algorithms in OpenCV. More...

Inheritance diagram for OpenCVForUnity.CoreModule.Algorithm:
OpenCVForUnity.DisposableOpenCVObject OpenCVForUnity.DisposableObject OpenCVForUnity.BgsegmModule.SyntheticSequenceGenerator OpenCVForUnity.BioinspiredModule.Retina OpenCVForUnity.BioinspiredModule.RetinaFastToneMapping OpenCVForUnity.BioinspiredModule.TransientAreasSegmentationModule OpenCVForUnity.Calib3dModule.StereoMatcher OpenCVForUnity.DnnModule.Layer OpenCVForUnity.FaceModule.BIF OpenCVForUnity.FaceModule.Facemark OpenCVForUnity.FaceModule.FaceRecognizer OpenCVForUnity.FaceModule.MACE OpenCVForUnity.Features2dModule.DescriptorMatcher OpenCVForUnity.Features2dModule.Feature2D OpenCVForUnity.Img_hashModule.ImgHashBase OpenCVForUnity.ImgprocModule.CLAHE OpenCVForUnity.ImgprocModule.GeneralizedHough OpenCVForUnity.ImgprocModule.LineSegmentDetector OpenCVForUnity.MlModule.StatModel OpenCVForUnity.ObjdetectModule.ArucoDetector OpenCVForUnity.ObjdetectModule.BaseCascadeClassifier OpenCVForUnity.ObjdetectModule.CharucoDetector OpenCVForUnity.Phase_unwrappingModule.PhaseUnwrapping OpenCVForUnity.PhotoModule.AlignExposures OpenCVForUnity.PhotoModule.CalibrateCRF OpenCVForUnity.PhotoModule.MergeExposures OpenCVForUnity.PhotoModule.Tonemap OpenCVForUnity.PlotModule.Plot2d OpenCVForUnity.Structured_lightModule.StructuredLightPattern OpenCVForUnity.TextModule.ERFilter OpenCVForUnity.TrackingModule.legacy_MultiTracker OpenCVForUnity.TrackingModule.legacy_Tracker OpenCVForUnity.VideoModule.BackgroundSubtractor OpenCVForUnity.VideoModule.DenseOpticalFlow OpenCVForUnity.VideoModule.SparseOpticalFlow OpenCVForUnity.Xfeatures2dModule.PCTSignatures OpenCVForUnity.Xfeatures2dModule.PCTSignaturesSQFD OpenCVForUnity.XimgprocModule.AdaptiveManifoldFilter OpenCVForUnity.XimgprocModule.ContourFitting OpenCVForUnity.XimgprocModule.DisparityFilter OpenCVForUnity.XimgprocModule.DTFilter OpenCVForUnity.XimgprocModule.EdgeBoxes OpenCVForUnity.XimgprocModule.EdgeDrawing OpenCVForUnity.XimgprocModule.FastBilateralSolverFilter OpenCVForUnity.XimgprocModule.FastGlobalSmootherFilter OpenCVForUnity.XimgprocModule.FastLineDetector OpenCVForUnity.XimgprocModule.GraphSegmentation OpenCVForUnity.XimgprocModule.GuidedFilter OpenCVForUnity.XimgprocModule.RFFeatureGetter OpenCVForUnity.XimgprocModule.RidgeDetectionFilter OpenCVForUnity.XimgprocModule.ScanSegment OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentation OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentationStrategy OpenCVForUnity.XimgprocModule.SparseMatchInterpolator OpenCVForUnity.XimgprocModule.StructuredEdgeDetection OpenCVForUnity.XimgprocModule.SuperpixelLSC OpenCVForUnity.XimgprocModule.SuperpixelSEEDS OpenCVForUnity.XimgprocModule.SuperpixelSLIC OpenCVForUnity.XphotoModule.WhiteBalancer

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]
 

Detailed Description

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:

Member Function Documentation

◆ __fromPtr__()

static Algorithm OpenCVForUnity.CoreModule.Algorithm.__fromPtr__ ( IntPtr  addr)
static

◆ clear()

virtual void OpenCVForUnity.CoreModule.Algorithm.clear ( )
virtual

Clears the algorithm state.

Reimplemented in OpenCVForUnity.Features2dModule.DescriptorMatcher.

◆ Dispose()

override void OpenCVForUnity.CoreModule.Algorithm.Dispose ( bool  disposing)
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.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.TextModule.ERFilter, 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.

◆ empty()

virtual bool OpenCVForUnity.CoreModule.Algorithm.empty ( )
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.

◆ getDefaultName()

virtual string OpenCVForUnity.CoreModule.Algorithm.getDefaultName ( )
virtual

◆ getNativeObjAddr()

IntPtr OpenCVForUnity.CoreModule.Algorithm.getNativeObjAddr ( )

◆ save()

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).


The documentation for this class was generated from the following file: