Answers for "opencv cut mat by center"

0

opencv cut mat by center

// Setup a rectangle to define your region of interest
cv::Rect myROI(10, 10, 100, 100);

// Crop the full image to that image contained by the rectangle myROI
// Note that this doesn't copy the data
cv::Mat croppedImage = image(myROI);
Posted by: Guest on December-08-2020

Browse Popular Code Answers by Language