|  | CascadeClassifierDetectMultiScale Method (Mat, Int32, Double, Double, Int32, HaarDetectionType, NullableSize, NullableSize, Boolean) | 
 
            Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles.
            
 
    Namespace: 
   OpenCvSharp
    Assembly:
   OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
 Syntax
Syntaxpublic virtual Rect[] DetectMultiScale(
	Mat image,
	out int[] rejectLevels,
	out double[] levelWeights,
	double scaleFactor = 1.1,
	int minNeighbors = 3,
	HaarDetectionType flags = ,
	Nullable<Size> minSize = null,
	Nullable<Size> maxSize = null,
	bool outputRejectLevels = false
)
Public Overridable Function DetectMultiScale ( 
	image As Mat,
	<OutAttribute> ByRef rejectLevels As Integer(),
	<OutAttribute> ByRef levelWeights As Double(),
	Optional scaleFactor As Double = 1.1,
	Optional minNeighbors As Integer = 3,
	Optional flags As HaarDetectionType = ,
	Optional minSize As Nullable(Of Size) = Nothing,
	Optional maxSize As Nullable(Of Size) = Nothing,
	Optional outputRejectLevels As Boolean = false
) As Rect()
public:
virtual array<Rect>^ DetectMultiScale(
	Mat^ image, 
	[OutAttribute] array<int>^% rejectLevels, 
	[OutAttribute] array<double>^% levelWeights, 
	double scaleFactor = 1.1, 
	int minNeighbors = 3, 
	HaarDetectionType flags = , 
	Nullable<Size> minSize = nullptr, 
	Nullable<Size> maxSize = nullptr, 
	bool outputRejectLevels = false
)
abstract DetectMultiScale : 
        image : Mat * 
        rejectLevels : int[] byref * 
        levelWeights : float[] byref * 
        ?scaleFactor : float * 
        ?minNeighbors : int * 
        ?flags : HaarDetectionType * 
        ?minSize : Nullable<Size> * 
        ?maxSize : Nullable<Size> * 
        ?outputRejectLevels : bool 
(* Defaults:
        let _scaleFactor = defaultArg scaleFactor 1.1
        let _minNeighbors = defaultArg minNeighbors 3
        let _flags = defaultArg flags 
        let _minSize = defaultArg minSize null
        let _maxSize = defaultArg maxSize null
        let _outputRejectLevels = defaultArg outputRejectLevels false
*)
-> Rect[] 
override DetectMultiScale : 
        image : Mat * 
        rejectLevels : int[] byref * 
        levelWeights : float[] byref * 
        ?scaleFactor : float * 
        ?minNeighbors : int * 
        ?flags : HaarDetectionType * 
        ?minSize : Nullable<Size> * 
        ?maxSize : Nullable<Size> * 
        ?outputRejectLevels : bool 
(* Defaults:
        let _scaleFactor = defaultArg scaleFactor 1.1
        let _minNeighbors = defaultArg minNeighbors 3
        let _flags = defaultArg flags 
        let _minSize = defaultArg minSize null
        let _maxSize = defaultArg maxSize null
        let _outputRejectLevels = defaultArg outputRejectLevels false
*)
-> Rect[] Parameters
- image
- Type: OpenCvSharpMat
 Matrix of the type CV_8U containing an image where objects are detected.
- rejectLevels
- Type: SystemInt32
 [Missing <param name="rejectLevels"/> documentation for "M:OpenCvSharp.CascadeClassifier.DetectMultiScale(OpenCvSharp.Mat,System.Int32[]@,System.Double[]@,System.Double,System.Int32,OpenCvSharp.HaarDetectionType,System.Nullable{OpenCvSharp.Size},System.Nullable{OpenCvSharp.Size},System.Boolean)"] 
- levelWeights
- Type: SystemDouble
 [Missing <param name="levelWeights"/> documentation for "M:OpenCvSharp.CascadeClassifier.DetectMultiScale(OpenCvSharp.Mat,System.Int32[]@,System.Double[]@,System.Double,System.Int32,OpenCvSharp.HaarDetectionType,System.Nullable{OpenCvSharp.Size},System.Nullable{OpenCvSharp.Size},System.Boolean)"] 
- scaleFactor (Optional)
- Type: SystemDouble
 Parameter specifying how much the image size is reduced at each image scale.
- minNeighbors (Optional)
- Type: SystemInt32
 Parameter specifying how many neighbors each candidate rectangle should have to retain it.
- flags (Optional)
- Type: OpenCvSharpHaarDetectionType
 Parameter with the same meaning for an old cascade as in the function cvHaarDetectObjects. 
            It is not used for a new cascade.
- minSize (Optional)
- Type: SystemNullableSize
 Minimum possible object size. Objects smaller than that are ignored.
- maxSize (Optional)
- Type: SystemNullableSize
 Maximum possible object size. Objects larger than that are ignored.
- outputRejectLevels (Optional)
- Type: SystemBoolean
 [Missing <param name="outputRejectLevels"/> documentation for "M:OpenCvSharp.CascadeClassifier.DetectMultiScale(OpenCvSharp.Mat,System.Int32[]@,System.Double[]@,System.Double,System.Int32,OpenCvSharp.HaarDetectionType,System.Nullable{OpenCvSharp.Size},System.Nullable{OpenCvSharp.Size},System.Boolean)"] 
Return Value
Type: 
RectVector of rectangles where each rectangle contains the detected object.
 See Also
See Also