Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | ·e0c | 1 | ·bbe0ace9e803eb792a5341420fc09908·964896·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····297 | 2 | -rw-r--r--···0········0········0····29728·2024-01-26·12:08:13.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···93 | 3 | -rw-r--r--···0········0········0···934976·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)···42959 | 1168 | -rw-r--r--···0·root·········(0)·root·········(0)···429598·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.014·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·0. | 86 | ···**Total·running·time·of·the·script:**·(0·minutes·0.557·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.012·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.235·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.01 | 174 | ···**Total·running·time·of·the·script:**·(0·minutes·0.012·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/tmpy3d5zod9·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.2 | 267 | ···**Total·running·time·of·the·script:**·(0·minutes·0.219·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 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/tmp | 37 | ····Writing·test·file·/tmp/tmpxejwhob5.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/tmpebh0g0j8.dcm |
40 | ····Load·file·/tmp/tmp | 40 | ····Load·file·/tmp/tmpxejwhob5.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:·'2024110 | 46 | ····(0008,·0023)·Content·Date························DA:·'20241106' |
47 | ····(0008,·0033)·Content·Time························TM:·'0 | 47 | ····(0008,·0033)·Content·Time························TM:·'023842.596453' |
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/tmp | 50 | ····Remove·file·/tmp/tmpxejwhob5.dcm·... |
51 | ····Load·file·/tmp/tmp | 51 | ····Load·file·/tmp/tmpebh0g0j8.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:·'2024110 | 58 | ····(0008,·0023)·Content·Date························DA:·'20241106' |
59 | ····(0008,·0033)·Content·Time························TM:·'0 | 59 | ····(0008,·0033)·Content·Time························TM:·'023842.596453' |
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/tmpebh0g0j8.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.00 | 144 | ···**Total·running·time·of·the·script:**·(0·minutes·0.006·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 89, 15 lines modified | Offset 89, 15 lines modified | ||
89 | ····ds.TestThree·=·'1.2.3.4.5' | 89 | ····ds.TestThree·=·'1.2.3.4.5' |
90 | ····print(ds.top()) | 90 | ····print(ds.top()) |
91 | ..·rst-class::·sphx-glr-timing | 91 | ..·rst-class::·sphx-glr-timing |
92 | ···**Total·running·time·of·the·script:**·(0·minutes·0.00 | 92 | ···**Total·running·time·of·the·script:**·(0·minutes·0.002·seconds) |
93 | ..·_sphx_glr_download_auto_examples_metadata_processing_plot_add_dict_entries.py: | 93 | ..·_sphx_glr_download_auto_examples_metadata_processing_plot_add_dict_entries.py: |
94 | ..·only::·html | 94 | ..·only::·html |
95 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 95 | ··..·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.010·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.191·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.014·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·minutes·0.0 | 163 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8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8d_\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·0. | 167 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.557·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·0. | 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·0.557·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.012·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.012·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_\x8i_\x8n_\x8t_\x8i_\x8n_\x8g_\x8__\x8d_\x8a_\x8t_\x8a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r_\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.235·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.235·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.01 | 258 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.012·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.01 | 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.012·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_\x8y_\x8n_\x8b | 179 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\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8l_\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/tmpy3d5zod9·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.2 | 352 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.219·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/tmpy3d5zod9·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·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8: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r_\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 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/tmp | 130 | Writing·test·file·/tmp/tmpxejwhob5.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/tmpebh0g0j8.dcm |
133 | Load·file·/tmp/tmp | 133 | Load·file·/tmp/tmpxejwhob5.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:·'2024110 | 139 | (0008,·0023)·Content·Date························DA:·'20241106' |
140 | (0008,·0033)·Content·Time························TM:·'0 | 140 | (0008,·0033)·Content·Time························TM:·'023842.596453' |
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/tmp | 143 | Remove·file·/tmp/tmpxejwhob5.dcm·... |
144 | Load·file·/tmp/tmp | 144 | Load·file·/tmp/tmpebh0g0j8.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:·'2024110 | 151 | (0008,·0023)·Content·Date························DA:·'20241106' |
152 | (0008,·0033)·Content·Time························TM:·'0 | 152 | (0008,·0033)·Content·Time························TM:·'023842.596453' |
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/tmpebh0g0j8.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.00 | 228 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.006·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/tmp | 43 | Writing·test·file·/tmp/tmpxejwhob5.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/tmpebh0g0j8.dcm |
46 | Load·file·/tmp/tmp | 46 | Load·file·/tmp/tmpxejwhob5.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:·'2024110 | 52 | (0008,·0023)·Content·Date························DA:·'20241106' |
53 | (0008,·0033)·Content·Time························TM:·'0 | 53 | (0008,·0033)·Content·Time························TM:·'023842.596453' |
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/tmp | 56 | Remove·file·/tmp/tmpxejwhob5.dcm·... |
57 | Load·file·/tmp/tmp | 57 | Load·file·/tmp/tmpebh0g0j8.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:·'2024110 | 64 | (0008,·0023)·Content·Date························DA:·'20241106' |
65 | (0008,·0033)·Content·Time························TM:·'0 | 65 | (0008,·0033)·Content·Time························TM:·'023842.596453' |
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/tmpebh0g0j8.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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137 | _\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_\x8r_\x8i_\x8t_\x8e_\x8__\x8d_\x8i_\x8c_\x8o_\x8m_\x8._\x8p_\x8y |
138 | _\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 | 138 | _\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 |
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 167, 15 lines modified | Offset 167, 15 lines modified | ||
167 | <span·class="n">ds</span><span·class="o">.</span><span·class="n">TestOne</span>·<span·class="o">=</span>·<span·class="mi">42</span> | 167 | <span·class="n">ds</span><span·class="o">.</span><span·class="n">TestOne</span>·<span·class="o">=</span>·<span·class="mi">42</span> |
168 | <span·class="n">ds</span><span·class="o">.</span><span·class="n">TestTwo</span>·<span·class="o">=</span>·<span·class="s1">'12345'</span> | 168 | <span·class="n">ds</span><span·class="o">.</span><span·class="n">TestTwo</span>·<span·class="o">=</span>·<span·class="s1">'12345'</span> |
169 | <a·href="../../reference/generated/pydicom.uid.UID.html#pydicom.uid.UID"·title="pydicom.uid.UID"·class="sphx-glr-backref-module-pydicom-uid·sphx-glr-backref-type-py-class·sphx-glr-backref-instance"><span·class="n">ds</span><span·class="o">.</span><span·class="n">TestThree</span></a>·<span·class="o">=</span>·<span·class="s1">'1.2.3.4.5'</span> | 169 | <a·href="../../reference/generated/pydicom.uid.UID.html#pydicom.uid.UID"·title="pydicom.uid.UID"·class="sphx-glr-backref-module-pydicom-uid·sphx-glr-backref-type-py-class·sphx-glr-backref-instance"><span·class="n">ds</span><span·class="o">.</span><span·class="n">TestThree</span></a>·<span·class="o">=</span>·<span·class="s1">'1.2.3.4.5'</span> |
170 | <span·class="nb">print</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">top</span><span·class="p">())</span> | 170 | <span·class="nb">print</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">top</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.00 | 173 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.002·seconds)</p> |
174 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-metadata-processing-plot-add-dict-entries-py"> | 174 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-metadata-processing-plot-add-dict-entries-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/54be3151aaa6e43d8757c4eaeb691675/plot_add_dict_entries.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_add_dict_entries.ipynb</span></code></a></p> | 176 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/54be3151aaa6e43d8757c4eaeb691675/plot_add_dict_entries.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_add_dict_entries.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/b09c4a9ac1947f91877d5cbf389a2b2e/plot_add_dict_entries.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_add_dict_entries.py</span></code></a></p> | 179 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/b09c4a9ac1947f91877d5cbf389a2b2e/plot_add_dict_entries.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_add_dict_entries.py</span></code></a></p> |
180 | </div> | 180 | </div> |
Offset 72, 15 lines modified | Offset 72, 15 lines modified | ||
72 | ds·=·Dataset()··#·or·could·get·one·from·dcmread,·etc | 72 | ds·=·Dataset()··#·or·could·get·one·from·dcmread,·etc |
73 | ds.TestOne·=·42 | 73 | ds.TestOne·=·42 |
74 | ds.TestTwo·=·'12345' | 74 | ds.TestTwo·=·'12345' |
75 | _\x8d_\x8s_\x8._\x8T_\x8e_\x8s_\x8t_\x8T_\x8h_\x8r_\x8e_\x8e·=·'1.2.3.4.5' | 75 | _\x8d_\x8s_\x8._\x8T_\x8e_\x8s_\x8t_\x8T_\x8h_\x8r_\x8e_\x8e·=·'1.2.3.4.5' |
76 | print(ds.top()) | 76 | print(ds.top()) |
77 | 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.00 | 77 | 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.002·seconds) |
78 | _\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_\x8d_\x8d_\x8__\x8d_\x8i_\x8c_\x8t_\x8__\x8e_\x8n_\x8t_\x8r_\x8i_\x8e_\x8s_\x8._\x8i_\x8p_\x8y_\x8n_\x8b | 78 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x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d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
81 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 81 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
82 | =============================================================================== | 82 | =============================================================================== |
83 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. | 83 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. |
84 | 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. | 84 | 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.010·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.010·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_\x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8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
101 | _\x8P_\x8r_\x8e_\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.191·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.191·seconds) |
750 | _\x8D_\x8o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_\x8r_\x8e_\x8n_\x8c_\x8e_\x8._\x8p_\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 | 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 5226, 61 lines modified | Offset 5226, 59 lines modified | ||
5226 | ········"00080008":·502, | 5226 | ········"00080008":·502, |
5227 | ········"0009":·[18,·40,·47,·128,·211,·215,·476,·489], | 5227 | ········"0009":·[18,·40,·47,·128,·211,·215,·476,·489], |
5228 | ········"00091002":·502, | 5228 | ········"00091002":·502, |
5229 | ········"000b":·40, | 5229 | ········"000b":·40, |
5230 | ········"000d":·[2,·18], | 5230 | ········"000d":·[2,·18], |
5231 | ········"000e":·[2,·18], | 5231 | ········"000e":·[2,·18], |
5232 | ········"000y":·18, | 5232 | ········"000y":·18, |
5233 | ········"001":·[1 | 5233 | ········"001":·[17,·40], |
5234 | ········"0010":·[2,·12,·16,·18,·23,·24,·25,·33,·35,·40,·46,·47,·63,·64,·94,·128,·132,·139,·140,·141,·156,·178,·191,·201,·211,·212,·213,·214,·215,·468,·469,·476,·485,·500,·501,·503,·505], | 5234 | ········"0010":·[2,·12,·16,·18,·23,·24,·25,·33,·35,·40,·46,·47,·63,·64,·94,·128,·132,·139,·140,·141,·156,·178,·191,·201,·211,·212,·213,·214,·215,·468,·469,·476,·485,·500,·501,·503,·505], |
5235 | ········"0011":·[2,·18,·46,·128,·201,·211,·213,·214,·215], | 5235 | ········"0011":·[2,·18,·46,·128,·201,·211,·213,·214,·215], |
5236 | ········"0012":·[2,·12,·18,·23,·24,·25,·35,·40,·132,·191,·353,·501], | 5236 | ········"0012":·[2,·12,·18,·23,·24,·25,·35,·40,·132,·191,·353,·501], |
5237 | ········"0013":·[2,·18,·23,·24,·25,·35,·40,·132,·191,·501,·503], | 5237 | ········"0013":·[2,·18,·23,·24,·25,·35,·40,·132,·191,·501,·503], |
5238 | ········"0014":·[2,·18,·23,·24,·25,·501], | 5238 | ········"0014":·[2,·18,·23,·24,·25,·501], |
5239 | ········"0015":·201, | 5239 | ········"0015":·201, |
5240 | ········"0016":·[2,·18,·23,·24,·25,·35,·40,·191,·501], | 5240 | ········"0016":·[2,·18,·23,·24,·25,·35,·40,·191,·501], |
5241 | ········"0017":·191, | 5241 | ········"0017":·191, |
5242 | ········"0018":·[2,·18,·23,·24,·25,·35,·37,·191,·202,·215], | 5242 | ········"0018":·[2,·18,·23,·24,·25,·35,·37,·191,·202,·215], |
5243 | ········"0019":·18, | 5243 | ········"0019":·18, |
5244 | ········"0019xx43":·[476,·495], | 5244 | ········"0019xx43":·[476,·495], |
5245 | ········"001a":·48, | 5245 | ········"001a":·48, |
5246 | ········"002":·15, | ||
5246 | ········"0020":·[2,·12,·16,·18,·23,·24,·25,·35,·501,·503], | 5247 | ········"0020":·[2,·12,·16,·18,·23,·24,·25,·35,·501,·503], |
5247 | ········"0021":·[2,·18], | 5248 | ········"0021":·[2,·18], |
5248 | ········"0022":·[2,·18,·501], | 5249 | ········"0022":·[2,·18,·501], |
5249 | ········"0023":·[2,·12,·18,·23,·24], | 5250 | ········"0023":·[2,·12,·18,·23,·24], |
5250 | ········"0025":·18, | 5251 | ········"0025":·18, |
5251 | ········"0026":·[23,·24], | 5252 | ········"0026":·[23,·24], |
5252 | ········"0027":·18, | 5253 | ········"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], | 5254 | ········"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, | 5255 | ········"0029":·18, |
5255 | ········"002c":·[23,·24], | 5256 | ········"002c":·[23,·24], |
5256 | ········"003":·11, | 5257 | ········"003":·11, |
5257 | ········"0030":·[2,·16,·18,·35], | 5258 | ········"0030":·[2,·16,·18,·35], |
5258 | ········"003044":·12, | ||
5259 | ········"0031":·[2,·18], | 5259 | ········"0031":·[2,·18], |
5260 | ········"0032":·[2,·18], | 5260 | ········"0032":·[2,·18], |
5261 | ········"0033":·[12,·18], | 5261 | ········"0033":·[12,·18], |
5262 | ········"0036697":·[23,·24,·25], | 5262 | ········"0036697":·[23,·24,·25], |
5263 | ········"003669700000":·[23,·25], | 5263 | ········"003669700000":·[23,·25], |
5264 | ········"0037":·[2,·18], | 5264 | ········"0037":·[2,·18], |
5265 | ········"003a":·[48,·128,·468,·509], | 5265 | ········"003a":·[48,·128,·468,·509], |
5266 | ········"0040":·[2,·18], | 5266 | ········"0040":·[2,·18], |
5267 | ········"0041":·128, | 5267 | ········"0041":·128, |
5268 | ········"0043":·[18,·23,·25,·501], | 5268 | ········"0043":·[18,·23,·25,·501], |
5269 | ········"005":·[7,·12], | ||
5270 | ········"0050":·[2,·18,·23,·24,·35,·46], | 5269 | ········"0050":·[2,·18,·23,·24,·35,·46], |
5271 | ········"0051":·[23,·24], | 5270 | ········"0051":·[23,·24], |
5272 | ········"0052":·[2,·18], | 5271 | ········"0052":·[2,·18], |
5273 | ········"006":·2, | 5272 | ········"006":·12, |
5274 | ········"0060":·[2,·18,·23,·24,·35], | 5273 | ········"0060":·[2,·18,·23,·24,·35], |
5275 | ········"007":·13, | 5274 | ········"007":·13, |
5276 | ········"0070":·[2,·18,·23,·24], | 5275 | ········"0070":·[2,·18,·23,·24], |
5277 | ········"0071":·[23,·24,·25], | 5276 | ········"0071":·[23,·24,·25], |
5278 | ········"0078":·[23,·24,·25], | 5277 | ········"0078":·[23,·24,·25], |
5279 | ········"008":·16, | ||
5280 | ········"0080":·[2,·18,·23,·24,·25], | 5278 | ········"0080":·[2,·18,·23,·24,·25], |
5281 | ········"0081":·[2,·18], | 5279 | ········"0081":·[2,·18], |
5282 | ········"0082":·[23,·24,·25], | 5280 | ········"0082":·[23,·24,·25], |
5283 | ········"0083":·[2,·18], | 5281 | ········"0083":·[2,·18], |
5284 | ········"0084":·[2,·18,·23,·24,·25], | 5282 | ········"0084":·[2,·18,·23,·24,·25], |
5285 | ········"0085":·[2,·18], | 5283 | ········"0085":·[2,·18], |
5286 | ········"0086":·[2,·18,·23,·24,·25], | 5284 | ········"0086":·[2,·18,·23,·24,·25], |
Offset 5288, 35 lines modified | Offset 5286, 38 lines modified | ||
5288 | ········"0090":·[2,·18], | 5286 | ········"0090":·[2,·18], |
5289 | ········"0091":·[2,·18], | 5287 | ········"0091":·[2,·18], |
5290 | ········"00a0":·[23,·24,·25], | 5288 | ········"00a0":·[23,·24,·25], |
5291 | ········"00b0":·[23,·24], | 5289 | ········"00b0":·[23,·24], |
5292 | ········"00b6":·[23,·24], | 5290 | ········"00b6":·[23,·24], |
5293 | ········"00f8":·17, | 5291 | ········"00f8":·17, |
5294 | ········"00fe":·17, | 5292 | ········"00fe":·17, |
5293 | ········"010":·16, | ||
5295 | ········"0100":·[2,·18,·31,·39,·48,·128,·191,·201,·211,·213,·214,·215,·468,·509], | 5294 | ········"0100":·[2,·18,·31,·39,·48,·128,·191,·201,·211,·213,·214,·215,·468,·509], |
5296 | ········"0101":·[2,·18,·31,·128,·203,·204,·211,·213,·215], | 5295 | ········"0101":·[2,·18,·31,·128,·203,·204,·211,·213,·215], |
5297 | ········"0102":·[2,·18,·31,·191,·201], | 5296 | ········"0102":·[2,·18,·31,·191,·201], |
5298 | ········"0103":·[2,·18,·31,·128,·203,·204,·211,·213,·214,·215], | 5297 | ········"0103":·[2,·18,·31,·128,·203,·204,·211,·213,·214,·215], |
5299 | ········"0106":·[2,·18], | 5298 | ········"0106":·[2,·18], |
5300 | ········"0107":·[2,·18], | 5299 | ········"0107":·[2,·18], |
5301 | ········"010c":·[23,·24], | 5300 | ········"010c":·[23,·24], |
5302 | ········"011":·9, | ||
5303 | ········"0111":·[23,·24], | 5301 | ········"0111":·[23,·24], |
5304 | ········"0115":·[23,·24], | 5302 | ········"0115":·[23,·24], |
5305 | ········"011a":·[23,·24], | 5303 | ········"011a":·[23,·24], |
5304 | ········"012":·[7,·9], | ||
5306 | ········"0120":·18, | 5305 | ········"0120":·18, |
5306 | ········"014":·2, | ||
5307 | ········"0166":·18, | 5307 | ········"0166":·18, |
5308 | ········"0180":·[23,·24], | 5308 | ········"0180":·[23,·24], |
5309 | ········"0182":·37, | 5309 | ········"0182":·37, |
5310 | ········"0197b5846bb5":·[476,·483], | 5310 | ········"0197b5846bb5":·[476,·483], |
5311 | ········"01b2":·37, | 5311 | ········"01b2":·37, |
5312 | ········"0200":·509, | 5312 | ········"0200":·509, |
5313 | ········"0201":·[2,·18,·476,·488], | 5313 | ········"0201":·[2,·18,·476,·488], |
5314 | ········"0210":·[128,·468,·509], | 5314 | ········"0210":·[128,·468,·509], |
5315 | ········"0211":·128, | 5315 | ········"0211":·128, |
5316 | ········"023842":·12, | ||
5316 | ········"025109":·[10,·503], | 5317 | ········"025109":·[10,·503], |
5317 | ········"0275401":·[23,·24,·25], | 5318 | ········"0275401":·[23,·24,·25], |
5318 | ········"02754010000000":·[23,·25], | 5319 | ········"02754010000000":·[23,·25], |
5319 | ········"033":·19, | 5320 | ········"033":·19, |
5320 | ········"035797":·18, | 5321 | ········"035797":·18, |
5321 | ········"03579711914062":·18, | 5322 | ········"03579711914062":·18, |
5322 | ········"0400":·[2,·7,·18], | 5323 | ········"0400":·[2,·7,·18], |
Offset 5327, 17 lines modified | Offset 5328, 15 lines modified | ||
5327 | ········"050743":·[10,·503], | 5328 | ········"050743":·[10,·503], |
5328 | ········"072730":·[18,·23,·25], | 5329 | ········"072730":·[18,·23,·25], |
5329 | ········"072731":·[18,·23,·25,·501], | 5330 | ········"072731":·[18,·23,·25,·501], |
5330 | ········"07992553710938":·18, | 5331 | ········"07992553710938":·18, |
5331 | ········"079926":·18, | 5332 | ········"079926":·18, |
5332 | ········"079956":·18, | 5333 | ········"079956":·18, |
5333 | ········"08":·142, | 5334 | ········"08":·142, |
5334 | ········"081":·18, | ||
5335 | ········"085000":·18, | 5335 | ········"085000":·18, |
5336 | ········"092":·8, | ||
5337 | ········"095":·18, | 5336 | ········"095":·18, |
5338 | ········"095000":·18, | 5337 | ········"095000":·18, |
5339 | ········"0x00":·[136,·138,·178,·459], | 5338 | ········"0x00":·[136,·138,·178,·459], |
5340 | ········"0x00000000":·[140,·142], | 5339 | ········"0x00000000":·[140,·142], |
5341 | ········"0x0002":·[129,·501], | 5340 | ········"0x0002":·[129,·501], |
5342 | ········"0x0006":·[476,·486], | 5341 | ········"0x0006":·[476,·486], |
5343 | ········"0x0008":·501, | 5342 | ········"0x0008":·501, |
Offset 5718, 14 lines modified | Offset 5717, 15 lines modified | ||
5718 | ········"186":·35, | 5717 | ········"186":·35, |
5719 | ········"1860":·503, | 5718 | ········"1860":·503, |
5720 | ········"187460":·30, | 5719 | ········"187460":·30, |
5721 | ········"1895":·80, | 5720 | ········"1895":·80, |
5722 | ········"19":·236, | 5721 | ········"19":·236, |
5723 | ········"190":·[2,·18,·35], | 5722 | ········"190":·[2,·18,·35], |
Max diff block lines reached; 3485/7632 bytes (45.66%) of diff not shown. |