Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Mat3b xyres;
- cvtColor(img, xyres, COLOR_GRAY2BGR);
- for (int i = 0; i < rects.size(); ++i)
- {
- rectangle(xyres, rects[i], Scalar(0, 0, 255), 2);
- }
- Size size2(700, 800);
- resize(xyres, xyres, size2);
- imshow("XY-Cut Result", xyres);
- waitKey();
Add Comment
Please, Sign In to add comment