Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | · | 1 | ·f39954deaeeec71d5918f1923d013bce·964844·doc·optional·python-pydicom-doc_2.4.3-1_all.deb |
2 | ·53647fb4d0c2740a8b83e03855d721b6·1120052·python·optional·python3-pydicom_2.4.3-1_all.deb | 2 | ·53647fb4d0c2740a8b83e03855d721b6·1120052·python·optional·python3-pydicom_2.4.3-1_all.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2024-01-26·12:08:13.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2024-01-26·12:08:13.000000·debian-binary |
2 | -rw-r--r--···0········0········0····2973 | 2 | -rw-r--r--···0········0········0····29736·2024-01-26·12:08:13.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···934 | 3 | -rw-r--r--···0········0········0···934916·2024-01-26·12:08:13.000000·data.tar.xz |
Offset 1161, 15 lines modified | Offset 1161, 15 lines modified | ||
1161 | -rw-r--r--···0·root·········(0)·root·········(0)····30346·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.1.0.html | 1161 | -rw-r--r--···0·root·········(0)·root·········(0)····30346·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.1.0.html |
1162 | -rw-r--r--···0·root·········(0)·root·········(0)·····6920·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.1.1.html | 1162 | -rw-r--r--···0·root·········(0)·root·········(0)·····6920·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.1.1.html |
1163 | -rw-r--r--···0·root·········(0)·root·········(0)····24926·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.2.0.html | 1163 | -rw-r--r--···0·root·········(0)·root·········(0)····24926·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.2.0.html |
1164 | -rw-r--r--···0·root·········(0)·root·········(0)····13994·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.3.0.html | 1164 | -rw-r--r--···0·root·········(0)·root·········(0)····13994·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.3.0.html |
1165 | -rw-r--r--···0·root·········(0)·root·········(0)····12163·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.4.0.html | 1165 | -rw-r--r--···0·root·········(0)·root·········(0)····12163·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.4.0.html |
1166 | -rw-r--r--···0·root·········(0)·root·········(0)·····6355·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.4.3.html | 1166 | -rw-r--r--···0·root·········(0)·root·········(0)·····6355·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.4.3.html |
1167 | -rw-r--r--···0·root·········(0)·root·········(0)·····6267·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/search.html | 1167 | -rw-r--r--···0·root·········(0)·root·········(0)·····6267·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/search.html |
1168 | -rw-r--r--···0·root·········(0)·root·········(0)···4295 | 1168 | -rw-r--r--···0·root·········(0)·root·········(0)···429591·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/searchindex.js |
1169 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/ | 1169 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/ |
1170 | -rw-r--r--···0·root·········(0)·root·········(0)·····8599·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/contributing.html | 1170 | -rw-r--r--···0·root·········(0)·root·········(0)·····8599·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/contributing.html |
1171 | -rw-r--r--···0·root·········(0)·root·········(0)····28358·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/contributing_code.html | 1171 | -rw-r--r--···0·root·········(0)·root·········(0)····28358·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/contributing_code.html |
1172 | -rw-r--r--···0·root·········(0)·root·········(0)····26245·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/contributing_docs.html | 1172 | -rw-r--r--···0·root·········(0)·root·········(0)····26245·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/contributing_docs.html |
1173 | -rw-r--r--···0·root·········(0)·root·········(0)····72087·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/dataset_basics.html | 1173 | -rw-r--r--···0·root·········(0)·root·········(0)····72087·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/dataset_basics.html |
1174 | -rw-r--r--···0·root·········(0)·root·········(0)····21951·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/dicom_json.html | 1174 | -rw-r--r--···0·root·········(0)·root·········(0)····21951·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/dicom_json.html |
1175 | -rw-r--r--···0·root·········(0)·root·········(0)····63371·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/filesets.html | 1175 | -rw-r--r--···0·root·········(0)·root·········(0)····63371·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/filesets.html |
Offset 166, 15 lines modified | Offset 166, 15 lines modified | ||
166 | ····#·print·the·image·information·given·in·the·dataset | 166 | ····#·print·the·image·information·given·in·the·dataset |
167 | ····print('The·information·of·the·data·set·after·downsampling:·\n') | 167 | ····print('The·information·of·the·data·set·after·downsampling:·\n') |
168 | ····print(ds) | 168 | ····print(ds) |
169 | ..·rst-class::·sphx-glr-timing | 169 | ..·rst-class::·sphx-glr-timing |
170 | ···**Total·running·time·of·the·script:**·(0·minutes·0.0 | 170 | ···**Total·running·time·of·the·script:**·(0·minutes·0.030·seconds) |
171 | ..·_sphx_glr_download_auto_examples_image_processing_plot_downsize_image.py: | 171 | ..·_sphx_glr_download_auto_examples_image_processing_plot_downsize_image.py: |
172 | ..·only::·html | 172 | ..·only::·html |
173 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 173 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 83, 15 lines modified | Offset 83, 15 lines modified | ||
83 | ····fig.tight_layout(pad=1) | 83 | ····fig.tight_layout(pad=1) |
84 | ····plt.show() | 84 | ····plt.show() |
85 | ..·rst-class::·sphx-glr-timing | 85 | ..·rst-class::·sphx-glr-timing |
86 | ···**Total·running·time·of·the·script:**·(0·minutes· | 86 | ···**Total·running·time·of·the·script:**·(0·minutes·1.093·seconds) |
87 | ..·_sphx_glr_download_auto_examples_image_processing_plot_waveforms.py: | 87 | ..·_sphx_glr_download_auto_examples_image_processing_plot_waveforms.py: |
88 | ..·only::·html | 88 | ..·only::·html |
89 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 89 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 159, 15 lines modified | Offset 159, 15 lines modified | ||
159 | ····ds·=·pydicom.dcmread(filename) | 159 | ····ds·=·pydicom.dcmread(filename) |
160 | ····myprint(ds) | 160 | ····myprint(ds) |
161 | ..·rst-class::·sphx-glr-timing | 161 | ..·rst-class::·sphx-glr-timing |
162 | ···**Total·running·time·of·the·script:**·(0·minutes·0.0 | 162 | ···**Total·running·time·of·the·script:**·(0·minutes·0.018·seconds) |
163 | ..·_sphx_glr_download_auto_examples_input_output_plot_printing_dataset.py: | 163 | ..·_sphx_glr_download_auto_examples_input_output_plot_printing_dataset.py: |
164 | ..·only::·html | 164 | ..·only::·html |
165 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 165 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 91, 15 lines modified | Offset 91, 15 lines modified | ||
91 | ····#·plot·the·image·using·matplotlib | 91 | ····#·plot·the·image·using·matplotlib |
92 | ····plt.imshow(ds.pixel_array,·cmap=plt.cm.gray) | 92 | ····plt.imshow(ds.pixel_array,·cmap=plt.cm.gray) |
93 | ····plt.show() | 93 | ····plt.show() |
94 | ..·rst-class::·sphx-glr-timing | 94 | ..·rst-class::·sphx-glr-timing |
95 | ···**Total·running·time·of·the·script:**·(0·minutes·0. | 95 | ···**Total·running·time·of·the·script:**·(0·minutes·0.397·seconds) |
96 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_dicom.py: | 96 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_dicom.py: |
97 | ..·only::·html | 97 | ..·only::·html |
98 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 98 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 170, 15 lines modified | Offset 170, 15 lines modified | ||
170 | ····················#·Optionally·read·the·corresponding·SOP·Instance | 170 | ····················#·Optionally·read·the·corresponding·SOP·Instance |
171 | ····················#·instance·=·dcmread(Path(root_dir)·/·p) | 171 | ····················#·instance·=·dcmread(Path(root_dir)·/·p) |
172 | ····················#·print(instance.PatientName) | 172 | ····················#·print(instance.PatientName) |
173 | ..·rst-class::·sphx-glr-timing | 173 | ..·rst-class::·sphx-glr-timing |
174 | ···**Total·running·time·of·the·script:**·(0·minutes·0.0 | 174 | ···**Total·running·time·of·the·script:**·(0·minutes·0.052·seconds) |
175 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_dicom_directory.py: | 175 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_dicom_directory.py: |
176 | ..·only::·html | 176 | ..·only::·html |
177 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 177 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 99, 15 lines modified | Offset 99, 15 lines modified | ||
99 | ········Modality=MR·-·3·SOP·Instances | 99 | ········Modality=MR·-·3·SOP·Instances |
100 | ········Modality=MR·-·7·SOP·Instances | 100 | ········Modality=MR·-·7·SOP·Instances |
101 | ····Found·7·instances·for·SeriesInstanceUID=1.3.6.1.4.1.5962.1.1.0.0.0.1196533885.18148.0.118 | 101 | ····Found·7·instances·for·SeriesInstanceUID=1.3.6.1.4.1.5962.1.1.0.0.0.1196533885.18148.0.118 |
102 | ····Found·0·instances·with·PhotometricInterpretation='MONOCHROME1'·without·loading·the·stored·instances·and·3·instances·with·loading | 102 | ····Found·0·instances·with·PhotometricInterpretation='MONOCHROME1'·without·loading·the·stored·instances·and·3·instances·with·loading |
103 | ····Original·File-set·still·at·/build/reproducible-path/pydicom-2.4.3/pydicom/data/test_files/dicomdirtests | 103 | ····Original·File-set·still·at·/build/reproducible-path/pydicom-2.4.3/pydicom/data/test_files/dicomdirtests |
104 | ····File-set·copied·to·/tmp/tmp | 104 | ····File-set·copied·to·/tmp/tmp9yz0ttrx·and·contains·the·following·files: |
105 | ······DICOMDIR | 105 | ······DICOMDIR |
106 | ······PT000000/ST000000/SE000000/IM000000 | 106 | ······PT000000/ST000000/SE000000/IM000000 |
107 | ······PT000000/ST000000/SE000001/IM000000 | 107 | ······PT000000/ST000000/SE000001/IM000000 |
108 | ······PT000000/ST000000/SE000002/IM000000 | 108 | ······PT000000/ST000000/SE000002/IM000000 |
109 | ······PT000000/ST000001/SE000000/IM000000 | 109 | ······PT000000/ST000001/SE000000/IM000000 |
110 | ······PT000000/ST000001/SE000000/IM000001 | 110 | ······PT000000/ST000001/SE000000/IM000001 |
111 | ······PT000000/ST000001/SE000000/IM000002 | 111 | ······PT000000/ST000001/SE000000/IM000002 |
Offset 263, 15 lines modified | Offset 263, 15 lines modified | ||
263 | ····for·p·in·sorted(root.glob('**/*')): | 263 | ····for·p·in·sorted(root.glob('**/*')): |
264 | ········if·p.is_file(): | 264 | ········if·p.is_file(): |
265 | ············print(f"··{p.relative_to(root)}") | 265 | ············print(f"··{p.relative_to(root)}") |
266 | ..·rst-class::·sphx-glr-timing | 266 | ..·rst-class::·sphx-glr-timing |
267 | ···**Total·running·time·of·the·script:**·(0·minutes·0. | 267 | ···**Total·running·time·of·the·script:**·(0·minutes·0.731·seconds) |
268 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_fileset.py: | 268 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_fileset.py: |
269 | ..·only::·html | 269 | ..·only::·html |
270 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 270 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 73, 15 lines modified | Offset 73, 15 lines modified | ||
73 | ····filename·=·get_testdata_file('rtplan.dcm') | 73 | ····filename·=·get_testdata_file('rtplan.dcm') |
74 | ····dataset·=·pydicom.dcmread(filename) | 74 | ····dataset·=·pydicom.dcmread(filename) |
75 | ····print(list_beams(dataset)) | 75 | ····print(list_beams(dataset)) |
76 | ..·rst-class::·sphx-glr-timing | 76 | ..·rst-class::·sphx-glr-timing |
77 | ···**Total·running·time·of·the·script:**·(0·minutes·0.0 | 77 | ···**Total·running·time·of·the·script:**·(0·minutes·0.016·seconds) |
78 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_rtplan.py: | 78 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_rtplan.py: |
79 | ..·only::·html | 79 | ..·only::·html |
80 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 80 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 33, 40 lines modified | Offset 33, 40 lines modified | ||
33 | ..·rst-class::·sphx-glr-script-out | 33 | ..·rst-class::·sphx-glr-script-out |
34 | ·..·code-block::·none | 34 | ·..·code-block::·none |
35 | ····Setting·file·meta·information... | 35 | ····Setting·file·meta·information... |
36 | ····Setting·dataset·values... | 36 | ····Setting·dataset·values... |
37 | ····Writing·test·file·/tmp/tmp1 | 37 | ····Writing·test·file·/tmp/tmp1dp2hmi2.dcm |
38 | ····File·saved. | 38 | ····File·saved. |
39 | ····Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmp | 39 | ····Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmp9kmjr4bl.dcm |
40 | ····Load·file·/tmp/tmp1 | 40 | ····Load·file·/tmp/tmp1dp2hmi2.dcm·... |
41 | ····Dataset.file_meta·------------------------------- | 41 | ····Dataset.file_meta·------------------------------- |
42 | ····(0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage | 42 | ····(0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage |
43 | ····(0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 | 43 | ····(0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 |
44 | ····(0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 | 44 | ····(0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 |
45 | ····------------------------------------------------- | 45 | ····------------------------------------------------- |
46 | ····(0008,·0023)·Content·Date························DA:·'202 | 46 | ····(0008,·0023)·Content·Date························DA:·'20251210' |
47 | ····(0008,·0033)·Content·Time························TM:·' | 47 | ····(0008,·0033)·Content·Time························TM:·'110649.672337' |
48 | ····(0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 48 | ····(0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
49 | ····(0010,·0020)·Patient·ID··························LO:·'123456' | 49 | ····(0010,·0020)·Patient·ID··························LO:·'123456' |
50 | ····Remove·file·/tmp/tmp1 | 50 | ····Remove·file·/tmp/tmp1dp2hmi2.dcm·... |
51 | ····Load·file·/tmp/tmp | 51 | ····Load·file·/tmp/tmp9kmjr4bl.dcm·... |
52 | ····Dataset.file_meta·------------------------------- | 52 | ····Dataset.file_meta·------------------------------- |
53 | ····(0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage | 53 | ····(0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage |
54 | ····(0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 | 54 | ····(0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 |
55 | ····(0002,·0010)·Transfer·Syntax·UID·················UI:·Explicit·VR·Big·Endian | 55 | ····(0002,·0010)·Transfer·Syntax·UID·················UI:·Explicit·VR·Big·Endian |
56 | ····(0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 | 56 | ····(0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 |
57 | ····------------------------------------------------- | 57 | ····------------------------------------------------- |
58 | ····(0008,·0023)·Content·Date························DA:·'202 | 58 | ····(0008,·0023)·Content·Date························DA:·'20251210' |
59 | ····(0008,·0033)·Content·Time························TM:·' | 59 | ····(0008,·0033)·Content·Time························TM:·'110649.672337' |
60 | ····(0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 60 | ····(0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
61 | ····(0010,·0020)·Patient·ID··························LO:·'123456' | 61 | ····(0010,·0020)·Patient·ID··························LO:·'123456' |
62 | ····Remove·file·/tmp/tmp | 62 | ····Remove·file·/tmp/tmp9kmjr4bl.dcm·... |
63 | | | 63 | | |
Offset 140, 15 lines modified | Offset 140, 15 lines modified | ||
140 | ········#·remove·the·created·file | 140 | ········#·remove·the·created·file |
141 | ········print('Remove·file·{}·...'.format(filename)) | 141 | ········print('Remove·file·{}·...'.format(filename)) |
142 | ········os.remove(filename) | 142 | ········os.remove(filename) |
143 | ..·rst-class::·sphx-glr-timing | 143 | ..·rst-class::·sphx-glr-timing |
144 | ···**Total·running·time·of·the·script:**·(0·minutes·0.0 | 144 | ···**Total·running·time·of·the·script:**·(0·minutes·0.018·seconds) |
145 | ..·_sphx_glr_download_auto_examples_input_output_plot_write_dicom.py: | 145 | ..·_sphx_glr_download_auto_examples_input_output_plot_write_dicom.py: |
146 | ..·only::·html | 146 | ..·only::·html |
147 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 147 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 223, 15 lines modified | Offset 223, 15 lines modified | ||
223 | ..·rst-class::·sphx-glr-timing | 223 | ..·rst-class::·sphx-glr-timing |
224 | ···**Total·running·time·of·the·script:**·(0·minutes·0.0 | 224 | ···**Total·running·time·of·the·script:**·(0·minutes·0.033·seconds) |
225 | ..·_sphx_glr_download_auto_examples_metadata_processing_plot_anonymize.py: | 225 | ..·_sphx_glr_download_auto_examples_metadata_processing_plot_anonymize.py: |
226 | ..·only::·html | 226 | ..·only::·html |
227 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 227 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 745, 15 lines modified | Offset 745, 15 lines modified | ||
745 | ····for·line·in·diff.compare(rep[0],·rep[1]): | 745 | ····for·line·in·diff.compare(rep[0],·rep[1]): |
746 | ········if·line[0]·!=·"?": | 746 | ········if·line[0]·!=·"?": |
747 | ············print(line) | 747 | ············print(line) |
748 | ..·rst-class::·sphx-glr-timing | 748 | ..·rst-class::·sphx-glr-timing |
749 | ···**Total·running·time·of·the·script:**·(0·minutes·0. | 749 | ···**Total·running·time·of·the·script:**·(0·minutes·0.366·seconds) |
750 | ..·_sphx_glr_download_auto_examples_plot_dicom_difference.py: | 750 | ..·_sphx_glr_download_auto_examples_plot_dicom_difference.py: |
751 | ..·only::·html | 751 | ..·only::·html |
752 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 752 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 244, 15 lines modified | Offset 244, 15 lines modified | ||
244 | <span·class="n">ds</span><span·class="o">.</span><span·class="n">Rows</span><span·class="p">,</span>·<span·class="n">ds</span><span·class="o">.</span><span·class="n">Columns</span>·<span·class="o">=</span>·<span·class="n">data_downsampling</span><span·class="o">.</span><span·class="n">shape</span> | 244 | <span·class="n">ds</span><span·class="o">.</span><span·class="n">Rows</span><span·class="p">,</span>·<span·class="n">ds</span><span·class="o">.</span><span·class="n">Columns</span>·<span·class="o">=</span>·<span·class="n">data_downsampling</span><span·class="o">.</span><span·class="n">shape</span> |
245 | <span·class="c1">#·print·the·image·information·given·in·the·dataset</span> | 245 | <span·class="c1">#·print·the·image·information·given·in·the·dataset</span> |
246 | <span·class="nb">print</span><span·class="p">(</span><span·class="s1">'The·information·of·the·data·set·after·downsampling:·</span><span·class="se">\n</span><span·class="s1">'</span><span·class="p">)</span> | 246 | <span·class="nb">print</span><span·class="p">(</span><span·class="s1">'The·information·of·the·data·set·after·downsampling:·</span><span·class="se">\n</span><span·class="s1">'</span><span·class="p">)</span> |
247 | <span·class="nb">print</span><span·class="p">(</span><span·class="n">ds</span><span·class="p">)</span> | 247 | <span·class="nb">print</span><span·class="p">(</span><span·class="n">ds</span><span·class="p">)</span> |
248 | </pre></div> | 248 | </pre></div> |
249 | </div> | 249 | </div> |
250 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.0 | 250 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.030·seconds)</p> |
251 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-image-processing-plot-downsize-image-py"> | 251 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-image-processing-plot-downsize-image-py"> |
252 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 252 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
253 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/76360960a9af7e908b2d5e0b2453183b/plot_downsize_image.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_downsize_image.ipynb</span></code></a></p> | 253 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/76360960a9af7e908b2d5e0b2453183b/plot_downsize_image.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_downsize_image.ipynb</span></code></a></p> |
254 | </div> | 254 | </div> |
255 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 255 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
256 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/032a903dae32dc4e934f88d87905b561/plot_downsize_image.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_downsize_image.py</span></code></a></p> | 256 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/032a903dae32dc4e934f88d87905b561/plot_downsize_image.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_downsize_image.py</span></code></a></p> |
257 | </div> | 257 | </div> |
Offset 157, 15 lines modified | Offset 157, 15 lines modified | ||
157 | ds.PixelData·=·data_downsampling.tobytes() | 157 | ds.PixelData·=·data_downsampling.tobytes() |
158 | #·update·the·information·regarding·the·shape·of·the·data·array | 158 | #·update·the·information·regarding·the·shape·of·the·data·array |
159 | ds.Rows,·ds.Columns·=·data_downsampling.shape | 159 | ds.Rows,·ds.Columns·=·data_downsampling.shape |
160 | #·print·the·image·information·given·in·the·dataset | 160 | #·print·the·image·information·given·in·the·dataset |
161 | print('The·information·of·the·data·set·after·downsampling:·\n') | 161 | print('The·information·of·the·data·set·after·downsampling:·\n') |
162 | print(ds) | 162 | print(ds) |
163 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·min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n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8d_\x8o_\x8w_\x8n_\x8s_\x8i_\x8z_\x8e_\x8__\x8i_\x8m_\x8a_\x8g_\x8e_\x8._\x8p_\x8y |
166 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 166 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
167 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 167 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
168 | =============================================================================== | 168 | =============================================================================== |
169 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. | 169 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. |
170 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 170 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 161, 15 lines modified | Offset 161, 15 lines modified | ||
161 | ····<span·class="n">ax</span><span·class="o">.</span><span·class="n">set_xlabel</span><span·class="p">(</span><span·class="sa">f</span><span·class="s2">"(</span><span·class="si">{</span><span·class="n">x_units</span><span·class="si">}</span><span·class="s2">)"</span><span·class="p">)</span> | 161 | ····<span·class="n">ax</span><span·class="o">.</span><span·class="n">set_xlabel</span><span·class="p">(</span><span·class="sa">f</span><span·class="s2">"(</span><span·class="si">{</span><span·class="n">x_units</span><span·class="si">}</span><span·class="s2">)"</span><span·class="p">)</span> |
162 | ····<span·class="n">ax</span><span·class="o">.</span><span·class="n">set_ylabel</span><span·class="p">(</span><span·class="sa">f</span><span·class="s2">"(</span><span·class="si">{</span><span·class="n">y_units</span><span·class="si">}</span><span·class="s2">)"</span><span·class="p">)</span> | 162 | ····<span·class="n">ax</span><span·class="o">.</span><span·class="n">set_ylabel</span><span·class="p">(</span><span·class="sa">f</span><span·class="s2">"(</span><span·class="si">{</span><span·class="n">y_units</span><span·class="si">}</span><span·class="s2">)"</span><span·class="p">)</span> |
163 | <span·class="n">fig</span><span·class="o">.</span><span·class="n">tight_layout</span><span·class="p">(</span><span·class="n">pad</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span> | 163 | <span·class="n">fig</span><span·class="o">.</span><span·class="n">tight_layout</span><span·class="p">(</span><span·class="n">pad</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span> |
164 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 164 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
165 | </pre></div> | 165 | </pre></div> |
166 | </div> | 166 | </div> |
167 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes· | 167 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·1.093·seconds)</p> |
168 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-image-processing-plot-waveforms-py"> | 168 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-image-processing-plot-waveforms-py"> |
169 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 169 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
170 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/e5a4893fc2534cd7549d6717555a1054/plot_waveforms.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_waveforms.ipynb</span></code></a></p> | 170 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/e5a4893fc2534cd7549d6717555a1054/plot_waveforms.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_waveforms.ipynb</span></code></a></p> |
171 | </div> | 171 | </div> |
172 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 172 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
173 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/37526ba18181b1083cb01706ece1f85f/plot_waveforms.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_waveforms.py</span></code></a></p> | 173 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/37526ba18181b1083cb01706ece1f85f/plot_waveforms.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_waveforms.py</span></code></a></p> |
174 | </div> | 174 | </div> |
Offset 73, 15 lines modified | Offset 73, 15 lines modified | ||
73 | ····ax.plot(x,·arr[...,·ch_idx]) | 73 | ····ax.plot(x,·arr[...,·ch_idx]) |
74 | ····ax.set_title(f"{mplx_label}:·{ch_source}") | 74 | ····ax.set_title(f"{mplx_label}:·{ch_source}") |
75 | ····ax.set_xlabel(f"({x_units})") | 75 | ····ax.set_xlabel(f"({x_units})") |
76 | ····ax.set_ylabel(f"({y_units})") | 76 | ····ax.set_ylabel(f"({y_units})") |
77 | fig.tight_layout(pad=1) | 77 | fig.tight_layout(pad=1) |
78 | plt.show() | 78 | plt.show() |
79 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes· | 79 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·1.093·seconds) |
80 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8w_\x8a_\x8v_\x8e_\x8f_\x8o_\x8r_\x8m_\x8s_\x8._\x8i_\x8p_\x8y_\x8n_\x8b | 80 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8w_\x8a_\x8v_\x8e_\x8f_\x8o_\x8r_\x8m_\x8s_\x8._\x8i_\x8p_\x8y_\x8n_\x8b |
81 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8w_\x8a_\x8v_\x8e_\x8f_\x8o_\x8r_\x8m_\x8s_\x8._\x8p_\x8y | 81 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8w_\x8a_\x8v_\x8e_\x8f_\x8o_\x8r_\x8m_\x8s_\x8._\x8p_\x8y |
82 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 82 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
83 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 83 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
84 | =============================================================================== | 84 | =============================================================================== |
85 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. | 85 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. |
86 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 86 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 240, 15 lines modified | Offset 240, 15 lines modified | ||
240 | <span·class="n">filename</span>·<span·class="o">=</span>·<a·href="../../reference/generated/pydicom.data.get_testdata_file.html#pydicom.data.get_testdata_file"·title="pydicom.data.get_testdata_file"·class="sphx-glr-backref-module-pydicom-data·sphx-glr-backref-type-py-function"><span·class="n">get_testdata_file</span></a><span·class="p">(</span><span·class="s1">'MR_small.dcm'</span><span·class="p">)</span> | 240 | <span·class="n">filename</span>·<span·class="o">=</span>·<a·href="../../reference/generated/pydicom.data.get_testdata_file.html#pydicom.data.get_testdata_file"·title="pydicom.data.get_testdata_file"·class="sphx-glr-backref-module-pydicom-data·sphx-glr-backref-type-py-function"><span·class="n">get_testdata_file</span></a><span·class="p">(</span><span·class="s1">'MR_small.dcm'</span><span·class="p">)</span> |
241 | <span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">pydicom</span><span·class="o">.</span><span·class="n">dcmread</span><span·class="p">(</span><span·class="n">filename</span><span·class="p">)</span> | 241 | <span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">pydicom</span><span·class="o">.</span><span·class="n">dcmread</span><span·class="p">(</span><span·class="n">filename</span><span·class="p">)</span> |
242 | <span·class="n">myprint</span><span·class="p">(</span><span·class="n">ds</span><span·class="p">)</span> | 242 | <span·class="n">myprint</span><span·class="p">(</span><span·class="n">ds</span><span·class="p">)</span> |
243 | </pre></div> | 243 | </pre></div> |
244 | </div> | 244 | </div> |
245 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.0 | 245 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.018·seconds)</p> |
246 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-printing-dataset-py"> | 246 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-printing-dataset-py"> |
247 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 247 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
248 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/9fa22b5ea7bc00014f45bd48ae63d3ca/plot_printing_dataset.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_printing_dataset.ipynb</span></code></a></p> | 248 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/9fa22b5ea7bc00014f45bd48ae63d3ca/plot_printing_dataset.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_printing_dataset.ipynb</span></code></a></p> |
249 | </div> | 249 | </div> |
250 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 250 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
251 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/7d5fde14cbfb9e9d3e3df4c27eff8500/plot_printing_dataset.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_printing_dataset.py</span></code></a></p> | 251 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/7d5fde14cbfb9e9d3e3df4c27eff8500/plot_printing_dataset.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_printing_dataset.py</span></code></a></p> |
252 | </div> | 252 | </div> |
Offset 148, 15 lines modified | Offset 148, 15 lines modified | ||
148 | ···················································repr_value)) | 148 | ···················································repr_value)) |
149 | filename·=·_\x8g_\x8e_\x8t_\x8__\x8t_\x8e_\x8s_\x8t_\x8d_\x8a_\x8t_\x8a_\x8__\x8f_\x8i_\x8l_\x8e('MR_small.dcm') | 149 | filename·=·_\x8g_\x8e_\x8t_\x8__\x8t_\x8e_\x8s_\x8t_\x8d_\x8a_\x8t_\x8a_\x8__\x8f_\x8i_\x8l_\x8e('MR_small.dcm') |
150 | ds·=·pydicom.dcmread(filename) | 150 | ds·=·pydicom.dcmread(filename) |
151 | myprint(ds) | 151 | myprint(ds) |
152 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.0 | 152 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.018·seconds) |
153 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8p_\x8r_\x8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h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 155 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
156 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 156 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
157 | =============================================================================== | 157 | =============================================================================== |
158 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. | 158 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. |
159 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 159 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 167, 15 lines modified | Offset 167, 15 lines modified | ||
167 | <span·class="nb">print</span><span·class="p">(</span><span·class="sa">f</span><span·class="s2">"Slice·location...:·</span><span·class="si">{</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">get</span><span·class="p">(</span><span·class="s1">'SliceLocation'</span><span·class="p">,</span><span·class="w">·</span><span·class="s1">'(missing)'</span><span·class="p">)</span><span·class="si">}</span><span·class="s2">"</span><span·class="p">)</span> | 167 | <span·class="nb">print</span><span·class="p">(</span><span·class="sa">f</span><span·class="s2">"Slice·location...:·</span><span·class="si">{</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">get</span><span·class="p">(</span><span·class="s1">'SliceLocation'</span><span·class="p">,</span><span·class="w">·</span><span·class="s1">'(missing)'</span><span·class="p">)</span><span·class="si">}</span><span·class="s2">"</span><span·class="p">)</span> |
168 | <span·class="c1">#·plot·the·image·using·matplotlib</span> | 168 | <span·class="c1">#·plot·the·image·using·matplotlib</span> |
169 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">imshow</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">pixel_array</span><span·class="p">,</span>·<span·class="n">cmap</span><span·class="o">=</span><span·class="n">plt</span><span·class="o">.</span><span·class="n">cm</span><span·class="o">.</span><span·class="n">gray</span><span·class="p">)</span> | 169 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">imshow</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">pixel_array</span><span·class="p">,</span>·<span·class="n">cmap</span><span·class="o">=</span><span·class="n">plt</span><span·class="o">.</span><span·class="n">cm</span><span·class="o">.</span><span·class="n">gray</span><span·class="p">)</span> |
170 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 170 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
171 | </pre></div> | 171 | </pre></div> |
172 | </div> | 172 | </div> |
173 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0. | 173 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.397·seconds)</p> |
174 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-dicom-py"> | 174 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-dicom-py"> |
175 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 175 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
176 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/596a13aa12214abf0489d3740bbada1f/plot_read_dicom.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_read_dicom.ipynb</span></code></a></p> | 176 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/596a13aa12214abf0489d3740bbada1f/plot_read_dicom.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_read_dicom.ipynb</span></code></a></p> |
177 | </div> | 177 | </div> |
178 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 178 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
179 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/5e2195081f5a423e984744f70649688b/plot_read_dicom.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_read_dicom.py</span></code></a></p> | 179 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/5e2195081f5a423e984744f70649688b/plot_read_dicom.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_read_dicom.py</span></code></a></p> |
180 | </div> | 180 | </div> |
Offset 76, 15 lines modified | Offset 76, 15 lines modified | ||
76 | #·use·.get()·if·not·sure·the·item·exists,·and·want·a·default·value·if·missing | 76 | #·use·.get()·if·not·sure·the·item·exists,·and·want·a·default·value·if·missing |
77 | print(f"Slice·location...:·{ds.get('SliceLocation',·'(missing)')}") | 77 | print(f"Slice·location...:·{ds.get('SliceLocation',·'(missing)')}") |
78 | #·plot·the·image·using·matplotlib | 78 | #·plot·the·image·using·matplotlib |
79 | plt.imshow(ds.pixel_array,·cmap=plt.cm.gray) | 79 | plt.imshow(ds.pixel_array,·cmap=plt.cm.gray) |
80 | plt.show() | 80 | plt.show() |
81 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0. | 81 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.397·seconds) |
82 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8r_\x8e_\x8a_\x8d_\x8__\x8d_\x8i_\x8c_\x8o_\x8m_\x8._\x8i_\x8p_\x8y_\x8n_\x8b | 82 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8r_\x8e_\x8a_\x8d_\x8__\x8d_\x8i_\x8c_\x8o_\x8m_\x8._\x8i_\x8p_\x8y_\x8n_\x8b |
83 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8r_\x8e_\x8a_\x8d_\x8__\x8d_\x8i_\x8c_\x8o_\x8m_\x8._\x8p_\x8y | 83 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8r_\x8e_\x8a_\x8d_\x8__\x8d_\x8i_\x8c_\x8o_\x8m_\x8._\x8p_\x8y |
84 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 84 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
85 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 85 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
86 | =============================================================================== | 86 | =============================================================================== |
87 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. | 87 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. |
88 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 88 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 252, 15 lines modified | Offset 252, 15 lines modified | ||
252 | ················<span·class="nb">print</span><span·class="p">(</span><span·class="sa">f</span><span·class="s2">"</span><span·class="si">{</span><span·class="s1">'··'</span><span·class="w">·</span><span·class="o">*</span><span·class="w">·</span><span·class="mi">3</span><span·class="si">}</span><span·class="s2">IMAGE:·Path=</span><span·class="si">{</span><span·class="n">os</span><span·class="o">.</span><span·class="n">fspath</span><span·class="p">(</span><span·class="n">p</span><span·class="p">)</span><span·class="si">}</span><span·class="s2">"</span><span·class="p">)</span> | 252 | ················<span·class="nb">print</span><span·class="p">(</span><span·class="sa">f</span><span·class="s2">"</span><span·class="si">{</span><span·class="s1">'··'</span><span·class="w">·</span><span·class="o">*</span><span·class="w">·</span><span·class="mi">3</span><span·class="si">}</span><span·class="s2">IMAGE:·Path=</span><span·class="si">{</span><span·class="n">os</span><span·class="o">.</span><span·class="n">fspath</span><span·class="p">(</span><span·class="n">p</span><span·class="p">)</span><span·class="si">}</span><span·class="s2">"</span><span·class="p">)</span> |
253 | ················<span·class="c1">#·Optionally·read·the·corresponding·SOP·Instance</span> | 253 | ················<span·class="c1">#·Optionally·read·the·corresponding·SOP·Instance</span> |
254 | ················<span·class="c1">#·instance·=·dcmread(Path(root_dir)·/·p)</span> | 254 | ················<span·class="c1">#·instance·=·dcmread(Path(root_dir)·/·p)</span> |
255 | ················<span·class="c1">#·print(instance.PatientName)</span> | 255 | ················<span·class="c1">#·print(instance.PatientName)</span> |
256 | </pre></div> | 256 | </pre></div> |
257 | </div> | 257 | </div> |
258 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.0 | 258 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.052·seconds)</p> |
259 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-dicom-directory-py"> | 259 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-dicom-directory-py"> |
260 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 260 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
261 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/aac78b7419d1af47f86d51ba12974948/plot_read_dicom_directory.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_read_dicom_directory.ipynb</span></code></a></p> | 261 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/aac78b7419d1af47f86d51ba12974948/plot_read_dicom_directory.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_read_dicom_directory.ipynb</span></code></a></p> |
262 | </div> | 262 | </div> |
263 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 263 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
264 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/33b840573239ff057316729322f32358/plot_read_dicom_directory.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_read_dicom_directory.py</span></code></a></p> | 264 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/33b840573239ff057316729322f32358/plot_read_dicom_directory.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_read_dicom_directory.py</span></code></a></p> |
265 | </div> | 265 | </div> |
Offset 172, 15 lines modified | Offset 172, 15 lines modified | ||
172 | ············#·List·the·instance·file·paths | 172 | ············#·List·the·instance·file·paths |
173 | ············for·p·in·paths: | 173 | ············for·p·in·paths: |
174 | ················print(f"{'··'·*·3}IMAGE:·Path={os.fspath(p)}") | 174 | ················print(f"{'··'·*·3}IMAGE:·Path={os.fspath(p)}") |
175 | ················#·Optionally·read·the·corresponding·SOP·Instance | 175 | ················#·Optionally·read·the·corresponding·SOP·Instance |
176 | ················#·instance·=·dcmread(Path(root_dir)·/·p) | 176 | ················#·instance·=·dcmread(Path(root_dir)·/·p) |
177 | ················#·print(instance.PatientName) | 177 | ················#·print(instance.PatientName) |
178 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.0 | 178 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.052·seconds) |
179 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8r_\x8e_\x8a_\x8d_\x8__\x8d_\x8i_\x8c_\x8o_\x8m_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y_\x8._\x8i_\x8p_\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8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 181 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
182 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 182 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
183 | =============================================================================== | 183 | =============================================================================== |
184 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. | 184 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. |
185 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 185 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 189, 15 lines modified | Offset 189, 15 lines modified | ||
189 | ····Modality=MR·-·3·SOP·Instances | 189 | ····Modality=MR·-·3·SOP·Instances |
190 | ····Modality=MR·-·7·SOP·Instances | 190 | ····Modality=MR·-·7·SOP·Instances |
191 | Found·7·instances·for·SeriesInstanceUID=1.3.6.1.4.1.5962.1.1.0.0.0.1196533885.18148.0.118 | 191 | Found·7·instances·for·SeriesInstanceUID=1.3.6.1.4.1.5962.1.1.0.0.0.1196533885.18148.0.118 |
192 | Found·0·instances·with·PhotometricInterpretation='MONOCHROME1'·without·loading·the·stored·instances·and·3·instances·with·loading | 192 | Found·0·instances·with·PhotometricInterpretation='MONOCHROME1'·without·loading·the·stored·instances·and·3·instances·with·loading |
193 | Original·File-set·still·at·/build/reproducible-path/pydicom-2.4.3/pydicom/data/test_files/dicomdirtests | 193 | Original·File-set·still·at·/build/reproducible-path/pydicom-2.4.3/pydicom/data/test_files/dicomdirtests |
194 | File-set·copied·to·/tmp/tmp | 194 | File-set·copied·to·/tmp/tmp9yz0ttrx·and·contains·the·following·files: |
195 | ··DICOMDIR | 195 | ··DICOMDIR |
196 | ··PT000000/ST000000/SE000000/IM000000 | 196 | ··PT000000/ST000000/SE000000/IM000000 |
197 | ··PT000000/ST000000/SE000001/IM000000 | 197 | ··PT000000/ST000000/SE000001/IM000000 |
198 | ··PT000000/ST000000/SE000002/IM000000 | 198 | ··PT000000/ST000000/SE000002/IM000000 |
199 | ··PT000000/ST000001/SE000000/IM000000 | 199 | ··PT000000/ST000001/SE000000/IM000000 |
200 | ··PT000000/ST000001/SE000000/IM000001 | 200 | ··PT000000/ST000001/SE000000/IM000001 |
201 | ··PT000000/ST000001/SE000000/IM000002 | 201 | ··PT000000/ST000001/SE000000/IM000002 |
Offset 345, 15 lines modified | Offset 345, 15 lines modified | ||
345 | <span·class="c1">#·Note·how·the·original·File-set·directory·layout·has·been·changed·to</span> | 345 | <span·class="c1">#·Note·how·the·original·File-set·directory·layout·has·been·changed·to</span> |
346 | <span·class="c1">#···the·structure·used·by·pydicom</span> | 346 | <span·class="c1">#···the·structure·used·by·pydicom</span> |
347 | <span·class="k">for</span>·<span·class="n">p</span>·<span·class="ow">in</span>·<span·class="nb">sorted</span><span·class="p">(</span><span·class="n">root</span><span·class="o">.</span><span·class="n">glob</span><span·class="p">(</span><span·class="s1">'**/*'</span><span·class="p">)):</span> | 347 | <span·class="k">for</span>·<span·class="n">p</span>·<span·class="ow">in</span>·<span·class="nb">sorted</span><span·class="p">(</span><span·class="n">root</span><span·class="o">.</span><span·class="n">glob</span><span·class="p">(</span><span·class="s1">'**/*'</span><span·class="p">)):</span> |
348 | ····<span·class="k">if</span>·<span·class="n">p</span><span·class="o">.</span><span·class="n">is_file</span><span·class="p">():</span> | 348 | ····<span·class="k">if</span>·<span·class="n">p</span><span·class="o">.</span><span·class="n">is_file</span><span·class="p">():</span> |
349 | ········<span·class="nb">print</span><span·class="p">(</span><span·class="sa">f</span><span·class="s2">"··</span><span·class="si">{</span><span·class="n">p</span><span·class="o">.</span><span·class="n">relative_to</span><span·class="p">(</span><span·class="n">root</span><span·class="p">)</span><span·class="si">}</span><span·class="s2">"</span><span·class="p">)</span> | 349 | ········<span·class="nb">print</span><span·class="p">(</span><span·class="sa">f</span><span·class="s2">"··</span><span·class="si">{</span><span·class="n">p</span><span·class="o">.</span><span·class="n">relative_to</span><span·class="p">(</span><span·class="n">root</span><span·class="p">)</span><span·class="si">}</span><span·class="s2">"</span><span·class="p">)</span> |
350 | </pre></div> | 350 | </pre></div> |
351 | </div> | 351 | </div> |
352 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0. | 352 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.731·seconds)</p> |
353 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-fileset-py"> | 353 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-fileset-py"> |
354 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 354 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
355 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/047cd4e7536a54c1a4581d1eeeec2a85/plot_read_fileset.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_read_fileset.ipynb</span></code></a></p> | 355 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/047cd4e7536a54c1a4581d1eeeec2a85/plot_read_fileset.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_read_fileset.ipynb</span></code></a></p> |
356 | </div> | 356 | </div> |
357 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 357 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
358 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/d9277387ad11dc0847c817c16906fc77/plot_read_fileset.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_read_fileset.py</span></code></a></p> | 358 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/d9277387ad11dc0847c817c16906fc77/plot_read_fileset.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_read_fileset.py</span></code></a></p> |
359 | </div> | 359 | </div> |
Offset 108, 15 lines modified | Offset 108, 15 lines modified | ||
108 | Found·7·instances·for | 108 | Found·7·instances·for |
109 | SeriesInstanceUID=1.3.6.1.4.1.5962.1.1.0.0.0.1196533885.18148.0.118 | 109 | SeriesInstanceUID=1.3.6.1.4.1.5962.1.1.0.0.0.1196533885.18148.0.118 |
110 | Found·0·instances·with·PhotometricInterpretation='MONOCHROME1'·without·loading | 110 | Found·0·instances·with·PhotometricInterpretation='MONOCHROME1'·without·loading |
111 | the·stored·instances·and·3·instances·with·loading | 111 | the·stored·instances·and·3·instances·with·loading |
112 | Original·File-set·still·at·/build/reproducible-path/pydicom-2.4.3/pydicom/data/ | 112 | Original·File-set·still·at·/build/reproducible-path/pydicom-2.4.3/pydicom/data/ |
113 | test_files/dicomdirtests | 113 | test_files/dicomdirtests |
114 | File-set·copied·to·/tmp/tmp | 114 | File-set·copied·to·/tmp/tmp9yz0ttrx·and·contains·the·following·files: |
115 | ··DICOMDIR | 115 | ··DICOMDIR |
116 | ··PT000000/ST000000/SE000000/IM000000 | 116 | ··PT000000/ST000000/SE000000/IM000000 |
117 | ··PT000000/ST000000/SE000001/IM000000 | 117 | ··PT000000/ST000000/SE000001/IM000000 |
118 | ··PT000000/ST000000/SE000002/IM000000 | 118 | ··PT000000/ST000000/SE000002/IM000000 |
119 | ··PT000000/ST000001/SE000000/IM000000 | 119 | ··PT000000/ST000001/SE000000/IM000000 |
120 | ··PT000000/ST000001/SE000000/IM000001 | 120 | ··PT000000/ST000001/SE000000/IM000001 |
121 | ··PT000000/ST000001/SE000000/IM000002 | 121 | ··PT000000/ST000001/SE000000/IM000002 |
Offset 258, 15 lines modified | Offset 258, 15 lines modified | ||
258 | root·=·Path(_\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8e_\x8t_\x8._\x8p_\x8a_\x8t_\x8h) | 258 | root·=·Path(_\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8e_\x8t_\x8._\x8p_\x8a_\x8t_\x8h) |
259 | print(f"File-set·copied·to·{root}·and·contains·the·following·files:") | 259 | print(f"File-set·copied·to·{root}·and·contains·the·following·files:") |
260 | #·Note·how·the·original·File-set·directory·layout·has·been·changed·to | 260 | #·Note·how·the·original·File-set·directory·layout·has·been·changed·to |
261 | #···the·structure·used·by·pydicom | 261 | #···the·structure·used·by·pydicom |
262 | for·p·in·sorted(root.glob('**/*')): | 262 | for·p·in·sorted(root.glob('**/*')): |
263 | ····if·p.is_file(): | 263 | ····if·p.is_file(): |
264 | ········print(f"··{p.relative_to(root)}") | 264 | ········print(f"··{p.relative_to(root)}") |
265 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f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\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8r_\x8e_\x8a_\x8d_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8e_\x8t_\x8._\x8p_\x8y |
268 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 268 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
269 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 269 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
270 | =============================================================================== | 270 | =============================================================================== |
271 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. | 271 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. |
272 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 272 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 154, 15 lines modified | Offset 154, 15 lines modified | ||
154 | <span·class="n">filename</span>·<span·class="o">=</span>·<a·href="../../reference/generated/pydicom.data.get_testdata_file.html#pydicom.data.get_testdata_file"·title="pydicom.data.get_testdata_file"·class="sphx-glr-backref-module-pydicom-data·sphx-glr-backref-type-py-function"><span·class="n">get_testdata_file</span></a><span·class="p">(</span><span·class="s1">'rtplan.dcm'</span><span·class="p">)</span> | 154 | <span·class="n">filename</span>·<span·class="o">=</span>·<a·href="../../reference/generated/pydicom.data.get_testdata_file.html#pydicom.data.get_testdata_file"·title="pydicom.data.get_testdata_file"·class="sphx-glr-backref-module-pydicom-data·sphx-glr-backref-type-py-function"><span·class="n">get_testdata_file</span></a><span·class="p">(</span><span·class="s1">'rtplan.dcm'</span><span·class="p">)</span> |
155 | <span·class="n">dataset</span>·<span·class="o">=</span>·<span·class="n">pydicom</span><span·class="o">.</span><span·class="n">dcmread</span><span·class="p">(</span><span·class="n">filename</span><span·class="p">)</span> | 155 | <span·class="n">dataset</span>·<span·class="o">=</span>·<span·class="n">pydicom</span><span·class="o">.</span><span·class="n">dcmread</span><span·class="p">(</span><span·class="n">filename</span><span·class="p">)</span> |
156 | <span·class="nb">print</span><span·class="p">(</span><span·class="n">list_beams</span><span·class="p">(</span><span·class="n">dataset</span><span·class="p">))</span> | 156 | <span·class="nb">print</span><span·class="p">(</span><span·class="n">list_beams</span><span·class="p">(</span><span·class="n">dataset</span><span·class="p">))</span> |
157 | </pre></div> | 157 | </pre></div> |
158 | </div> | 158 | </div> |
159 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.0 | 159 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.016·seconds)</p> |
160 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-rtplan-py"> | 160 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-rtplan-py"> |
161 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 161 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
162 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/eab5c62f7aa13a9dba28bb72f29156aa/plot_read_rtplan.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_read_rtplan.ipynb</span></code></a></p> | 162 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/eab5c62f7aa13a9dba28bb72f29156aa/plot_read_rtplan.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_read_rtplan.ipynb</span></code></a></p> |
163 | </div> | 163 | </div> |
164 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 164 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
165 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/c01783b47dfa1aa1100193cafc705c66/plot_read_rtplan.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_read_rtplan.py</span></code></a></p> | 165 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/c01783b47dfa1aa1100193cafc705c66/plot_read_rtplan.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_read_rtplan.py</span></code></a></p> |
166 | </div> | 166 | </div> |
Offset 61, 15 lines modified | Offset 61, 15 lines modified | ||
61 | ·······················································ssd=SSD)) | 61 | ·······················································ssd=SSD)) |
62 | ····return·"\n".join(lines) | 62 | ····return·"\n".join(lines) |
63 | filename·=·_\x8g_\x8e_\x8t_\x8__\x8t_\x8e_\x8s_\x8t_\x8d_\x8a_\x8t_\x8a_\x8__\x8f_\x8i_\x8l_\x8e('rtplan.dcm') | 63 | filename·=·_\x8g_\x8e_\x8t_\x8__\x8t_\x8e_\x8s_\x8t_\x8d_\x8a_\x8t_\x8a_\x8__\x8f_\x8i_\x8l_\x8e('rtplan.dcm') |
64 | dataset·=·pydicom.dcmread(filename) | 64 | dataset·=·pydicom.dcmread(filename) |
65 | print(list_beams(dataset)) | 65 | print(list_beams(dataset)) |
66 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.0 | 66 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.016·seconds) |
67 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8r_\x8e_\x8a_\x8d_\x8__\x8r_\x8t_\x8p_\x8l_\x8a_\x8n_\x8._\x8i_\x8p_\x8y_\x8n_\x8b | 67 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8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\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
71 | =============================================================================== | 71 | =============================================================================== |
72 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. | 72 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. |
73 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 73 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 123, 40 lines modified | Offset 123, 40 lines modified | ||
123 | <section·class="sphx-glr-example-title"·id="write-dicom-data"> | 123 | <section·class="sphx-glr-example-title"·id="write-dicom-data"> |
124 | <span·id="sphx-glr-auto-examples-input-output-plot-write-dicom-py"></span><h1>Write·DICOM·data<a·class="headerlink"·href="#write-dicom-data"·title="Link·to·this·heading">¶</a></h1> | 124 | <span·id="sphx-glr-auto-examples-input-output-plot-write-dicom-py"></span><h1>Write·DICOM·data<a·class="headerlink"·href="#write-dicom-data"·title="Link·to·this·heading">¶</a></h1> |
125 | <p>This·example·shows·how·to·write·a·DICOM·file·from·scratch·using·pydicom.·This | 125 | <p>This·example·shows·how·to·write·a·DICOM·file·from·scratch·using·pydicom.·This |
126 | example·does·not·produce·a·DICOM·standards·compliant·file·as·written,·you·will | 126 | example·does·not·produce·a·DICOM·standards·compliant·file·as·written,·you·will |
127 | have·to·change·UIDs·to·valid·values·and·add·all·required·DICOM·data·elements.</p> | 127 | have·to·change·UIDs·to·valid·values·and·add·all·required·DICOM·data·elements.</p> |
128 | <div·class="sphx-glr-script-out·highlight-none·notranslate"><div·class="highlight"><pre><span></span>Setting·file·meta·information... | 128 | <div·class="sphx-glr-script-out·highlight-none·notranslate"><div·class="highlight"><pre><span></span>Setting·file·meta·information... |
129 | Setting·dataset·values... | 129 | Setting·dataset·values... |
130 | Writing·test·file·/tmp/tmp1 | 130 | Writing·test·file·/tmp/tmp1dp2hmi2.dcm |
131 | File·saved. | 131 | File·saved. |
132 | Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmp | 132 | Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmp9kmjr4bl.dcm |
133 | Load·file·/tmp/tmp1 | 133 | Load·file·/tmp/tmp1dp2hmi2.dcm·... |
134 | Dataset.file_meta·------------------------------- | 134 | Dataset.file_meta·------------------------------- |
135 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage | 135 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage |
136 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 | 136 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 |
137 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 | 137 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 |
138 | ------------------------------------------------- | 138 | ------------------------------------------------- |
139 | (0008,·0023)·Content·Date························DA:·'202 | 139 | (0008,·0023)·Content·Date························DA:·'20251210' |
140 | (0008,·0033)·Content·Time························TM:·' | 140 | (0008,·0033)·Content·Time························TM:·'110649.672337' |
141 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 141 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
142 | (0010,·0020)·Patient·ID··························LO:·'123456' | 142 | (0010,·0020)·Patient·ID··························LO:·'123456' |
143 | Remove·file·/tmp/tmp1 | 143 | Remove·file·/tmp/tmp1dp2hmi2.dcm·... |
144 | Load·file·/tmp/tmp | 144 | Load·file·/tmp/tmp9kmjr4bl.dcm·... |
145 | Dataset.file_meta·------------------------------- | 145 | Dataset.file_meta·------------------------------- |
146 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage | 146 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage |
147 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 | 147 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 |
148 | (0002,·0010)·Transfer·Syntax·UID·················UI:·Explicit·VR·Big·Endian | 148 | (0002,·0010)·Transfer·Syntax·UID·················UI:·Explicit·VR·Big·Endian |
149 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 | 149 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 |
150 | ------------------------------------------------- | 150 | ------------------------------------------------- |
151 | (0008,·0023)·Content·Date························DA:·'202 | 151 | (0008,·0023)·Content·Date························DA:·'20251210' |
152 | (0008,·0033)·Content·Time························TM:·' | 152 | (0008,·0033)·Content·Time························TM:·'110649.672337' |
153 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 153 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
154 | (0010,·0020)·Patient·ID··························LO:·'123456' | 154 | (0010,·0020)·Patient·ID··························LO:·'123456' |
155 | Remove·file·/tmp/tmp | 155 | Remove·file·/tmp/tmp9kmjr4bl.dcm·... |
156 | </pre></div> | 156 | </pre></div> |
157 | </div> | 157 | </div> |
158 | <div·class="line-block"> | 158 | <div·class="line-block"> |
159 | <div·class="line"><br·/></div> | 159 | <div·class="line"><br·/></div> |
160 | </div> | 160 | </div> |
161 | <div·class="highlight-Python·notranslate"><div·class="highlight"><pre><span></span><span·class="c1">#·authors·:·Guillaume·Lemaitre·<g.lemaitre58@gmail.com></span> | 161 | <div·class="highlight-Python·notranslate"><div·class="highlight"><pre><span></span><span·class="c1">#·authors·:·Guillaume·Lemaitre·<g.lemaitre58@gmail.com></span> |
162 | <span·class="c1">#·license·:·MIT</span> | 162 | <span·class="c1">#·license·:·MIT</span> |
Offset 222, 15 lines modified | Offset 222, 15 lines modified | ||
222 | ····<span·class="nb">print</span><span·class="p">(</span><span·class="n">ds</span><span·class="p">)</span> | 222 | ····<span·class="nb">print</span><span·class="p">(</span><span·class="n">ds</span><span·class="p">)</span> |
223 | ····<span·class="c1">#·remove·the·created·file</span> | 223 | ····<span·class="c1">#·remove·the·created·file</span> |
224 | ····<span·class="nb">print</span><span·class="p">(</span><span·class="s1">'Remove·file·</span><span·class="si">{}</span><span·class="s1">·...'</span><span·class="o">.</span><span·class="n">format</span><span·class="p">(</span><span·class="n">filename</span><span·class="p">))</span> | 224 | ····<span·class="nb">print</span><span·class="p">(</span><span·class="s1">'Remove·file·</span><span·class="si">{}</span><span·class="s1">·...'</span><span·class="o">.</span><span·class="n">format</span><span·class="p">(</span><span·class="n">filename</span><span·class="p">))</span> |
225 | ····<span·class="n">os</span><span·class="o">.</span><span·class="n">remove</span><span·class="p">(</span><span·class="n">filename</span><span·class="p">)</span> | 225 | ····<span·class="n">os</span><span·class="o">.</span><span·class="n">remove</span><span·class="p">(</span><span·class="n">filename</span><span·class="p">)</span> |
226 | </pre></div> | 226 | </pre></div> |
227 | </div> | 227 | </div> |
228 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.0 | 228 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.018·seconds)</p> |
229 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-write-dicom-py"> | 229 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-write-dicom-py"> |
230 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 230 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
231 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/44c3a2647e8572357403f4dc998e2848/plot_write_dicom.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_write_dicom.ipynb</span></code></a></p> | 231 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/44c3a2647e8572357403f4dc998e2848/plot_write_dicom.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_write_dicom.ipynb</span></code></a></p> |
232 | </div> | 232 | </div> |
233 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 233 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
234 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/7e3f494a513e0ac1eb4963e47afed114/plot_write_dicom.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_write_dicom.py</span></code></a></p> | 234 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/7e3f494a513e0ac1eb4963e47afed114/plot_write_dicom.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_write_dicom.py</span></code></a></p> |
235 | </div> | 235 | </div> |
Offset 36, 40 lines modified | Offset 36, 40 lines modified | ||
36 | _\x8G_\x8o_\x8·_\x8t_\x8o_\x8·_\x8t_\x8h_\x8e_\x8·_\x8e_\x8n_\x8d·to·download·the·full·example·code. | 36 | _\x8G_\x8o_\x8·_\x8t_\x8o_\x8·_\x8t_\x8h_\x8e_\x8·_\x8e_\x8n_\x8d·to·download·the·full·example·code. |
37 | *\x8**\x8**\x8**\x8**\x8**\x8*·W\x8Wr\x8ri\x8it\x8te\x8e·D\x8DI\x8IC\x8CO\x8OM\x8M·d\x8da\x8at\x8ta\x8a_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8**\x8* | 37 | *\x8**\x8**\x8**\x8**\x8**\x8*·W\x8Wr\x8ri\x8it\x8te\x8e·D\x8DI\x8IC\x8CO\x8OM\x8M·d\x8da\x8at\x8ta\x8a_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8**\x8* |
38 | This·example·shows·how·to·write·a·DICOM·file·from·scratch·using·pydicom.·This | 38 | This·example·shows·how·to·write·a·DICOM·file·from·scratch·using·pydicom.·This |
39 | example·does·not·produce·a·DICOM·standards·compliant·file·as·written,·you·will | 39 | example·does·not·produce·a·DICOM·standards·compliant·file·as·written,·you·will |
40 | have·to·change·UIDs·to·valid·values·and·add·all·required·DICOM·data·elements. | 40 | have·to·change·UIDs·to·valid·values·and·add·all·required·DICOM·data·elements. |
41 | Setting·file·meta·information... | 41 | Setting·file·meta·information... |
42 | Setting·dataset·values... | 42 | Setting·dataset·values... |
43 | Writing·test·file·/tmp/tmp1 | 43 | Writing·test·file·/tmp/tmp1dp2hmi2.dcm |
44 | File·saved. | 44 | File·saved. |
45 | Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmp | 45 | Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmp9kmjr4bl.dcm |
46 | Load·file·/tmp/tmp1 | 46 | Load·file·/tmp/tmp1dp2hmi2.dcm·... |
47 | Dataset.file_meta·------------------------------- | 47 | Dataset.file_meta·------------------------------- |
48 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage | 48 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage |
49 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 | 49 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 |
50 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 | 50 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 |
51 | ------------------------------------------------- | 51 | ------------------------------------------------- |
52 | (0008,·0023)·Content·Date························DA:·'202 | 52 | (0008,·0023)·Content·Date························DA:·'20251210' |
53 | (0008,·0033)·Content·Time························TM:·' | 53 | (0008,·0033)·Content·Time························TM:·'110649.672337' |
54 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 54 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
55 | (0010,·0020)·Patient·ID··························LO:·'123456' | 55 | (0010,·0020)·Patient·ID··························LO:·'123456' |
56 | Remove·file·/tmp/tmp1 | 56 | Remove·file·/tmp/tmp1dp2hmi2.dcm·... |
57 | Load·file·/tmp/tmp | 57 | Load·file·/tmp/tmp9kmjr4bl.dcm·... |
58 | Dataset.file_meta·------------------------------- | 58 | Dataset.file_meta·------------------------------- |
59 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage | 59 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage |
60 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 | 60 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 |
61 | (0002,·0010)·Transfer·Syntax·UID·················UI:·Explicit·VR·Big·Endian | 61 | (0002,·0010)·Transfer·Syntax·UID·················UI:·Explicit·VR·Big·Endian |
62 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 | 62 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 |
63 | ------------------------------------------------- | 63 | ------------------------------------------------- |
64 | (0008,·0023)·Content·Date························DA:·'202 | 64 | (0008,·0023)·Content·Date························DA:·'20251210' |
65 | (0008,·0033)·Content·Time························TM:·' | 65 | (0008,·0033)·Content·Time························TM:·'110649.672337' |
66 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 66 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
67 | (0010,·0020)·Patient·ID··························LO:·'123456' | 67 | (0010,·0020)·Patient·ID··························LO:·'123456' |
68 | Remove·file·/tmp/tmp | 68 | Remove·file·/tmp/tmp9kmjr4bl.dcm·... |
69 | #·authors·:·Guillaume·Lemaitre·<g.lemaitre58@gmail.com> | 69 | #·authors·:·Guillaume·Lemaitre·<g.lemaitre58@gmail.com> |
70 | #·license·:·MIT | 70 | #·license·:·MIT |
71 | import·datetime | 71 | import·datetime |
72 | import·os | 72 | import·os |
73 | import·tempfile | 73 | import·tempfile |
Offset 129, 15 lines modified | Offset 129, 15 lines modified | ||
129 | ····print('Load·file·{}·...'.format(filename)) | 129 | ····print('Load·file·{}·...'.format(filename)) |
130 | ····ds·=·pydicom.dcmread(filename) | 130 | ····ds·=·pydicom.dcmread(filename) |
131 | ····print(ds) | 131 | ····print(ds) |
132 | ····#·remove·the·created·file | 132 | ····#·remove·the·created·file |
133 | ····print('Remove·file·{}·...'.format(filename)) | 133 | ····print('Remove·file·{}·...'.format(filename)) |
134 | ····os.remove(filename) | 134 | ····os.remove(filename) |
135 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.0 | 135 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.018·seconds) |
136 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8d_\x8i_\x8c_\x8o_\x8m_\x8._\x8i_\x8p_\x8y_\x8n_\x8b | 136 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x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\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
139 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 139 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
140 | =============================================================================== | 140 | =============================================================================== |
141 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. | 141 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. |
142 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 142 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 202, 15 lines modified | Offset 202, 15 lines modified | ||
202 | <span·class="n">dataset</span><span·class="o">.</span><span·class="n">save_as</span><span·class="p">(</span><span·class="n">output_filename</span><span·class="p">)</span> | 202 | <span·class="n">dataset</span><span·class="o">.</span><span·class="n">save_as</span><span·class="p">(</span><span·class="n">output_filename</span><span·class="p">)</span> |
203 | </pre></div> | 203 | </pre></div> |
204 | </div> | 204 | </div> |
205 | <div·class="sphx-glr-script-out·highlight-none·notranslate"><div·class="highlight"><pre><span></span>(0010,·0020)·Patient·ID··························LO:·'id' | 205 | <div·class="sphx-glr-script-out·highlight-none·notranslate"><div·class="highlight"><pre><span></span>(0010,·0020)·Patient·ID··························LO:·'id' |
206 | (0010,·0030)·Patient's·Birth·Date················DA:·'19000101' | 206 | (0010,·0030)·Patient's·Birth·Date················DA:·'19000101' |
207 | </pre></div> | 207 | </pre></div> |
208 | </div> | 208 | </div> |
209 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.0 | 209 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.033·seconds)</p> |
210 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-metadata-processing-plot-anonymize-py"> | 210 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-metadata-processing-plot-anonymize-py"> |
211 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 211 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
212 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/de1da3fdb216bd623a5999980785f16d/plot_anonymize.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_anonymize.ipynb</span></code></a></p> | 212 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/de1da3fdb216bd623a5999980785f16d/plot_anonymize.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_anonymize.ipynb</span></code></a></p> |
213 | </div> | 213 | </div> |
214 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 214 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
215 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/cdbc1bcbae90b5ff13fdc9b19581006e/plot_anonymize.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_anonymize.py</span></code></a></p> | 215 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/cdbc1bcbae90b5ff13fdc9b19581006e/plot_anonymize.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_anonymize.py</span></code></a></p> |
216 | </div> | 216 | </div> |
Offset 91, 15 lines modified | Offset 91, 15 lines modified | ||
91 | for·de·in·data_elements: | 91 | for·de·in·data_elements: |
92 | ····print(dataset.data_element(de)) | 92 | ····print(dataset.data_element(de)) |
93 | output_filename·=·tempfile.NamedTemporaryFile().name | 93 | output_filename·=·tempfile.NamedTemporaryFile().name |
94 | dataset.save_as(output_filename) | 94 | dataset.save_as(output_filename) |
95 | (0010,·0020)·Patient·ID··························LO:·'id' | 95 | (0010,·0020)·Patient·ID··························LO:·'id' |
96 | (0010,·0030)·Patient's·Birth·Date················DA:·'19000101' | 96 | (0010,·0030)·Patient's·Birth·Date················DA:·'19000101' |
97 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.0 | 97 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.033·seconds) |
98 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8a_\x8n_\x8o_\x8n_\x8y_\x8m_\x8i_\x8z_\x8e_\x8._\x8i_\x8p_\x8y_\x8n_\x8b | 98 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u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_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 101 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
102 | =============================================================================== | 102 | =============================================================================== |
103 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. | 103 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. |
104 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 104 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 817, 15 lines modified | Offset 817, 15 lines modified | ||
817 | <span·class="n">diff</span>·<span·class="o">=</span>·<span·class="n">difflib</span><span·class="o">.</span><span·class="n">Differ</span><span·class="p">()</span> | 817 | <span·class="n">diff</span>·<span·class="o">=</span>·<span·class="n">difflib</span><span·class="o">.</span><span·class="n">Differ</span><span·class="p">()</span> |
818 | <span·class="k">for</span>·<span·class="n">line</span>·<span·class="ow">in</span>·<span·class="n">diff</span><span·class="o">.</span><span·class="n">compare</span><span·class="p">(</span><span·class="n">rep</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">],</span>·<span·class="n">rep</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">]):</span> | 818 | <span·class="k">for</span>·<span·class="n">line</span>·<span·class="ow">in</span>·<span·class="n">diff</span><span·class="o">.</span><span·class="n">compare</span><span·class="p">(</span><span·class="n">rep</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">],</span>·<span·class="n">rep</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">]):</span> |
819 | ····<span·class="k">if</span>·<span·class="n">line</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span>·<span·class="o">!=</span>·<span·class="s2">"?"</span><span·class="p">:</span> | 819 | ····<span·class="k">if</span>·<span·class="n">line</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span>·<span·class="o">!=</span>·<span·class="s2">"?"</span><span·class="p">:</span> |
820 | ········<span·class="nb">print</span><span·class="p">(</span><span·class="n">line</span><span·class="p">)</span> | 820 | ········<span·class="nb">print</span><span·class="p">(</span><span·class="n">line</span><span·class="p">)</span> |
821 | </pre></div> | 821 | </pre></div> |
822 | </div> | 822 | </div> |
823 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0. | 823 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.366·seconds)</p> |
824 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-plot-dicom-difference-py"> | 824 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-plot-dicom-difference-py"> |
825 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 825 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
826 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/41ba38a2ae2d88170db68a78dcabe080/plot_dicom_difference.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_dicom_difference.ipynb</span></code></a></p> | 826 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/41ba38a2ae2d88170db68a78dcabe080/plot_dicom_difference.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_dicom_difference.ipynb</span></code></a></p> |
827 | </div> | 827 | </div> |
828 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 828 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
829 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/a3b4852d291f27302d2926716393406e/plot_dicom_difference.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_dicom_difference.py</span></code></a></p> | 829 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/a3b4852d291f27302d2926716393406e/plot_dicom_difference.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_dicom_difference.py</span></code></a></p> |
830 | </div> | 830 | </div> |
Offset 744, 15 lines modified | Offset 744, 15 lines modified | ||
744 | ····rep.append(lines) | 744 | ····rep.append(lines) |
745 | diff·=·difflib.Differ() | 745 | diff·=·difflib.Differ() |
746 | for·line·in·diff.compare(rep[0],·rep[1]): | 746 | for·line·in·diff.compare(rep[0],·rep[1]): |
747 | ····if·line[0]·!=·"?": | 747 | ····if·line[0]·!=·"?": |
748 | ········print(line) | 748 | ········print(line) |
749 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0. | 749 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.366·seconds) |
750 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\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8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 752 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
753 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 753 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
754 | =============================================================================== | 754 | =============================================================================== |
755 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. | 755 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. |
756 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 756 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 5249, 37 lines modified | Offset 5249, 33 lines modified | ||
5249 | ········"0023":·[2,·12,·18,·23,·24], | 5249 | ········"0023":·[2,·12,·18,·23,·24], |
5250 | ········"0025":·18, | 5250 | ········"0025":·18, |
5251 | ········"0026":·[23,·24], | 5251 | ········"0026":·[23,·24], |
5252 | ········"0027":·18, | 5252 | ········"0027":·18, |
5253 | ········"0028":·[2,·18,·31,·39,·47,·128,·139,·141,·202,·203,·204,·205,·206,·207,·208,·211,·213,·214,·215,·476,·489,·491,·501], | 5253 | ········"0028":·[2,·18,·31,·39,·47,·128,·139,·141,·202,·203,·204,·205,·206,·207,·208,·211,·213,·214,·215,·476,·489,·491,·501], |
5254 | ········"0029":·18, | 5254 | ········"0029":·18, |
5255 | ········"002c":·[23,·24], | 5255 | ········"002c":·[23,·24], |
5256 | ········"003":·11, | ||
5257 | ········"0030":·[2,·16,·18,·35], | 5256 | ········"0030":·[2,·16,·18,·35], |
5258 | ········"0031":·[2,·18], | 5257 | ········"0031":·[2,·18], |
5259 | ········"0032":·[2,·18], | 5258 | ········"0032":·[2,·18], |
5260 | ········"0033":·[12,·18], | 5259 | ········"0033":·[12,·18], |
5261 | ········"0036697":·[23,·24,·25], | 5260 | ········"0036697":·[23,·24,·25], |
5262 | ········"003669700000":·[23,·25], | 5261 | ········"003669700000":·[23,·25], |
5263 | ········"0037":·[2,·18], | 5262 | ········"0037":·[2,·18], |
5264 | ········"003a":·[48,·128,·468,·509], | 5263 | ········"003a":·[48,·128,·468,·509], |
5265 | ········"0040":·[2,·18], | 5264 | ········"0040":·[2,·18], |
5266 | ········"0041":·128, | 5265 | ········"0041":·128, |
5267 | ········"0043":·[18,·23,·25,·501], | 5266 | ········"0043":·[18,·23,·25,·501], |
5268 | ········"005":·[7,·12], | ||
5269 | ········"0050":·[2,·18,·23,·24,·35,·46], | 5267 | ········"0050":·[2,·18,·23,·24,·35,·46], |
5270 | ········"0051":·[23,·24], | 5268 | ········"0051":·[23,·24], |
5271 | ········"0052":·[2,·18], | 5269 | ········"0052":·[2,·18], |
5272 | ········"006":·2, | ||
5273 | ········"0060":·[2,·18,·23,·24,·35], | 5270 | ········"0060":·[2,·18,·23,·24,·35], |
5274 | ········"007":·13, | 5271 | ········"007":·13, |
5275 | ········"0070":·[2,·18,·23,·24], | 5272 | ········"0070":·[2,·18,·23,·24], |
5276 | ········"0071":·[23,·24,·25], | 5273 | ········"0071":·[23,·24,·25], |
5277 | ········"0078":·[23,·24,·25], | 5274 | ········"0078":·[23,·24,·25], |
5278 | ········"008":·16, | ||
5279 | ········"0080":·[2,·18,·23,·24,·25], | 5275 | ········"0080":·[2,·18,·23,·24,·25], |
5280 | ········"0081":·[2,·18], | 5276 | ········"0081":·[2,·18], |
5281 | ········"0082":·[23,·24,·25], | 5277 | ········"0082":·[23,·24,·25], |
5282 | ········"0083":·[2,·18], | 5278 | ········"0083":·[2,·18], |
5283 | ········"0084":·[2,·18,·23,·24,·25], | 5279 | ········"0084":·[2,·18,·23,·24,·25], |
5284 | ········"0085":·[2,·18], | 5280 | ········"0085":·[2,·18], |
5285 | ········"0086":·[2,·18,·23,·24,·25], | 5281 | ········"0086":·[2,·18,·23,·24,·25], |
Offset 5294, 51 lines modified | Offset 5290, 53 lines modified | ||
5294 | ········"0100":·[2,·18,·31,·39,·48,·128,·191,·201,·211,·213,·214,·215,·468,·509], | 5290 | ········"0100":·[2,·18,·31,·39,·48,·128,·191,·201,·211,·213,·214,·215,·468,·509], |
5295 | ········"0101":·[2,·18,·31,·128,·203,·204,·211,·213,·215], | 5291 | ········"0101":·[2,·18,·31,·128,·203,·204,·211,·213,·215], |
5296 | ········"0102":·[2,·18,·31,·191,·201], | 5292 | ········"0102":·[2,·18,·31,·191,·201], |
5297 | ········"0103":·[2,·18,·31,·128,·203,·204,·211,·213,·214,·215], | 5293 | ········"0103":·[2,·18,·31,·128,·203,·204,·211,·213,·214,·215], |
5298 | ········"0106":·[2,·18], | 5294 | ········"0106":·[2,·18], |
5299 | ········"0107":·[2,·18], | 5295 | ········"0107":·[2,·18], |
5300 | ········"010c":·[23,·24], | 5296 | ········"010c":·[23,·24], |
5301 | ········"011":·9, | ||
5302 | ········"0111":·[23,·24], | 5297 | ········"0111":·[23,·24], |
5303 | ········"0115":·[23,·24], | 5298 | ········"0115":·[23,·24], |
5304 | ········"011a":·[23,·24], | 5299 | ········"011a":·[23,·24], |
5305 | ········"0120":·18, | 5300 | ········"0120":·18, |
5301 | ········"016":·11, | ||
5306 | ········"0166":·18, | 5302 | ········"0166":·18, |
5303 | ········"018":·[7,·12], | ||
5307 | ········"0180":·[23,·24], | 5304 | ········"0180":·[23,·24], |
5308 | ········"0182":·37, | 5305 | ········"0182":·37, |
5309 | ········"0197b5846bb5":·[476,·483], | 5306 | ········"0197b5846bb5":·[476,·483], |
5310 | ········"01b2":·37, | 5307 | ········"01b2":·37, |
5311 | ········"0200":·509, | 5308 | ········"0200":·509, |
5312 | ········"0201":·[2,·18,·476,·488], | 5309 | ········"0201":·[2,·18,·476,·488], |
5313 | ········"0210":·[128,·468,·509], | 5310 | ········"0210":·[128,·468,·509], |
5314 | ········"0211":·128, | 5311 | ········"0211":·128, |
5315 | ········"023127":·12, | ||
5316 | ········"025109":·[10,·503], | 5312 | ········"025109":·[10,·503], |
5317 | ········"0275401":·[23,·24,·25], | 5313 | ········"0275401":·[23,·24,·25], |
5318 | ········"02754010000000":·[23,·25], | 5314 | ········"02754010000000":·[23,·25], |
5319 | ········"03 | 5315 | ········"030":·2, |
5316 | ········"033":·[16,·19], | ||
5320 | ········"035797":·18, | 5317 | ········"035797":·18, |
5321 | ········"03579711914062":·18, | 5318 | ········"03579711914062":·18, |
5322 | ········"0400":·[2,·7,·18], | 5319 | ········"0400":·[2,·7,·18], |
5323 | ········"0411bab7c985":·[476,·483], | 5320 | ········"0411bab7c985":·[476,·483], |
5324 | ········"045357":·[10,·503], | 5321 | ········"045357":·[10,·503], |
5325 | ········"05":·[18,·500], | 5322 | ········"05":·[18,·500], |
5326 | ········"0500":·18, | 5323 | ········"0500":·18, |
5327 | ········"050743":·[10,·503], | 5324 | ········"050743":·[10,·503], |
5325 | ········"052":·9, | ||
5328 | ········"072730":·[18,·23,·25], | 5326 | ········"072730":·[18,·23,·25], |
5329 | ········"072731":·[18,·23,·25,·501], | 5327 | ········"072731":·[18,·23,·25,·501], |
5330 | ········"07992553710938":·18, | 5328 | ········"07992553710938":·18, |
5331 | ········"079926":·18, | 5329 | ········"079926":·18, |
5332 | ········"079956":·18, | 5330 | ········"079956":·18, |
5333 | ········"08":·142, | 5331 | ········"08":·142, |
5334 | ········"085000":·18, | 5332 | ········"085000":·18, |
5333 | ········"093":·3, | ||
5335 | ········"095":·18, | 5334 | ········"095":·18, |
5336 | ········"095000":·18, | 5335 | ········"095000":·18, |
5337 | ········"098":·8, | ||
5338 | ········"0x00":·[136,·138,·178,·459], | 5336 | ········"0x00":·[136,·138,·178,·459], |
5339 | ········"0x00000000":·[140,·142], | 5337 | ········"0x00000000":·[140,·142], |
5340 | ········"0x0002":·[129,·501], | 5338 | ········"0x0002":·[129,·501], |
5341 | ········"0x0006":·[476,·486], | 5339 | ········"0x0006":·[476,·486], |
5342 | ········"0x0008":·501, | 5340 | ········"0x0008":·501, |
5343 | ········"0x0009":·40, | 5341 | ········"0x0009":·40, |
5344 | ········"0x00091001":·40, | 5342 | ········"0x00091001":·40, |
Offset 5515, 14 lines modified | Offset 5513, 15 lines modified | ||
5515 | ········"10e7":·18, | 5513 | ········"10e7":·18, |
5516 | ········"10e9":·18, | 5514 | ········"10e9":·18, |
5517 | ········"11":·[11,·18,·20,·203,·204,·205,·206,·207,·215,·223,·229,·231,·245,·246,·292,·293,·343,·362,·381,·394,·422,·427,·476,·496,·509], | 5515 | ········"11":·[11,·18,·20,·203,·204,·205,·206,·207,·215,·223,·229,·231,·245,·246,·292,·293,·343,·362,·381,·394,·422,·427,·476,·496,·509], |
5518 | ········"110":·[48,·476,·482], | 5516 | ········"110":·[48,·476,·482], |
5519 | ········"1100":·18, | 5517 | ········"1100":·18, |
5520 | ········"1101":·[476,·489], | 5518 | ········"1101":·[476,·489], |
5521 | ········"1103":·[476,·489,·492], | 5519 | ········"1103":·[476,·489,·492], |
5520 | ········"110649":·12, | ||
5522 | ········"111":·[476,·482], | 5521 | ········"111":·[476,·482], |
5523 | ········"1110":·18, | 5522 | ········"1110":·18, |
5524 | ········"111079":·18, | 5523 | ········"111079":·18, |
5525 | ········"1111":·18, | 5524 | ········"1111":·18, |
5526 | ········"112":·48, | 5525 | ········"112":·48, |
5527 | ········"1120":·18, | 5526 | ········"1120":·18, |
5528 | ········"1127":·[476,·492], | 5527 | ········"1127":·[476,·492], |
Offset 5733, 15 lines modified | Offset 5732, 15 lines modified | ||
5733 | ········"1c32791bf0":·[476,·480], | 5732 | ········"1c32791bf0":·[476,·480], |
5734 | ········"1ct1":·[8,·18,·23,·25,·503], | 5733 | ········"1ct1":·[8,·18,·23,·25,·503], |
5735 | ········"1d":·[94,·201,·211,·212,·213,·214,·215], | 5734 | ········"1d":·[94,·201,·211,·212,·213,·214,·215], |
5736 | ········"1f":·11, | 5735 | ········"1f":·11, |
5737 | ········"1st":·20, | 5736 | ········"1st":·20, |
5738 | ········"2":·[0,·2,·4,·7,·8,·9,·10,·12,·13,·15,·16,·17,·18,·19,·21,·23,·24,·25,·26,·28,·30,·31,·33,·35,·36,·38,·39,·40,·41,·47,·48,·51,·73,·75,·76,·78,·80,·81,·82,·85,·92,·93,·94,·96,·97,·99,·100,·103,·105,·106,·107,·108,·125,·127,·128,·130,·131,·132,·133,·136,·137,·138,·139,·140,·142,·143,·144,·146,·147,·148,·156,·159,·165,·178,·191,·201,·203,·204,·205,·206,·207,·208,·211,·213,·214,·215,·216,·218,·219,·222,·223,·224,·225,·226,·227,·228,·229,·230,·231,·232,·233,·234,·235,·236,·237,·238,·239,·240,·241,·242,·243,·244,·245,·246,·247,·248,·249,·250,·251,·252,·253,·254,·255,·256,·257,·258,·259,·260,·261,·262,·263,·264,·265,·266,·267,·268,·269,·270,·271,·272,·273,·274,·275,·276,·277,·278,·279,·280,·281,·282,·283,·284,·285,·286,·287,·288,·289,·290,·291,·292,·293,·294,·295,·296,·297,·298,·299,·300,·301,·302,·303,·304,·305,·306,·307,·308,·309,·310,·311,·312,·313,·314,·315,·316,·317,·318,·319,·320,·321,·322,·323,·324,·325,·326,·327,·328,·329,·330,·331,·332,·333,·334,·335,·336,·337,·338,·339,·340,·341,·342,·343,·344,·345,·346,·347,·348,·349,·350,·351,·352,·353,·354,·355,·356,·357,·358,·359,·360,·361,·362,·365,·366,·367,·368,·369,·370,·371,·372,·373,·374,·375,·376,·377,·378,·379,·380,·381,·382,·383,·384,·385,·386,·387,·388,·389,·390,·391,·392,·393,·394,·395,·396,·397,·398,·399,·400,·401,·402,·403,·404,·405,·406,·407,·408,·409,·410,·411,·412,·413,·414,·415,·416,·417,·418,·419,·420,·421,·422,·423,·424,·425,·426,·427,·428,·429,·430,·431,·432,·433,·442,·451,·453,·468,·473,·479,·480,·482,·483,·485,·486,·488,·489,·499,·501,·503,·505,·506,·508,·509], | 5737 | ········"2":·[0,·2,·4,·7,·8,·9,·10,·12,·13,·15,·16,·17,·18,·19,·21,·23,·24,·25,·26,·28,·30,·31,·33,·35,·36,·38,·39,·40,·41,·47,·48,·51,·73,·75,·76,·78,·80,·81,·82,·85,·92,·93,·94,·96,·97,·99,·100,·103,·105,·106,·107,·108,·125,·127,·128,·130,·131,·132,·133,·136,·137,·138,·139,·140,·142,·143,·144,·146,·147,·148,·156,·159,·165,·178,·191,·201,·203,·204,·205,·206,·207,·208,·211,·213,·214,·215,·216,·218,·219,·222,·223,·224,·225,·226,·227,·228,·229,·230,·231,·232,·233,·234,·235,·236,·237,·238,·239,·240,·241,·242,·243,·244,·245,·246,·247,·248,·249,·250,·251,·252,·253,·254,·255,·256,·257,·258,·259,·260,·261,·262,·263,·264,·265,·266,·267,·268,·269,·270,·271,·272,·273,·274,·275,·276,·277,·278,·279,·280,·281,·282,·283,·284,·285,·286,·287,·288,·289,·290,·291,·292,·293,·294,·295,·296,·297,·298,·299,·300,·301,·302,·303,·304,·305,·306,·307,·308,·309,·310,·311,·312,·313,·314,·315,·316,·317,·318,·319,·320,·321,·322,·323,·324,·325,·326,·327,·328,·329,·330,·331,·332,·333,·334,·335,·336,·337,·338,·339,·340,·341,·342,·343,·344,·345,·346,·347,·348,·349,·350,·351,·352,·353,·354,·355,·356,·357,·358,·359,·360,·361,·362,·365,·366,·367,·368,·369,·370,·371,·372,·373,·374,·375,·376,·377,·378,·379,·380,·381,·382,·383,·384,·385,·386,·387,·388,·389,·390,·391,·392,·393,·394,·395,·396,·397,·398,·399,·400,·401,·402,·403,·404,·405,·406,·407,·408,·409,·410,·411,·412,·413,·414,·415,·416,·417,·418,·419,·420,·421,·422,·423,·424,·425,·426,·427,·428,·429,·430,·431,·432,·433,·442,·451,·453,·468,·473,·479,·480,·482,·483,·485,·486,·488,·489,·499,·501,·503,·505,·506,·508,·509], |
5739 | ········"20":·[18,·48,·215,·344,·390,·476,·494], | 5738 | ········"20":·[18,·48,·215,·344,·390,·476,·494], |
5740 | ········"200":·[ | 5739 | ········"200":·[238,·240,·361,·425,·426], |
5741 | ········"2000":·[2,·7,·18,·31,·38,·76,·139,·215,·309,·476,·489,·492,·505,·506], | 5740 | ········"2000":·[2,·7,·18,·31,·38,·76,·139,·215,·309,·476,·489,·492,·505,·506], |
5742 | ········"200000":·18, | 5741 | ········"200000":·18, |
5743 | ········"20010101":·[9,·10,·128,·503], | 5742 | ········"20010101":·[9,·10,·128,·503], |
5744 | ········"20030505":·[9,·10,·503], | 5743 | ········"20030505":·[9,·10,·503], |
5745 | ········"20030716":·[21,·23,·24,·25,·35], | 5744 | ········"20030716":·[21,·23,·24,·25,·35], |
5746 | ········"20030903":·[21,·23,·24,·35], | 5745 | ········"20030903":·[21,·23,·24,·35], |
5747 | ········"20030903150023":·[21,·23,·24,·35], | 5746 | ········"20030903150023":·[21,·23,·24,·35], |
Offset 5762, 15 lines modified | Offset 5761, 15 lines modified | ||
Max diff block lines reached; 4127/9722 bytes (42.45%) of diff not shown. |