Visualization
This section introduces the ImageDev visualization tools.
In Python, ImageDev images can be displayed with the imshow method. It relies on the Matplotlib
library that must be installed.
It displays a 2D or 3D image represented by an ImageDev image or a NumPy array.
This function uses ImageDev metadata in order to select the best possible rendering.
Function syntax
imshow(image, display=True)
It displays a 2D or 3D image represented by an ImageDev image or a NumPy array.
This function uses ImageDev metadata in order to select the best possible rendering.
- image: The image to be displayed
- display: If True, the image is immediately displayed, the display is delayed otherwise.
Function examples
polystyrene = ioformat.read_image( imagedev_data.get_image_path("polystyrene.tif") ) polystyrene_sep = imagedev.read_vip_image( imagedev_data.get_image_path("polystyrene_sep.vip") ) imagedev.imshow( polystyrene, False ) imagedev.imshow( polystyrene_sep )