This first set of commands imports pyvision and shows the image inline when running in notebook mode.
In [1]:
import pyvision as pv
im = pv.Image(pv.LENA)
im.show()
This next command shows the image at a different size.
In [2]:
im.show(size=(800,400))
Now we will display the image really small.
In [3]:
im.show(size=(32,32))
Next lets resize the image. By default the size is constrained to less than $800 \times 800$ so that it fits nicely in the notebook.
In [4]:
im = im.resize((1500,1000))
im.show()
This can be overridden by specifying the size manually. This will also be slower and use more memory.
In [5]:
im.show(size=im.size)
In [ ]: