mantidimaging.gui.widgets.mi_image_view.view module#

class mantidimaging.gui.widgets.mi_image_view.view.MIImageView(parent=None, name='ImageView', view=None, imageItem=None, levelMode='mono', detailsSpanAllCols=False, *args)[source]#

Bases: ImageView, BadDataOverlay, AutoColorMenu

property angles: ProjectionAngles | None#
close() None[source]#

Closes the widget nicely, making sure to clear the graphics scene and release memory.

default_roi() None | list[int][source]#
details: QLabel#
extend_roi_plot_mouse_press_handler() None[source]#
get_roi() tuple[CloseEnoughPoint, CloseEnoughPoint][source]#
property histogram: HistogramLUTItem#
imageItem: ImageItem#
property image_data: ndarray | None#
image_hover_event(event: HoverEvent) None[source]#
property image_item: ImageItem#
roiChanged() None[source]#

Re-implements the roiChanged function to expect only 3D data, and uses a faster mean calculation on the ROI view of the data, instead of the full sized data.

roiClicked() None[source]#
roiString = None#
roi_changed_callback: Callable[[SensibleROI], None] | None = None#
setImage(image: ndarray, *args, **kwargs)[source]#

Set the image to be displayed in the widget

See pyqtgraph.ImageView.setImage() for details of additional arguments

set_log_scale() None[source]#
set_roi(coords: list[int] | None) None[source]#
set_selected_image(image_index: int) None[source]#
set_timeline_to_tick_nearest(x_pos_clicked) None[source]#
toggle_jumping_frame(images_to_jump_by=None) None[source]#
property viewbox: ViewBox#
class mantidimaging.gui.widgets.mi_image_view.view.UnrotateablePlotROI[source]#

Bases: ROI

Like PlotROI but does not add a rotation handle.

mantidimaging.gui.widgets.mi_image_view.view.clip(value, lower, upper)[source]#