pub fn blob_from_image_with_params(
image: &impl ToInputArray,
param: Image2BlobParams,
) -> Result<Mat>
Expand description
Creates 4-dimensional blob from image with given params.
@details This function is an extension of [blobFromImage] to meet more image preprocess needs. Given input image and preprocessing parameters, and function outputs the blob.
§Parameters
- image: input image (all with 1-, 3- or 4-channels).
- param: struct of Image2BlobParams, contains all parameters needed by processing of image to blob.
§Returns
4-dimensional Mat.
§C++ default parameters
- param: Image2BlobParams()