Click or drag to resize

HOGDescriptor Class

HOG (Histogram-of-Oriented-Gradients) Descriptor and Object Detector
Inheritance Hierarchy

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public class HOGDescriptor : DisposableCvObject

The HOGDescriptor type exposes the following members.

Constructors
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 propertyBlockSize
Block size in pixels. Align to cell size. Default value is Size(16,16).
Public propertyBlockStride
Block stride. It must be a multiple of cell size. Default value is Size(8,8).
Public propertyCellSize
Cell size. Default value is Size(8,8).
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 propertyDerivAperture
Public propertyGammaCorrection
Flag to specify whether the gamma correction preprocessing is required or not.
Public propertyHistogramNormType
HistogramNormType
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 propertyL2HysThreshold
L2-Hys normalization method shrinkage.
Public propertyNbins
Number of bins used in the calculation of histogram of gradients. Default value is 9.
Public propertyNLevels
Maximum number of detection window increases. Default value is 64
Public propertySignedGradient
Indicates signed gradient will be used or not
Public propertyWinSigma
Gaussian smoothing window parameter.
Public propertyWinSize
Detection window size. Align to block size and block stride. Default value is Size(64,128).
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 methodCheckDetectorSize
Public methodCompute
Computes HOG descriptors of given image.
Public methodComputeGradient
Computes gradients and quantized gradient orientations.
Public methodDetect(Mat, Double, NullableSize, NullableSize, Point)
Performs object detection without a multi-scale window.
Public methodDetect(Mat, Double, Double, NullableSize, NullableSize, Point)
Performs object detection without a multi-scale window.
Public methodDetectMultiScale(Mat, Double, NullableSize, NullableSize, Double, Int32)
Performs object detection with a multi-scale window.
Public methodDetectMultiScale(Mat, Double, Double, NullableSize, NullableSize, Double, Int32)
Performs object detection with a multi-scale window.
Public methodDetectMultiScaleROI
evaluate specified ROI and return confidence value for each location in multiple scales
Public methodDetectROI
evaluate specified ROI and return confidence value for each location
Public methodDispose
Releases the resources
(Inherited from DisposableObject.)
Protected methodDispose(Boolean)
Releases the resources
(Inherited from DisposableObject.)
Protected methodDisposeManaged
Releases managed resources
(Inherited from DisposableObject.)
Protected methodDisposeUnmanaged
Releases unmanaged resources
(Overrides DisposableCvObjectDisposeUnmanaged.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Destructor
(Inherited from DisposableObject.)
Public methodStatic memberGetDaimlerPeopleDetector
This method returns 1981 SVM coeffs obtained from daimler's base. To use these coeffs the detection window size should be (48,96)
Public methodStatic memberGetDefaultPeopleDetector
Returns coefficients of the classifier trained for people detection (for default window size).
Public methodGetDescriptorSize
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetWinSigma
Public methodGroupRectangles
Groups the object candidate rectangles.
Public methodLoad
loads HOGDescriptor parameters and coefficients for the linear SVM classifier from a file.
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 methodSave
saves HOGDescriptor parameters and coefficients for the linear SVM classifier to a file
Public methodSetSVMDetector
Sets coefficients for the linear SVM classifier.
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.)
Top
Fields
  NameDescription
Public fieldStatic memberDaimlerPeopleDetector
This field returns 1981 SVM coeffs obtained from daimler's base. To use these coeffs the detection window size should be (48,96)
Public fieldStatic memberDefaultNlevels
Public fieldStatic memberDefaultPeopleDetector
Returns coefficients of the classifier trained for people detection (for default window size).
Public fieldStatic memberL2Hys
Protected fieldptr
Data pointer
(Inherited from DisposableCvObject.)
Top
See Also