Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

How to cut image to smaller pieces?

$
0
0
I need to cut image in half and each of them save as different one. For example I have image in grayscale and I try to do it like this: halfImg[0] = Mat(greyimg, Rect(0, 0, 163, 93)).clone(); halfImg[1] = Mat(greyimg, Rect(164, 0, 327, 93)).clone(); but the second one generates this error: ![image description](/upfiles/14525280939248048.jpg) Is there another way to do it in Open CV?

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>