First time here? Check out the FAQ!
answered 2013-05-31 01:37:17 -0600
If you want to write (on the disk) a part of your image, you should probably used the Region of Interest:
Mat Img = imread( "image/test.jpg" ); Mat subImg = Img(100,100); imwrite( "myimage.png", subImg );