Offset 1, 4 lines modified | Offset 1, 4 lines modified | ||
1 | ·3 | 1 | ·362ac64adf4a3244fae1c547a17ac2c4·504836·doc·optional·python-pydicom-doc_2.0.0-1_all.deb |
2 | ·a917a29c45999033811925667da5fc2c·5080·oldlibs·optional·python3-dicom_2.0.0-1_all.deb | 2 | ·a917a29c45999033811925667da5fc2c·5080·oldlibs·optional·python3-dicom_2.0.0-1_all.deb |
3 | ·c6ac69c36f9b3a48b007c6983bef851e·28063244·python·optional·python3-pydicom_2.0.0-1_all.deb | 3 | ·c6ac69c36f9b3a48b007c6983bef851e·28063244·python·optional·python3-pydicom_2.0.0-1_all.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2020-07-17·13:43:36.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2020-07-17·13:43:36.000000·debian-binary |
2 | -rw-r--r--···0········0········0····160 | 2 | -rw-r--r--···0········0········0····16012·2020-07-17·13:43:36.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···4886 | 3 | -rw-r--r--···0········0········0···488632·2020-07-17·13:43:36.000000·data.tar.xz |
Offset 639, 15 lines modified | Offset 639, 15 lines modified | ||
639 | -rw-r--r--···0·root·········(0)·root·········(0)····12020·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v1.1.0.html | 639 | -rw-r--r--···0·root·········(0)·root·········(0)····12020·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v1.1.0.html |
640 | -rw-r--r--···0·root·········(0)·root·········(0)····14639·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v1.2.0.html | 640 | -rw-r--r--···0·root·········(0)·root·········(0)····14639·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v1.2.0.html |
641 | -rw-r--r--···0·root·········(0)·root·········(0)····13185·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v1.3.0.html | 641 | -rw-r--r--···0·root·········(0)·root·········(0)····13185·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v1.3.0.html |
642 | -rw-r--r--···0·root·········(0)·root·········(0)····17042·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v1.4.0.html | 642 | -rw-r--r--···0·root·········(0)·root·········(0)····17042·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v1.4.0.html |
643 | -rw-r--r--···0·root·········(0)·root·········(0)·····7254·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v1.4.1.html | 643 | -rw-r--r--···0·root·········(0)·root·········(0)·····7254·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v1.4.1.html |
644 | -rw-r--r--···0·root·········(0)·root·········(0)····12963·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.0.0.html | 644 | -rw-r--r--···0·root·········(0)·root·········(0)····12963·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.0.0.html |
645 | -rw-r--r--···0·root·········(0)·root·········(0)·····6579·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/search.html | 645 | -rw-r--r--···0·root·········(0)·root·········(0)·····6579·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/search.html |
646 | -rw-r--r--···0·root·········(0)·root·········(0)···1411 | 646 | -rw-r--r--···0·root·········(0)·root·········(0)···141141·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/searchindex.js |
647 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/ | 647 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/ |
648 | -rw-r--r--···0·root·········(0)·root·········(0)·····8748·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/contributing.html | 648 | -rw-r--r--···0·root·········(0)·root·········(0)·····8748·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/contributing.html |
649 | -rw-r--r--···0·root·········(0)·root·········(0)····28136·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/contributing_code.html | 649 | -rw-r--r--···0·root·········(0)·root·········(0)····28136·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/contributing_code.html |
650 | -rw-r--r--···0·root·········(0)·root·········(0)····25225·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/contributing_docs.html | 650 | -rw-r--r--···0·root·········(0)·root·········(0)····25225·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/contributing_docs.html |
651 | -rw-r--r--···0·root·········(0)·root·········(0)····71665·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/dataset_basics.html | 651 | -rw-r--r--···0·root·········(0)·root·········(0)····71665·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/dataset_basics.html |
652 | -rw-r--r--···0·root·········(0)·root·········(0)····19894·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/dicom_json.html | 652 | -rw-r--r--···0·root·········(0)·root·········(0)····19894·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/dicom_json.html |
653 | -rw-r--r--···0·root·········(0)·root·········(0)·····8864·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/index.html | 653 | -rw-r--r--···0·root·········(0)·root·········(0)·····8864·2020-07-17·13:43:36.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/index.html |
Offset 168, 15 lines modified | Offset 168, 15 lines modified | ||
168 | ····#·print·the·image·information·given·in·the·dataset | 168 | ····#·print·the·image·information·given·in·the·dataset |
169 | ····print('The·information·of·the·data·set·after·downsampling:·\n') | 169 | ····print('The·information·of·the·data·set·after·downsampling:·\n') |
170 | ····print(ds) | 170 | ····print(ds) |
171 | ..·rst-class::·sphx-glr-timing | 171 | ..·rst-class::·sphx-glr-timing |
172 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.0 | 172 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.006·seconds) |
173 | ..·_sphx_glr_download_auto_examples_image_processing_plot_downsize_image.py: | 173 | ..·_sphx_glr_download_auto_examples_image_processing_plot_downsize_image.py: |
174 | ..·only·::·html | 174 | ..·only·::·html |
Offset 1, 14 lines modified | Offset 1, 14 lines modified | ||
1 | :orphan: | 1 | :orphan: |
2 | ..·_sphx_glr_auto_examples_image_processing_sg_execution_times: | 2 | ..·_sphx_glr_auto_examples_image_processing_sg_execution_times: |
3 | Computation·times | 3 | Computation·times |
4 | ================= | 4 | ================= |
5 | **00:00.0 | 5 | **00:00.006**·total·execution·time·for·**auto_examples_image_processing**·files: |
6 | +----------------------------------------------------------------------------------------------------+-----------+--------+ | 6 | +----------------------------------------------------------------------------------------------------+-----------+--------+ |
7 | |·:ref:`sphx_glr_auto_examples_image_processing_plot_downsize_image.py`·(``plot_downsize_image.py``)·|·00:00.0 | 7 | |·:ref:`sphx_glr_auto_examples_image_processing_plot_downsize_image.py`·(``plot_downsize_image.py``)·|·00:00.006·|·0.0·MB·| |
8 | +----------------------------------------------------------------------------------------------------+-----------+--------+ | 8 | +----------------------------------------------------------------------------------------------------+-----------+--------+ |
9 | |·:ref:`sphx_glr_auto_examples_image_processing_reslice.py`·(``reslice.py``)·························|·00:00.000·|·0.0·MB·| | 9 | |·:ref:`sphx_glr_auto_examples_image_processing_reslice.py`·(``reslice.py``)·························|·00:00.000·|·0.0·MB·| |
10 | +----------------------------------------------------------------------------------------------------+-----------+--------+ | 10 | +----------------------------------------------------------------------------------------------------+-----------+--------+ |
Offset 161, 15 lines modified | Offset 161, 15 lines modified | ||
161 | ····ds·=·pydicom.dcmread(filename) | 161 | ····ds·=·pydicom.dcmread(filename) |
162 | ····myprint(ds) | 162 | ····myprint(ds) |
163 | ..·rst-class::·sphx-glr-timing | 163 | ..·rst-class::·sphx-glr-timing |
164 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.0 | 164 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.006·seconds) |
165 | ..·_sphx_glr_download_auto_examples_input_output_plot_printing_dataset.py: | 165 | ..·_sphx_glr_download_auto_examples_input_output_plot_printing_dataset.py: |
166 | ..·only·::·html | 166 | ..·only·::·html |
Offset 102, 15 lines modified | Offset 102, 15 lines modified | ||
102 | ····#·plot·the·image·using·matplotlib | 102 | ····#·plot·the·image·using·matplotlib |
103 | ····plt.imshow(dataset.pixel_array,·cmap=plt.cm.bone) | 103 | ····plt.imshow(dataset.pixel_array,·cmap=plt.cm.bone) |
104 | ····plt.show() | 104 | ····plt.show() |
105 | ..·rst-class::·sphx-glr-timing | 105 | ..·rst-class::·sphx-glr-timing |
106 | ···**Total·running·time·of·the·script:**·(·0·minutes··0. | 106 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.134·seconds) |
107 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_dicom.py: | 107 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_dicom.py: |
108 | ..·only·::·html | 108 | ..·only·::·html |
Offset 233, 15 lines modified | Offset 233, 15 lines modified | ||
233 | ····················patient_names)) | 233 | ····················patient_names)) |
234 | ················print("·"·*·12·+·"Patient·IDs·in·images..:·{}".format( | 234 | ················print("·"·*·12·+·"Patient·IDs·in·images..:·{}".format( |
235 | ····················patient_IDs)) | 235 | ····················patient_IDs)) |
236 | ..·rst-class::·sphx-glr-timing | 236 | ..·rst-class::·sphx-glr-timing |
237 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.0 | 237 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.047·seconds) |
238 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_dicom_directory.py: | 238 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_dicom_directory.py: |
239 | ..·only·::·html | 239 | ..·only·::·html |
Offset 75, 15 lines modified | Offset 75, 15 lines modified | ||
75 | ····filename·=·get_testdata_files('rtplan.dcm')[0] | 75 | ····filename·=·get_testdata_files('rtplan.dcm')[0] |
76 | ····dataset·=·pydicom.dcmread(filename) | 76 | ····dataset·=·pydicom.dcmread(filename) |
77 | ····print(list_beams(dataset)) | 77 | ····print(list_beams(dataset)) |
78 | ..·rst-class::·sphx-glr-timing | 78 | ..·rst-class::·sphx-glr-timing |
79 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.00 | 79 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.003·seconds) |
80 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_rtplan.py: | 80 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_rtplan.py: |
81 | ..·only·::·html | 81 | ..·only·::·html |
Offset 35, 40 lines modified | Offset 35, 40 lines modified | ||
35 | ·Out: | 35 | ·Out: |
36 | ·..·code-block::·none | 36 | ·..·code-block::·none |
37 | ····Setting·file·meta·information... | 37 | ····Setting·file·meta·information... |
38 | ····Setting·dataset·values... | 38 | ····Setting·dataset·values... |
39 | ····Writing·test·file·/tmp/tmp | 39 | ····Writing·test·file·/tmp/tmpt7vgs1e9.dcm |
40 | ····File·saved. | 40 | ····File·saved. |
41 | ····Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmp | 41 | ····Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmpd44i7son.dcm |
42 | ····Load·file·/tmp/tmp | 42 | ····Load·file·/tmp/tmpt7vgs1e9.dcm·... |
43 | ····Dataset.file_meta·------------------------------- | 43 | ····Dataset.file_meta·------------------------------- |
44 | ····(0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage | 44 | ····(0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage |
45 | ····(0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 | 45 | ····(0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 |
46 | ····(0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 | 46 | ····(0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 |
47 | ····------------------------------------------------- | 47 | ····------------------------------------------------- |
48 | ····(0008,·0023)·Content·Date························DA:·'202 | 48 | ····(0008,·0023)·Content·Date························DA:·'20250214' |
49 | ····(0008,·0033)·Content·Time························TM:·' | 49 | ····(0008,·0033)·Content·Time························TM:·'062659.370534' |
50 | ····(0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 50 | ····(0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
51 | ····(0010,·0020)·Patient·ID··························LO:·'123456' | 51 | ····(0010,·0020)·Patient·ID··························LO:·'123456' |
52 | ····Remove·file·/tmp/tmp | 52 | ····Remove·file·/tmp/tmpt7vgs1e9.dcm·... |
53 | ····Load·file·/tmp/tmp | 53 | ····Load·file·/tmp/tmpd44i7son.dcm·... |
54 | ····Dataset.file_meta·------------------------------- | 54 | ····Dataset.file_meta·------------------------------- |
55 | ····(0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage | 55 | ····(0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage |
56 | ····(0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 | 56 | ····(0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 |
57 | ····(0002,·0010)·Transfer·Syntax·UID·················UI:·Explicit·VR·Big·Endian | 57 | ····(0002,·0010)·Transfer·Syntax·UID·················UI:·Explicit·VR·Big·Endian |
58 | ····(0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 | 58 | ····(0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 |
59 | ····------------------------------------------------- | 59 | ····------------------------------------------------- |
60 | ····(0008,·0023)·Content·Date························DA:·'202 | 60 | ····(0008,·0023)·Content·Date························DA:·'20250214' |
61 | ····(0008,·0033)·Content·Time························TM:·' | 61 | ····(0008,·0033)·Content·Time························TM:·'062659.370534' |
62 | ····(0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 62 | ····(0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
63 | ····(0010,·0020)·Patient·ID··························LO:·'123456' | 63 | ····(0010,·0020)·Patient·ID··························LO:·'123456' |
64 | ····Remove·file·/tmp/tmp | 64 | ····Remove·file·/tmp/tmpd44i7son.dcm·... |
65 | | | 65 | | |
Offset 141, 15 lines modified | Offset 141, 15 lines modified | ||
141 | ········#·remove·the·created·file | 141 | ········#·remove·the·created·file |
142 | ········print('Remove·file·{}·...'.format(filename)) | 142 | ········print('Remove·file·{}·...'.format(filename)) |
143 | ········os.remove(filename) | 143 | ········os.remove(filename) |
144 | ..·rst-class::·sphx-glr-timing | 144 | ..·rst-class::·sphx-glr-timing |
145 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.00 | 145 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.005·seconds) |
146 | ..·_sphx_glr_download_auto_examples_input_output_plot_write_dicom.py: | 146 | ..·_sphx_glr_download_auto_examples_input_output_plot_write_dicom.py: |
147 | ..·only·::·html | 147 | ..·only·::·html |
Offset 1, 20 lines modified | Offset 1, 20 lines modified | ||
1 | :orphan: | 1 | :orphan: |
2 | ..·_sphx_glr_auto_examples_input_output_sg_execution_times: | 2 | ..·_sphx_glr_auto_examples_input_output_sg_execution_times: |
3 | Computation·times | 3 | Computation·times |
4 | ================= | 4 | ================= |
5 | **00:00. | 5 | **00:00.196**·total·execution·time·for·**auto_examples_input_output**·files: |
6 | +------------------------------------------------------------------------------------------------------------+-----------+--------+ | 6 | +------------------------------------------------------------------------------------------------------------+-----------+--------+ |
7 | |·:ref:`sphx_glr_auto_examples_input_output_plot_read_dicom.py`·(``plot_read_dicom.py``)·····················|·00:00. | 7 | |·:ref:`sphx_glr_auto_examples_input_output_plot_read_dicom.py`·(``plot_read_dicom.py``)·····················|·00:00.134·|·0.0·MB·| |
8 | +------------------------------------------------------------------------------------------------------------+-----------+--------+ | 8 | +------------------------------------------------------------------------------------------------------------+-----------+--------+ |
9 | |·:ref:`sphx_glr_auto_examples_input_output_plot_read_dicom_directory.py`·(``plot_read_dicom_directory.py``)·|·00:00.0 | 9 | |·:ref:`sphx_glr_auto_examples_input_output_plot_read_dicom_directory.py`·(``plot_read_dicom_directory.py``)·|·00:00.047·|·0.0·MB·| |
10 | +------------------------------------------------------------------------------------------------------------+-----------+--------+ | 10 | +------------------------------------------------------------------------------------------------------------+-----------+--------+ |
11 | |·:ref:`sphx_glr_auto_examples_input_output_plot_printing_dataset.py`·(``plot_printing_dataset.py``)·········|·00:00.0 | 11 | |·:ref:`sphx_glr_auto_examples_input_output_plot_printing_dataset.py`·(``plot_printing_dataset.py``)·········|·00:00.006·|·0.0·MB·| |
12 | +------------------------------------------------------------------------------------------------------------+-----------+--------+ | 12 | +------------------------------------------------------------------------------------------------------------+-----------+--------+ |
13 | |·:ref:`sphx_glr_auto_examples_input_output_plot_write_dicom.py`·(``plot_write_dicom.py``)···················|·00:00.00 | 13 | |·:ref:`sphx_glr_auto_examples_input_output_plot_write_dicom.py`·(``plot_write_dicom.py``)···················|·00:00.005·|·0.0·MB·| |
14 | +------------------------------------------------------------------------------------------------------------+-----------+--------+ | 14 | +------------------------------------------------------------------------------------------------------------+-----------+--------+ |
15 | |·:ref:`sphx_glr_auto_examples_input_output_plot_read_rtplan.py`·(``plot_read_rtplan.py``)···················|·00:00.00 | 15 | |·:ref:`sphx_glr_auto_examples_input_output_plot_read_rtplan.py`·(``plot_read_rtplan.py``)···················|·00:00.003·|·0.0·MB·| |
16 | +------------------------------------------------------------------------------------------------------------+-----------+--------+ | 16 | +------------------------------------------------------------------------------------------------------------+-----------+--------+ |
Offset 91, 15 lines modified | Offset 91, 15 lines modified | ||
91 | ····ds.TestThree·=·'1.2.3.4.5' | 91 | ····ds.TestThree·=·'1.2.3.4.5' |
92 | ····print(ds.top()) | 92 | ····print(ds.top()) |
93 | ..·rst-class::·sphx-glr-timing | 93 | ..·rst-class::·sphx-glr-timing |
94 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.00 | 94 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.001·seconds) |
95 | ..·_sphx_glr_download_auto_examples_metadata_processing_plot_add_dict_entries.py: | 95 | ..·_sphx_glr_download_auto_examples_metadata_processing_plot_add_dict_entries.py: |
96 | ..·only·::·html | 96 | ..·only·::·html |
Offset 227, 15 lines modified | Offset 227, 15 lines modified | ||
227 | ..·rst-class::·sphx-glr-timing | 227 | ..·rst-class::·sphx-glr-timing |
228 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.0 | 228 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.009·seconds) |
229 | ..·_sphx_glr_download_auto_examples_metadata_processing_plot_anonymize.py: | 229 | ..·_sphx_glr_download_auto_examples_metadata_processing_plot_anonymize.py: |
230 | ..·only·::·html | 230 | ..·only·::·html |
Offset 79, 15 lines modified | Offset 79, 15 lines modified | ||
79 | ····#·data·element | 79 | ····#·data·element |
80 | ····beam0.BlockSequence.append(block_ds3) | 80 | ····beam0.BlockSequence.append(block_ds3) |
81 | ····del·plan_ds.BeamSequence[0].BlockSequence[1] | 81 | ····del·plan_ds.BeamSequence[0].BlockSequence[1] |
82 | ..·rst-class::·sphx-glr-timing | 82 | ..·rst-class::·sphx-glr-timing |
83 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.00 | 83 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.001·seconds) |
84 | ..·_sphx_glr_download_auto_examples_metadata_processing_plot_sequences.py: | 84 | ..·_sphx_glr_download_auto_examples_metadata_processing_plot_sequences.py: |
85 | ..·only·::·html | 85 | ..·only·::·html |
Offset 1, 16 lines modified | Offset 1, 16 lines modified | ||
1 | :orphan: | 1 | :orphan: |
2 | ..·_sphx_glr_auto_examples_metadata_processing_sg_execution_times: | 2 | ..·_sphx_glr_auto_examples_metadata_processing_sg_execution_times: |
3 | Computation·times | 3 | Computation·times |
4 | ================= | 4 | ================= |
5 | **00:00.01 | 5 | **00:00.011**·total·execution·time·for·**auto_examples_metadata_processing**·files: |
6 | +-----------------------------------------------------------------------------------------------------------+-----------+--------+ | 6 | +-----------------------------------------------------------------------------------------------------------+-----------+--------+ |
7 | |·:ref:`sphx_glr_auto_examples_metadata_processing_plot_anonymize.py`·(``plot_anonymize.py``)···············|·00:00.0 | 7 | |·:ref:`sphx_glr_auto_examples_metadata_processing_plot_anonymize.py`·(``plot_anonymize.py``)···············|·00:00.009·|·0.0·MB·| |
8 | +-----------------------------------------------------------------------------------------------------------+-----------+--------+ | 8 | +-----------------------------------------------------------------------------------------------------------+-----------+--------+ |
9 | |·:ref:`sphx_glr_auto_examples_metadata_processing_plot_sequences.py`·(``plot_sequences.py``)···············|·00:00.00 | 9 | |·:ref:`sphx_glr_auto_examples_metadata_processing_plot_sequences.py`·(``plot_sequences.py``)···············|·00:00.001·|·0.0·MB·| |
10 | +-----------------------------------------------------------------------------------------------------------+-----------+--------+ | 10 | +-----------------------------------------------------------------------------------------------------------+-----------+--------+ |
11 | |·:ref:`sphx_glr_auto_examples_metadata_processing_plot_add_dict_entries.py`·(``plot_add_dict_entries.py``)·|·00:00.00 | 11 | |·:ref:`sphx_glr_auto_examples_metadata_processing_plot_add_dict_entries.py`·(``plot_add_dict_entries.py``)·|·00:00.001·|·0.0·MB·| |
12 | +-----------------------------------------------------------------------------------------------------------+-----------+--------+ | 12 | +-----------------------------------------------------------------------------------------------------------+-----------+--------+ |
Offset 747, 15 lines modified | Offset 747, 15 lines modified | ||
747 | ····for·line·in·diff.compare(rep[0],·rep[1]): | 747 | ····for·line·in·diff.compare(rep[0],·rep[1]): |
748 | ········if·line[0]·!=·"?": | 748 | ········if·line[0]·!=·"?": |
749 | ············print(line) | 749 | ············print(line) |
750 | ..·rst-class::·sphx-glr-timing | 750 | ..·rst-class::·sphx-glr-timing |
751 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.1 | 751 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.110·seconds) |
752 | ..·_sphx_glr_download_auto_examples_plot_dicom_difference.py: | 752 | ..·_sphx_glr_download_auto_examples_plot_dicom_difference.py: |
753 | ..·only·::·html | 753 | ..·only·::·html |
Offset 1, 18 lines modified | Offset 1, 18 lines modified | ||
1 | :orphan: | 1 | :orphan: |
2 | ..·_sphx_glr_auto_examples_sg_execution_times: | 2 | ..·_sphx_glr_auto_examples_sg_execution_times: |
3 | Computation·times | 3 | Computation·times |
4 | ================= | 4 | ================= |
5 | **00:00.1 | 5 | **00:00.110**·total·execution·time·for·**auto_examples**·files: |
6 | +---------------------------------------------------------------------------------------+-----------+--------+ | 6 | +---------------------------------------------------------------------------------------+-----------+--------+ |
7 | |·:ref:`sphx_glr_auto_examples_plot_dicom_difference.py`·(``plot_dicom_difference.py``)·|·00:00.1 | 7 | |·:ref:`sphx_glr_auto_examples_plot_dicom_difference.py`·(``plot_dicom_difference.py``)·|·00:00.110·|·0.0·MB·| |
8 | +---------------------------------------------------------------------------------------+-----------+--------+ | 8 | +---------------------------------------------------------------------------------------+-----------+--------+ |
9 | |·:ref:`sphx_glr_auto_examples_dicomtree.py`·(``dicomtree.py``)·························|·00:00.000·|·0.0·MB·| | 9 | |·:ref:`sphx_glr_auto_examples_dicomtree.py`·(``dicomtree.py``)·························|·00:00.000·|·0.0·MB·| |
10 | +---------------------------------------------------------------------------------------+-----------+--------+ | 10 | +---------------------------------------------------------------------------------------+-----------+--------+ |
11 | |·:ref:`sphx_glr_auto_examples_memory_dataset.py`·(``memory_dataset.py``)···············|·00:00.000·|·0.0·MB·| | 11 | |·:ref:`sphx_glr_auto_examples_memory_dataset.py`·(``memory_dataset.py``)···············|·00:00.000·|·0.0·MB·| |
12 | +---------------------------------------------------------------------------------------+-----------+--------+ | 12 | +---------------------------------------------------------------------------------------+-----------+--------+ |
13 | |·:ref:`sphx_glr_auto_examples_show_charset_name.py`·(``show_charset_name.py``)·········|·00:00.000·|·0.0·MB·| | 13 | |·:ref:`sphx_glr_auto_examples_show_charset_name.py`·(``show_charset_name.py``)·········|·00:00.000·|·0.0·MB·| |
14 | +---------------------------------------------------------------------------------------+-----------+--------+ | 14 | +---------------------------------------------------------------------------------------+-----------+--------+ |
Offset 324, 15 lines modified | Offset 324, 15 lines modified | ||
324 | <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> | 324 | <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> |
325 | <span·class="c1">#·print·the·image·information·given·in·the·dataset</span> | 325 | <span·class="c1">#·print·the·image·information·given·in·the·dataset</span> |
326 | <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> | 326 | <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> |
327 | <span·class="nb">print</span><span·class="p">(</span><span·class="n">ds</span><span·class="p">)</span> | 327 | <span·class="nb">print</span><span·class="p">(</span><span·class="n">ds</span><span·class="p">)</span> |
328 | </pre></div> | 328 | </pre></div> |
329 | </div> | 329 | </div> |
330 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.0 | 330 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.006·seconds)</p> |
331 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-image-processing-plot-downsize-image-py"> | 331 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-image-processing-plot-downsize-image-py"> |
332 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 332 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
333 | <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> | 333 | <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> |
334 | </div> | 334 | </div> |
335 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 335 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
336 | <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> | 336 | <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> |
337 | </div> | 337 | </div> |
Offset 168, 15 lines modified | Offset 168, 15 lines modified | ||
168 | ds.PixelData·=·data_downsampling.tobytes() | 168 | ds.PixelData·=·data_downsampling.tobytes() |
169 | #·update·the·information·regarding·the·shape·of·the·data·array | 169 | #·update·the·information·regarding·the·shape·of·the·data·array |
170 | ds.Rows,·ds.Columns·=·data_downsampling.shape | 170 | ds.Rows,·ds.Columns·=·data_downsampling.shape |
171 | #·print·the·image·information·given·in·the·dataset | 171 | #·print·the·image·information·given·in·the·dataset |
172 | print('The·information·of·the·data·set·after·downsampling:·\n') | 172 | print('The·information·of·the·data·set·after·downsampling:·\n') |
173 | print(ds) | 173 | print(ds) |
174 | Total·running·time·of·the·script:·(·0·minutes·0.0 | 174 | Total·running·time·of·the·script:·(·0·minutes·0.006·seconds) |
175 | Download_Python_source_code:_plot_downsize_image.py | 175 | Download_Python_source_code:_plot_downsize_image.py |
176 | Download_Jupyter_notebook:_plot_downsize_image.ipynb | 176 | Download_Jupyter_notebook:_plot_downsize_image.ipynb |
177 | Gallery_generated_by_Sphinx-Gallery | 177 | Gallery_generated_by_Sphinx-Gallery |
178 | Next·Previous | 178 | Next·Previous |
179 | =============================================================================== | 179 | =============================================================================== |
180 | ©·Copyright·2008-2020,·Darcy·Mason·and·pydicom·contributors. | 180 | ©·Copyright·2008-2020,·Darcy·Mason·and·pydicom·contributors. |
181 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 181 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 181, 24 lines modified | Offset 181, 24 lines modified | ||
181 | ··<hr/> | 181 | ··<hr/> |
182 | </div> | 182 | </div> |
183 | ··········<div·role="main"·class="document"·itemscope="itemscope"·itemtype="http://schema.org/Article"> | 183 | ··········<div·role="main"·class="document"·itemscope="itemscope"·itemtype="http://schema.org/Article"> |
184 | ···········<div·itemprop="articleBody"> | 184 | ···········<div·itemprop="articleBody"> |
185 | ············ | 185 | ············ |
186 | ··<div·class="section"·id="computation-times"> | 186 | ··<div·class="section"·id="computation-times"> |
187 | <span·id="sphx-glr-auto-examples-image-processing-sg-execution-times"></span><h1>Computation·times<a·class="headerlink"·href="#computation-times"·title="Permalink·to·this·headline">¶</a></h1> | 187 | <span·id="sphx-glr-auto-examples-image-processing-sg-execution-times"></span><h1>Computation·times<a·class="headerlink"·href="#computation-times"·title="Permalink·to·this·headline">¶</a></h1> |
188 | <p><strong>00:00.0 | 188 | <p><strong>00:00.006</strong>·total·execution·time·for·<strong>auto_examples_image_processing</strong>·files:</p> |
189 | <table·class="docutils·align-default"> | 189 | <table·class="docutils·align-default"> |
190 | <colgroup> | 190 | <colgroup> |
191 | <col·style="width:·84%"·/> | 191 | <col·style="width:·84%"·/> |
192 | <col·style="width:·9%"·/> | 192 | <col·style="width:·9%"·/> |
193 | <col·style="width:·7%"·/> | 193 | <col·style="width:·7%"·/> |
194 | </colgroup> | 194 | </colgroup> |
195 | <tbody> | 195 | <tbody> |
196 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_downsize_image.html#sphx-glr-auto-examples-image-processing-plot-downsize-image-py"><span·class="std·std-ref">Downsize·MRI·image·using·pydicom</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_downsize_image.py</span></code>)</p></td> | 196 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_downsize_image.html#sphx-glr-auto-examples-image-processing-plot-downsize-image-py"><span·class="std·std-ref">Downsize·MRI·image·using·pydicom</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_downsize_image.py</span></code>)</p></td> |
197 | <td><p>00:00.0 | 197 | <td><p>00:00.006</p></td> |
198 | <td><p>0.0·MB</p></td> | 198 | <td><p>0.0·MB</p></td> |
199 | </tr> | 199 | </tr> |
200 | <tr·class="row-even"><td><p><a·class="reference·internal"·href="reslice.html#sphx-glr-auto-examples-image-processing-reslice-py"><span·class="std·std-ref">Load·CT·slices·and·plot·axial,·sagittal·and·coronal·images</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">reslice.py</span></code>)</p></td> | 200 | <tr·class="row-even"><td><p><a·class="reference·internal"·href="reslice.html#sphx-glr-auto-examples-image-processing-reslice-py"><span·class="std·std-ref">Load·CT·slices·and·plot·axial,·sagittal·and·coronal·images</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">reslice.py</span></code>)</p></td> |
201 | <td><p>00:00.000</p></td> | 201 | <td><p>00:00.000</p></td> |
202 | <td><p>0.0·MB</p></td> | 202 | <td><p>0.0·MB</p></td> |
203 | </tr> | 203 | </tr> |
204 | </tbody> | 204 | </tbody> |
Offset 320, 15 lines modified | Offset 320, 15 lines modified | ||
320 | <span·class="n">filename</span>·<span·class="o">=</span>·<a·href="../../reference/generated/pydicom.data.get_testdata_files.html#pydicom.data.get_testdata_files"·title="pydicom.data.get_testdata_files"·class="sphx-glr-backref-module-pydicom-data·sphx-glr-backref-type-py-function"><span·class="n">get_testdata_files</span></a><span·class="p">(</span><span·class="s1">'MR_small.dcm'</span><span·class="p">)[</span><span·class="mi">0</span><span·class="p">]</span> | 320 | <span·class="n">filename</span>·<span·class="o">=</span>·<a·href="../../reference/generated/pydicom.data.get_testdata_files.html#pydicom.data.get_testdata_files"·title="pydicom.data.get_testdata_files"·class="sphx-glr-backref-module-pydicom-data·sphx-glr-backref-type-py-function"><span·class="n">get_testdata_files</span></a><span·class="p">(</span><span·class="s1">'MR_small.dcm'</span><span·class="p">)[</span><span·class="mi">0</span><span·class="p">]</span> |
321 | <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> | 321 | <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> |
322 | <span·class="n">myprint</span><span·class="p">(</span><span·class="n">ds</span><span·class="p">)</span> | 322 | <span·class="n">myprint</span><span·class="p">(</span><span·class="n">ds</span><span·class="p">)</span> |
323 | </pre></div> | 323 | </pre></div> |
324 | </div> | 324 | </div> |
325 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.0 | 325 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.006·seconds)</p> |
326 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-printing-dataset-py"> | 326 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-printing-dataset-py"> |
327 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 327 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
328 | <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> | 328 | <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> |
329 | </div> | 329 | </div> |
330 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 330 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
331 | <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> | 331 | <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> |
332 | </div> | 332 | </div> |
Offset 159, 15 lines modified | Offset 159, 15 lines modified | ||
159 | ···················································repr_value)) | 159 | ···················································repr_value)) |
160 | filename·=·get_testdata_files('MR_small.dcm')[0] | 160 | filename·=·get_testdata_files('MR_small.dcm')[0] |
161 | ds·=·pydicom.dcmread(filename) | 161 | ds·=·pydicom.dcmread(filename) |
162 | myprint(ds) | 162 | myprint(ds) |
163 | Total·running·time·of·the·script:·(·0·minutes·0.0 | 163 | Total·running·time·of·the·script:·(·0·minutes·0.006·seconds) |
164 | Download_Python_source_code:_plot_printing_dataset.py | 164 | Download_Python_source_code:_plot_printing_dataset.py |
165 | Download_Jupyter_notebook:_plot_printing_dataset.ipynb | 165 | Download_Jupyter_notebook:_plot_printing_dataset.ipynb |
166 | Gallery_generated_by_Sphinx-Gallery | 166 | Gallery_generated_by_Sphinx-Gallery |
167 | Next·Previous | 167 | Next·Previous |
168 | =============================================================================== | 168 | =============================================================================== |
169 | ©·Copyright·2008-2020,·Darcy·Mason·and·pydicom·contributors. | 169 | ©·Copyright·2008-2020,·Darcy·Mason·and·pydicom·contributors. |
170 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 170 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 257, 15 lines modified | Offset 257, 15 lines modified | ||
257 | <span·class="nb">print</span><span·class="p">(</span><span·class="s2">"Slice·location...:"</span><span·class="p">,</span>·<span·class="n">dataset</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="s2">"(missing)"</span><span·class="p">))</span> | 257 | <span·class="nb">print</span><span·class="p">(</span><span·class="s2">"Slice·location...:"</span><span·class="p">,</span>·<span·class="n">dataset</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="s2">"(missing)"</span><span·class="p">))</span> |
258 | <span·class="c1">#·plot·the·image·using·matplotlib</span> | 258 | <span·class="c1">#·plot·the·image·using·matplotlib</span> |
259 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">imshow</span><span·class="p">(</span><span·class="n">dataset</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">bone</span><span·class="p">)</span> | 259 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">imshow</span><span·class="p">(</span><span·class="n">dataset</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">bone</span><span·class="p">)</span> |
260 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 260 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
261 | </pre></div> | 261 | </pre></div> |
262 | </div> | 262 | </div> |
263 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0. | 263 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.134·seconds)</p> |
264 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-dicom-py"> | 264 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-dicom-py"> |
265 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 265 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
266 | <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> | 266 | <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> |
267 | </div> | 267 | </div> |
268 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 268 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
269 | <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> | 269 | <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> |
270 | </div> | 270 | </div> |
Offset 96, 15 lines modified | Offset 96, 15 lines modified | ||
96 | #·use·.get()·if·not·sure·the·item·exists,·and·want·a·default·value·if·missing | 96 | #·use·.get()·if·not·sure·the·item·exists,·and·want·a·default·value·if·missing |
97 | print("Slice·location...:",·dataset.get('SliceLocation',·"(missing)")) | 97 | print("Slice·location...:",·dataset.get('SliceLocation',·"(missing)")) |
98 | #·plot·the·image·using·matplotlib | 98 | #·plot·the·image·using·matplotlib |
99 | plt.imshow(dataset.pixel_array,·cmap=plt.cm.bone) | 99 | plt.imshow(dataset.pixel_array,·cmap=plt.cm.bone) |
100 | plt.show() | 100 | plt.show() |
101 | Total·running·time·of·the·script:·(·0·minutes·0. | 101 | Total·running·time·of·the·script:·(·0·minutes·0.134·seconds) |
102 | Download_Python_source_code:_plot_read_dicom.py | 102 | Download_Python_source_code:_plot_read_dicom.py |
103 | Download_Jupyter_notebook:_plot_read_dicom.ipynb | 103 | Download_Jupyter_notebook:_plot_read_dicom.ipynb |
104 | Gallery_generated_by_Sphinx-Gallery | 104 | Gallery_generated_by_Sphinx-Gallery |
105 | Next·Previous | 105 | Next·Previous |
106 | =============================================================================== | 106 | =============================================================================== |
107 | ©·Copyright·2008-2020,·Darcy·Mason·and·pydicom·contributors. | 107 | ©·Copyright·2008-2020,·Darcy·Mason·and·pydicom·contributors. |
108 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 108 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 393, 15 lines modified | Offset 393, 15 lines modified | ||
393 | ············<span·class="c1">#·Show·the·set·of·all·names,·IDs·found·(should·each·have·one)</span> | 393 | ············<span·class="c1">#·Show·the·set·of·all·names,·IDs·found·(should·each·have·one)</span> |
394 | ············<span·class="nb">print</span><span·class="p">(</span><span·class="s2">"·"</span>·<span·class="o">*</span>·<span·class="mi">12</span>·<span·class="o">+</span>·<span·class="s2">"Patient·Names·in·images..:·</span><span·class="si">{}</span><span·class="s2">"</span><span·class="o">.</span><span·class="n">format</span><span·class="p">(</span> | 394 | ············<span·class="nb">print</span><span·class="p">(</span><span·class="s2">"·"</span>·<span·class="o">*</span>·<span·class="mi">12</span>·<span·class="o">+</span>·<span·class="s2">"Patient·Names·in·images..:·</span><span·class="si">{}</span><span·class="s2">"</span><span·class="o">.</span><span·class="n">format</span><span·class="p">(</span> |
395 | ················<span·class="n">patient_names</span><span·class="p">))</span> | 395 | ················<span·class="n">patient_names</span><span·class="p">))</span> |
396 | ············<span·class="nb">print</span><span·class="p">(</span><span·class="s2">"·"</span>·<span·class="o">*</span>·<span·class="mi">12</span>·<span·class="o">+</span>·<span·class="s2">"Patient·IDs·in·images..:·</span><span·class="si">{}</span><span·class="s2">"</span><span·class="o">.</span><span·class="n">format</span><span·class="p">(</span> | 396 | ············<span·class="nb">print</span><span·class="p">(</span><span·class="s2">"·"</span>·<span·class="o">*</span>·<span·class="mi">12</span>·<span·class="o">+</span>·<span·class="s2">"Patient·IDs·in·images..:·</span><span·class="si">{}</span><span·class="s2">"</span><span·class="o">.</span><span·class="n">format</span><span·class="p">(</span> |
397 | ················<span·class="n">patient_IDs</span><span·class="p">))</span> | 397 | ················<span·class="n">patient_IDs</span><span·class="p">))</span> |
398 | </pre></div> | 398 | </pre></div> |
399 | </div> | 399 | </div> |
400 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.0 | 400 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.047·seconds)</p> |
401 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-dicom-directory-py"> | 401 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-dicom-directory-py"> |
402 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 402 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
403 | <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> | 403 | <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> |
404 | </div> | 404 | </div> |
405 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 405 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
406 | <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> | 406 | <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> |
407 | </div> | 407 | </div> |
Offset 263, 15 lines modified | Offset 263, 15 lines modified | ||
263 | ············#·Expect·all·images·to·have·same·patient·name,·id | 263 | ············#·Expect·all·images·to·have·same·patient·name,·id |
264 | ············#·Show·the·set·of·all·names,·IDs·found·(should·each·have·one) | 264 | ············#·Show·the·set·of·all·names,·IDs·found·(should·each·have·one) |
265 | ············print("·"·*·12·+·"Patient·Names·in·images..:·{}".format( | 265 | ············print("·"·*·12·+·"Patient·Names·in·images..:·{}".format( |
266 | ················patient_names)) | 266 | ················patient_names)) |
267 | ············print("·"·*·12·+·"Patient·IDs·in·images..:·{}".format( | 267 | ············print("·"·*·12·+·"Patient·IDs·in·images..:·{}".format( |
268 | ················patient_IDs)) | 268 | ················patient_IDs)) |
269 | Total·running·time·of·the·script:·(·0·minutes·0.0 | 269 | Total·running·time·of·the·script:·(·0·minutes·0.047·seconds) |
270 | Download_Python_source_code:_plot_read_dicom_directory.py | 270 | Download_Python_source_code:_plot_read_dicom_directory.py |
271 | Download_Jupyter_notebook:_plot_read_dicom_directory.ipynb | 271 | Download_Jupyter_notebook:_plot_read_dicom_directory.ipynb |
272 | Gallery_generated_by_Sphinx-Gallery | 272 | Gallery_generated_by_Sphinx-Gallery |
273 | Next·Previous | 273 | Next·Previous |
274 | =============================================================================== | 274 | =============================================================================== |
275 | ©·Copyright·2008-2020,·Darcy·Mason·and·pydicom·contributors. | 275 | ©·Copyright·2008-2020,·Darcy·Mason·and·pydicom·contributors. |
276 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 276 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 234, 15 lines modified | Offset 234, 15 lines modified | ||
234 | <span·class="n">filename</span>·<span·class="o">=</span>·<a·href="../../reference/generated/pydicom.data.get_testdata_files.html#pydicom.data.get_testdata_files"·title="pydicom.data.get_testdata_files"·class="sphx-glr-backref-module-pydicom-data·sphx-glr-backref-type-py-function"><span·class="n">get_testdata_files</span></a><span·class="p">(</span><span·class="s1">'rtplan.dcm'</span><span·class="p">)[</span><span·class="mi">0</span><span·class="p">]</span> | 234 | <span·class="n">filename</span>·<span·class="o">=</span>·<a·href="../../reference/generated/pydicom.data.get_testdata_files.html#pydicom.data.get_testdata_files"·title="pydicom.data.get_testdata_files"·class="sphx-glr-backref-module-pydicom-data·sphx-glr-backref-type-py-function"><span·class="n">get_testdata_files</span></a><span·class="p">(</span><span·class="s1">'rtplan.dcm'</span><span·class="p">)[</span><span·class="mi">0</span><span·class="p">]</span> |
235 | <span·class="n">dataset</span>·<span·class="o">=</span>·<span·class="n">pydicom</span><span·class="o">.</span><span·class="n">dcmread</span><span·class="p">(</span><span·class="n">filename</span><span·class="p">)</span> | 235 | <span·class="n">dataset</span>·<span·class="o">=</span>·<span·class="n">pydicom</span><span·class="o">.</span><span·class="n">dcmread</span><span·class="p">(</span><span·class="n">filename</span><span·class="p">)</span> |
236 | <span·class="nb">print</span><span·class="p">(</span><span·class="n">list_beams</span><span·class="p">(</span><span·class="n">dataset</span><span·class="p">))</span> | 236 | <span·class="nb">print</span><span·class="p">(</span><span·class="n">list_beams</span><span·class="p">(</span><span·class="n">dataset</span><span·class="p">))</span> |
237 | </pre></div> | 237 | </pre></div> |
238 | </div> | 238 | </div> |
239 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.00 | 239 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.003·seconds)</p> |
240 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-rtplan-py"> | 240 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-rtplan-py"> |
241 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 241 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
242 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/c01783b47dfa1aa1100193cafc705c66/plot_read_rtplan.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_read_rtplan.py</span></code></a></p> | 242 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/c01783b47dfa1aa1100193cafc705c66/plot_read_rtplan.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_read_rtplan.py</span></code></a></p> |
243 | </div> | 243 | </div> |
244 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 244 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
245 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/eab5c62f7aa13a9dba28bb72f29156aa/plot_read_rtplan.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_read_rtplan.ipynb</span></code></a></p> | 245 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/eab5c62f7aa13a9dba28bb72f29156aa/plot_read_rtplan.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_read_rtplan.ipynb</span></code></a></p> |
246 | </div> | 246 | </div> |
Offset 72, 15 lines modified | Offset 72, 15 lines modified | ||
72 | ·······················································ssd=SSD)) | 72 | ·······················································ssd=SSD)) |
73 | ····return·"\n".join(lines) | 73 | ····return·"\n".join(lines) |
74 | filename·=·get_testdata_files('rtplan.dcm')[0] | 74 | filename·=·get_testdata_files('rtplan.dcm')[0] |
75 | dataset·=·pydicom.dcmread(filename) | 75 | dataset·=·pydicom.dcmread(filename) |
76 | print(list_beams(dataset)) | 76 | print(list_beams(dataset)) |
77 | Total·running·time·of·the·script:·(·0·minutes·0.00 | 77 | Total·running·time·of·the·script:·(·0·minutes·0.003·seconds) |
78 | Download_Python_source_code:_plot_read_rtplan.py | 78 | Download_Python_source_code:_plot_read_rtplan.py |
79 | Download_Jupyter_notebook:_plot_read_rtplan.ipynb | 79 | Download_Jupyter_notebook:_plot_read_rtplan.ipynb |
80 | Gallery_generated_by_Sphinx-Gallery | 80 | Gallery_generated_by_Sphinx-Gallery |
81 | Next·Previous | 81 | Next·Previous |
82 | =============================================================================== | 82 | =============================================================================== |
83 | ©·Copyright·2008-2020,·Darcy·Mason·and·pydicom·contributors. | 83 | ©·Copyright·2008-2020,·Darcy·Mason·and·pydicom·contributors. |
84 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 84 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 203, 40 lines modified | Offset 203, 40 lines modified | ||
203 | <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="Permalink·to·this·headline">¶</a></h1> | 203 | <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="Permalink·to·this·headline">¶</a></h1> |
204 | <p>This·example·shows·how·to·write·a·DICOM·file·from·scratch·using·pydicom.·This | 204 | <p>This·example·shows·how·to·write·a·DICOM·file·from·scratch·using·pydicom.·This |
205 | example·does·not·produce·a·DICOM·standards·compliant·file·as·written,·you·will | 205 | example·does·not·produce·a·DICOM·standards·compliant·file·as·written,·you·will |
206 | have·to·change·UIDs·to·valid·values·and·add·all·required·DICOM·data·elements.</p> | 206 | have·to·change·UIDs·to·valid·values·and·add·all·required·DICOM·data·elements.</p> |
207 | <p·class="sphx-glr-script-out">Out:</p> | 207 | <p·class="sphx-glr-script-out">Out:</p> |
208 | <div·class="sphx-glr-script-out·highlight-none·notranslate"><div·class="highlight"><pre><span></span>Setting·file·meta·information... | 208 | <div·class="sphx-glr-script-out·highlight-none·notranslate"><div·class="highlight"><pre><span></span>Setting·file·meta·information... |
209 | Setting·dataset·values... | 209 | Setting·dataset·values... |
210 | Writing·test·file·/tmp/tmp | 210 | Writing·test·file·/tmp/tmpt7vgs1e9.dcm |
211 | File·saved. | 211 | File·saved. |
212 | Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmp | 212 | Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmpd44i7son.dcm |
213 | Load·file·/tmp/tmp | 213 | Load·file·/tmp/tmpt7vgs1e9.dcm·... |
214 | Dataset.file_meta·------------------------------- | 214 | Dataset.file_meta·------------------------------- |
215 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage | 215 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage |
216 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 | 216 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 |
217 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 | 217 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 |
218 | ------------------------------------------------- | 218 | ------------------------------------------------- |
219 | (0008,·0023)·Content·Date························DA:·'202 | 219 | (0008,·0023)·Content·Date························DA:·'20250214' |
220 | (0008,·0033)·Content·Time························TM:·' | 220 | (0008,·0033)·Content·Time························TM:·'062659.370534' |
221 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 221 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
222 | (0010,·0020)·Patient·ID··························LO:·'123456' | 222 | (0010,·0020)·Patient·ID··························LO:·'123456' |
223 | Remove·file·/tmp/tmp | 223 | Remove·file·/tmp/tmpt7vgs1e9.dcm·... |
224 | Load·file·/tmp/tmp | 224 | Load·file·/tmp/tmpd44i7son.dcm·... |
225 | Dataset.file_meta·------------------------------- | 225 | Dataset.file_meta·------------------------------- |
226 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage | 226 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage |
227 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 | 227 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 |
228 | (0002,·0010)·Transfer·Syntax·UID·················UI:·Explicit·VR·Big·Endian | 228 | (0002,·0010)·Transfer·Syntax·UID·················UI:·Explicit·VR·Big·Endian |
229 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 | 229 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 |
230 | ------------------------------------------------- | 230 | ------------------------------------------------- |
231 | (0008,·0023)·Content·Date························DA:·'202 | 231 | (0008,·0023)·Content·Date························DA:·'20250214' |
232 | (0008,·0033)·Content·Time························TM:·' | 232 | (0008,·0033)·Content·Time························TM:·'062659.370534' |
233 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 233 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
234 | (0010,·0020)·Patient·ID··························LO:·'123456' | 234 | (0010,·0020)·Patient·ID··························LO:·'123456' |
235 | Remove·file·/tmp/tmp | 235 | Remove·file·/tmp/tmpd44i7son.dcm·... |
236 | </pre></div> | 236 | </pre></div> |
237 | </div> | 237 | </div> |
238 | <div·class="line-block"> | 238 | <div·class="line-block"> |
239 | <div·class="line"><br·/></div> | 239 | <div·class="line"><br·/></div> |
240 | </div> | 240 | </div> |
241 | <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="c1">#·authors·:·Guillaume·Lemaitre·<g.lemaitre58@gmail.com></span> | 241 | <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="c1">#·authors·:·Guillaume·Lemaitre·<g.lemaitre58@gmail.com></span> |
242 | <span·class="c1">#·license·:·MIT</span> | 242 | <span·class="c1">#·license·:·MIT</span> |
Offset 301, 15 lines modified | Offset 301, 15 lines modified | ||
301 | ····<span·class="nb">print</span><span·class="p">(</span><span·class="n">ds</span><span·class="p">)</span> | 301 | ····<span·class="nb">print</span><span·class="p">(</span><span·class="n">ds</span><span·class="p">)</span> |
302 | ····<span·class="c1">#·remove·the·created·file</span> | 302 | ····<span·class="c1">#·remove·the·created·file</span> |
303 | ····<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> | 303 | ····<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> |
304 | ····<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> | 304 | ····<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> |
305 | </pre></div> | 305 | </pre></div> |
306 | </div> | 306 | </div> |
307 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.00 | 307 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.005·seconds)</p> |
308 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-write-dicom-py"> | 308 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-write-dicom-py"> |
309 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 309 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
310 | <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> | 310 | <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> |
311 | </div> | 311 | </div> |
312 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 312 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
313 | <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> | 313 | <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> |
314 | </div> | 314 | </div> |
Offset 47, 40 lines modified | Offset 47, 40 lines modified | ||
47 | ******·Write·DICOM·data¶·****** | 47 | ******·Write·DICOM·data¶·****** |
48 | This·example·shows·how·to·write·a·DICOM·file·from·scratch·using·pydicom.·This | 48 | This·example·shows·how·to·write·a·DICOM·file·from·scratch·using·pydicom.·This |
49 | example·does·not·produce·a·DICOM·standards·compliant·file·as·written,·you·will | 49 | example·does·not·produce·a·DICOM·standards·compliant·file·as·written,·you·will |
50 | have·to·change·UIDs·to·valid·values·and·add·all·required·DICOM·data·elements. | 50 | have·to·change·UIDs·to·valid·values·and·add·all·required·DICOM·data·elements. |
51 | Out: | 51 | Out: |
52 | Setting·file·meta·information... | 52 | Setting·file·meta·information... |
53 | Setting·dataset·values... | 53 | Setting·dataset·values... |
54 | Writing·test·file·/tmp/tmp | 54 | Writing·test·file·/tmp/tmpt7vgs1e9.dcm |
55 | File·saved. | 55 | File·saved. |
56 | Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmp | 56 | Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmpd44i7son.dcm |
57 | Load·file·/tmp/tmp | 57 | Load·file·/tmp/tmpt7vgs1e9.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,·0012)·Implementation·Class·UID············UI:·1.2.3.4 | 61 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 |
62 | ------------------------------------------------- | 62 | ------------------------------------------------- |
63 | (0008,·0023)·Content·Date························DA:·'202 | 63 | (0008,·0023)·Content·Date························DA:·'20250214' |
64 | (0008,·0033)·Content·Time························TM:·' | 64 | (0008,·0033)·Content·Time························TM:·'062659.370534' |
65 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 65 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
66 | (0010,·0020)·Patient·ID··························LO:·'123456' | 66 | (0010,·0020)·Patient·ID··························LO:·'123456' |
67 | Remove·file·/tmp/tmp | 67 | Remove·file·/tmp/tmpt7vgs1e9.dcm·... |
68 | Load·file·/tmp/tmp | 68 | Load·file·/tmp/tmpd44i7son.dcm·... |
69 | Dataset.file_meta·------------------------------- | 69 | Dataset.file_meta·------------------------------- |
70 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage | 70 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage |
71 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 | 71 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 |
72 | (0002,·0010)·Transfer·Syntax·UID·················UI:·Explicit·VR·Big·Endian | 72 | (0002,·0010)·Transfer·Syntax·UID·················UI:·Explicit·VR·Big·Endian |
73 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 | 73 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 |
74 | ------------------------------------------------- | 74 | ------------------------------------------------- |
75 | (0008,·0023)·Content·Date························DA:·'202 | 75 | (0008,·0023)·Content·Date························DA:·'20250214' |
76 | (0008,·0033)·Content·Time························TM:·' | 76 | (0008,·0033)·Content·Time························TM:·'062659.370534' |
77 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 77 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
78 | (0010,·0020)·Patient·ID··························LO:·'123456' | 78 | (0010,·0020)·Patient·ID··························LO:·'123456' |
79 | Remove·file·/tmp/tmp | 79 | Remove·file·/tmp/tmpd44i7son.dcm·... |
80 | #·authors·:·Guillaume·Lemaitre·<g.lemaitre58@gmail.com> | 80 | #·authors·:·Guillaume·Lemaitre·<g.lemaitre58@gmail.com> |
81 | #·license·:·MIT | 81 | #·license·:·MIT |
82 | import·os | 82 | import·os |
83 | import·tempfile | 83 | import·tempfile |
84 | import·datetime | 84 | import·datetime |
Offset 139, 15 lines modified | Offset 139, 15 lines modified | ||
139 | ····print('Load·file·{}·...'.format(filename)) | 139 | ····print('Load·file·{}·...'.format(filename)) |
140 | ····ds·=·pydicom.dcmread(filename) | 140 | ····ds·=·pydicom.dcmread(filename) |
141 | ····print(ds) | 141 | ····print(ds) |
142 | ····#·remove·the·created·file | 142 | ····#·remove·the·created·file |
143 | ····print('Remove·file·{}·...'.format(filename)) | 143 | ····print('Remove·file·{}·...'.format(filename)) |
144 | ····os.remove(filename) | 144 | ····os.remove(filename) |
145 | Total·running·time·of·the·script:·(·0·minutes·0.00 | 145 | Total·running·time·of·the·script:·(·0·minutes·0.005·seconds) |
146 | Download_Python_source_code:_plot_write_dicom.py | 146 | Download_Python_source_code:_plot_write_dicom.py |
147 | Download_Jupyter_notebook:_plot_write_dicom.ipynb | 147 | Download_Jupyter_notebook:_plot_write_dicom.ipynb |
148 | Gallery_generated_by_Sphinx-Gallery | 148 | Gallery_generated_by_Sphinx-Gallery |
149 | Next·Previous | 149 | Next·Previous |
150 | =============================================================================== | 150 | =============================================================================== |
151 | ©·Copyright·2008-2020,·Darcy·Mason·and·pydicom·contributors. | 151 | ©·Copyright·2008-2020,·Darcy·Mason·and·pydicom·contributors. |
152 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 152 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 181, 40 lines modified | Offset 181, 40 lines modified | ||
181 | ··<hr/> | 181 | ··<hr/> |
182 | </div> | 182 | </div> |
183 | ··········<div·role="main"·class="document"·itemscope="itemscope"·itemtype="http://schema.org/Article"> | 183 | ··········<div·role="main"·class="document"·itemscope="itemscope"·itemtype="http://schema.org/Article"> |
184 | ···········<div·itemprop="articleBody"> | 184 | ···········<div·itemprop="articleBody"> |
185 | ············ | 185 | ············ |
186 | ··<div·class="section"·id="computation-times"> | 186 | ··<div·class="section"·id="computation-times"> |
187 | <span·id="sphx-glr-auto-examples-input-output-sg-execution-times"></span><h1>Computation·times<a·class="headerlink"·href="#computation-times"·title="Permalink·to·this·headline">¶</a></h1> | 187 | <span·id="sphx-glr-auto-examples-input-output-sg-execution-times"></span><h1>Computation·times<a·class="headerlink"·href="#computation-times"·title="Permalink·to·this·headline">¶</a></h1> |
188 | <p><strong>00:00. | 188 | <p><strong>00:00.196</strong>·total·execution·time·for·<strong>auto_examples_input_output</strong>·files:</p> |
189 | <table·class="docutils·align-default"> | 189 | <table·class="docutils·align-default"> |
190 | <colgroup> | 190 | <colgroup> |
191 | <col·style="width:·85%"·/> | 191 | <col·style="width:·85%"·/> |
192 | <col·style="width:·9%"·/> | 192 | <col·style="width:·9%"·/> |
193 | <col·style="width:·6%"·/> | 193 | <col·style="width:·6%"·/> |
194 | </colgroup> | 194 | </colgroup> |
195 | <tbody> | 195 | <tbody> |
196 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_read_dicom.html#sphx-glr-auto-examples-input-output-plot-read-dicom-py"><span·class="std·std-ref">Read·DICOM·and·ploting·using·matplotlib</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_read_dicom.py</span></code>)</p></td> | 196 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_read_dicom.html#sphx-glr-auto-examples-input-output-plot-read-dicom-py"><span·class="std·std-ref">Read·DICOM·and·ploting·using·matplotlib</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_read_dicom.py</span></code>)</p></td> |
197 | <td><p>00:00. | 197 | <td><p>00:00.134</p></td> |
198 | <td><p>0.0·MB</p></td> | 198 | <td><p>0.0·MB</p></td> |
199 | </tr> | 199 | </tr> |
200 | <tr·class="row-even"><td><p><a·class="reference·internal"·href="plot_read_dicom_directory.html#sphx-glr-auto-examples-input-output-plot-read-dicom-directory-py"><span·class="std·std-ref">Read·DICOM·directory</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_read_dicom_directory.py</span></code>)</p></td> | 200 | <tr·class="row-even"><td><p><a·class="reference·internal"·href="plot_read_dicom_directory.html#sphx-glr-auto-examples-input-output-plot-read-dicom-directory-py"><span·class="std·std-ref">Read·DICOM·directory</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_read_dicom_directory.py</span></code>)</p></td> |
201 | <td><p>00:00.0 | 201 | <td><p>00:00.047</p></td> |
202 | <td><p>0.0·MB</p></td> | 202 | <td><p>0.0·MB</p></td> |
203 | </tr> | 203 | </tr> |
204 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_printing_dataset.html#sphx-glr-auto-examples-input-output-plot-printing-dataset-py"><span·class="std·std-ref">Format·the·output·of·the·data·set·printing</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_printing_dataset.py</span></code>)</p></td> | 204 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_printing_dataset.html#sphx-glr-auto-examples-input-output-plot-printing-dataset-py"><span·class="std·std-ref">Format·the·output·of·the·data·set·printing</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_printing_dataset.py</span></code>)</p></td> |
205 | <td><p>00:00.0 | 205 | <td><p>00:00.006</p></td> |
206 | <td><p>0.0·MB</p></td> | 206 | <td><p>0.0·MB</p></td> |
207 | </tr> | 207 | </tr> |
208 | <tr·class="row-even"><td><p><a·class="reference·internal"·href="plot_write_dicom.html#sphx-glr-auto-examples-input-output-plot-write-dicom-py"><span·class="std·std-ref">Write·DICOM·data</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_write_dicom.py</span></code>)</p></td> | 208 | <tr·class="row-even"><td><p><a·class="reference·internal"·href="plot_write_dicom.html#sphx-glr-auto-examples-input-output-plot-write-dicom-py"><span·class="std·std-ref">Write·DICOM·data</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_write_dicom.py</span></code>)</p></td> |
209 | <td><p>00:00.00 | 209 | <td><p>00:00.005</p></td> |
210 | <td><p>0.0·MB</p></td> | 210 | <td><p>0.0·MB</p></td> |
211 | </tr> | 211 | </tr> |
212 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_read_rtplan.html#sphx-glr-auto-examples-input-output-plot-read-rtplan-py"><span·class="std·std-ref">Read·RTPLAN·DICOM·and·list·information</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_read_rtplan.py</span></code>)</p></td> | 212 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_read_rtplan.html#sphx-glr-auto-examples-input-output-plot-read-rtplan-py"><span·class="std·std-ref">Read·RTPLAN·DICOM·and·list·information</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_read_rtplan.py</span></code>)</p></td> |
213 | <td><p>00:00.00 | 213 | <td><p>00:00.003</p></td> |
214 | <td><p>0.0·MB</p></td> | 214 | <td><p>0.0·MB</p></td> |
215 | </tr> | 215 | </tr> |
216 | </tbody> | 216 | </tbody> |
217 | </table> | 217 | </table> |
218 | </div> | 218 | </div> |
Offset 31, 18 lines modified | Offset 31, 18 lines modified | ||
31 | ····*·Frequently_asked_questions | 31 | ····*·Frequently_asked_questions |
32 | ····*·Release_notes | 32 | ····*·Release_notes |
33 | ····pydicom | 33 | ····pydicom |
34 | ····*··» | 34 | ····*··» |
35 | ····*·Computation·times | 35 | ····*·Computation·times |
36 | =============================================================================== | 36 | =============================================================================== |
37 | ******·Computation·times¶·****** | 37 | ******·Computation·times¶·****** |
38 | 00:00. | 38 | 00:00.196·total·execution·time·for·auto_examples_input_output·files: |
39 | Read_DICOM_and_ploting_using_matplotlib·(plot_read_dicom.py)·00:00. | 39 | Read_DICOM_and_ploting_using_matplotlib·(plot_read_dicom.py)·00:00.134·0.0·MB |
40 | Read_DICOM_directory·(plot_read_dicom_directory.py)··········00:00.0 | 40 | Read_DICOM_directory·(plot_read_dicom_directory.py)··········00:00.047·0.0·MB |
41 | Format_the_output_of_the_data_set_printing···················00:00.0 | 41 | Format_the_output_of_the_data_set_printing···················00:00.006·0.0·MB |
42 | (plot_printing_dataset.py) | 42 | (plot_printing_dataset.py) |
43 | Write_DICOM_data·(plot_write_dicom.py)·······················00:00.00 | 43 | Write_DICOM_data·(plot_write_dicom.py)·······················00:00.005·0.0·MB |
44 | Read_RTPLAN_DICOM_and_list_information·(plot_read_rtplan.py)·00:00.00 | 44 | Read_RTPLAN_DICOM_and_list_information·(plot_read_rtplan.py)·00:00.003·0.0·MB |
45 | =============================================================================== | 45 | =============================================================================== |
46 | ©·Copyright·2008-2020,·Darcy·Mason·and·pydicom·contributors. | 46 | ©·Copyright·2008-2020,·Darcy·Mason·and·pydicom·contributors. |
47 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 47 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 248, 15 lines modified | Offset 248, 15 lines modified | ||
248 | <span·class="n">ds</span><span·class="o">.</span><span·class="n">TestOne</span>·<span·class="o">=</span>·<span·class="mi">42</span> | 248 | <span·class="n">ds</span><span·class="o">.</span><span·class="n">TestOne</span>·<span·class="o">=</span>·<span·class="mi">42</span> |
249 | <span·class="n">ds</span><span·class="o">.</span><span·class="n">TestTwo</span>·<span·class="o">=</span>·<span·class="s1">'12345'</span> | 249 | <span·class="n">ds</span><span·class="o">.</span><span·class="n">TestTwo</span>·<span·class="o">=</span>·<span·class="s1">'12345'</span> |
250 | <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> | 250 | <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> |
251 | <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> | 251 | <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> |
252 | </pre></div> | 252 | </pre></div> |
253 | </div> | 253 | </div> |
254 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.00 | 254 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.001·seconds)</p> |
255 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-metadata-processing-plot-add-dict-entries-py"> | 255 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-metadata-processing-plot-add-dict-entries-py"> |
256 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 256 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
257 | <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> | 257 | <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> |
258 | </div> | 258 | </div> |
259 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 259 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
260 | <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> | 260 | <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> |
261 | </div> | 261 | </div> |
Offset 84, 15 lines modified | Offset 84, 15 lines modified | ||
84 | ds·=·Dataset()··#·or·could·get·one·from·dcmread,·etc | 84 | ds·=·Dataset()··#·or·could·get·one·from·dcmread,·etc |
85 | ds.TestOne·=·42 | 85 | ds.TestOne·=·42 |
86 | ds.TestTwo·=·'12345' | 86 | ds.TestTwo·=·'12345' |
87 | ds.TestThree·=·'1.2.3.4.5' | 87 | ds.TestThree·=·'1.2.3.4.5' |
88 | print(ds.top()) | 88 | print(ds.top()) |
89 | Total·running·time·of·the·script:·(·0·minutes·0.00 | 89 | Total·running·time·of·the·script:·(·0·minutes·0.001·seconds) |
90 | Download_Python_source_code:_plot_add_dict_entries.py | 90 | Download_Python_source_code:_plot_add_dict_entries.py |
91 | Download_Jupyter_notebook:_plot_add_dict_entries.ipynb | 91 | Download_Jupyter_notebook:_plot_add_dict_entries.ipynb |
92 | Gallery_generated_by_Sphinx-Gallery | 92 | Gallery_generated_by_Sphinx-Gallery |
93 | Next·Previous | 93 | Next·Previous |
94 | =============================================================================== | 94 | =============================================================================== |
95 | ©·Copyright·2008-2020,·Darcy·Mason·and·pydicom·contributors. | 95 | ©·Copyright·2008-2020,·Darcy·Mason·and·pydicom·contributors. |
96 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 96 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 284, 15 lines modified | Offset 284, 15 lines modified | ||
284 | </pre></div> | 284 | </pre></div> |
285 | </div> | 285 | </div> |
286 | <p·class="sphx-glr-script-out">Out:</p> | 286 | <p·class="sphx-glr-script-out">Out:</p> |
287 | <div·class="sphx-glr-script-out·highlight-none·notranslate"><div·class="highlight"><pre><span></span>(0010,·0020)·Patient·ID··························LO:·'id' | 287 | <div·class="sphx-glr-script-out·highlight-none·notranslate"><div·class="highlight"><pre><span></span>(0010,·0020)·Patient·ID··························LO:·'id' |
288 | (0010,·0030)·Patient's·Birth·Date················DA:·'19000101' | 288 | (0010,·0030)·Patient's·Birth·Date················DA:·'19000101' |
289 | </pre></div> | 289 | </pre></div> |
290 | </div> | 290 | </div> |
291 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.0 | 291 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.009·seconds)</p> |
292 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-metadata-processing-plot-anonymize-py"> | 292 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-metadata-processing-plot-anonymize-py"> |
293 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 293 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
294 | <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> | 294 | <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> |
295 | </div> | 295 | </div> |
296 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 296 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
297 | <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> | 297 | <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> |
298 | </div> | 298 | </div> |
Offset 104, 15 lines modified | Offset 104, 15 lines modified | ||
104 | ····print(dataset.data_element(de)) | 104 | ····print(dataset.data_element(de)) |
105 | output_filename·=·tempfile.NamedTemporaryFile().name | 105 | output_filename·=·tempfile.NamedTemporaryFile().name |
106 | dataset.save_as(output_filename) | 106 | dataset.save_as(output_filename) |
107 | Out: | 107 | Out: |
108 | (0010,·0020)·Patient·ID··························LO:·'id' | 108 | (0010,·0020)·Patient·ID··························LO:·'id' |
109 | (0010,·0030)·Patient's·Birth·Date················DA:·'19000101' | 109 | (0010,·0030)·Patient's·Birth·Date················DA:·'19000101' |
110 | Total·running·time·of·the·script:·(·0·minutes·0.0 | 110 | Total·running·time·of·the·script:·(·0·minutes·0.009·seconds) |
111 | Download_Python_source_code:_plot_anonymize.py | 111 | Download_Python_source_code:_plot_anonymize.py |
112 | Download_Jupyter_notebook:_plot_anonymize.ipynb | 112 | Download_Jupyter_notebook:_plot_anonymize.ipynb |
113 | Gallery_generated_by_Sphinx-Gallery | 113 | Gallery_generated_by_Sphinx-Gallery |
114 | Next·Previous | 114 | Next·Previous |
115 | =============================================================================== | 115 | =============================================================================== |
116 | ©·Copyright·2008-2020,·Darcy·Mason·and·pydicom·contributors. | 116 | ©·Copyright·2008-2020,·Darcy·Mason·and·pydicom·contributors. |
117 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 117 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 237, 15 lines modified | Offset 237, 15 lines modified | ||
237 | <span·class="n">block_ds3</span>·<span·class="o">=</span>·<span·class="n">Dataset</span><span·class="p">()</span> | 237 | <span·class="n">block_ds3</span>·<span·class="o">=</span>·<span·class="n">Dataset</span><span·class="p">()</span> |
238 | <span·class="c1">#·add·data·elements·to·it·as·above·and·don't·forget·to·update·Number·of·Blocks</span> | 238 | <span·class="c1">#·add·data·elements·to·it·as·above·and·don't·forget·to·update·Number·of·Blocks</span> |
239 | <span·class="c1">#·data·element</span> | 239 | <span·class="c1">#·data·element</span> |
240 | <a·href="../../reference/generated/pydicom.multival.MultiValue.html#pydicom.multival.MultiValue.append"·title="pydicom.multival.MultiValue.append"·class="sphx-glr-backref-module-pydicom-multival·sphx-glr-backref-type-py-method"><span·class="n">beam0</span><span·class="o">.</span><span·class="n">BlockSequence</span><span·class="o">.</span><span·class="n">append</span></a><span·class="p">(</span><span·class="n">block_ds3</span><span·class="p">)</span> | 240 | <a·href="../../reference/generated/pydicom.multival.MultiValue.html#pydicom.multival.MultiValue.append"·title="pydicom.multival.MultiValue.append"·class="sphx-glr-backref-module-pydicom-multival·sphx-glr-backref-type-py-method"><span·class="n">beam0</span><span·class="o">.</span><span·class="n">BlockSequence</span><span·class="o">.</span><span·class="n">append</span></a><span·class="p">(</span><span·class="n">block_ds3</span><span·class="p">)</span> |
241 | <span·class="k">del</span>·<span·class="n">plan_ds</span><span·class="o">.</span><span·class="n">BeamSequence</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span><span·class="o">.</span><span·class="n">BlockSequence</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">]</span> | 241 | <span·class="k">del</span>·<span·class="n">plan_ds</span><span·class="o">.</span><span·class="n">BeamSequence</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span><span·class="o">.</span><span·class="n">BlockSequence</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">]</span> |
242 | </pre></div> | 242 | </pre></div> |
243 | </div> | 243 | </div> |
244 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.00 | 244 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.001·seconds)</p> |
245 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-metadata-processing-plot-sequences-py"> | 245 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-metadata-processing-plot-sequences-py"> |
246 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 246 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
247 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/03374c3fd4f2559d0f640a6dc7cdb0f1/plot_sequences.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_sequences.py</span></code></a></p> | 247 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/03374c3fd4f2559d0f640a6dc7cdb0f1/plot_sequences.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_sequences.py</span></code></a></p> |
248 | </div> | 248 | </div> |
249 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 249 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
250 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/c91ebf577cb200394bfdaa77257bd52d/plot_sequences.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_sequences.ipynb</span></code></a></p> | 250 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/c91ebf577cb200394bfdaa77257bd52d/plot_sequences.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_sequences.ipynb</span></code></a></p> |
251 | </div> | 251 | </div> |
Offset 77, 15 lines modified | Offset 77, 15 lines modified | ||
77 | #·create·a·new·data·set | 77 | #·create·a·new·data·set |
78 | block_ds3·=·Dataset() | 78 | block_ds3·=·Dataset() |
79 | #·add·data·elements·to·it·as·above·and·don't·forget·to·update·Number·of·Blocks | 79 | #·add·data·elements·to·it·as·above·and·don't·forget·to·update·Number·of·Blocks |
80 | #·data·element | 80 | #·data·element |
81 | beam0.BlockSequence.append(block_ds3) | 81 | beam0.BlockSequence.append(block_ds3) |
82 | del·plan_ds.BeamSequence[0].BlockSequence[1] | 82 | del·plan_ds.BeamSequence[0].BlockSequence[1] |
83 | Total·running·time·of·the·script:·(·0·minutes·0.00 | 83 | Total·running·time·of·the·script:·(·0·minutes·0.001·seconds) |
84 | Download_Python_source_code:_plot_sequences.py | 84 | Download_Python_source_code:_plot_sequences.py |
85 | Download_Jupyter_notebook:_plot_sequences.ipynb | 85 | Download_Jupyter_notebook:_plot_sequences.ipynb |
86 | Gallery_generated_by_Sphinx-Gallery | 86 | Gallery_generated_by_Sphinx-Gallery |
87 | Next·Previous | 87 | Next·Previous |
88 | =============================================================================== | 88 | =============================================================================== |
89 | ©·Copyright·2008-2020,·Darcy·Mason·and·pydicom·contributors. | 89 | ©·Copyright·2008-2020,·Darcy·Mason·and·pydicom·contributors. |
90 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 90 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 181, 32 lines modified | Offset 181, 32 lines modified | ||
181 | ··<hr/> | 181 | ··<hr/> |
182 | </div> | 182 | </div> |
183 | ··········<div·role="main"·class="document"·itemscope="itemscope"·itemtype="http://schema.org/Article"> | 183 | ··········<div·role="main"·class="document"·itemscope="itemscope"·itemtype="http://schema.org/Article"> |
184 | ···········<div·itemprop="articleBody"> | 184 | ···········<div·itemprop="articleBody"> |
185 | ············ | 185 | ············ |
186 | ··<div·class="section"·id="computation-times"> | 186 | ··<div·class="section"·id="computation-times"> |
187 | <span·id="sphx-glr-auto-examples-metadata-processing-sg-execution-times"></span><h1>Computation·times<a·class="headerlink"·href="#computation-times"·title="Permalink·to·this·headline">¶</a></h1> | 187 | <span·id="sphx-glr-auto-examples-metadata-processing-sg-execution-times"></span><h1>Computation·times<a·class="headerlink"·href="#computation-times"·title="Permalink·to·this·headline">¶</a></h1> |
188 | <p><strong>00:00.01 | 188 | <p><strong>00:00.011</strong>·total·execution·time·for·<strong>auto_examples_metadata_processing</strong>·files:</p> |
189 | <table·class="docutils·align-default"> | 189 | <table·class="docutils·align-default"> |
190 | <colgroup> | 190 | <colgroup> |
191 | <col·style="width:·85%"·/> | 191 | <col·style="width:·85%"·/> |
192 | <col·style="width:·9%"·/> | 192 | <col·style="width:·9%"·/> |
193 | <col·style="width:·6%"·/> | 193 | <col·style="width:·6%"·/> |
194 | </colgroup> | 194 | </colgroup> |
195 | <tbody> | 195 | <tbody> |
196 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_anonymize.html#sphx-glr-auto-examples-metadata-processing-plot-anonymize-py"><span·class="std·std-ref">Anonymize·DICOM·data</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_anonymize.py</span></code>)</p></td> | 196 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_anonymize.html#sphx-glr-auto-examples-metadata-processing-plot-anonymize-py"><span·class="std·std-ref">Anonymize·DICOM·data</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_anonymize.py</span></code>)</p></td> |
197 | <td><p>00:00.0 | 197 | <td><p>00:00.009</p></td> |
198 | <td><p>0.0·MB</p></td> | 198 | <td><p>0.0·MB</p></td> |
199 | </tr> | 199 | </tr> |
200 | <tr·class="row-even"><td><p><a·class="reference·internal"·href="plot_sequences.html#sphx-glr-auto-examples-metadata-processing-plot-sequences-py"><span·class="std·std-ref">Working·with·sequences</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_sequences.py</span></code>)</p></td> | 200 | <tr·class="row-even"><td><p><a·class="reference·internal"·href="plot_sequences.html#sphx-glr-auto-examples-metadata-processing-plot-sequences-py"><span·class="std·std-ref">Working·with·sequences</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_sequences.py</span></code>)</p></td> |
201 | <td><p>00:00.00 | 201 | <td><p>00:00.001</p></td> |
202 | <td><p>0.0·MB</p></td> | 202 | <td><p>0.0·MB</p></td> |
203 | </tr> | 203 | </tr> |
204 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_add_dict_entries.html#sphx-glr-auto-examples-metadata-processing-plot-add-dict-entries-py"><span·class="std·std-ref">Add·dictionary·items·in·the·standard·DICOM·dictionary</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_add_dict_entries.py</span></code>)</p></td> | 204 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_add_dict_entries.html#sphx-glr-auto-examples-metadata-processing-plot-add-dict-entries-py"><span·class="std·std-ref">Add·dictionary·items·in·the·standard·DICOM·dictionary</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_add_dict_entries.py</span></code>)</p></td> |
205 | <td><p>00:00.00 | 205 | <td><p>00:00.001</p></td> |
206 | <td><p>0.0·MB</p></td> | 206 | <td><p>0.0·MB</p></td> |
207 | </tr> | 207 | </tr> |
208 | </tbody> | 208 | </tbody> |
209 | </table> | 209 | </table> |
210 | </div> | 210 | </div> |
Offset 904, 15 lines modified | Offset 904, 15 lines modified | ||
904 | <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> | 904 | <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> |
905 | <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> | 905 | <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> |
906 | ····<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> | 906 | ····<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> |
907 | ········<span·class="nb">print</span><span·class="p">(</span><span·class="n">line</span><span·class="p">)</span> | 907 | ········<span·class="nb">print</span><span·class="p">(</span><span·class="n">line</span><span·class="p">)</span> |
908 | </pre></div> | 908 | </pre></div> |
909 | </div> | 909 | </div> |
910 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.1 | 910 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.110·seconds)</p> |
911 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-plot-dicom-difference-py"> | 911 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-plot-dicom-difference-py"> |
912 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 912 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
913 | <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> | 913 | <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> |
914 | </div> | 914 | </div> |
915 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 915 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
916 | <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> | 916 | <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> |
917 | </div> | 917 | </div> |
Offset 760, 15 lines modified | Offset 760, 15 lines modified | ||
760 | ····rep.append(lines) | 760 | ····rep.append(lines) |
761 | diff·=·difflib.Differ() | 761 | diff·=·difflib.Differ() |
762 | for·line·in·diff.compare(rep[0],·rep[1]): | 762 | for·line·in·diff.compare(rep[0],·rep[1]): |
763 | ····if·line[0]·!=·"?": | 763 | ····if·line[0]·!=·"?": |
764 | ········print(line) | 764 | ········print(line) |
765 | Total·running·time·of·the·script:·(·0·minutes·0.1 | 765 | Total·running·time·of·the·script:·(·0·minutes·0.110·seconds) |
766 | Download_Python_source_code:_plot_dicom_difference.py | 766 | Download_Python_source_code:_plot_dicom_difference.py |
767 | Download_Jupyter_notebook:_plot_dicom_difference.ipynb | 767 | Download_Jupyter_notebook:_plot_dicom_difference.ipynb |
768 | Gallery_generated_by_Sphinx-Gallery | 768 | Gallery_generated_by_Sphinx-Gallery |
769 | Next·Previous | 769 | Next·Previous |
770 | =============================================================================== | 770 | =============================================================================== |
771 | ©·Copyright·2008-2020,·Darcy·Mason·and·pydicom·contributors. | 771 | ©·Copyright·2008-2020,·Darcy·Mason·and·pydicom·contributors. |
772 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 772 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 181, 24 lines modified | Offset 181, 24 lines modified | ||
181 | ··<hr/> | 181 | ··<hr/> |
182 | </div> | 182 | </div> |
183 | ··········<div·role="main"·class="document"·itemscope="itemscope"·itemtype="http://schema.org/Article"> | 183 | ··········<div·role="main"·class="document"·itemscope="itemscope"·itemtype="http://schema.org/Article"> |
184 | ···········<div·itemprop="articleBody"> | 184 | ···········<div·itemprop="articleBody"> |
185 | ············ | 185 | ············ |
186 | ··<div·class="section"·id="computation-times"> | 186 | ··<div·class="section"·id="computation-times"> |
187 | <span·id="sphx-glr-auto-examples-sg-execution-times"></span><h1>Computation·times<a·class="headerlink"·href="#computation-times"·title="Permalink·to·this·headline">¶</a></h1> | 187 | <span·id="sphx-glr-auto-examples-sg-execution-times"></span><h1>Computation·times<a·class="headerlink"·href="#computation-times"·title="Permalink·to·this·headline">¶</a></h1> |
188 | <p><strong>00:00.1 | 188 | <p><strong>00:00.110</strong>·total·execution·time·for·<strong>auto_examples</strong>·files:</p> |
189 | <table·class="docutils·align-default"> | 189 | <table·class="docutils·align-default"> |
190 | <colgroup> | 190 | <colgroup> |
191 | <col·style="width:·82%"·/> | 191 | <col·style="width:·82%"·/> |
192 | <col·style="width:·10%"·/> | 192 | <col·style="width:·10%"·/> |
193 | <col·style="width:·8%"·/> | 193 | <col·style="width:·8%"·/> |
194 | </colgroup> | 194 | </colgroup> |
195 | <tbody> | 195 | <tbody> |
196 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_dicom_difference.html#sphx-glr-auto-examples-plot-dicom-difference-py"><span·class="std·std-ref">Analyse·differences·between·DICOM·files</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_dicom_difference.py</span></code>)</p></td> | 196 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_dicom_difference.html#sphx-glr-auto-examples-plot-dicom-difference-py"><span·class="std·std-ref">Analyse·differences·between·DICOM·files</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_dicom_difference.py</span></code>)</p></td> |
197 | <td><p>00:00.1 | 197 | <td><p>00:00.110</p></td> |
198 | <td><p>0.0·MB</p></td> | 198 | <td><p>0.0·MB</p></td> |
199 | </tr> | 199 | </tr> |
200 | <tr·class="row-even"><td><p><a·class="reference·internal"·href="dicomtree.html#sphx-glr-auto-examples-dicomtree-py"><span·class="std·std-ref">Show·a·dicom·file·using·hierarchical·tree</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">dicomtree.py</span></code>)</p></td> | 200 | <tr·class="row-even"><td><p><a·class="reference·internal"·href="dicomtree.html#sphx-glr-auto-examples-dicomtree-py"><span·class="std·std-ref">Show·a·dicom·file·using·hierarchical·tree</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">dicomtree.py</span></code>)</p></td> |
201 | <td><p>00:00.000</p></td> | 201 | <td><p>00:00.000</p></td> |
202 | <td><p>0.0·MB</p></td> | 202 | <td><p>0.0·MB</p></td> |
203 | </tr> | 203 | </tr> |
204 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="memory_dataset.html#sphx-glr-auto-examples-memory-dataset-py"><span·class="std·std-ref">Show·working·with·memory-based·dataset</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">memory_dataset.py</span></code>)</p></td> | 204 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="memory_dataset.html#sphx-glr-auto-examples-memory-dataset-py"><span·class="std·std-ref">Show·working·with·memory-based·dataset</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">memory_dataset.py</span></code>)</p></td> |
Offset 527, 88 lines modified | Offset 527, 87 lines modified | ||
527 | ········"00080008":·256, | 527 | ········"00080008":·256, |
528 | ········"0009":·[16,·27,·34,·102,·169,·172,·236,·249], | 528 | ········"0009":·[16,·27,·34,·102,·169,·172,·236,·249], |
529 | ········"00091002":·256, | 529 | ········"00091002":·256, |
530 | ········"000b":·27, | 530 | ········"000b":·27, |
531 | ········"000d":·[1,·16], | 531 | ········"000d":·[1,·16], |
532 | ········"000e":·[1,·16], | 532 | ········"000e":·[1,·16], |
533 | ········"000y":·16, | 533 | ········"000y":·16, |
534 | ········"001":·27, | 534 | ········"001":·[12,·14,·15,·27], |
535 | ········"0010":·[1,·9,·13,·16,·20,·22,·24,·27,·33,·34,·49,·69,·102,·106,·112,·113,·114,·126,·143,·156,·166,·169,·170,·171,·172,·230,·236,·245,·254,·255,·258], | 535 | ········"0010":·[1,·9,·13,·16,·20,·22,·24,·27,·33,·34,·49,·69,·102,·106,·112,·113,·114,·126,·143,·156,·166,·169,·170,·171,·172,·230,·236,·245,·254,·255,·258], |
536 | ········"0011":·[1,·16,·33,·166,·169,·171,·172], | 536 | ········"0011":·[1,·16,·33,·166,·169,·171,·172], |
537 | ········"0012":·[1,·9,·16,·24,·27,·106,·156,·193,·255], | 537 | ········"0012":·[1,·9,·16,·24,·27,·106,·156,·193,·255], |
538 | ········"0013":·[1,·16,·24,·27,·106,·156,·255], | 538 | ········"0013":·[1,·16,·24,·27,·106,·156,·255], |
539 | ········"0014":·[1,·16,·255], | 539 | ········"0014":·[1,·16,·255], |
540 | ········"0015":·166, | 540 | ········"0015":·166, |
541 | ········"0016":·[1,·16,·24,·27,·156,·255], | 541 | ········"0016":·[1,·16,·24,·27,·156,·255], |
542 | ········"0017":·156, | 542 | ········"0017":·156, |
543 | ········"0018":·[1,·16,·24,·25,·156,·172], | 543 | ········"0018":·[1,·16,·24,·25,·156,·172], |
544 | ········"0019":·16, | 544 | ········"0019":·16, |
545 | ········"002":·[12,·14,·15], | ||
546 | ········"0020":·[1,·9,·13,·16,·20,·24,·255], | 545 | ········"0020":·[1,·9,·13,·16,·20,·24,·255], |
547 | ········"0021":·[1,·16], | 546 | ········"0021":·[1,·16], |
548 | ········"0022":·[1,·16,·255], | 547 | ········"0022":·[1,·16,·255], |
549 | ········"0023":·[1,·9,·16], | 548 | ········"0023":·[1,·9,·16], |
550 | ········"0025":·16, | 549 | ········"0025":·16, |
551 | ········"0027":·16, | 550 | ········"0027":·16, |
552 | ········"0028":·[1,·16,·26,·34,·112,·114,·169,·171,·172,·236,·249,·251,·255], | 551 | ········"0028":·[1,·16,·26,·34,·112,·114,·169,·171,·172,·236,·249,·251,·255], |
553 | ········"0029":·16, | 552 | ········"0029":·16, |
553 | ········"003":·[8,·10], | ||
554 | ········"0030":·[1,·13,·16,·24], | 554 | ········"0030":·[1,·13,·16,·24], |
555 | ········"0031":·[1,·16], | 555 | ········"0031":·[1,·16], |
556 | ········"0032":·[1,·16], | 556 | ········"0032":·[1,·16], |
557 | ········"0033":·[9,·16], | 557 | ········"0033":·[9,·16], |
558 | ········"0037":·[1,·16], | 558 | ········"0037":·[1,·16], |
559 | ········"0040":·[1,·16], | 559 | ········"0040":·[1,·16], |
560 | ········"0041":·102, | 560 | ········"0041":·102, |
561 | ········"0043":·[16,·255], | 561 | ········"0043":·[16,·255], |
562 | ········"005":·[9,·10], | ||
562 | ········"0050":·[1,·16,·24,·33], | 563 | ········"0050":·[1,·16,·24,·33], |
563 | ········"0052":·[1,·16], | 564 | ········"0052":·[1,·16], |
564 | ········"006":·[ | 565 | ········"006":·[1,·3,·5,·10], |
565 | ········"0060":·[1,·16,·24], | 566 | ········"0060":·[1,·16,·24], |
566 | ········"007":·11, | 567 | ········"007":·11, |
567 | ········"0070":·[1,·16], | 568 | ········"0070":·[1,·16], |
568 | ········"008":·[9,·10], | ||
569 | ········"0080":·[1,·16], | 569 | ········"0080":·[1,·16], |
570 | ········"0081":·[1,·16], | 570 | ········"0081":·[1,·16], |
571 | ········"0083":·[1,·16], | 571 | ········"0083":·[1,·16], |
572 | ········"0084":·[1,·16], | 572 | ········"0084":·[1,·16], |
573 | ········"0085":·[1,·16], | 573 | ········"0085":·[1,·16], |
574 | ········"0086":·[1,·16], | 574 | ········"0086":·[1,·16], |
575 | ········"0088":·16, | 575 | ········"0088":·16, |
576 | ········"009":·[13,·15], | ||
576 | ········"0090":·[1,·16], | 577 | ········"0090":·[1,·16], |
577 | ········"0091":·[1,·16], | 578 | ········"0091":·[1,·16], |
578 | ········"00f8":·14, | 579 | ········"00f8":·14, |
579 | ········"00fe":·14, | 580 | ········"00fe":·14, |
580 | ········"0100":·[1,·16,·26,·156,·166,·169,·171,·172], | 581 | ········"0100":·[1,·16,·26,·156,·166,·169,·171,·172], |
581 | ········"0101":·[1,·16,·172], | 582 | ········"0101":·[1,·16,·172], |
582 | ········"0102":·[1,·16,·156,·166], | 583 | ········"0102":·[1,·16,·156,·166], |
583 | ········"0103":·[1,·16,·169,·171,·172], | 584 | ········"0103":·[1,·16,·169,·171,·172], |
584 | ········"0106":·[1,·16], | 585 | ········"0106":·[1,·16], |
585 | ········"0107":·[1,·16], | 586 | ········"0107":·[1,·16], |
586 | ········"011":· | 587 | ········"011":·15, |
587 | ········"012":·[1,·3], | ||
588 | ········"0120":·16, | 588 | ········"0120":·16, |
589 | ········"015":·[13,·15], | ||
590 | ········"0166":·16, | 589 | ········"0166":·16, |
591 | ········"0182":·25, | 590 | ········"0182":·25, |
592 | ········"019":·15, | ||
593 | ········"0197b5846bb5":·[236,·243], | 591 | ········"0197b5846bb5":·[236,·243], |
594 | ········"01b2":·25, | 592 | ········"01b2":·25, |
595 | ········"0201":·[1,·16,·236,·248], | 593 | ········"0201":·[1,·16,·236,·248], |
596 | ········"033":·18, | 594 | ········"033":·18, |
597 | ········"035797":·16, | 595 | ········"035797":·16, |
598 | ········"03579711914062":·16, | 596 | ········"03579711914062":·16, |
599 | ········"0400":·[1,·5,·16], | 597 | ········"0400":·[1,·5,·16], |
600 | ········"0411bab7c985":·[236,·243], | 598 | ········"0411bab7c985":·[236,·243], |
599 | ········"047":·[7,·10], | ||
601 | ········"0500":·16, | 600 | ········"0500":·16, |
601 | ········"062659":·9, | ||
602 | ········"072730":·16, | 602 | ········"072730":·16, |
603 | ········"072731":·[16,·255], | 603 | ········"072731":·[16,·255], |
604 | ········"07992553710938":·16, | 604 | ········"07992553710938":·16, |
605 | ········"079926":·16, | 605 | ········"079926":·16, |
606 | ········"079956":·16, | 606 | ········"079956":·16, |
607 | ········"084":·[7,·10], | ||
608 | ········"085000":·16, | 607 | ········"085000":·16, |
609 | ········"095":·16, | 608 | ········"095":·16, |
610 | ········"095000":·16, | 609 | ········"095000":·16, |
611 | ········"0x00":·[110,·111,·143,·221], | 610 | ········"0x00":·[110,·111,·143,·221], |
612 | ········"0x00000000":·[113,·115], | 611 | ········"0x00000000":·[113,·115], |
613 | ········"0x0002":·[103,·255], | 612 | ········"0x0002":·[103,·255], |
614 | ········"0x0006":·[236,·246], | 613 | ········"0x0006":·[236,·246], |
Offset 778, 15 lines modified | Offset 777, 15 lines modified | ||
778 | ········"10db":·16, | 777 | ········"10db":·16, |
779 | ········"10dc":·16, | 778 | ········"10dc":·16, |
780 | ········"10dd":·16, | 779 | ········"10dd":·16, |
781 | ········"10de":·16, | 780 | ········"10de":·16, |
782 | ········"10e6":·16, | 781 | ········"10e6":·16, |
783 | ········"10e7":·16, | 782 | ········"10e7":·16, |
784 | ········"10e9":·16, | 783 | ········"10e9":·16, |
785 | ········"110":·[236,·242], | 784 | ········"110":·[16,·17,·236,·242], |
786 | ········"1100":·16, | 785 | ········"1100":·16, |
787 | ········"1101":·[236,·249], | 786 | ········"1101":·[236,·249], |
788 | ········"1103":·[236,·249], | 787 | ········"1103":·[236,·249], |
789 | ········"111":·[236,·242], | 788 | ········"111":·[236,·242], |
790 | ········"1110":·16, | 789 | ········"1110":·16, |
791 | ········"111079":·16, | 790 | ········"111079":·16, |
792 | ········"1111":·16, | 791 | ········"1111":·16, |
Offset 829, 22 lines modified | Offset 828, 21 lines modified | ||
829 | ········"128":·[1,·6,·9,·16,·103,·107,·119,·132,·136,·137,·138,·143,·156,·255], | 828 | ········"128":·[1,·6,·9,·16,·103,·107,·119,·132,·136,·137,·138,·143,·156,·255], |
830 | ········"128002":·259, | 829 | ········"128002":·259, |
831 | ········"129":·16, | 830 | ········"129":·16, |
832 | ········"1314":·[1,·16], | 831 | ········"1314":·[1,·16], |
833 | ········"1318":·34, | 832 | ········"1318":·34, |
834 | ········"133":·[16,·132], | 833 | ········"133":·[16,·132], |
835 | ········"1336":·34, | 834 | ········"1336":·34, |
836 | ········"134":·7, | 835 | ········"134":·[6,·7,·10], |
837 | ········"1346":·34, | 836 | ········"1346":·34, |
838 | ········"135803":·16, | 837 | ········"135803":·16, |
839 | ········"1369":·34, | 838 | ········"1369":·34, |
840 | ········"13s":·8, | 839 | ········"13s":·8, |
841 | ········"143":·[236,·245], | 840 | ········"143":·[236,·245], |
842 | ········"1436":·255, | 841 | ········"1436":·255, |
843 | ········"145787":·9, | ||
844 | ········"150":·[0,·16], | 842 | ········"150":·[0,·16], |
845 | ········"150031":·24, | 843 | ········"150031":·24, |
Max diff block lines reached; 2634/6472 bytes (40.70%) of diff not shown. |