Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

How to increase the video resolution using mat

$
0
0
Hello, Current video output is 640x480 resolution, how to increase 1280x1024 resolution. Append the image to AVI file Image rgbImage; (pCameraBuf->vecImages1[imageCnt]).Convert( FlyCapture2::PIXEL_FORMAT_BGR, &rgbImage ); convert to OpenCV Mat cv::Mat image = cv::Mat(rgbImage.GetRows(), rgbImage.GetCols(), CV_8UC3, rgbImage.GetData(),rowBytes); Here tried using Size size(1280,1024);cv::resize(image,image,size) And writing using writer writer.open("test.avi", CV_FOURCC('m','j','p','g'), 35.0, cv::Size(1280,1024), true); writer.write(image); Used this parameters CV_CAP_PROP_FRAME_WIDTH and CV_CAP_PROP_FRAME_HEIGHT Still has no effect, Output is 640x480. Thank You,

Viewing all articles
Browse latest Browse all 19555

Trending Articles