7 #ifndef GRID_CLASSIFIER_H 8 #define GRID_CLASSIFIER_H 10 #include "ColorFilterHistogram.h" 34 const QPixmap &originalPixmap,
47 static int NUM_PIXELS_PER_HISTOGRAM_BINS;
49 static int MIN_STEP_PIXELS;
50 static double PEAK_HALF_WIDTH;
51 static int BIN_START_UNSHIFTED;
53 int binFromCoordinate (
double coord,
55 double coordMax)
const;
57 void computeGraphCoordinateLimits (
const QImage &image,
63 double coordinateFromBin (
int bin,
65 double coordMax)
const;
66 void copyVectorToVector (
const double from [],
68 void dumpGnuplotCoordinate (
const QString &coordinateLabel,
75 void dumpGnuplotCorrelations (
const QString &coordinateLabel,
78 const double signalA [],
79 const double signalB [],
80 const double correlationsMax []);
81 void initializeHistogramBins ();
82 void loadPicketFence (
double picketFence [],
87 void populateHistogramBins (
const QImage &image,
93 void searchCountSpace (
double bins [],
97 void searchStartStepSpace (
bool isGnuplot,
99 const QString &coordinateLabel,
110 int m_numHistogramBins;
113 #endif // GRID_CLASSIFIER_H
GridClassifier()
Single constructor.
Classify the grid pattern in an original image.
void classify(bool isGnuplot, const QPixmap &originalPixmap, const Transformation &transformation, int &countX, double &startX, double &stepX, int &countY, double &startY, double &stepY)
Classify the specified image, and return the most probably x and y grid settings. ...