mantidimaging.gui.windows.recon.view module#

class mantidimaging.gui.windows.recon.view.ReconstructWindowView(main_window: MainWindowView)[source]#

Bases: BaseMainWindowView

addBtn: QPushButton#
add_cor_table_row(row: int, slice_index: int, cor: float) None[source]#

Adds a row to the manual COR table with a specified slice index.

algorithmName: QComboBox#
property algorithm_name: str#
property alpha: float#
alphaSpinBox: QDoubleSpinBox#
property beam_hardening_coefs: list[float] | None#
calculateCors: QPushButton#
changeColourPaletteButton: QPushButton#
change_colour_palette_dialog: PaletteChangerView | None = None#
change_refine_iterations() None[source]#
check_stack_for_invalid_180_deg_proj(uuid: UUID) None[source]#
cleanup() None[source]#

Runs when the window is closed.

clearAllBtn: QPushButton#
clear_cor_table() None[source]#
closeEvent(self, a0: Optional[QCloseEvent])[source]#
corHelpButton: QPushButton#
property cor_table_model: CorTiltPointQtModel#
correlateBtn: QPushButton#
filterName: QComboBox#
property filter_name: str#
property gamma: float#
get_auto_cor_method() AutoCorMethod[source]#
get_cor_table_selected_rows() list[int][source]#
get_number_of_cors() int | None[source]#
get_stack(uuid) ImageStack | None[source]#
handle_auto_update_preview_selection() None[source]#
hide_tilt() None[source]#
imageLayout: QVBoxLayout#
inputTab: QWidget#
is_auto_update_preview() bool[source]#
lbhc_a0: QDoubleSpinBox#
lbhc_a1: QDoubleSpinBox#
lbhc_a2: QDoubleSpinBox#
lbhc_a3: QDoubleSpinBox#
lbhc_enabled: QCheckBox#
maxProjAngle: QDoubleSpinBox#
property max_proj_angle: float#
messageIcon: QLabel#
minimiseBtn: QPushButton#
nonNegativeCheckBox: QCheckBox#
property non_negative: bool#
numIter: QSpinBox#
property num_iter: int#
on_change_colour_palette() None[source]#

Opens the Palette Changer window when the “Auto” button has been clicked.

on_table_row_count_change(_=None, __=None) None[source]#

Called when rows have been added or removed from the point table.

Used to conditionally enable UI controls that depend on a certain amount of entries in the table.

open_help_webpage(page: str) None[source]#
pixelSize: QDoubleSpinBox#
property pixel_size: float#
preview_image_on_button_press(event) None[source]#

Handles mouse button presses on the preview projection image.

Used to set the preview slice when a user clicks on a given part of the image.

property projections_per_subset: int#
reconTab: QWidget#
recon_params() ReconstructionParameters[source]#
reconstructSlice: QPushButton#
reconstructVolume: QPushButton#
refineCorBtn: QPushButton#
refineIterationsBtn: QPushButton#
property regularisation_percent: int#
property regulariser: str#
removeBtn: QPushButton#
remove_selected_cor() None[source]#
reset_projection_preview() None[source]#
reset_recon_and_sino_previews() None[source]#

Resets the recon and sinogram preview images, forcing a complete redraw next time they are updated.

reset_recon_line_profile() None[source]#
reset_slice_and_tilt(slice_index: int) None[source]#
resultCor: QDoubleSpinBox#
resultSlope: QDoubleSpinBox#
resultTab: QWidget#
resultTilt: QDoubleSpinBox#
property rotation_centre: float#
set_correlate_buttons_enabled(enabled: bool) None[source]#
set_filters_for_recon_tool(filters: list[str]) None[source]#
set_max_projection_index(max_index: int) None[source]#
set_max_slice_index(max_index: int) None[source]#
set_recon_buttons_enabled(enabled: bool) None[source]#
set_results(cor: ScalarCoR, tilt: Degrees, slope: Slope) None[source]#

Sets the numerical COR and tilt angle results.

set_table_point(idx, slice_idx, cor) None[source]#
showEvent(self, a0: Optional[QShowEvent])[source]#
show_recon_volume(data: ImageStack, stack_id: UUID) None[source]#
show_status_message(msg: str) None[source]#

Shows a status message indicating that zero/negative/NaN pixels were found in the stack. If the msg argument is empty then this is taken to mean that no such pixels were found, so the warning message and icon are cleared. :param msg: The status message.

property slope: float#
stackSelector: DatasetSelectorWidgetView#
statusMessageTextEdit: QTextEdit#
property stochastic: bool#
stochasticCheckBox: QCheckBox#
subsetsSpinBox: QSpinBox#
tableView: RemovableRowTableView#
property tilt: float#
update_projection(image_data, preview_slice_index: int, tilt_angle: Degrees | None) None[source]#

Updates the preview projection image and associated annotations.

Region of interest sets the bounds of the image axes, it does not resize the data itself. The advantage of this is that the coordinates do not change.

Parameters:
  • image_data – Projection image data (single/2D image)

  • preview_slice_index – Y coordinate at which to draw the preview slice indicator

  • tilt_angle – Angle of the tilt line

update_recon_preview(image_data: ndarray, reset_roi: bool = False) None[source]#

Updates the reconstruction preview image with new data.

update_sinogram(image_data) None[source]#