Commit e3d11d99 authored by Suleyman TURKMEN's avatar Suleyman TURKMEN

Update blob.cpp

parent 5409d5ad
...@@ -57,7 +57,7 @@ namespace dnn ...@@ -57,7 +57,7 @@ namespace dnn
return (mat.dims <= 2) ? mat.channels() : mat.size[0]; return (mat.dims <= 2) ? mat.channels() : mat.size[0];
} }
static BlobShape getBlobShpae(std::vector<Mat> &vmat, int requestedCn = -1) static BlobShape getBlobShape(std::vector<Mat> &vmat, int requestedCn = -1)
{ {
BlobShape shape(4); BlobShape shape(4);
int cnSum = 0, matCn; int cnSum = 0, matCn;
...@@ -123,7 +123,7 @@ namespace dnn ...@@ -123,7 +123,7 @@ namespace dnn
{ {
CV_Assert(dstCn == -1 || dstCn > 0); CV_Assert(dstCn == -1 || dstCn > 0);
std::vector<Mat> inMats = extractMatVector(image); std::vector<Mat> inMats = extractMatVector(image);
BlobShape dstShape = getBlobShpae(inMats, dstCn); BlobShape dstShape = getBlobShape(inMats, dstCn);
m.create(dstShape.dims(), dstShape.ptr(), CV_32F); m.create(dstShape.dims(), dstShape.ptr(), CV_32F);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment