rolinh/VQMT

PSNRHVSM width and height check

Ilya87 opened this issue · 0 comments

My test video has resolution 2580x1080. If I run PSNRHVSM (or PSNRHVS) metric computation vqmt crashes

OpenCV Error: Assertion failed (0 <= _colRange.start && _colRange.start <= _colRange.end && _colRange.end <= m.cols) in Mat, file /build/opencv/src/opencv-3.4.0/modules/core/src/matrix.cpp, line 501
terminate called after throwing an instance of 'cv::Exception'
  what():  /build/opencv/src/opencv-3.4.0/modules/core/src/matrix.cpp:501: error: (-215) 0 <= _colRange.start && _colRange.start <= _colRange.end && _colRange.end <= m.cols in function Mat

After I convert sample to 2584x1080 (dimensions dividable by 8) the computation goes well. So, dimensions of video should be dividable by 8. In daala tool dump_psnrhvs has no such restriction.