Multimodal-Calib
Code for performing 3D-2D and 2D-2D multimodal calibration
 All Classes Functions Variables
Classes | Public Member Functions | List of all members
ImageList Class Reference

holds the sensors images More...

#include <ImageList.h>

Public Member Functions

 ImageList (void)
 Constructor.
 
 ~ImageList (void)
 Destructor.
 
size_t getHeight (size_t idx)
 Gets the height of the image. More...
 
size_t getWidth (size_t idx)
 Gets the width of the image. More...
 
size_t getDepth (size_t idx)
 Gets the depth of the image. More...
 
size_t getNumImages (void)
 Gets the number of images stored.
 
thrust::device_vector< float > getImage (size_t idx)
 Gets the image. More...
 
float * getIP (size_t idx, size_t depthIdx)
 Gets the pointer of the image data array. More...
 
void addImage (thrust::device_vector< float > &imageDIn, size_t height, size_t width, size_t depth)
 Adds an image to the list. More...
 
void addImage (thrust::host_vector< float > &imageDIn, size_t height, size_t width, size_t depth)
 Adds an image to the list. More...
 
void removeImage (size_t idx)
 Removes an image from the list. More...
 
void removeLastImage ()
 Removes the last image on the list.
 
void removeAllImages ()
 Removes all of the images in the list.
 
void interpolateImage (ScanList *scans, GenList *gen, size_t imageIdx, size_t scanIdx, size_t genIdx, boolean linear)
 Interpolates specified image at given locations. More...
 

Detailed Description

holds the sensors images

Member Function Documentation

void ImageList::addImage ( thrust::device_vector< float > &  imageDIn,
size_t  height,
size_t  width,
size_t  depth 
)

Adds an image to the list.

Parameters
imageDIninput image data
heightheight of image
widthwidth of image
void ImageList::addImage ( thrust::host_vector< float > &  imageDIn,
size_t  height,
size_t  width,
size_t  depth 
)

Adds an image to the list.

Parameters
imageDIninput image data
heightheight of image
widthwidth of image
size_t ImageList::getDepth ( size_t  idx)

Gets the depth of the image.

/param idx index of image

size_t ImageList::getHeight ( size_t  idx)

Gets the height of the image.

/param idx index of image

thrust::device_vector< float > ImageList::getImage ( size_t  idx)

Gets the image.

/param idx index of image

float * ImageList::getIP ( size_t  idx,
size_t  depthIdx 
)

Gets the pointer of the image data array.

/param idx index of image

size_t ImageList::getWidth ( size_t  idx)

Gets the width of the image.

/param idx index of image

void ImageList::interpolateImage ( ScanList scans,
GenList gen,
size_t  imageIdx,
size_t  scanIdx,
size_t  genIdx,
boolean  linear 
)

Interpolates specified image at given locations.

Parameters
scanslist of scans with points to interpolate at
genlist of generated images to save results to
imageIdxthe index of the image
scanIdxthe index of the scan to use
genIdxthe index to save generated points at
lineartrue for linear interpolation, false for nearset neighbour
void ImageList::removeImage ( size_t  idx)

Removes an image from the list.

Parameters
idxindex of image to remove

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