SURF Class OpenCvSharp Class Library
Class for extracting Speeded Up Robust Features from an image.
Inheritance Hierarchy

SystemObject
  OpenCvSharpDisposableObject
    OpenCvSharpDisposableCvObject
      OpenCvSharp.CPlusPlusAlgorithm
        OpenCvSharp.CPlusPlusFeatureDetector
          OpenCvSharp.CPlusPlusFeature2D
            OpenCvSharp.CPlusPlusSURF

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public class SURF : Feature2D

The SURF type exposes the following members.

Constructors

  NameDescription
Public methodSURF
Creates SURF default parameters
Public methodSURF(Double, Int32, Int32, Boolean, Boolean)
The SURF constructor.
Top
Properties

  NameDescription
Protected propertyAllocatedMemory
Gets or sets a memory address allocated by AllocMemory.
(Inherited from DisposableObject.)
Protected propertyAllocatedMemorySize
Gets or sets the byte length of the allocated memory
(Inherited from DisposableObject.)
Public propertyCvPtr
Native pointer of OpenCV structure
(Inherited from DisposableCvObject.)
Public propertyDescriptorSize
returns the descriptor size in float's (64 or 128)
Public propertyDescriptorType
returns the descriptor type
Public propertyExtended
false means that the basic descriptors (64 elements each) shall be computed. true means that the extended descriptors (128 elements each) shall be computed
Public propertyHessianThreshold
Threshold for the keypoint detector. Only features, whose hessian is larger than hessianThreshold are retained by the detector. Therefore, the larger the value, the less keypoints you will get. A good default value could be from 300 to 500, depending from the image contrast.
Public propertyInfo
Algorithm information
(Inherited from Algorithm.)
Public propertyInfoPtr
Pointer to algorithm information (cv::AlgorithmInfo*)
(Overrides FeatureDetectorInfoPtr.)
Public propertyIsDisposed
Gets a value indicating whether this instance has been disposed.
(Inherited from DisposableObject.)
Public propertyIsEnabledDispose
Gets or sets a value indicating whether you permit disposing this instance.
(Inherited from DisposableObject.)
Public propertyName
Returns the algorithm name
(Inherited from Algorithm.)
Public propertyNOctaveLayers
The number of images within each octave of a gaussian pyramid. It is set to 2 by default.
Public propertyNOctaves
The number of a gaussian pyramid octaves that the detector uses. It is set to 4 by default. If you want to get very large features, use the larger value. If you want just small features, decrease it.
Public propertyUpright
false means that detector computes orientation of each feature. true means that the orientation is not computed (which is much, much faster). For example, if you match images from a stereo pair, or do image stitching, the matched features likely have very similar angles, and you can speed up feature extraction by setting upright=true.
Top
Methods

  NameDescription
Protected methodAllocGCHandle
Pins the object to be allocated by cvSetData.
(Inherited from DisposableObject.)
Protected methodAllocMemory
Allocates the specified size of memory.
(Inherited from DisposableObject.)
Public methodCompute(Mat, KeyPoint, Mat)
Compute the descriptors for a set of keypoints in an image.
(Inherited from Feature2D.)
Public methodCompute(IEnumerableMat, KeyPoint, IEnumerableMat)
Compute the descriptors for a keypoints collection detected in image collection.
(Inherited from Feature2D.)
Public methodDetect(Mat, Mat)
Detect keypoints in an image.
(Inherited from FeatureDetector.)
Public methodDetect(IEnumerableMat, IEnumerableMat)
Detect keypoints in an image set.
(Inherited from FeatureDetector.)
Public methodDispose
Releases the resources
(Inherited from DisposableObject.)
Protected methodDispose(Boolean)
Releases the resources
(Overrides Feature2DDispose(Boolean).)
Public methodEmpty
Return true if detector object is empty
(Inherited from FeatureDetector.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize
Destructor
(Inherited from DisposableObject.)
Public methodGetAlgorithm
Returns the algorithm parameter
(Inherited from Algorithm.)
Public methodGetBool
Returns the algorithm parameter
(Inherited from Algorithm.)
Public methodGetDouble
Returns the algorithm parameter
(Inherited from Algorithm.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetInt
Returns the algorithm parameter
(Inherited from Algorithm.)
Public methodGetMat
Returns the algorithm parameter
(Inherited from Algorithm.)
Public methodGetMatVector
Returns the algorithm parameter
(Inherited from Algorithm.)
Public methodGetParams
(Inherited from Algorithm.)
Public methodGetString
Returns the algorithm parameter
(Inherited from Algorithm.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodNotifyMemoryPressure
Notifies the allocated size of memory.
(Inherited from DisposableObject.)
Public methodParamHelp
(Inherited from Algorithm.)
Public methodParamType
(Inherited from Algorithm.)
Public methodRelease
Clean up any resources being used.
(Inherited from Algorithm.)
Public methodRun(InputArray, Mat)
detects keypoints using fast multi-scale Hessian detector
Public methodRun(InputArray, InputArray, KeyPoint, OutputArray, Boolean)
detects keypoints and computes the SURF descriptors for them. [useProvidedKeypoints = true]
Public methodRun(InputArray, InputArray, KeyPoint, Single, Boolean)
detects keypoints and computes the SURF descriptors for them. [useProvidedKeypoints = true]
Public methodSetAlgorithm
Sets the algorithm parameter
(Inherited from Algorithm.)
Public methodSetBool
Sets the algorithm parameter
(Inherited from Algorithm.)
Public methodSetDouble
Sets the algorithm parameter
(Inherited from Algorithm.)
Public methodSetInt
Sets the algorithm parameter
(Inherited from Algorithm.)
Public methodSetMat
Sets the algorithm parameter
(Inherited from Algorithm.)
Public methodSetMatVector
Sets the algorithm parameter
(Inherited from Algorithm.)
Public methodSetString
Sets the algorithm parameter
(Inherited from Algorithm.)
Public methodThrowIfDisposed
If this object is disposed, then ObjectDisposedException is thrown.
(Inherited from DisposableObject.)
Public methodToString
Returns a string that represents this Algorithm.
(Inherited from Algorithm.)
Top
Fields

  NameDescription
Protected fielddataHandle
Gets or sets a handle which allocates using cvSetData.
(Inherited from DisposableObject.)
Protected fieldptr
Data pointer
(Inherited from DisposableCvObject.)
Top
See Also

Reference