Viewer Class
Viewer – a graphical tool to display and interact with Series objects.
- class imagedata.viewer.Viewer(images, fig=None, ax=None, follow=False, colormap='Greys_r', norm='linear', colorbar=None, window=None, level=None, link=False, onselect=None)[source]
Viewer – a graphical tool to display and interact with Series objects.
- Parameters:
images (imagedata.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.
colormap (str) – Colour map for display. Default: Greys_r.
norm (str or matplotlib.colors.Normalize) – Normalization method. Either linear/log, or the .Normalize instance used to scale scalar data to the [0, 1] range before mapping to colors using colormap.
colorbar (bool) – Display colorbar with image. Default: None: determine colorbar based on colormap and norm. range before mapping to colors using colormap.
window (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.
onselect (function) – call function when roi changes. Default: None. When a polygon is completed or modified after completion, the onselect function is called and passed idx, tag and a list of the vertices as
(xdata, ydata)
tuples.