API¶
Submodules¶
tomogui.gui.MainWidget module¶
- class tomogui.gui.MainWidget.TomoguiMainWindow(showOnlyReconsOpt=False, mockNoFreeart=False)[source]¶
Bases:
PyQt5.QtWidgets.QWidget
Window proposing all the possibility to use tomogui
- LAYOUT_INDEX_LIMIT = 100¶
- mainWindow¶
The tomogui project main window
- creator¶
The tomogui absorption matrix creator
tomogui.gui.ProjectWidget module¶
- class tomogui.gui.ProjectWidget.ProjectWindow(parent=None, cfgFile=None)[source]¶
Bases:
PyQt5.QtWidgets.QMainWindow
This is the main window to deal with a freeART reconsparam
- Parameters
parent – the parent of the widget in the Qt hierarchy
- filterOtherThan(id)[source]¶
set the widget on for the given reconsparam type.
- Parameters
id –
- Returns
- class tomogui.gui.ProjectWidget.MainWidget(parent=None, statusBar=None)[source]¶
Bases:
PyQt5.QtWidgets.QWidget
This is the main widget for a freeART reconsparam.
- Parameters
parent – the parent of the widget in the Qt hierarchy
- setSinoToRecons(reconsType, sinogramsData, names=None)[source]¶
Set the GUI to run the reconstruction of the given sinograms in the given mode.
Note
for Tx and FBP reconstruction we can now only deal with one reconstruction. Multiple sinogram reconstruction is only managed for fluorescence and compton.
- Parameters
reconsType (str) – the type of reconstruction to run
sinogramsData (list) – list of numpy arrays to reconstruct. Numpy nd arrays should be 2D.
names – list of the names of the sinograms