84 cvSetCaptureProperty(
m_pCapture, CV_CAP_PROP_FPS, 30);
85 cvSetCaptureProperty(
m_pCapture, CV_CAP_PROP_FRAME_WIDTH, 640);
86 cvSetCaptureProperty(
m_pCapture, CV_CAP_PROP_FRAME_HEIGHT, 480);
120 unsigned char *output = pImage->
pixels;
124 memcpy(output, input, nBytes);
128 for (
int i = 0; i < nBytes; i += 3)
130 output[i] = input[i + 2];
131 output[i + 1] = input[i + 1];
132 output[i + 2] = input[i];
COpenCVCapture(int nIndex, const char *pFilename=0)
int width
The width of the image in pixels.
Data structure for the representation of 8-bit grayscale images and 24-bit RGB (or HSV) color images ...
unsigned char * pixels
The pointer to the the pixels.
bool FlipY(const CByteImage *pInputImage, CByteImage *pOutputImage)
Flips the rows in a CByteImage vertically and writes the result to a CByteImage.
bool CaptureImage(CByteImage **ppImages)
int height
The height of the image in pixels.
int bytesPerPixel
The number of bytes used for encoding one pixel.
ImageType
Enum specifying the supported image types.
GLenum GLenum GLenum input
ImageType type
The type of the image.
CByteImage::ImageType GetType()