progress
This commit is contained in:
parent
e446cb1577
commit
e165edbe53
2 changed files with 19 additions and 9 deletions
|
|
@ -14,15 +14,12 @@ retrieve a full resolution and first lower-resolution image ::
|
|||
>>> jp2file = glymur.data.nemo() # just a path to a JPEG2000 file
|
||||
>>> jp2 = glymur.Jp2k(jp2file)
|
||||
>>> fullres = jp2[:]
|
||||
>>> print(fullres.shape)
|
||||
>>> fullres.shape
|
||||
(1456, 2592, 3)
|
||||
>>> thumbnail = jp2[::2, ::2]
|
||||
>>> print(thumbnail.shape)
|
||||
>>> thumbnail.shape
|
||||
(728, 1296, 3)
|
||||
|
||||
The :py:meth:`read` method exposes many more options for other JPEG 2000
|
||||
features such as quality layers.
|
||||
|
||||
... write images?
|
||||
=================
|
||||
It's pretty simple, just supply the image data as the 2nd argument to the Jp2k
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue