QTrk
Public Member Functions | Public Attributes | List of all members
QTrkComputedConfig Struct Reference

Structure for derived settings computed from base settings in QTrkSettings. More...

#include <qtrk_c_api.h>

Inheritance diagram for QTrkComputedConfig:
QTrkSettings

Public Member Functions

 QTrkComputedConfig ()
 
 QTrkComputedConfig (const QTrkSettings &base)
 
void Update ()
 Compute the derived settings. More...
 
void WriteToLog ()
 Write all settings to specified log file (Jelmer) More...
 
void WriteToFile ()
 Write all settings to specified output file (Jordi, to combine with QTrkSettings.testRun) More...
 
- Public Member Functions inherited from QTrkSettings
 QTrkSettings ()
 

Public Attributes

int zlut_radialsteps
 Number of radial steps to sample on. More...
 
int zlut_angularsteps
 Number of angular steps to sample on. More...
 
float zlut_maxradius
 Max radius in pixels of the sampling circle. More...
 
int qi_radialsteps
 Number of radial steps to sample on. More...
 
int qi_angstepspq
 Number of angular steps to sample on per quadrant. More...
 
float qi_maxradius
 Max radius in pixels of the sampling circle. More...
 
- Public Attributes inherited from QTrkSettings
int width
 Width of regions of interest to be handled. Typically equals height (square ROI). More...
 
int height
 Height of regions of interest to be handled. Typically equals width (square ROI). More...
 
int numThreads
 Number of threads/streams to use. Defaults differ between CPU and GPU implementations. More...
 
int cuda_device
 CUDA only. Flag for device selection. More...
 
float com_bgcorrection
 Background correction factor for COM. Defines the number of standard deviations data needs to be away from the image mean to be taken into account. More...
 
float zlut_minradius
 Distance in pixels from the bead center from which to start sampling profiles. Default 1.0. More...
 
float zlut_radial_coverage
 Sampling points per radial pixel. Default 3.0. More...
 
float zlut_angular_coverage
 Factor of the sampling perimeter to cover with angular sampling steps. Between 0 and 1, default 0.7. More...
 
float zlut_roi_coverage
 Factor of the ROI to include in sampling. Between 0 and 1, default 1. Maxradius = ROI/2*roi_coverage. More...
 
int qi_iterations
 Number of times to run the QI algorithm, sampling around the last found position. More...
 
float qi_minradius
 Distance in pixels from the bead center from which to start sampling profiles. Default 1.0. More...
 
float qi_radial_coverage
 Sampling points per radial pixel. Default 3.0. More...
 
float qi_angular_coverage
 Factor of the sampling perimeter to cover with angular sampling steps. Between 0 and 1, default 0.7. More...
 
float qi_roi_coverage
 Factor of the ROI to include in sampling. Between 0 and 1, default 1. Maxradius = ROI/2*roi_coverage. More...
 
float qi_angstep_factor
 Factor to reduce angular steps on lower iterations. Default 1.0 (no effect). More...
 
int xc1_profileLength
 Profile length for the cross correlation. More...
 
int xc1_profileWidth
 Profile width for the cross correlation. More...
 
int xc1_iterations
 Number of times to run the cross correlation algorithm. More...
 
int gauss2D_iterations
 Number of times to run the 2D gaussian algorithm. More...
 
float gauss2D_sigma
 Standard deviation to use in the 2D gaussian algorithm. More...
 
int downsample
 Image downsampling factor. Applied before anything else. 0 = original, 1 = 1x (W=W/2,H=H/2). More...
 
bool testRun
 Flag to run a test run. More...
 

Detailed Description

Structure for derived settings computed from base settings in QTrkSettings.

Compiled without padding to line up with LabVIEW alignment.

Warning
Changing this requires changing of the linked LabVIEW cluster QTrkSettings.ctl.
Note
All settings are always defined, eventhough only one of the three 2D localization algorithms is used.

Definition at line 189 of file qtrk_c_api.h.

Constructor & Destructor Documentation

§ QTrkComputedConfig() [1/2]

QTrkComputedConfig::QTrkComputedConfig ( )
inline

