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
winSizeSize?Detection window size. Align to block size and block stride.
blockSizeSize?Block size in pixels. Align to cell size. Only (16,16) is supported for now.
blockStrideSize?Block stride. It must be a multiple of cell size.
cellSizeSize?Cell size. Only (8, 8) is supported for now.
nbinsintNumber of bins. Only 9 bins per cell are supported for now.
derivApertureintwinSigmadoubleGaussian smoothing window parameter.
histogramNormTypeHistogramNormTypel2HysThresholddoubleL2-Hys normalization method shrinkage.
gammaCorrectionboolFlag to specify whether the gamma correction preprocessing is required or not.
nlevelsintMaximum 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
fileNamestringThe file name containing HOGDescriptor properties and coefficients for the linear SVM classifier.