• Roman Donchenko's avatar
    VideoCapture: copy the captured frame, to avoid dangling Mats · d6a7a6d5
    Roman Donchenko authored
    Previously, VideoCapture::retrieve would return a Mat that referenced
    the internal IplImage. Since the latter is rewritten every time a
    frame is captured, it means that if the user captures two frames in a row,
    the first frame would reference nothing. Similar if a user captures a frame,
    then destroys the VideoCapture instance.
    
    Note that the other branch of the if isn't affected, since flip allocates
    a new Mat.
    d6a7a6d5
Name
Last commit
Last update
..
androidcamera Loading commit data...
calib3d Loading commit data...
contrib Loading commit data...
core Loading commit data...
features2d Loading commit data...
flann Loading commit data...
gpu Loading commit data...
highgui Loading commit data...
imgproc Loading commit data...
java Loading commit data...
legacy Loading commit data...
ml Loading commit data...
nonfree Loading commit data...
objdetect Loading commit data...
ocl Loading commit data...
photo Loading commit data...
python Loading commit data...
stitching Loading commit data...
superres Loading commit data...
ts Loading commit data...
video Loading commit data...
videostab Loading commit data...
world Loading commit data...
CMakeLists.txt Loading commit data...
refman.rst.in Loading commit data...