Click or drag to resize

HOGDescriptor Constructor (Nullable<Size> , Nullable<Size> , Nullable<Size> , Nullable<Size> , Int32, Int32, Double, HistogramNormType, Double, Boolean, Int32)

Creates the HOG descriptor and detector.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax
public HOGDescriptor(
	Nullable<Size> winSize = null,
	Nullable<Size> blockSize = null,
	Nullable<Size> blockStride = null,
	Nullable<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 (Optional)
Type: System.Nullable<Size>
Detection window size. Align to block size and block stride.
blockSize (Optional)
Type: System.Nullable<Size>
Block size in pixels. Align to cell size. Only (16,16) is supported for now.
blockStride (Optional)
Type: System.Nullable<Size>
Block stride. It must be a multiple of cell size.
cellSize (Optional)
Type: System.Nullable<Size>
Cell size. Only (8, 8) is supported for now.
nbins (Optional)
Type: System.Int32
Number of bins. Only 9 bins per cell are supported for now.
derivAperture (Optional)
Type: System.Int32
winSigma (Optional)
Type: System.Double
Gaussian smoothing window parameter.
histogramNormType (Optional)
Type: OpenCvSharp.HistogramNormType
l2HysThreshold (Optional)
Type: System.Double
L2-Hys normalization method shrinkage.
gammaCorrection (Optional)
Type: System.Boolean
Flag to specify whether the gamma correction preprocessing is required or not.
nlevels (Optional)
Type: System.Int32
Maximum number of detection window increases.
See Also