Reporting an issue (bug?) with the gpu::flip function in OpenCV 2.4.4. When I call gpu::flip (a, a, 0), the image is flipped but pixels appear corrupted. However when I call gpu::flip (a, b, 0) it works fine. I have not tried 2.4.5 because I have a workaround which is just declare a second matrix to store the result. Reporting it here in case others are having problems with it in the future.