| HOGDescriptor Constructor (NullableSize, NullableSize, NullableSize, NullableSize, Int32, Int32, Double, HistogramNormType, Double, Boolean, Int32) |
Creates the HOG descriptor and detector.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
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
)
Public Sub New (
Optional winSize As Nullable(Of Size) = Nothing,
Optional blockSize As Nullable(Of Size) = Nothing,
Optional blockStride As Nullable(Of Size) = Nothing,
Optional cellSize As Nullable(Of Size) = Nothing,
Optional nbins As Integer = 9,
Optional derivAperture As Integer = 1,
Optional winSigma As Double = -1,
Optional histogramNormType As HistogramNormType = HistogramNormType.L2Hys,
Optional l2HysThreshold As Double = 0.2,
Optional gammaCorrection As Boolean = true,
Optional nlevels As Integer = 64
)
public:
HOGDescriptor(
Nullable<Size> winSize = nullptr,
Nullable<Size> blockSize = nullptr,
Nullable<Size> blockStride = nullptr,
Nullable<Size> cellSize = nullptr,
int nbins = 9,
int derivAperture = 1,
double winSigma = -1,
HistogramNormType histogramNormType = HistogramNormType::L2Hys,
double l2HysThreshold = 0.2,
bool gammaCorrection = true,
int nlevels = 64
)
new :
?winSize : Nullable<Size> *
?blockSize : Nullable<Size> *
?blockStride : Nullable<Size> *
?cellSize : Nullable<Size> *
?nbins : int *
?derivAperture : int *
?winSigma : float *
?histogramNormType : HistogramNormType *
?l2HysThreshold : float *
?gammaCorrection : bool *
?nlevels : int
(* Defaults:
let _winSize = defaultArg winSize null
let _blockSize = defaultArg blockSize null
let _blockStride = defaultArg blockStride null
let _cellSize = defaultArg cellSize null
let _nbins = defaultArg nbins 9
let _derivAperture = defaultArg derivAperture 1
let _winSigma = defaultArg winSigma -1
let _histogramNormType = defaultArg histogramNormType HistogramNormType.L2Hys
let _l2HysThreshold = defaultArg l2HysThreshold 0.2
let _gammaCorrection = defaultArg gammaCorrection true
let _nlevels = defaultArg nlevels 64
*)
-> HOGDescriptor
Parameters
- winSize (Optional)
- Type: SystemNullableSize
Detection window size. Align to block size and block stride. - blockSize (Optional)
- Type: SystemNullableSize
Block size in pixels. Align to cell size. Only (16,16) is supported for now. - blockStride (Optional)
- Type: SystemNullableSize
Block stride. It must be a multiple of cell size. - cellSize (Optional)
- Type: SystemNullableSize
Cell size. Only (8, 8) is supported for now. - nbins (Optional)
- Type: SystemInt32
Number of bins. Only 9 bins per cell are supported for now. - derivAperture (Optional)
- Type: SystemInt32
[Missing <param name="derivAperture"/> documentation for "M:OpenCvSharp.HOGDescriptor.#ctor(System.Nullable{OpenCvSharp.Size},System.Nullable{OpenCvSharp.Size},System.Nullable{OpenCvSharp.Size},System.Nullable{OpenCvSharp.Size},System.Int32,System.Int32,System.Double,OpenCvSharp.HistogramNormType,System.Double,System.Boolean,System.Int32)"]
- winSigma (Optional)
- Type: SystemDouble
Gaussian smoothing window parameter. - histogramNormType (Optional)
- Type: OpenCvSharpHistogramNormType
[Missing <param name="histogramNormType"/> documentation for "M:OpenCvSharp.HOGDescriptor.#ctor(System.Nullable{OpenCvSharp.Size},System.Nullable{OpenCvSharp.Size},System.Nullable{OpenCvSharp.Size},System.Nullable{OpenCvSharp.Size},System.Int32,System.Int32,System.Double,OpenCvSharp.HistogramNormType,System.Double,System.Boolean,System.Int32)"]
- l2HysThreshold (Optional)
- Type: SystemDouble
L2-Hys normalization method shrinkage. - gammaCorrection (Optional)
- Type: SystemBoolean
Flag to specify whether the gamma correction preprocessing is required or not. - nlevels (Optional)
- Type: SystemInt32
Maximum number of detection window increases.
See Also