64 m_sWindowName += pWindowName;
69 cvDestroyWindow(m_sWindowName.c_str());
79 cvNamedWindow(m_sWindowName.c_str(), CV_WINDOW_AUTOSIZE);
93 unsigned char *pixels = pImage->
pixels;
94 for (
int i = 0; i < max; i += 3)
96 unsigned char temp = pixels[i];
97 pixels[i] = pixels[i + 2];
102 cvShowImage(m_sWindowName.c_str(), pIplImage);
106 const int max = pImage->
width * pImage->
height * 3;
107 unsigned char *pixels = pImage->
pixels;
108 for (
int i = 0; i < max; i += 3)
110 unsigned char temp = pixels[i];
111 pixels[i] = pixels[i + 2];
112 pixels[i + 2] = temp;
116 cvReleaseImageHeader(&pIplImage);
void DrawImage(const CByteImage *pImage, int x=0, int y=0)
IplImage * Adapt(const CByteImage *pImage, bool bAllocateMemory=false)
Converts a CByteImage to an IplImage.
ImageType type
The type of the image.
int width
The width of the image in pixels.
int height
The height of the image in pixels.
unsigned char * pixels
The pointer to the the pixels.
COpenCVWindow(int nWidth, int nHeight, const char *pWindowName)
Data structure for the representation of 8-bit grayscale images and 24-bit RGB (or HSV) color images ...