CudaImageSet< T > Class Template Reference

This class implements a set of images, often used as a dyadic pyramid. More...

#include <CUDA/CudaImageSet.H>

Collaboration diagram for CudaImageSet< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CudaImageSet (const uint n=0)
 Construct with a given number of empty images.
 CudaImageSet (const uint n, const Dims &dims, const MemoryPolicy mp, const int dev)
 Construct with a given number of images of the given size.
 CudaImageSet (const uint n, const Dims &dims, const InitPolicy init, const MemoryPolicy mp, const int dev)
 Construct with a given number of images, size and type of initialization.
 CudaImageSet (const ImageSet< T > &cp, const MemoryPolicy mp, const int dev)
 CudaImageSet (const CudaImageSet< T > &cp)
 Copy Constructor.
 CudaImageSet (const CudaImageSet< T > &cp, const MemoryPolicy mp, const int dev)
 Copy Constructor with different memory location.
void swap (CudaImageSet< T > &that)
 Swap contents with another ImageSet.
void clear ()
 Keep the same number of images, but make all images empty (0-by-0 size).
void reset (uint newDepth=0)
 Reset to a new number of images, all images will be empty (0-by-0 size).
uint size () const
 Return number of images in image set.
const CudaImage< T > & getImage (const uint lev) const
 Get image from a given level.
const CudaImage< T > & operator[] (const uint lev) const
 Get image from a given level (shorthand for getImage()).
CudaImage< T > & getImageMut (const uint lev)
 Get mutable image from a given level.
CudaImage< T > & operator[] (const uint lev)
 Get mutable image from a given level (shorthand for getImageMut()).
void push_back (CudaImage< T > &img)
 push an image to the back of the set
void push_front (CudaImage< T > &img)
 push an image to the front of the set
CudaImage< T > pop_back ()
 return the last image in the set and pop it off
CudaImage< T > pop_front ()
 return the first image in the set and pop it off
CudaImage< T > front () const
 return the last image in the set (without popping it off)
CudaImage< T > back () const
 return the first image in the set (without popping it off)
bool isEmpty () const
 Return true if the pyramid has no non-empty images (width*height > 0).
bool isNonEmpty () const
 Return true if the pyramid has any non-empty images (width*height > 0).
