Autonomous Space Robotics Lab

Speeded Up SURF


asrl::GpuIntegralImage Class Reference

The integral image on the device. More...

#include <GpuIntegralImage.hpp>

List of all members.

Public Member Functions

 GpuIntegralImage (int width, int height)
 ~GpuIntegralImage ()
cudaArray * d_get ()
float * h_get ()
int width ()
int height ()

Private Attributes

int m_width
 The width of the integral image.
int m_height
 The height of the integral image.
boost::shared_ptr< cudaArray > m_cudaArray
 The underlying device pointer.
CudaSynchronizedMemory< float > m_buffer
 The underlying host pointer.

Detailed Description

The integral image on the device.

A simple class that holds an integral image. The underlying storage is a cudaArray which may be converted to a texture. The underlying storage is float.

Definition at line 64 of file GpuIntegralImage.hpp.

Constructor & Destructor Documentation

asrl::GpuIntegralImage::GpuIntegralImage ( int  width,
int  height 

A constructor that will initialize the integral image

width the width of the image (in pixels)
height the height of the image (in pixels)

Definition at line 39 of file GpuIntegralImage.cpp.

asrl::GpuIntegralImage::~GpuIntegralImage (  ) 

The destructor cleans up the device memory.

Definition at line 49 of file GpuIntegralImage.cpp.

Member Function Documentation

cudaArray * asrl::GpuIntegralImage::d_get (  ) 
the underlying device pointer

Definition at line 54 of file GpuIntegralImage.cpp.

float * asrl::GpuIntegralImage::h_get (  ) 
the underlying host pointer

Definition at line 69 of file GpuIntegralImage.cpp.

int asrl::GpuIntegralImage::height (  ) 
the height of the integral image

Definition at line 64 of file GpuIntegralImage.cpp.

int asrl::GpuIntegralImage::width (  ) 
the width of the integral image

Definition at line 59 of file GpuIntegralImage.cpp.

Member Data Documentation

The underlying host pointer.

Definition at line 115 of file GpuIntegralImage.hpp.

boost::shared_ptr<cudaArray> asrl::GpuIntegralImage::m_cudaArray [private]

The underlying device pointer.

Definition at line 112 of file GpuIntegralImage.hpp.

The height of the integral image.

Definition at line 109 of file GpuIntegralImage.hpp.

The width of the integral image.

Definition at line 106 of file GpuIntegralImage.hpp.

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

Generated on Fri Apr 30 20:06:20 2010 for gpusurf by doxygen 1.6.2