Viewer Class

Viewer – a graphical tool to display and interact with Series objects.

class imagedata.viewer.Viewer(images, fig=None, ax=None, follow=False, cmap='gray', window=None, level=None, link=False)[source]

Viewer – a graphical tool to display and interact with Series objects.

Parameters
  • images (Series or list) – Series object or list of Series objects to view.

  • fig (Figure) – matplotlib.plt.figure if already exist (optional).

  • ax (Axes) – matplotlib axis if already exist (optional).

  • follow (bool) – Copy ROI to next tag. Default: False.

  • cmap (str) – Colour map for display. Default: gray.

  • windows (number) – Window width of signal intensities. Default: DICOM Window Width.

  • level (number) – Window level of signal intensities. Default: DICOM Window Center.

  • link (bool) – Whether scrolling is linked between displayed objects. Default: False.

advance_data(inaxes, increment)[source]

Advance display to next/previous tag value

get_roi()[source]

Return drawn ROI.

Returns

Dict of slices, index as [tag,slice] or [slice], each is list of (x,y) pairs.

set_default_viewport(axes)[source]

View as many Series as there are axes