blob_from_image_with_params_def

Function blob_from_image_with_params_def 

Source
pub fn blob_from_image_with_params_def(image: &impl ToInputArray) -> 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.

§Note

This alternative version of blob_from_image_with_params function uses the following default values for its arguments:

  • param: Image2BlobParams()