Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void cvSaveROIMat(string filename, Mat &src, Rect ROI)
- {
- Mat croppedImage;
- //string filename = "StageType.jpg";
- //Rect myROI(405, 136, 41, 30);
- Mat(src, ROI).copyTo(croppedImage);
- //return croppedImage;
- imwrite(filename, croppedImage);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement