bugfix: OpenCV-interface used hidden function

This commit is contained in:
jkriege2 2019-10-17 23:49:50 +02:00
parent 0c34710fc7
commit 92c1851c8c

View File

@ -77,8 +77,7 @@ inline size_t JKQTPCopyCvMatToColumn(JKQTPDatastore* datastore, const cv::Mat& m
else if (CV_MAT_DEPTH(mat.type())==CV_8U) JKQTPDatastore_Helper::copyDataFromMat<uint8_t>(d, mat, channel); else if (CV_MAT_DEPTH(mat.type())==CV_8U) JKQTPDatastore_Helper::copyDataFromMat<uint8_t>(d, mat, channel);
else throw std::runtime_error("datatype of cv::Mat not supported by JKQTPDatastore::copyImageToColumn()"); else throw std::runtime_error("datatype of cv::Mat not supported by JKQTPDatastore::copyImageToColumn()");
size_t itemid=datastore->addInternalItem(d, N); return datastore->addInternalColumn(d, N, name);
return datastore->addColumnForItem(itemid, 0, name);
} }