0

I use VideoWriter::write to wrote a Mat with the pixel format of CV_32FC3,but it would always cause an error when VideoWriter::write was called.
Then i found that any pixel format of CV_8UC* would always succeed.
But Why?

Error Msg Was:
OpenCV(4.2.0) Error: Assertion failed (!fixedType() || ((Mat*)obj)->type() == mtype) in cv::debug_build_guard::_OutputArray::create, file C:\build\master_winpack-build-win64-vc15\opencv\modules\core\src\matrix_wrap.cpp, line 1195

Any answer will be helpful

Suric
  • 53
  • 1
  • 10

1 Answers1

2

video is simply not stored at such high colour depths
Quoted From @MarkSetchell

Suric
  • 53
  • 1
  • 10