Conversion between CByteImage (IVT) and IplImage (OpenCV). More...
Functions | |
IplImage * | Adapt (const CByteImage *pImage, bool bAllocateMemory=false) |
Converts a CByteImage to an IplImage. More... | |
CByteImage * | Adapt (const IplImage *pIplImage, bool bAllocateMemory=false) |
Converts an IplImage to a CByteImage. More... | |
Conversion between CByteImage (IVT) and IplImage (OpenCV).
IplImage * IplImageAdaptor::Adapt | ( | const CByteImage * | pImage, |
bool | bAllocateMemory = false |
||
) |
Converts a CByteImage to an IplImage.
pImage | The input image. |
bAllocateMemory | If set to false (default value) the pointer pImage->pixels is assigned to the returned instance of IplImage. In this case, cvReleaseImageHeader must be called for deletion. If set to true the returned instance of IplImage allocates its own memory and the image contents are copied. In this case, cvReleaseImage must be called for deletion. |
Definition at line 59 of file IplImageAdaptor.cpp.
CByteImage * IplImageAdaptor::Adapt | ( | const IplImage * | pIplImage, |
bool | bAllocateMemory = false |
||
) |
Converts an IplImage to a CByteImage.
pIplImage | The input image. |
bAllocateMemory | If set to false (default value) the pointer pIplImage->pixels is assigned to the returned instance of CByteImage. If set to true the returned instance of CByteImage allocates its own memory and the image contents are copied. |
Definition at line 83 of file IplImageAdaptor.cpp.