I have written code to convert an image to two part in Matlab as below
img1=imge(1:M,1:0.55*N,:);
img2=imge(1:M,0.55*N:N,:);
here imge is my input image, I am trying to convert this code to opencv. I tried to use cv::Resize ,but that doesn't work. Can you please help me out?