DnnInvokeBlobFromImages Method (IInputArrayOfArrays, IOutputArray, Double, Size, MCvScalar, Boolean, Boolean, DepthType) |
http://www.emgu.com
Creates 4-dimensional blob from series of images. Optionally resizes and crops images from center, subtract mean values, scales values by scale factor, swap Blue and Red channels.
Namespace:
Emgu.CV.Dnn
Assembly:
Emgu.CV.Platform.NetStandard (in Emgu.CV.Platform.NetStandard.dll) Version: 4.3.0.3890
Syntaxpublic static void BlobFromImages(
IInputArrayOfArrays images,
IOutputArray blob,
double scaleFactor = 1,
Size size = null,
MCvScalar mean = null,
bool swapRB = false,
bool crop = false,
DepthType ddepth = DepthType.Cv32F
)
Public Shared Sub BlobFromImages (
images As IInputArrayOfArrays,
blob As IOutputArray,
Optional scaleFactor As Double = 1,
Optional size As Size = Nothing,
Optional mean As MCvScalar = Nothing,
Optional swapRB As Boolean = false,
Optional crop As Boolean = false,
Optional ddepth As DepthType = DepthType.Cv32F
)
public:
static void BlobFromImages(
IInputArrayOfArrays^ images,
IOutputArray^ blob,
double scaleFactor = 1,
Size size = nullptr,
MCvScalar mean = nullptr,
bool swapRB = false,
bool crop = false,
DepthType ddepth = DepthType::Cv32F
)
static member BlobFromImages :
images : IInputArrayOfArrays *
blob : IOutputArray *
?scaleFactor : float *
?size : Size *
?mean : MCvScalar *
?swapRB : bool *
?crop : bool *
?ddepth : DepthType
(* Defaults:
let _scaleFactor = defaultArg scaleFactor 1
let _size = defaultArg size null
let _mean = defaultArg mean null
let _swapRB = defaultArg swapRB false
let _crop = defaultArg crop false
let _ddepth = defaultArg ddepth DepthType.Cv32F
*)
-> unit
Parameters
- images
- Type: Emgu.CVIInputArrayOfArrays
input images (all with 1-, 3- or 4-channels). - blob
- Type: Emgu.CVIOutputArray
4-dimensional OutputArray with NCHW dimensions order. - scaleFactor (Optional)
- Type: SystemDouble
multiplier for images values. - size (Optional)
- Type: System.DrawingSize
spatial size for output image - mean (Optional)
- Type: Emgu.CV.StructureMCvScalar
scalar with mean values which are subtracted from channels. Values are intended to be in (mean-R, mean-G, mean-B) order if image has BGR ordering and swapRB is true. - swapRB (Optional)
- Type: SystemBoolean
flag which indicates that swap first and last channels in 3-channel image is necessary. - crop (Optional)
- Type: SystemBoolean
flag which indicates whether image will be cropped after resize or not - ddepth (Optional)
- Type: Emgu.CV.CvEnumDepthType
Depth of output blob. Choose CV_32F or CV_8U.
See Also