Mercurial > hg > orthanc-book
comparison Sphinx/source/faq/matlab.rst @ 102:5ffea09f47a3
typo
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 13 Jun 2017 11:22:36 +0200 |
parents | cb712e9d9187 |
children | af1e13dac7e6 |
comparison
equal
deleted
inserted
replaced
101:3e78daa774df | 102:5ffea09f47a3 |
---|---|
24 | 24 |
25 # Get information about the instances in this DICOM series | 25 # Get information about the instances in this DICOM series |
26 instances = loadjson(urlread([ URL '/series/' SERIES '/instances' ])); | 26 instances = loadjson(urlread([ URL '/series/' SERIES '/instances' ])); |
27 | 27 |
28 # Select one slice from the series | 28 # Select one slice from the series |
29 instance = instances(1,1).ID | 29 instance = instances{1}.ID |
30 | 30 |
31 # Decode the slice with Orthanc thanks to the "/matlab" URI | 31 # Decode the slice with Orthanc thanks to the "/matlab" URI |
32 slice = eval(urlread([ URL '/instances/' instance '/matlab' ])); | 32 slice = eval(urlread([ URL '/instances/' instance '/matlab' ])); |
33 | 33 |
34 # Compute the maximum value in this slice | 34 # Compute the maximum value in this slice |