mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
dnn: handle 4-channel images in blobFromImage (#9944)
This commit is contained in:
committed by
Vadim Pisarevsky
parent
e5766513a4
commit
5bf39ceb5d
@@ -688,7 +688,7 @@ CV__DNN_EXPERIMENTAL_NS_BEGIN
|
||||
CV_EXPORTS_W Mat readTorchBlob(const String &filename, bool isBinary = true);
|
||||
/** @brief Creates 4-dimensional blob from image. Optionally resizes and crops @p image from center,
|
||||
* subtract @p mean values, scales values by @p scalefactor, swap Blue and Red channels.
|
||||
* @param image input image (with 1- or 3-channels).
|
||||
* @param image input image (with 1-, 3- or 4-channels).
|
||||
* @param size spatial size for output image
|
||||
* @param mean scalar with mean values which are subtracted from channels. Values are intended
|
||||
* to be in (mean-R, mean-G, mean-B) order if @p image has BGR ordering and @p swapRB is true.
|
||||
@@ -706,7 +706,7 @@ CV__DNN_EXPERIMENTAL_NS_BEGIN
|
||||
/** @brief Creates 4-dimensional blob from series of images. Optionally resizes and
|
||||
* crops @p images from center, subtract @p mean values, scales values by @p scalefactor,
|
||||
* swap Blue and Red channels.
|
||||
* @param images input images (all with 1- or 3-channels).
|
||||
* @param images input images (all with 1-, 3- or 4-channels).
|
||||
* @param size spatial size for output image
|
||||
* @param mean scalar with mean values which are subtracted from channels. Values are intended
|
||||
* to be in (mean-R, mean-G, mean-B) order if @p image has BGR ordering and @p swapRB is true.
|
||||
|
||||
Reference in New Issue
Block a user