| 345 | } |
| 346 | |
| 347 | size_t Matrix::total() const |
| 348 | { |
| 349 | try |
| 350 | { |
| 351 | return spImpl->mCvMat.total(); |
| 352 | } |
| 353 | catch (const std::exception& e) |
| 354 | { |
| 355 | error(e.what(), __LINE__, __FUNCTION__, __FILE__); |
| 356 | return size_t(-1); |
| 357 | } |
| 358 | } |
| 359 | |
| 360 | int Matrix::checkVector(const int elemChannels, const int depth, const bool requireContinuous) const |
| 361 | { |