Cuda::IplReference< Type, Dim > Class Template Reference

Reference to existing IPL image. More...

#include <iplreference.hpp>

Inheritance diagram for Cuda::IplReference< Type, Dim >:

Inheritance graph
[legend]
Collaboration diagram for Cuda::IplReference< Type, Dim >:

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

template<class Type, unsigned Dim>
class Cuda::IplReference< Type, Dim >

Reference to existing IPL image.

Constructor & Destructor Documentation

template<class Type, unsigned Dim>
Cuda::IplReference< Type, Dim >::IplReference ( IplImage *  image  )  [inline]

Constructor.

Parameters:
image IPL image to reference

template<class Type, unsigned Dim>
Cuda::IplReference< Type, Dim >::IplReference ( const Size< Dim > &  _size,
IplImage *  _image 
) [inline]

Constructor.

This allocates memory for the IplImage of the given size.

Parameters:
_size size of image
_image pointer to IplImage to be referenced.


Member Function Documentation

template<class Type, unsigned Dim>
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.

Parameters:
image IplImage to be referenced.


Member Data Documentation

template<class Type, unsigned Dim>
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.

template<class Type, unsigned Dim>
int Cuda::IplReference< Type, Dim >::num_channels_ [protected]

Number of channels that are used to save image data.


The documentation for this class was generated from the following file:

Generated on Sun Sep 13 00:55:19 2009 for cudatemplates by  doxygen 1.5.6