#include <iplreference.hpp>
Public Member Functions | |
IplReference (IplImage *image) | |
Constructor. | |
IplReference (const Size< Dim > &_size, IplImage *_image) | |
Constructor. | |
IplImage * | getIplImage () |
Returns the IplImage pointer. | |
void | setImage (IplImage *image) |
Extract image information from IplImage. | |
Protected Attributes | |
IplImage * | image_ptr_ |
Pointer to IplImage. | |
int | num_channels_ |
Number of channels that are used to save image data. |
Cuda::IplReference< Type, Dim >::IplReference | ( | IplImage * | image | ) | [inline] |
Constructor.
image | IPL image to reference |
Cuda::IplReference< Type, Dim >::IplReference | ( | const Size< Dim > & | _size, | |
IplImage * | _image | |||
) | [inline] |
Constructor.
This allocates memory for the IplImage of the given size.
_size | size of image | |
_image | pointer to IplImage to be referenced. |
void Cuda::IplReference< Type, Dim >::setImage | ( | IplImage * | image | ) | [inline] |
Extract image information from IplImage.
Also resets size, region_size and region_ofs to offer the possibility to update the buffer of an existing IplReference.
image | IplImage to be referenced. |
IplImage* Cuda::IplReference< Type, Dim >::image_ptr_ [protected] |
Pointer to IplImage.
This pointer is not used in the IplReference class, but it offers the possibility to handle smart pointers at some time. In future the IplReference should handle the memory of the referenced IplImage.
int Cuda::IplReference< Type, Dim >::num_channels_ [protected] |
Number of channels that are used to save image data.