Guest User

Untitled

a guest
Jan 17th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. Mat3b xyres;
  2. cvtColor(img, xyres, COLOR_GRAY2BGR);
  3. for (int i = 0; i < rects.size(); ++i)
  4. {
  5. rectangle(xyres, rects[i], Scalar(0, 0, 255), 2);
  6. }
  7.  
  8. Size size2(700, 800);
  9. resize(xyres, xyres, size2);
  10. imshow("XY-Cut Result", xyres);
  11.  
  12. waitKey();
Add Comment
Please, Sign In to add comment