Click or drag to resize

SURF Class

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

Namespace:  OpenCvSharp.XFeatures2D
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public class SURF : Feature2D

The SURF type exposes the following members.

Constructors
  NameDescription
Protected methodSURF
Creates instance by raw pointer cv::SURF*
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.)
Protected propertyDataHandle
Gets or sets a handle which allocates using cvSetData.
(Inherited from DisposableObject.)
Public propertyDefaultNorm
(Inherited from Feature2D.)
Public propertyDescriptorSize
(Inherited from Feature2D.)
Public propertyDescriptorType
(Inherited from Feature2D.)
Public propertyEmpty
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
(Inherited from Algorithm.)
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 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 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(InputArray, KeyPoint, OutputArray)
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 methodStatic memberCreate
The SURF constructor.
Public methodDetect(InputArray, Mat)
Detect keypoints in an image.
(Inherited from Feature2D.)
Public methodDetect(Mat, Mat)
Detect keypoints in an image.
(Inherited from Feature2D.)
Public methodDetect(IEnumerableMat, IEnumerableMat)
Detect keypoints in an image set.
(Inherited from Feature2D.)
Public methodDetectAndCompute
Detects keypoints and computes the descriptors
(Inherited from Feature2D.)
Public methodDispose
Releases the resources
(Inherited from DisposableObject.)
Protected methodDispose(Boolean)
Releases the resources
(Inherited from DisposableObject.)
Protected methodDisposeManaged
Releases managed resources
(Overrides DisposableObjectDisposeManaged.)
Protected methodDisposeUnmanaged
releases unmanaged resources
(Inherited from DisposableCvObject.)
Public methodEmpty
Return true if detector object is empty
(Inherited from Feature2D.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Destructor
(Inherited from DisposableObject.)
Public methodGetDefaultName
(Inherited from Feature2D.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodNotifyMemoryPressure
Notifies the allocated size of memory.
(Inherited from DisposableObject.)
Public methodRead(String)
(Inherited from Feature2D.)
Public methodRead(FileNode)
Reads algorithm parameters from a file storage
(Inherited from Algorithm.)
Public methodSave
Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage fs).
(Inherited from Algorithm.)
Public methodThrowIfDisposed
If this object is disposed, then ObjectDisposedException is thrown.
(Inherited from DisposableObject.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWrite(String)
(Inherited from Feature2D.)
Public methodWrite(FileStorage)
Stores algorithm parameters in a file storage
(Inherited from Algorithm.)
Top
Fields
  NameDescription
Protected fieldptr
Data pointer
(Inherited from DisposableCvObject.)
Top
See Also