SeamCarving using OpenCV