Definition at line 191 of file qtrk_c_api.h.

191 {}

§ QTrkComputedConfig() [2/2]

QTrkComputedConfig::QTrkComputedConfig ( const QTrkSettings base)
inline

Definition at line 192 of file qtrk_c_api.h.

192 { *((QTrkSettings*)this)=base; Update(); }
Structure for the settings used by the algorithms implemented in QueuedTracker.
Definition: qtrk_c_api.h:82
void Update()
Compute the derived settings.

Member Function Documentation

§ Update()

void QTrkComputedConfig::Update ( )

Compute the derived settings.

Definition at line 6 of file QueuedTracker.cpp.

7 {
8  int roi = width / 2;
9 
11  float zlut_perimeter = 2*3.141593f*zlut_maxradius;
14 
16  float qi_perimeter = 2*3.141593f*qi_maxradius;
17  qi_angstepspq = qi_perimeter*qi_angular_coverage/4;
19 
21 }
float zlut_minradius
Distance in pixels from the bead center from which to start sampling profiles. Default 1...
Definition: qtrk_c_api.h:135
int NearestPowerOf2(int v)
Definition: utils.cpp:679
float qi_minradius
Distance in pixels from the bead center from which to start sampling profiles. Default 1...
Definition: qtrk_c_api.h:141
int width
Width of regions of interest to be handled. Typically equals height (square ROI). ...
Definition: qtrk_c_api.h:106
int zlut_radialsteps
Number of radial steps to sample on.
Definition: qtrk_c_api.h:198
float qi_maxradius
Max radius in pixels of the sampling circle.
Definition: qtrk_c_api.h:204
float zlut_roi_coverage
Factor of the ROI to include in sampling. Between 0 and 1, default 1. Maxradius = ROI/2*roi_coverage...
Definition: qtrk_c_api.h:138
float qi_radial_coverage
Sampling points per radial pixel. Default 3.0.
Definition: qtrk_c_api.h:142
float zlut_angular_coverage
Factor of the sampling perimeter to cover with angular sampling steps. Between 0 and 1...
Definition: qtrk_c_api.h:137
int qi_radialsteps
Number of radial steps to sample on.
Definition: qtrk_c_api.h:202
float qi_roi_coverage
Factor of the ROI to include in sampling. Between 0 and 1, default 1. Maxradius = ROI/2*roi_coverage...
Definition: qtrk_c_api.h:144
int qi_angstepspq
Number of angular steps to sample on per quadrant.
Definition: qtrk_c_api.h:203
float zlut_radial_coverage
Sampling points per radial pixel. Default 3.0.
Definition: qtrk_c_api.h:136
float qi_angular_coverage
Factor of the sampling perimeter to cover with angular sampling steps. Between 0 and 1...
Definition: qtrk_c_api.h:143
int zlut_angularsteps
Number of angular steps to sample on.
Definition: qtrk_c_api.h:199
float zlut_maxradius
Max radius in pixels of the sampling circle.
Definition: qtrk_c_api.h:200

§ WriteToFile()

void QTrkComputedConfig::WriteToFile ( )

Write all settings to specified output file (Jordi, to combine with QTrkSettings.testRun)

Definition at line 56 of file QueuedTracker.cpp.

