Mercurial > hg > orthanc-book
comparison Sphinx/source/plugins/python.rst @ 707:daf07750e901
typo
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 11 Jun 2021 12:44:56 +0200 |
parents | c62539d00251 |
children | cd70d23f34bc |
comparison
equal
deleted
inserted
replaced
706:c62539d00251 | 707:daf07750e901 |
---|---|
513 create an Orthanc image from a Python buffer. Taken together, these | 513 create an Orthanc image from a Python buffer. Taken together, these |
514 two functions can be used to do bidirectional conversions between | 514 two functions can be used to do bidirectional conversions between |
515 Orthanc images and Python images. | 515 Orthanc images and Python images. |
516 | 516 |
517 Here is a full working example using PIL/Pillow that shows how to | 517 Here is a full working example using PIL/Pillow that shows how to |
518 decode a DICOM instance using Orthanc, then to modify this image using | 518 decode one frame of a DICOM instance using Orthanc, then to modify |
519 PIL, and finally to upload the modified image as a new DICOM instance: | 519 this image using PIL, and finally to upload the modified image as a |
520 new DICOM instance: | |
520 | 521 |
521 .. literalinclude:: python/pil-conversions.py | 522 .. literalinclude:: python/pil-conversions.py |
522 :language: python | 523 :language: python |
523 | 524 |
524 | 525 |