CudaImageSet< T > subSet (const uint a, const uint b) const
 Return a new ImageSet with images in the half-open range [a,b[.

Detailed Description

template<class T>
class CudaImageSet< T >

This class implements a set of images, often used as a dyadic pyramid.

Definition at line 51 of file CudaImageSet.H.


Constructor & Destructor Documentation

template<class T >
CudaImageSet< T >::CudaImageSet ( const uint  n = 0  )  [inline]

Construct with a given number of empty images.

Definition at line 139 of file CudaImageSet.H.

template<class T >
CudaImageSet< T >::CudaImageSet ( const uint  n,
const Dims dims,
const MemoryPolicy  mp,
const int  dev 
) [inline]

Construct with a given number of images of the given size.

Definition at line 145 of file CudaImageSet.H.

template<class T >
CudaImageSet< T >::CudaImageSet ( const uint  n,
const Dims dims,
const InitPolicy  init,
const MemoryPolicy  mp,
const int  dev 
) [inline]

Construct with a given number of images, size and type of initialization.

Definition at line 161 of file CudaImageSet.H.

template<class T>
CudaImageSet< T >::CudaImageSet ( const CudaImageSet< T > &  cp  )  [inline]

Copy Constructor.

Definition at line 167 of file CudaImageSet.H.

References CudaImageSet< T >::size().

template<class T>
CudaImageSet< T >::CudaImageSet ( const CudaImageSet< T > &  cp,
const MemoryPolicy  mp,
const int  dev 
) [inline]

Copy Constructor with different memory location.

Definition at line 176 of file CudaImageSet.H.

References CudaImageSet< T >::size().


Member Function Documentation

template<class T >
CudaImage< T > CudaImageSet< T >::back (  )  const [inline]

return the first image in the set (without popping it off)

Definition at line 280 of file CudaImageSet.H.

References ASSERT, and CudaImageSet< T >::isNonEmpty().

template<class T >
void CudaImageSet< T >::clear (  )  [inline]

Keep the same number of images, but make all images empty (0-by-0 size).

This returns the ImageSet to a state where isEmpty() is true.

Definition at line 192 of file CudaImageSet.H.

References CudaImageSet< T >::swap().

template<class T >
CudaImage< T > CudaImageSet< T >::front (  )  const [inline]

return the last image in the set (without popping it off)

Definition at line 272 of file CudaImageSet.H.

References ASSERT, and CudaImageSet< T >::isNonEmpty().

template<class T >
const CudaImage< T > & CudaImageSet< T >::getImage ( const uint  lev  )  const [inline]

Get image from a given level.

Definition at line 212 of file CudaImageSet.H.

References ASSERT.

Referenced by CudaImageSet< T >::operator[]().

template<class T >
CudaImage< T > & CudaImageSet< T >::getImageMut ( const uint  lev  )  [inline]

Get mutable image from a given level.

Definition at line 225 of file CudaImageSet.H.

References ASSERT.

Referenced by CudaImageSet< T >::operator[]().

template<class T >
bool CudaImageSet< T >::isEmpty (  )  const [inline]

Return true if the pyramid has no non-empty images (width*height > 0).

Definition at line 288 of file CudaImageSet.H.

References CudaImageSet< T >::isNonEmpty().

template<class T >
bool CudaImageSet< T >::isNonEmpty (  )  const [inline]
template<class T >
CudaImage< T > & CudaImageSet< T >::operator[] ( const uint  lev  )  [inline]

Get mutable image from a given level (shorthand for getImageMut()).

Definition at line 233 of file CudaImageSet.H.

References CudaImageSet< T >::getImageMut().

template<class T >
const CudaImage< T > & CudaImageSet< T >::operator[] ( const uint  lev  )  const [inline]

Get image from a given level (shorthand for getImage()).

Definition at line 220 of file CudaImageSet.H.

References CudaImageSet< T >::getImage().

template<class T >
CudaImage< T > CudaImageSet< T >::pop_back (  )  [inline]

return the last image in the set and pop it off

Definition at line 252 of file CudaImageSet.H.

References ASSERT, and CudaImageSet< T >::isNonEmpty().

template<class T >
CudaImage< T > CudaImageSet< T >::pop_front (  )  [inline]

return the first image in the set and pop it off

Definition at line 262 of file CudaImageSet.H.

References ASSERT, and CudaImageSet< T >::isNonEmpty().

template<class T>
void CudaImageSet< T >::push_back ( CudaImage< T > &  img  )  [inline]

push an image to the back of the set

Definition at line 238 of file CudaImageSet.H.

template<class T>
void CudaImageSet< T >::push_front ( CudaImage< T > &  img  )  [inline]

push an image to the front of the set

Definition at line 245 of file CudaImageSet.H.

template<class T >
void CudaImageSet< T >::reset ( uint  newDepth = 0  )  [inline]

Reset to a new number of images, all images will be empty (0-by-0 size).

Definition at line 200 of file CudaImageSet.H.

References CudaImageSet< T >::swap().

template<class T >
uint CudaImageSet< T >::size (  )  const [inline]
template<class T >
CudaImageSet< T > CudaImageSet< T >::subSet ( const uint  a,
const uint  b 
) const [inline]

Return a new ImageSet with images in the half-open range [a,b[.

Definition at line 302 of file CudaImageSet.H.

References ASSERT, and CudaImageSet< T >::size().

template<class T>
void CudaImageSet< T >::swap ( CudaImageSet< T > &  that  )  [inline]

Swap contents with another ImageSet.

Definition at line 185 of file CudaImageSet.H.

Referenced by CudaImageSet< T >::clear(), and CudaImageSet< T >::reset().


The documentation for this class was generated from the following file:
Generated on Sun May 8 08:43:19 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3