QTrk
|
Go to the source code of this file.
Classes | |
struct | TImageData< T > |
class | CImageData |
struct | PathSeperator |
class | Matrix3X3 |
Typedefs | |
typedef TImageData< float > | ImageData |
typedef TImageData< double > | ImageDatad |
Functions | |
template<typename T > | |
bool | isNAN (const T &v) |
void | GetFormattedTimeString (char *output) |
std::string | GetCurrentOutputPath (bool ext=true) |
void | dbgout (const std::string &s) |
std::string | SPrintf (const char *fmt,...) |
void | dbgprintf (const char *fmt,...) |
void | dbgsetlogfile (const char *path) |
template<typename T > | |
void | DeleteAllElems (T &c) |
template<typename TPixel > | |
void | normalize (TPixel *d, uint w, uint h) |
template<typename T > | |
T | Lerp (T a, T b, float x) |
template<typename T > | |
T | Interpolate (T *image, int width, int height, float x, float y, bool *outside=0) |
template<typename T > | |
T | Interpolate1D (T *d, int len, float x) |
template<typename T > | |
T | Interpolate1D (const std::vector< T > &d, float x) |
template<typename T > | |
T | StdDeviation (T *start, T *end) |
std::vector< float > | ComputeRadialBinWindow (int rsteps) |
Calculate the radial weights for ZLUT profile comparisons. More... | |
float | ComputeBgCorrectedCOM1D (float *data, int len, float cf=2.0f) |
void | ComputeCRP (float *dst, int radialSteps, int angularSteps, float minradius, float maxradius, vector2f center, ImageData *src, float mean, float *crpmap=0) |
void | ComputeRadialProfile (float *dst, int radialSteps, int angularSteps, float minradius, float maxradius, vector2f center, ImageData *src, float mean, bool normalize) |
void | NormalizeRadialProfile (float *prof, int rsteps) |
void | NormalizeZLUT (float *zlut, int numLUTs, int planes, int radialsteps) |
void | GenerateImageFromLUT (ImageData *image, ImageData *zlut, float minradius, float maxradius, vector3f pos, bool useSplineInterp=true, int ovs=4) |
void | ApplyPoissonNoise (ImageData &img, float poissonMax, float maxValue=255) |
void | ApplyGaussianNoise (ImageData &img, float sigma) |
void | WriteComplexImageAsCSV (const char *file, std::complex< float > *d, int w, int h, const char *labels[]=0) |
void | WriteArrayAsCSVRow (const char *file, float *d, int len, bool append) |
void | WriteVectorAsCSVRow (const char *file, std::vector< float > d, bool append) |
void | WriteImageAsCSV (const char *file, float *d, int w, int h, const char *labels[]=0) |
std::vector< std::vector< float > > | ReadCSV (const char *filename, char sep='\t') |
std::vector< vector3f > | ReadVector3CSV (const char *file, char sep='\t') |
void | WriteTrace (std::string file, vector3f *results, int nResults) |
void | GenerateTestImage (ImageData &img, float xp, float yp, float size, float MaxPhotons) |
std::string | GetLocalModuleFilename () |
std::string | GetLocalModulePath () |
std::string | GetDirectoryFromPath (std::string fullpath) |
std::string | file_ext (const char *f) |
ImageData | ReadJPEGFile (const char *fn) |
ImageData | ReadLUTFile (const char *lutfile) |
int | ReadJPEGFile (uchar *srcbuf, int srclen, uchar **data, int *width, int *height) |
void | WriteJPEGFile (uchar *data, int w, int h, const char *filename, int quality) |
void | FloatToJPEGFile (const char *name, const float *d, int w, int h) |
void | WriteJPEGFile (const char *name, const ImageData &img) |
int | NearestPowerOf2 (int v) |
int | NearestPowerOf3 (int v) |
void | GenerateGaussianSpotImage (ImageData *img, vector2f pos, float sigma, float I0, float Ibg) |
std::vector< uchar > | ReadToByteBuffer (const char *filename) |
double | GetPreciseTime () |
template<typename T > | |
void | floatToNormalizedInt (T *dst, const float *src, uint w, uint h, T maxValue) |
template<typename T > | |
T * | floatToNormalizedInt (const float *src, uint w, uint h, T maxValue) |
template<typename T > | |
T | ComputeStdDev (T *data, int len) |
template<typename T > | |
T | qselect (T *data, int start, int end, int k) |
template<typename T > | |
T | erf (T x) |
typedef TImageData<float> ImageData |
typedef TImageData<double> ImageDatad |
void ApplyPoissonNoise | ( | ImageData & | img, |
float | poissonMax, | ||
float | maxValue = 255 |
||
) |
float ComputeBgCorrectedCOM1D | ( | float * | data, |
int | len, | ||
float | cf = 2.0f |
||
) |
void ComputeCRP | ( | float * | dst, |
int | radialSteps, | ||
int | angularSteps, | ||
float | minradius, | ||
float | maxradius, | ||
vector2f | center, | ||
ImageData * | src, | ||
float | mean, | ||
float * | crpmap = 0 |
||
) |
Definition at line 181 of file utils.cpp.
std::vector<float> ComputeRadialBinWindow | ( | int | rsteps | ) |
void ComputeRadialProfile | ( | float * | dst, |
int | radialSteps, | ||
int | angularSteps, | ||
float | minradius, | ||
float | maxradius, | ||
vector2f | center, | ||
ImageData * | src, | ||
float | mean, | ||
bool | normalize | ||
) |
Definition at line 298 of file utils.cpp.
void dbgsetlogfile | ( | const char * | path | ) |
void DeleteAllElems | ( | T & | c | ) |
std::string file_ext | ( | const char * | f | ) |
void FloatToJPEGFile | ( | const char * | name, |
const float * | d, | ||
int | w, | ||
int | h | ||
) |
Definition at line 189 of file fastjpg.cpp.
void floatToNormalizedInt | ( | T * | dst, |
const float * | src, | ||
uint | w, | ||
uint | h, | ||
T | maxValue | ||
) |
Definition at line 213 of file utils.h.
void GenerateImageFromLUT | ( | ImageData * | image, |
ImageData * | zlut, | ||
float | minradius, | ||
float | maxradius, | ||
vector3f | pos, | ||
bool | useSplineInterp = true , |
||
int | ovs = 4 |
||
) |
Definition at line 354 of file utils.cpp.
void GenerateTestImage | ( | ImageData & | img, |
float | xp, | ||
float | yp, | ||
float | size, | ||
float | MaxPhotons | ||
) |
std::string GetDirectoryFromPath | ( | std::string | fullpath | ) |
void GetFormattedTimeString | ( | char * | output | ) |
std::string GetLocalModuleFilename | ( | ) |
double GetPreciseTime | ( | ) |
|
inline |
|
inline |
|
inline |
bool isNAN | ( | const T & | v | ) |
|
inline |
int NearestPowerOf2 | ( | int | v | ) |
int NearestPowerOf3 | ( | int | v | ) |
void NormalizeZLUT | ( | float * | zlut, |
int | numLUTs, | ||
int | planes, | ||
int | radialsteps | ||
) |
Definition at line 291 of file utils.cpp.
T qselect | ( | T * | data, |
int | start, | ||
int | end, | ||
int | k | ||
) |
std::vector< std::vector<float> > ReadCSV | ( | const char * | filename, |
char | sep = '\t' |
||
) |
ImageData ReadJPEGFile | ( | const char * | fn | ) |
Definition at line 626 of file utils.cpp.
Definition at line 12 of file fastjpg.cpp.
ImageData ReadLUTFile | ( | const char * | lutfile | ) |
Definition at line 720 of file utils.cpp.
std::vector<uchar> ReadToByteBuffer | ( | const char * | filename | ) |
std::vector<vector3f> ReadVector3CSV | ( | const char * | file, |
char | sep = '\t' |
||
) |
Definition at line 494 of file utils.cpp.
void WriteArrayAsCSVRow | ( | const char * | file, |
float * | d, | ||
int | len, | ||
bool | append | ||
) |
void WriteComplexImageAsCSV | ( | const char * | file, |
std::complex< float > * | d, | ||
int | w, | ||
int | h, | ||
const char * | labels[] = 0 |
||
) |
void WriteImageAsCSV | ( | const char * | file, |
float * | d, | ||
int | w, | ||
int | h, | ||
const char * | labels[] = 0 |
||
) |
void WriteJPEGFile | ( | uchar * | data, |
int | w, | ||
int | h, | ||
const char * | filename, | ||
int | quality | ||
) |
Definition at line 89 of file fastjpg.cpp.
|
inline |
Definition at line 190 of file utils.h.
void WriteTrace | ( | std::string | file, |
vector3f * | results, | ||
int | nResults | ||
) |