Ask Your Question

Holger's profile - activity

2015-08-04 13:17:59 -0600 received badge  Teacher (source)
2013-05-30 11:34:39 -0600 received badge  Necromancer (source)
2013-05-30 06:12:09 -0600 received badge  Supporter (source)
2013-05-30 06:10:52 -0600 answered a question How to read directory with images by VideoCapture?

If your images have different size, be sure to capture the largest first (by naming it 001 e.g.), otherwise you may get a memory access fault. Further the step size is not adapted by VideoCapture (opencv 2.4.2.). After

 cap >> Img;

you may need

 // correct false step size for images of different size
 Img.step = Img.elemSize()*Img.cols;