Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi , You can try below code for cropping the image

Mat image = imread("somePath.bmp"); image(Rect(Point(0, 10), Point(0, 10))).copyTo(cropped_image); imshow("cropped_image", cropped_image);

Hi ,

You can try below code for cropping the image

Mat image = imread("somePath.bmp"); imread("somePath.bmp");

image(Rect(Point(0, 10), Point(0, 10))).copyTo(cropped_image); 10))).copyTo(cropped_image);

imshow("cropped_image", cropped_image);

Hi ,

You can try below code for cropping the image

Mat image = imread("somePath.bmp");

imread("somePath.bmp"); image(Rect(Point(0, 10), Point(0, 10))).copyTo(cropped_image);

10))).copyTo(cropped_image); imshow("cropped_image", cropped_image);

imshow("cropped_image", cropped_image);

Hi ,

You can try below code for cropping the image

Mat image = imread("somePath.bmp");
image(Rect(Point(0, 10), Point(0, 10))).copyTo(cropped_image);
Point(10, 0))).copyTo(cropped_image);
imshow("cropped_image", cropped_image);