QTrk
|
Structure to maintain data for each GPU. More...
#include <QueuedCUDATracker.h>
Public Member Functions | |
Device (int index) | |
Initialize a GPU/CUDA Device. More... | |
~Device () | |
void | SetRadialZLUT (float *data, int radialsteps, int planes, int numLUTs) |
Copy the ZLUT data to device memory. More... | |
void | SetPixelCalibrationImages (float *offset, float *gain, int img_width, int img_height) |
Set pixel calibration images. More... | |
void | SetRadialWeights (float *zcmp) |
Set the radial weights used to calculate ZLUT plane match scores. More... | |
Public Attributes | |
cudaImageListf | radial_zlut |
List in which to keep the lookup table images. More... | |
cudaImageListf | calib_offset |
List in which to keep the offset images. More... | |
cudaImageListf | calib_gain |
List in which to keep the gain images. More... | |
device_vec< float > | zcompareWindow |
Vector in which to keep the radial weights for error curve calculation. More... | |
QI::DeviceInstance | qi_instance |
Instance of global values used by the QI submodule. More... | |
QI::DeviceInstance | qalign_instance |
Instance of global values used by the QI submodule used to perform QI alignment. More... | |
device_vec< float2 > | zlut_trigtable |
Vector of pre-calculated 2D sampling points. More... | |
int | index |
Device index of the device this instance is located on. More... | |
Structure to maintain data for each GPU.
Holds global, once-calculated values required by the algorithms.
Definition at line 207 of file QueuedCUDATracker.h.
|
inline |
Initialize a GPU/CUDA Device.
[in] | index | Index of the device pertaining to this instance. |
Definition at line 212 of file QueuedCUDATracker.h.
QueuedCUDATracker::Device::~Device | ( | ) |
Definition at line 204 of file QueuedCUDATracker.cu.
void QueuedCUDATracker::Device::SetPixelCalibrationImages | ( | float * | offset, |
float * | gain, | ||
int | img_width, | ||
int | img_height | ||
) |
Set pixel calibration images.
See QueuedTracker::SetPixelCalibrationImages for more info.
[in] | offset | (2D) Array with the per-pixel offsets to use. |
[in] | gain | (2D) Array with the per-pixel gain to use. |
[in] | img_width | Width of the full image. |
[in] | img_height | Height of the full image. |
Definition at line 761 of file QueuedCUDATracker.cu.
void QueuedCUDATracker::Device::SetRadialWeights | ( | float * | zcmp | ) |
Set the radial weights used to calculate ZLUT plane match scores.
The radial weights are used by ZLUT_ComputeProfileMatchScores, if set.
[in] | zcmp | Array with the weights to be used. Size has to equal QtrkComputedConfig::radialsteps. |
Definition at line 825 of file QueuedCUDATracker.cu.
void QueuedCUDATracker::Device::SetRadialZLUT | ( | float * | data, |
int | radialsteps, | ||
int | planes, | ||
int | numLUTs | ||
) |
Copy the ZLUT data to device memory.
[in] | data | Pointer to the start of the ZLUT data. |
[in] | radialsteps | Number of radialsteps per LUT plane |
[in] | planes | Number of planes per ZLUT. |
[in] | numLUTs | Number of ZLUTs in the dataset. |
Definition at line 812 of file QueuedCUDATracker.cu.
cudaImageListf QueuedCUDATracker::Device::calib_gain |
List in which to keep the gain images.
Definition at line 249 of file QueuedCUDATracker.h.
cudaImageListf QueuedCUDATracker::Device::calib_offset |
List in which to keep the offset images.
Definition at line 248 of file QueuedCUDATracker.h.
int QueuedCUDATracker::Device::index |
Device index of the device this instance is located on.
Definition at line 254 of file QueuedCUDATracker.h.
QI::DeviceInstance QueuedCUDATracker::Device::qalign_instance |
Instance of global values used by the QI submodule used to perform QI alignment.
Definition at line 252 of file QueuedCUDATracker.h.
QI::DeviceInstance QueuedCUDATracker::Device::qi_instance |
Instance of global values used by the QI submodule.
Definition at line 251 of file QueuedCUDATracker.h.
cudaImageListf QueuedCUDATracker::Device::radial_zlut |
List in which to keep the lookup table images.
Definition at line 247 of file QueuedCUDATracker.h.
device_vec<float> QueuedCUDATracker::Device::zcompareWindow |
Vector in which to keep the radial weights for error curve calculation.
Definition at line 250 of file QueuedCUDATracker.h.
device_vec<float2> QueuedCUDATracker::Device::zlut_trigtable |
Vector of pre-calculated 2D sampling points.
Definition at line 253 of file QueuedCUDATracker.h.