| HOGDescriptorDetectMultiScale Method (Mat, Double, NullableSize, NullableSize, Double, Int32) |
Performs object detection with a multi-scale window.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public virtual Rect[] DetectMultiScale(
Mat img,
double hitThreshold = 0,
Nullable<Size> winStride = null,
Nullable<Size> padding = null,
double scale = 1.05,
int groupThreshold = 2
)
Public Overridable Function DetectMultiScale (
img As Mat,
Optional hitThreshold As Double = 0,
Optional winStride As Nullable(Of Size) = Nothing,
Optional padding As Nullable(Of Size) = Nothing,
Optional scale As Double = 1.05,
Optional groupThreshold As Integer = 2
) As Rect()
public:
virtual array<Rect>^ DetectMultiScale(
Mat^ img,
double hitThreshold = 0,
Nullable<Size> winStride = nullptr,
Nullable<Size> padding = nullptr,
double scale = 1.05,
int groupThreshold = 2
)
abstract DetectMultiScale :
img : Mat *
?hitThreshold : float *
?winStride : Nullable<Size> *
?padding : Nullable<Size> *
?scale : float *
?groupThreshold : int
(* Defaults:
let _hitThreshold = defaultArg hitThreshold 0
let _winStride = defaultArg winStride null
let _padding = defaultArg padding null
let _scale = defaultArg scale 1.05
let _groupThreshold = defaultArg groupThreshold 2
*)
-> Rect[]
override DetectMultiScale :
img : Mat *
?hitThreshold : float *
?winStride : Nullable<Size> *
?padding : Nullable<Size> *
?scale : float *
?groupThreshold : int
(* Defaults:
let _hitThreshold = defaultArg hitThreshold 0
let _winStride = defaultArg winStride null
let _padding = defaultArg padding null
let _scale = defaultArg scale 1.05
let _groupThreshold = defaultArg groupThreshold 2
*)
-> Rect[]
Parameters
- img
- Type: OpenCvSharpMat
Source image. CV_8UC1 and CV_8UC4 types are supported for now. - hitThreshold (Optional)
- Type: SystemDouble
Threshold for the distance between features and SVM classifying plane. - winStride (Optional)
- Type: SystemNullableSize
Window stride. It must be a multiple of block stride. - padding (Optional)
- Type: SystemNullableSize
Mock parameter to keep the CPU interface compatibility. It must be (0,0). - scale (Optional)
- Type: SystemDouble
Coefficient of the detection window increase. - groupThreshold (Optional)
- Type: SystemInt32
Coefficient to regulate the similarity threshold.
When detected, some objects can be covered by many rectangles. 0 means not to perform grouping.
Return Value
Type:
RectDetected objects boundaries.
See Also