Table of Contents

Constructor HOGDescriptor

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

HOGDescriptor()

Default constructor

public HOGDescriptor()

HOGDescriptor(Size?, Size?, Size?, Size?, int, int, double, HistogramNormType, double, bool, int)

Creates the HOG descriptor and detector.

public HOGDescriptor(Size? winSize = null, Size? blockSize = null, Size? blockStride = null, Size? cellSize = null, int nbins = 9, int derivAperture = 1, double winSigma = -1, HistogramNormType histogramNormType = HistogramNormType.L2Hys, double l2HysThreshold = 0.2, bool gammaCorrection = true, int nlevels = 64)

Parameters

winSize Size?

Detection window size. Align to block size and block stride.

blockSize Size?

Block size in pixels. Align to cell size. Only (16,16) is supported for now.

blockStride Size?

Block stride. It must be a multiple of cell size.

cellSize Size?

Cell size. Only (8, 8) is supported for now.

nbins int

Number of bins. Only 9 bins per cell are supported for now.

derivAperture int
winSigma double

Gaussian smoothing window parameter.

histogramNormType HistogramNormType
l2HysThreshold double

L2-Hys normalization method shrinkage.

gammaCorrection bool

Flag to specify whether the gamma correction preprocessing is required or not.

nlevels int

Maximum number of detection window increases.

HOGDescriptor(string)

Construct from a file containing HOGDescriptor properties and coefficients for the linear SVM classifier.

public HOGDescriptor(string fileName)

Parameters

fileName string

The file name containing HOGDescriptor properties and coefficients for the linear SVM classifier.