Constructor Image2BlobParams
- Namespace
- OpenCvSharp.Dnn
- Assembly
- OpenCvSharp.dll
Image2BlobParams()
Creates parameters with default values.
public Image2BlobParams()
Image2BlobParams(Scalar, Size, Scalar, bool, MatType?, DataLayout, ImagePaddingMode, Scalar)
Creates parameters with the specified values.
public Image2BlobParams(Scalar scaleFactor, Size size = default, Scalar mean = default, bool swapRB = false, MatType? depth = null, DataLayout dataLayout = DataLayout.NCHW, ImagePaddingMode paddingMode = ImagePaddingMode.NULL, Scalar borderValue = default)
Parameters
scaleFactorScalarmultiplier for input image values.
sizeSizespatial size for output image.
meanScalarscalar with mean values which are subtracted from channels.
swapRBboolflag which indicates that swap first and last channels.
depthMatType?depth of output blob. Choose CV_32F or CV_8U.
dataLayoutDataLayoutorder of output dimensions.
paddingModeImagePaddingModeelement of image processing mode.
borderValueScalarborder value used with the LETTERBOX padding mode.