dicom:userguide:thinknode
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dicom:userguide:thinknode [2015/07/10 14:09] – dpatenaude | dicom:userguide:thinknode [2021/07/29 18:23] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== thinknode™ Examples ====== | ====== thinknode™ Examples ====== | ||
- | These examples provide a starting point for issuing http connections and requests to the dosimetry | + | These examples provide a starting point for issuing http connections and requests to the dicom app on the thinknode™ framework. They are provided as is, and are written in python. Any further dependencies are listed along with the provided scripts. |
+ | |||
+ | ====== Python ====== | ||
+ | |||
+ | {{page> | ||
+ | |||
+ | ===== Python: Calculation Request ===== | ||
+ | |||
+ | ==== Posting a Dicom Patient ==== | ||
+ | |||
+ | The below example shows how to post a dicom file directory to thinknode iss and return a // | ||
+ | |||
+ | <code python> | ||
+ | # Copyright (c) 2015 .decimal, Inc. All rights reserved. | ||
+ | # Date: | ||
+ | # Desc: Post folder to thinknode and get back a dicom_study | ||
+ | |||
+ | import os.path | ||
+ | from lib import thinknode_worker as thinknode | ||
+ | from lib import dicom_worker as dicom | ||
+ | from lib import decimal_logging as dl | ||
+ | |||
+ | # Get IAM ids | ||
+ | iam = thinknode.authenticate(thinknode.read_config(' | ||
+ | |||
+ | # Create a study | ||
+ | study_id = dicom.make_rt_study_from_dir(iam, | ||
+ | |||
+ | # Combine uploaded CT image slices into an Image_3d datatype | ||
+ | study_calc = \ | ||
+ | thinknode.function(iam[" | ||
+ | [ | ||
+ | thinknode.reference(study_id) | ||
+ | ]) | ||
+ | study_res = thinknode.do_calculation(iam, | ||
+ | dl.data(" | ||
+ | </ | ||
+ | |||
+ | ===== Python: decimal Libraries ===== | ||
+ | |||
+ | {{page> | ||
+ | |||
+ | {{page> | ||
+ | |||
+ | ==== dicom_worker ==== | ||
+ | The dicom_worker module provides simplified function and calculation requests for common dicom tasks. This library is constantly growing as more routine tasks are programmed in python. | ||
+ | |||
+ | Refer to the [[https:// | ||
+ | |||
+ | - Reading and posting dicom file sets or individual files | ||
+ | - Make a dicom study or patient from local files or thinknode data | ||
+ | - Pull out dicom data from thinknode data | ||
+ | |||
+ | {{page> | ||
+ | |||
+ | {{page> | ||
- | {{page> |
dicom/userguide/thinknode.1436537355.txt.gz · Last modified: 2021/07/29 18:21 (external edit)