Show / Hide Table of Contents

Class SURF

Class for extracting Speeded Up Robust Features from an image.

Inheritance
System.Object
DisposableObject
DisposableCvObject
Algorithm
Feature2D
SURF
Implements
ICvPtrHolder
Inherited Members
Feature2D.DescriptorSize
Feature2D.DescriptorType
Feature2D.DefaultNorm
Feature2D.Empty()
Feature2D.Detect(Mat, Mat)
Feature2D.Detect(InputArray, Mat)
Feature2D.Detect(IEnumerable<Mat>, Nullable<IEnumerable<Mat>>)
Feature2D.Compute(InputArray, KeyPoint[], OutputArray)
Feature2D.Compute(IEnumerable<Mat>, KeyPoint[][], IEnumerable<Mat>)
Feature2D.DetectAndCompute(InputArray, InputArray, KeyPoint[], OutputArray, Boolean)
Feature2D.Write(String)
Feature2D.Read(String)
Feature2D.GetDefaultName()
Algorithm.Write(FileStorage)
Algorithm.Read(FileNode)
Algorithm.Save(String)
DisposableCvObject.ptr
DisposableCvObject.CvPtr
DisposableObject.DataHandle
DisposableObject.IsDisposed
DisposableObject.IsEnabledDispose
DisposableObject.AllocatedMemory
DisposableObject.AllocatedMemorySize
DisposableObject.Dispose()
DisposableObject.Dispose(Boolean)
DisposableObject.AllocGCHandle(Object)
DisposableObject.AllocMemory(Int32)
DisposableObject.NotifyMemoryPressure(Int64)
DisposableObject.ThrowIfDisposed()
Namespace: OpenCvSharp.XFeatures2D
Assembly: OpenCvSharp.dll
Syntax
public class SURF : Feature2D, ICvPtrHolder

Constructors

| Improve this Doc View Source

SURF(IntPtr)

Creates instance by raw pointer cv::SURF*

Declaration
protected SURF(IntPtr p)
Parameters
Type Name Description
IntPtr p

Properties

| Improve this Doc View Source

Extended

false means that the basic descriptors (64 elements each) shall be computed. true means that the extended descriptors (128 elements each) shall be computed

Declaration
public bool Extended { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

HessianThreshold

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.

Declaration
public double HessianThreshold { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

NOctaveLayers

The number of images within each octave of a gaussian pyramid. It is set to 2 by default.

Declaration
public int NOctaveLayers { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

NOctaves

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.

Declaration
public int NOctaves { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Upright

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.

Declaration
public bool Upright { get; set; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

Create(Double, Int32, Int32, Boolean, Boolean)

The SURF constructor.

Declaration
public static SURF Create(double hessianThreshold, int nOctaves = 4, int nOctaveLayers = 2, bool extended = true, bool upright = false)
Parameters
Type Name Description
System.Double hessianThreshold

Only features with keypoint.hessian larger than that are extracted.

System.Int32 nOctaves

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.

System.Int32 nOctaveLayers

The number of images within each octave of a gaussian pyramid. It is set to 2 by default.

System.Boolean extended

false means basic descriptors (64 elements each), true means extended descriptors (128 elements each)

System.Boolean upright

false means that detector computes orientation of each feature. true means that the orientation is not computed (which is much, much faster).

Returns
Type Description
SURF
| Improve this Doc View Source

DisposeManaged()

Releases managed resources

Declaration
protected override void DisposeManaged()
Overrides
DisposableObject.DisposeManaged()
| Improve this Doc View Source

DisposeUnmanaged()

Declaration
protected override void DisposeUnmanaged()
Overrides
DisposableCvObject.DisposeUnmanaged()
| Improve this Doc View Source

Get()

Declaration
public override IntPtr Get()
Returns
Type Description
IntPtr

Implements

ICvPtrHolder
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX