Closed qq978358810 closed 4 months ago
static cv::cuda::GpuMat blobFromGpuMats(const std::vector<cv::cuda::GpuMat> &batchInput, const std::array<float, 3> &subVals, const std::array<float, 3> &divVals, bool normalize);
Modified function:
static cv::cuda::GpuMat blobFromGpuMats(const std::vector<cv::cuda::GpuMat> &batchInput, const std::array<float, 3> &subVals, const std::array<float, 3> &divVals, bool normalize, bool swapRB = false);
In this modification, an additional parameter swapRB of type bool with a default value of false is added to the function signature. This parameter is used to specify whether the Red and Blue channels should be swapped during processing.
swapRB
bool
false
@all-contributors please add @qq978358810 for code
@cyrusbehr
I've put up a pull request to add @qq978358810! :tada:
Modified function:
In this modification, an additional parameter
swapRB
of typebool
with a default value offalse
is added to the function signature. This parameter is used to specify whether the Red and Blue channels should be swapped during processing.