blobFromImages (cv.Net) - MATLAB File Help |
Creates 4-dimensional blob from image or series of images
blob = cv.Net.blobFromImages(img)
blob = cv.Net.blobFromImages(imgs)
blob = cv.Net.blobFromImages(..., 'OptionName',optionValue, ...)
[w,h]
. default [0,0]
(in which case input image size is used)SwapRB
is true. default [0,0,0]Creates blob and optionally resizes and crops the images from center, subtracts mean values, scales values, and swaps blue and red channels.
If Crop
is true, input image is resized so one side after
resize is equal to corresponding dimension in Size
and another
one is equal or larger. Then, crop from the center is performed.
If Crop
is false, direct resize without cropping and
preserving aspect ratio is performed.
A blob is a 4-dimensional matrix (so-called batch) with the
following shape: [num, cn, rows, cols]
.
Access | public |
Sealed | false |
Static | true |