57 {
58  std::string path = GetCurrentOutputPath(false);
59  FILE* f = fopen(SPrintf("%s\\UsedSettings.txt",path.c_str()).c_str(),"w+");
60 
61 #define WRITEVAR(v) fprintf_s(f,"Setting: %s set to %g\n", #v, (float) v)
62  WRITEVAR(width);
89 #undef WRITEVAR
90 
91  fclose(f);
92 }
int gauss2D_iterations
Number of times to run the 2D gaussian algorithm.
Definition: qtrk_c_api.h:163
float zlut_minradius
Distance in pixels from the bead center from which to start sampling profiles. Default 1...
Definition: qtrk_c_api.h:135
#define WRITEVAR(v)
float qi_minradius
Distance in pixels from the bead center from which to start sampling profiles. Default 1...
Definition: qtrk_c_api.h:141
int width
Width of regions of interest to be handled. Typically equals height (square ROI). ...
Definition: qtrk_c_api.h:106
int downsample
Image downsampling factor. Applied before anything else. 0 = original, 1 = 1x (W=W/2,H=H/2).
Definition: qtrk_c_api.h:166
int height
Height of regions of interest to be handled. Typically equals width (square ROI). ...
Definition: qtrk_c_api.h:107
int zlut_radialsteps
Number of radial steps to sample on.
Definition: qtrk_c_api.h:198
float com_bgcorrection
Background correction factor for COM. Defines the number of standard deviations data needs to be away...
Definition: qtrk_c_api.h:133
std::string GetCurrentOutputPath(bool ext)
Definition: utils.cpp:19
float qi_maxradius
Max radius in pixels of the sampling circle.
Definition: qtrk_c_api.h:204
float zlut_roi_coverage
Factor of the ROI to include in sampling. Between 0 and 1, default 1. Maxradius = ROI/2*roi_coverage...
Definition: qtrk_c_api.h:138
int cuda_device
CUDA only. Flag for device selection.
Definition: qtrk_c_api.h:131
float qi_radial_coverage
Sampling points per radial pixel. Default 3.0.
Definition: qtrk_c_api.h:142
float zlut_angular_coverage
Factor of the sampling perimeter to cover with angular sampling steps. Between 0 and 1...
Definition: qtrk_c_api.h:137
int qi_radialsteps
Number of radial steps to sample on.
Definition: qtrk_c_api.h:202
float qi_roi_coverage
Factor of the ROI to include in sampling. Between 0 and 1, default 1. Maxradius = ROI/2*roi_coverage...
Definition: qtrk_c_api.h:144
int qi_angstepspq
Number of angular steps to sample on per quadrant.
Definition: qtrk_c_api.h:203
int qi_iterations
Number of times to run the QI algorithm, sampling around the last found position. ...
Definition: qtrk_c_api.h:140
int xc1_iterations
Number of times to run the cross correlation algorithm.
Definition: qtrk_c_api.h:161
float qi_angstep_factor
Factor to reduce angular steps on lower iterations. Default 1.0 (no effect).
Definition: qtrk_c_api.h:157
int xc1_profileWidth
Profile width for the cross correlation.
Definition: qtrk_c_api.h:160
float gauss2D_sigma
Standard deviation to use in the 2D gaussian algorithm.
Definition: qtrk_c_api.h:164
int numThreads
Number of threads/streams to use. Defaults differ between CPU and GPU implementations.
Definition: qtrk_c_api.h:114
float zlut_radial_coverage
Sampling points per radial pixel. Default 3.0.
Definition: qtrk_c_api.h:136
float qi_angular_coverage
Factor of the sampling perimeter to cover with angular sampling steps. Between 0 and 1...
Definition: qtrk_c_api.h:143
int xc1_profileLength
Profile length for the cross correlation.
Definition: qtrk_c_api.h:159
int zlut_angularsteps
Number of angular steps to sample on.
Definition: qtrk_c_api.h:199
float zlut_maxradius
Max radius in pixels of the sampling circle.
Definition: qtrk_c_api.h:200
std::string SPrintf(const char *fmt,...)
Definition: utils.cpp:132

§ WriteToLog()

void QTrkComputedConfig::WriteToLog ( )

Write all settings to specified log file (Jelmer)

Definition at line 23 of file QueuedTracker.cpp.

