ImageView#

class hdf5view.views.ImageView(model, dims_model)#

Bases: QAbstractItemView

Shows a greyscale or rgb(a) image view of the associated ImageModel.

If the node of the hdf5 file has ndim > 2, the image shown can be changed by changing the slice (DimsTableModel). A scrollbar is provided which can also be used to scroll through the images in the first axis.

TODO: Axis selection

Min/Max scaling Histogram Colour maps

Attributes

Methods

ImageView.handle_mouse_moved(pos)

Update the cursor position when the mouse moves in the image scene.

ImageView.handle_scroll(value)

Change the image frame on scroll.

ImageView.horizontalOffset()

Return zero.

ImageView.init_signals()

Initialise the mouse and scrollbar signals.

ImageView.moveCursor(cursorAction, modifiers)

Return a QModelIndex.

ImageView.update_image()

Update the image displayed.

ImageView.verticalOffset()

Return zero.