SeamCarving using OpenCV/Qt