Functions
IplImageAdaptor Namespace Reference

Conversion between CByteImage (IVT) and IplImage (OpenCV). More...

Functions

IplImage * Adapt (const CByteImage *pImage, bool bAllocateMemory=false)
 Converts a CByteImage to an IplImage. More...
 
CByteImageAdapt (const IplImage *pIplImage, bool bAllocateMemory=false)
 Converts an IplImage to a CByteImage. More...
 

Detailed Description

Conversion between CByteImage (IVT) and IplImage (OpenCV).

Function Documentation

IplImage * IplImageAdaptor::Adapt ( const CByteImage pImage,
bool  bAllocateMemory = false 
)

Converts a CByteImage to an IplImage.

Parameters
pImageThe input image.
bAllocateMemoryIf 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.
Returns
the created instance of IplImage. Do not forget to delete the instance after use (see documentation of the parameter bAllocateMemory for details).

Definition at line 59 of file IplImageAdaptor.cpp.

CByteImage * IplImageAdaptor::Adapt ( const IplImage *  pIplImage,
bool  bAllocateMemory = false 
)

Converts an IplImage to a CByteImage.

Parameters
pIplImageThe input image.
bAllocateMemoryIf 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.
Returns
the created instance of CByteImage. Do not forget to delete the instance after use (deletion of CByteImage::pixels is done automatically in the destructor if necessary).

Definition at line 83 of file IplImageAdaptor.cpp.



asr_ivt
Author(s): Allgeyer Tobias, Hutmacher Robin, Kleinert Daniel, Meißner Pascal, Scholz Jonas, Stöckle Patrick
autogenerated on Mon Dec 2 2019 03:47:28