1 #ifndef OPAL_LASERPROFILE_HH
2 #define OPAL_LASERPROFILE_HH
17 #include <gsl/gsl_rng.h>
18 #include <gsl/gsl_histogram2d.h>
27 const std::string &imageName,
33 void getXY(
double &x,
double &y);
41 unsigned short *
readFile(
const std::string &fileName,
42 const std::string &imageName);
43 unsigned short *
readPGMFile(
const std::string &fileName);
44 unsigned short *
readHDF5File(
const std::string &fileName,
45 const std::string &imageName);
46 void flipX(
unsigned short *image);
47 void flipY(
unsigned short *image);
48 void swapXY(
unsigned short *image);
56 void saveData(
const std::string &fname,
unsigned short *image);
void normalizeProfileData(double intensityCut, unsigned short *image)
void getXY(double &x, double &y)
void saveData(const std::string &fname, unsigned short *image)
void fillHistrogram(unsigned short *image)
void flipY(unsigned short *image)
LaserProfile(const std::string &fileName, const std::string &imageName, double intensityCut, short flags)
void flipX(unsigned short *image)
gsl_histogram2d * hist2d_m
unsigned short * readPGMFile(const std::string &fileName)
unsigned short * readFile(const std::string &fileName, const std::string &imageName)
void swapXY(unsigned short *image)
unsigned short getProfileMax(unsigned short *image)
unsigned short * readHDF5File(const std::string &fileName, const std::string &imageName)
Vector_t standardDeviation_m
void computeProfileStatistics(unsigned short *image)
gsl_histogram2d_pdf * pdf_m
void filterSpikes(unsigned short *image)