1 #ifndef GRID_CLASSIFIER_H
2 #define GRID_CLASSIFIER_H
4 #include "ColorFilterHistogram.h"
28 const QPixmap &originalPixmap,
41 static int NUM_PIXELS_PER_HISTOGRAM_BINS;
43 static int MIN_STEP_PIXELS;
44 static double PEAK_HALF_WIDTH;
45 static int BIN_START_UNSHIFTED;
47 int binFromCoordinate (
double coord,
49 double coordMax)
const;
51 void computeGraphCoordinateLimits (
const QImage &image,
57 double coordinateFromBin (
int bin,
59 double coordMax)
const;
60 void copyVectorToVector (
const double from [],
62 void dumpGnuplotCoordinate (
const QString &coordinateLabel,
69 void dumpGnuplotCorrelations (
const QString &coordinateLabel,
72 const double signalA [],
73 const double signalB [],
74 const double correlationsMax []);
75 void initializeHistogramBins ();
76 void loadPicketFence (
double picketFence [],
81 void populateHistogramBins (
const QImage &image,
87 void searchCountSpace (
double bins [],
91 void searchStartStepSpace (
bool isGnuplot,
93 const QString &coordinateLabel,
104 int m_numHistogramBins;
107 #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. ...