7#ifndef _CIMAGEWINDOWTABOPTICAL_H
8#define _CIMAGEWINDOWTABOPTICAL_H
20#include <xercesc/framework/MemBufInputSource.hpp>
21#include <xercesc/parsers/XercesDOMParser.hpp>
26using namespace xercesc;
84 cout <<
"fieldx: " <<
fieldx << endl;
85 cout <<
"fieldy: " <<
fieldy << endl;
86 cout <<
"posx: " <<
posx << endl;
87 cout <<
"posy: " <<
posy << endl;
270 cout <<
"imagename: " <<
imagename << endl;
275 cout <<
"flipx: " <<
flipx << endl;
276 cout <<
"flipy: " <<
flipy << endl;
277 cout <<
"dimx: " <<
dimx << endl;
278 cout <<
"dimy: " <<
dimy << endl;
279 cout <<
"dimz: " <<
dimz << endl;
280 cout <<
"dim10: " <<
dim10 << endl;
281 cout <<
"width: " <<
width << endl;
282 cout <<
"height: " <<
height << endl;
283 cout <<
"stageposx: " <<
stageposx << endl;
284 cout <<
"stageposy: " <<
stageposy << endl;
292 for (
int i = 0; i < (int)
channels.size(); i++) {
293 cout <<
"channel " << i + 1 <<
": " <<
channels[i] << endl;
296 for (
int i = 0; i < (int)
luts.size(); i++) {
297 cout <<
"lut " << i + 1 <<
": " <<
luts[i] << endl;
306 for (
auto& it :
tiles) {
313 if (
tiles.size() > 0) {
314 avgposx /= (double)
tiles.size();
315 avgposy /= (double)
tiles.size();
317 cout <<
"avgposx: " << avgposx << endl;
318 cout <<
"avgpoxy: " << avgposy << endl;
332void readLifMetadata(
string filename, vector<cLifMetadata>& parsedmetadata);
348void parseLifMetadata(
string& metadata, vector<cLifMetadata>& parsedmetadata);
383 void getFormValues(
int& startfromindex, QStringList& tiffilenames,
int& navigationindex, QString& liffilename);
394 QString* lastdirmicroscopyimage;
396 QGridLayout* gridlayout;
398 QLabel* labelstartfrom;
399 QComboBox* comboboxstartfrom;
401 QLabel* labelusevaluesfrom;
402 QComboBox* comboboxusevaluesfrom;
405 QLineEdit* lineeditlif;
406 QPushButton* buttonlif;
408 QLabel* labelfilenames;
409 QListWidget* listwidgetfilenames;
410 QPushButton* buttonfilenames;
411 QStringList imagenames;
416 void browseButtonReleased();
418 void lifButtonReleased();
void parseLifMetadataSubTree(DOMElement *subtree, vector< cLifMetadata > &parsedmetadata)
Parse metadata from a subtree of a lif file.
Definition: cImageWindowTabOptical.cpp:355
void readLifMetadata(string filename, vector< cLifMetadata > &parsedmetadata)
Get metadata from a lif file.
Definition: cImageWindowTabOptical.cpp:5
eChannelType
Color channels.
Definition: cImageWindowTabOptical.h:32
void parseLifMetadata(string &metadata, vector< cLifMetadata > &parsedmetadata)
Parse metadata from a lif file.
Definition: cImageWindowTabOptical.cpp:677
The class representing a tab used to import images from light microscopy.
Definition: cImageWindowTabOptical.h:355
cImageWindowTabOptical(QWidget *parent=0)
The constructor.
Definition: cImageWindowTabOptical.cpp:740
~cImageWindowTabOptical()
The destructor.
Definition: cImageWindowTabOptical.cpp:819
void setFormValues(QString &lastdirmicroscopyimage, int numberoflayers)
Initialize values in the form.
Definition: cImageWindowTabOptical.cpp:788
void getFormValues(int &startfromindex, QStringList &tiffilenames, int &navigationindex, QString &liffilename)
Get the values from the form.
Definition: cImageWindowTabOptical.cpp:811
Description of an image tile.
Definition: cImageWindowTabOptical.h:43
int fieldx
Tile logical x coordinate.
Definition: cImageWindowTabOptical.h:48
cTileInfo()
The constructor.
Definition: cImageWindowTabOptical.h:72
double posx
Tile position x [m].
Definition: cImageWindowTabOptical.h:60
void print()
Print the metadata.
Definition: cImageWindowTabOptical.h:83
int fieldy
Tile logical y coordinate.
Definition: cImageWindowTabOptical.h:54
double posy
Tile position y [m].
Definition: cImageWindowTabOptical.h:66
Auxiliary funtions and structures.