Ask Your Question
0

Grey Level VideoWriter

asked 2019-04-18 03:13:05 -0500

cjacquel gravatar image

Hello, How to save a Grey level video with Video Writer without to do a GREYTOBGR and keep one channel for the video to reduce the video size ?

Thank you, Christophe

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-04-18 03:16:36 -0500

berak gravatar image

updated 2019-04-18 03:21:50 -0500

if you expected the VideoWriter to do an automatic greyscale conversion -- NO, it won't happen.

you need to convert your images manually (or try to get greyscale data from the VideoCapture, e.g.Y from YUV), then set the isColor flag in the writer to false.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2019-04-18 03:13:05 -0500

Seen: 23 times

Last updated: Apr 18