ImageWidget#

ImageWidget#

Constructor#

ImageWidget(data[, window_funcs, ...])

A high-level widget for navigating through image stacks.

Properties#

ImageWidget.cmap

ImageWidget.current_index

Get or set the current index of each slider dim.

ImageWidget.data

the data arrays displayed in the widget

ImageWidget.figure

ImguiFigure used by the ImageWidget

ImageWidget.frame_apply

get or set the frame_apply function(s)

ImageWidget.managed_graphics

the ImageGraphic objects managed by the ImageWidget

ImageWidget.slider_dims

the dimensions that the sliders index, ["t"] or ["t", "z"]

ImageWidget.window_funcs

get or set the window functions, {dim: (func, window_size)}

Methods#

ImageWidget.add_event_handler(handler[, event])

Register an event handler, called whenever the current_index changes with the current_index dict as the only argument.

ImageWidget.clear_event_handlers()

Clear all registered event handlers

ImageWidget.close()

Close the widget

ImageWidget.remove_event_handler(handler)

Remove a registered event handler

ImageWidget.reset_vmin_vmax()

Reset the vmin, vmax of each image graphic, estimated from the full data array

ImageWidget.set_data(new_data[, ...])

Change the data displayed in the widget.

ImageWidget.show(**kwargs)

Show the widget.