Table of Contents

Class Image2BlobParams

Namespace
OpenCvSharp.Dnn
Assembly
OpenCvSharp.dll

Processing params of image to blob. It includes all possible image processing operations and corresponding parameters.

public class Image2BlobParams
Inheritance
Image2BlobParams
Inherited Members

Constructors

Image2BlobParams()

Creates parameters with default values.

Image2BlobParams(Scalar, Size, Scalar, bool, MatType?, DataLayout, ImagePaddingMode, Scalar)

Creates parameters with the specified values.

Properties

BorderValue

border value used with the LETTERBOX padding mode.

DataLayout

order of output dimensions.

Depth

depth of output blob. Choose CV_32F or CV_8U.

Mean

scalar with mean values which are subtracted from channels.

PaddingMode

element of image processing mode.

ScaleFactor

scalefactor multiplier for input image values.

Size

spatial size for output image.

SwapRB

flag which indicates that swap first and last channels.

Methods

BlobRectToImageRect(Rect, Size)

Get rectangle coordinates in original image system from rectangle in blob coordinates.

BlobRectsToImageRects(IEnumerable<Rect>, Size)

Get rectangle coordinates in original image system from rectangles in blob coordinates.

See Also