This class implements a set of images, often used as a dyadic pyramid. More...
#include <CUDA/CudaImageSet.H>
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[. |
This class implements a set of images, often used as a dyadic pyramid.
Definition at line 51 of file CudaImageSet.H.
CudaImageSet< T >::CudaImageSet | ( | const uint | n = 0 |
) | [inline] |
Construct with a given number of empty images.
Definition at line 139 of file CudaImageSet.H.
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.
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.
CudaImageSet< T >::CudaImageSet | ( | const CudaImageSet< T > & | cp | ) | [inline] |
Copy Constructor.
Definition at line 167 of file CudaImageSet.H.
References CudaImageSet< T >::size().
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().
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().
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().
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().
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[]().
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[]().
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().
bool CudaImageSet< T >::isNonEmpty | ( | ) | const [inline] |
Return true if the pyramid has any non-empty images (width*height > 0).
Definition at line 292 of file CudaImageSet.H.
Referenced by CudaImageSet< T >::back(), cudaCenterSurround(), cudaCenterSurroundDiff(), cudaCenterSurroundSingleOpponent(), CudaImageSet< T >::front(), CudaImageSet< T >::isEmpty(), CudaImageSet< T >::pop_back(), and CudaImageSet< T >::pop_front().
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().
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().
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().
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().
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.
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.
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().
uint CudaImageSet< T >::size | ( | ) | const [inline] |
Return number of images in image set.
Definition at line 208 of file CudaImageSet.H.
Referenced by cudaBuildPyrOriented(), cudaBuildPyrOrientedFromLaplacian(), cudaCenterSurround(), cudaCenterSurroundDiff(), cudaCenterSurroundSingleOpponent(), CudaImageSet< T >::CudaImageSet(), cudaIsDyadic(), cudaIsHomogeneous(), and CudaImageSet< T >::subSet().
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().
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().