Click or drag to resize

DnnInvokeBlobFromImages Method (Mat, 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 scalefactor, 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
Syntax
public static Mat BlobFromImages(
	Mat[] images,
	double scaleFactor = 1,
	Size size = null,
	MCvScalar mean = null,
	bool swapRB = false,
	bool crop = false,
	DepthType ddepth = DepthType.Cv32F
)

Parameters

images
Type: Emgu.CVMat
Input images (all with 1- or 3-channels).
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.

Return Value

Type: Mat
Input image is resized so one side after resize is equal to corresponding dimension in size and another one is equal or larger. Then, crop from the center is performed.
See Also