| HOGDescriptorDetect Method (Mat, Double, NullableSize, NullableSize, Point) |
Performs object detection without a multi-scale window.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public virtual Point[] Detect(
Mat img,
double hitThreshold = 0,
Nullable<Size> winStride = null,
Nullable<Size> padding = null,
Point[] searchLocations = null
)
Public Overridable Function Detect (
img As Mat,
Optional hitThreshold As Double = 0,
Optional winStride As Nullable(Of Size) = Nothing,
Optional padding As Nullable(Of Size) = Nothing,
Optional searchLocations As Point() = Nothing
) As Point()
public:
virtual array<Point>^ Detect(
Mat^ img,
double hitThreshold = 0,
Nullable<Size> winStride = nullptr,
Nullable<Size> padding = nullptr,
array<Point>^ searchLocations = nullptr
)
abstract Detect :
img : Mat *
?hitThreshold : float *
?winStride : Nullable<Size> *
?padding : Nullable<Size> *
?searchLocations : Point[]
(* Defaults:
let _hitThreshold = defaultArg hitThreshold 0
let _winStride = defaultArg winStride null
let _padding = defaultArg padding null
let _searchLocations = defaultArg searchLocations null
*)
-> Point[]
override Detect :
img : Mat *
?hitThreshold : float *
?winStride : Nullable<Size> *
?padding : Nullable<Size> *
?searchLocations : Point[]
(* Defaults:
let _hitThreshold = defaultArg hitThreshold 0
let _winStride = defaultArg winStride null
let _padding = defaultArg padding null
let _searchLocations = defaultArg searchLocations null
*)
-> Point[]
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.
Usually it is 0 and should be specified in the detector coefficients (as the last free coefficient).
But if the free coefficient is omitted (which is allowed), you can specify it manually here. - 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). - searchLocations (Optional)
- Type: OpenCvSharpPoint
[Missing <param name="searchLocations"/> documentation for "M:OpenCvSharp.HOGDescriptor.Detect(OpenCvSharp.Mat,System.Double,System.Nullable{OpenCvSharp.Size},System.Nullable{OpenCvSharp.Size},OpenCvSharp.Point[])"]
Return Value
Type:
PointLeft-top corner points of detected objects boundaries.
See Also