Multimodal-Calib
Code for performing 3D-2D and 2D-2D multimodal calibration
 All Classes Functions Variables
Public Member Functions | Protected Attributes | List of all members
Calib Class Reference
Inheritance diagram for Calib:
CameraCalib ImageCalib

Public Member Functions

 Calib (size_t numGenScans)
 Constructor. Sets up graphics card for CUDA, sets transform type, camera type and metric type.
 
virtual bool getIfPanoramic (size_t idx)
 Gets if the camera is panoramic.
 
size_t getNumPoints (size_t idx)
 Gets number of points in moving scan depth.
 
size_t getNumDim (size_t idx)
 Gets the number of dimensions in a moving scan.
 
size_t getImageDepth (size_t idx)
 Gets the base image depth.
 
size_t getNumCh (size_t idx)
 Gets the number of channels in a moving scan.
 
size_t getNumImages (void)
 Gets the number of images.
 
size_t getImageWidth (size_t idx)
 Gets the width of an image.
 
size_t getImageHeight (size_t idx)
 Gets the height of an image.
 
void clearScans (void)
 Clears all the scans, excluding generated ones.
 
void clearImages (void)
 Clears all the images.
 
virtual void clearTforms (void)
 Clears all the transforms.
 
virtual void clearIndices (void)
 Clear indicies.
 
virtual void clearExtras (void)
 Clears any extra parts that may be setup by derived classes.
 
virtual void addCamera (thrust::host_vector< float > &cameraIn, boolean panoramic)
 Adds a camera onto the end of stored cameras.
 
void addScan (std::vector< thrust::host_vector< float >> &ScanLIn, std::vector< thrust::host_vector< float >> &ScanIIn)
 Adds scan onto end of stored scans.
 
void addImage (thrust::host_vector< float > &imageIn, size_t height, size_t width, size_t depth)
 Adds image onto end of stored images.
 
virtual void addTform (thrust::host_vector< float > &tformIn)
 Adds transform onto end of stored transforms.
 
virtual void addCameraIndices (std::vector< size_t > &cameraIdxIn)
 Adds the cameras indecies relating cameras to images.
 
void addTformIndices (std::vector< size_t > &tformsIdxIn)
 Adds the transforms indecies relating tforms to images.
 
void addScanIndices (std::vector< size_t > &scanIdxIn)
 Adds the scans indecies relating scans to images.
 
void setSSDMetric (void)
 Sets the metric to use SSD for evaluation.
 
void setGOMMetric (void)
 Sets the metric to use GOM for evaluation.
 
void setGOMSMetric (void)
 Sets the metric to use GOMS for evaluation.
 
void setMIMetric (void)
 Sets the metric to use MI for evaluation.
 
void setNMIMetric (void)
 Sets the metric to use NMI for evaluation.
 
void setLEVMetric (void)
 Sets the metric to use LEV for evaluation.
 
virtual float evalMetric (void)
 Calculates the metrics value for the given data.
 
void getBaseImage (thrust::device_vector< float > &image, size_t idx)
 Get base image.
 
virtual void generateImage (thrust::device_vector< float > &image, size_t width, size_t height, size_t dilate, size_t idx, bool imageColour)
 Outputs a render of the current alignment.
 
virtual void colourScan (float *scan, size_t idx)
 Outputs scan coloured by corrosponding image.
 

Protected Attributes

ScanList moveStore
 
ImageList baseStore
 
GenList genStore
 
Metricmetric
 
std::vector< size_t > tformIdx
 index of transform to use on image
 
std::vector< size_t > scanIdx
 index of scan assosiated with image
 

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