Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Get AOI/ROI from Byte image?

I am currently using directshow as the frame grabber from webcam, and for each frame my software developed with opencv/c++ is called. The data from directshow is a pointer to a BYTE buffer.

For each call to opencv I have to get the whole image (1600x1200 I think), but the AOI/ROI is about 100x100 pixels.

So. Is there a way to copy only the ROI/AOI of the frame with opencv?

I need the high resolution, so I cant just change camera.

Get AOI/ROI of image/frame from Byte image?Byte* buffer?

I am currently using directshow as the frame grabber from webcam, and for each frame my software developed with opencv/c++ is called. The data from directshow is a pointer to a BYTE buffer.

For each call to opencv I have to get the whole image (1600x1200 I think), but the AOI/ROI is about 100x100 pixels.

The buffer representing the image is of a RGB 24bit type.

So. Is there a way to copy only the ROI/AOI of the frame with opencv?

I need the high resolution, so I cant just change camera.