Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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;