1 | initial version |
Hi Nihad,
if i understand you correctly you want to downscale the first image in your image array from 256x256 to 100x100.
Then you can use the cv::resize method.
// downscale image
cv::Mat dst;
cv::resize(image[0], dst, cv::Size(100,100));
// write image to png file
cv::imwrite("image/test.png", dst);