Mercurial > hg > orthanc-book
view Sphinx/source/plugins/stl/rt-struct.py @ 1157:13d78bea1b36
transfer new option
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Mon, 12 May 2025 13:05:38 +0200 (2 months ago) |
parents | 5a3c238575f8 |
children |
line wrap: on
line source
import json import requests r = requests.post('http://localhost:8042/stl/encode-rtstruct', json.dumps({ 'Instance' : 'f0dc2345-8f627774-f66083ae-a14d781e-1187b513', # ID of the RT-STRUCT DICOM instance 'RoiNames' : [ 'Lung_L', 'Lung_R' ], 'Smooth' : True, 'Resolution' : 256 })) r.raise_for_status() instanceId = r.json() ['ID']