0

In my code, there are created cv::Mat images whose format is CV_16UC1. I have a cv::VideoWriter object and insert created grayscale images into it. However, I have completely black video as a result. If I change the cv::Mat format to CV_8UC1 everything works as expected. Is there anything that I am missing?

Edgar Rokjān
  • 17,245
  • 4
  • 40
  • 67
eaytan
  • 319
  • 2
  • 3
  • 10
  • please post your code, also why do you need `CV_16UC1` in a grayscale image? – slawekwin Sep 01 '16 at 12:49
  • Possible duplicate of [Write 16-bit video with OpenCV](http://stackoverflow.com/questions/9314314/write-16-bit-video-with-opencv) – Miki Sep 01 '16 at 12:52
  • typical video codecs (and many image formats) don't support 16 bit format. – Micka Sep 01 '16 at 15:26

0 Answers0