Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you can write grayscale images by setting the last argument to VideoWriter to false, but it won't support 16bit images.

until you find a better idea, try to save a sequence of single 16bit images using imread() / imwrite()

you can write grayscale images by setting the last argument to VideoWriter to false, but it won't support 16bit images.

until you find a better idea, try to save a sequence of single 16bit images using imread() / imwrite()

EDIT:

if you have numbered 16bit images, like a0001.png, a0002.png, a0003.png you can use:

cap = VideoCapture("a0001.png") # start with 1st img number

and still retrieve 16bit images !