24 {
25 #define WRITEVAR(v) dbgprintf("Setting: %s set to %g\n", #v, (float) v)
26  WRITEVAR(width);
53 #undef WRITEVAR
54 }
int gauss2D_iterations
Number of times to run the 2D gaussian algorithm.
Definition: qtrk_c_api.h:163
float zlut_minradius
Distance in pixels from the bead center from which to start sampling profiles. Default 1...
Definition: qtrk_c_api.h:135
#define WRITEVAR(v)
float qi_minradius
Distance in pixels from the bead center from which to start sampling profiles. Default 1...
Definition: qtrk_c_api.h:141
int width
Width of regions of interest to be handled. Typically equals height (square ROI). ...
Definition: qtrk_c_api.h:106
int downsample
Image downsampling factor. Applied before anything else. 0 = original, 1 = 1x (W=W/2,H=H/2).
Definition: qtrk_c_api.h:166
int height
Height of regions of interest to be handled. Typically equals width (square ROI). ...
Definition: qtrk_c_api.h:107
int zlut_radialsteps
Number of radial steps to sample on.
Definition: qtrk_c_api.h:198
float com_bgcorrection
Background correction factor for COM. Defines the number of standard deviations data needs to be away...
Definition: qtrk_c_api.h:133
float qi_maxradius
Max radius in pixels of the sampling circle.
Definition: qtrk_c_api.h:204
float zlut_roi_coverage
Factor of the ROI to include in sampling. Between 0 and 1, default 1. Maxradius = ROI/2*roi_coverage...
Definition: qtrk_c_api.h:138
int cuda_device
CUDA only. Flag for device selection.
Definition: qtrk_c_api.h:131
float qi_radial_coverage
Sampling points per radial pixel. Default 3.0.
Definition: qtrk_c_api.h:142
float zlut_angular_coverage
Factor of the sampling perimeter to cover with angular sampling steps. Between 0 and 1...
Definition: qtrk_c_api.h:137
int qi_radialsteps
Number of radial steps to sample on.
Definition: qtrk_c_api.h:202
float qi_roi_coverage
Factor of the ROI to include in sampling. Between 0 and 1, default 1. Maxradius = ROI/2*roi_coverage...
Definition: qtrk_c_api.h:144
int qi_angstepspq
Number of angular steps to sample on per quadrant.
Definition: qtrk_c_api.h:203
int qi_iterations
Number of times to run the QI algorithm, sampling around the last found position. ...
Definition: qtrk_c_api.h:140
int xc1_iterations
Number of times to run the cross correlation algorithm.
Definition: qtrk_c_api.h:161
float qi_angstep_factor
Factor to reduce angular steps on lower iterations. Default 1.0 (no effect).
Definition: qtrk_c_api.h:157
int xc1_profileWidth
Profile width for the cross correlation.
Definition: qtrk_c_api.h:160
float gauss2D_sigma
Standard deviation to use in the 2D gaussian algorithm.
Definition: qtrk_c_api.h:164
int numThreads
Number of threads/streams to use. Defaults differ between CPU and GPU implementations.
Definition: qtrk_c_api.h:114
float zlut_radial_coverage
Sampling points per radial pixel. Default 3.0.
Definition: qtrk_c_api.h:136
float qi_angular_coverage
Factor of the sampling perimeter to cover with angular sampling steps. Between 0 and 1...
Definition: qtrk_c_api.h:143
int xc1_profileLength
Profile length for the cross correlation.
Definition: qtrk_c_api.h:159
int zlut_angularsteps
Number of angular steps to sample on.
Definition: qtrk_c_api.h:199
float zlut_maxradius
Max radius in pixels of the sampling circle.
Definition: qtrk_c_api.h:200

Member Data Documentation

§ qi_angstepspq

int QTrkComputedConfig::qi_angstepspq

Number of angular steps to sample on per quadrant.

Definition at line 203 of file qtrk_c_api.h.

§ qi_maxradius

float QTrkComputedConfig::qi_maxradius

Max radius in pixels of the sampling circle.

Definition at line 204 of file qtrk_c_api.h.

§ qi_radialsteps

int QTrkComputedConfig::qi_radialsteps

Number of radial steps to sample on.

Definition at line 202 of file qtrk_c_api.h.

§ zlut_angularsteps

int QTrkComputedConfig::zlut_angularsteps

Number of angular steps to sample on.

Definition at line 199 of file qtrk_c_api.h.

§ zlut_maxradius

float QTrkComputedConfig::zlut_maxradius

Max radius in pixels of the sampling circle.

Definition at line 200 of file qtrk_c_api.h.

§ zlut_radialsteps

int QTrkComputedConfig::zlut_radialsteps

Number of radial steps to sample on.

Definition at line 198 of file qtrk_c_api.h.


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