Update blob.cpp

pull/479/head
Suleyman TURKMEN 10 years ago
parent 5409d5ad56
commit e3d11d99a8
  1. 4
      modules/dnn/src/blob.cpp

@ -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
{ {
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);

Loading…
Cancel
Save