1 #ifndef L_T_C_MAINFRAME_HH 2 #define L_T_C_MAINFRAME_HH 8 #include <QtGui/QMainWindow> 9 #include <QtGui/QWidget> 10 #include <QtGui/QLabel> 11 #include <QtGui/QScrollArea> 47 void setJobToLabelling();
48 void setJobToFixing();
49 void setJobToLinking();
62 void answer(
int,
int,
int,
int);
63 void modifyLocalLabels(
int,
int,
int,
int);
69 void createStatusBar();
71 bool openFile(std::string,
int c);
76 void view(T d,
bool update =
false);
79 void viewRef(T d,
bool update =
false);
81 void closeEvent ( QCloseEvent * event );
83 void initializeShowLabelling();
84 void initializeShowFixing();
85 void initializeShowLinking();
86 int trueLabel(
int label);
89 QString lastOpenFolder;
108 QMenu *preprocessMenu;
109 QMenu *segmentationMenu;
115 QAction *increaseSTAct;
116 QAction *decreaseSTAct;
118 QAction *openChannel1;
119 QAction *openChannel2;
120 QAction *newChannel2;
121 QAction *loadChannel2;
124 QAction *saveLabelAct;
125 QAction *saveLinkAct;
131 QAction *normRangeAct;
132 QAction *diffusionAct;
133 QAction *normContrastAct;
146 enum JOB{ Labelling, Fixing, Linking};
151 std::string dataFileName;
152 std::string datasetName;
153 std::string outFileNameBase;
154 std::string outFileName;
156 std::string currentDataName;
160 int FlagNormalization;
164 double kappa, delta_t_df;
172 double sigma_hessian;
173 double thresholdOnL1, compensationOnZ;
174 int morphSize, thresholdOnVolume;
177 double countour_weight, expansion_weight;
178 double lambda, delta_t_ls;
185 blitz::Array<unsigned char,4> showData;
190 blitz::Array<float,4> backDataMC;
192 int lx,ly,lz, lxb, lyb, lzb;
193 int minX,maxX,minY,maxY,minZ,maxZ;
199 blitz::TinyVector<double, 3> elSize;
201 std::vector< blitz::TinyVector<unsigned char,3> > colorMap;
205 blitz::Array<float,1> volumes;
206 blitz::Array<blitz::TinyVector<double,3>,1> centers;
207 blitz::Array<bool,1> validFlag;
208 blitz::Array<blitz::TinyVector<double,3>,1> normCenters;
209 blitz::Array<float,2> RD;
211 blitz::Array<int,1> classLabels;
212 blitz::Array<int,1> classPredictions;
214 blitz::Array<int,1> L_reassigned;
216 blitz::Array<int,1> parent;
217 blitz::Array<int,1> child;
218 blitz::Array<int,1> fileNo;
219 blitz::Array<int,1> fileNo_reassigned;
mainFrame(QWidget *parent=0)