-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
72 lines (70 loc) · 4.93 KB
/
main.py
File metadata and controls
72 lines (70 loc) · 4.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
from pydicom import dcmread
import pydicom
fpath = "./test_data/File 12948.dcm"
# fpath = "./test_data/File 1.dcm"
fpath = "./test_data/File 18001"
fpath = "./test_data/File 32000"
fpath = "./test_data/File 11636.dcm"
fpath = "./test_data/File 32000"
fpath = "./test_data/File 4000.dcm"
fpath = "./test_data/File 12000"
fpath = "./test_data/File 160.dcm"
fpath = "./test_data/File 8000"
# fpath = "./test_data/File 12000"
fpath = '/home/tripg/Documents/1.dcm'
fpath = '/home/tripg/Downloads/mammo_dicoms/1.3.12.2.1107.5.12.7.5054.30000019090500530000000000556.dicom'
fpath = '/home/tripg/Documents/dicom/test_data/400014'
fpath = '/home/tripg/Documents/dicom/mammo_dicoms/1.2.840.113619.2.255.10452022879169.3670200508103440.2701.dicom'
fpath = '/home/tripg/Documents/dicom/test_data/File 12986'
fpath = '/home/tripg/Documents/dicom/ptt1.dcm'
fpath = '/home/tripg/Documents/dicom/test_data/File 10000.dcm'
fpath = '/home/tripg/Documents/dicom/dicoms_mr_func/MR.1.3.46.670589.11.38317.5.0.4476.2014042516042547586'
fpath = '/home/tripg/Documents/dicom/dicoms_struct/N2D_0001.dcm'
fpath = '/home/tripg/Documents/dicom/test_data/File 10051.dcm'
fpath = '/home/tripg/Documents/dicom/test_data/40009'
fpath = '/home/tripg/Documents/dicom/test_data/File 12943.dcm'
fpath = '/home/tripg/Documents/dicom/mammo_dicoms/1.3.12.2.1107.5.12.7.3367.30000018112001512650000000209.dicom'
fpath = '/home/tripg/Documents/dicom/2_skull_ct/DICOM/I0'
fpath = '/home/tripg/Documents/dicom/Class-3-malocclusion/Class 3 malocclusion/DICOM/I0'
fpath = '/home/tripg/Documents/dicom/ptt1.dcm'
fpath = '/home/tripg/Documents/dicom/us_valid_pixel_aspect.dcm'
fpath = '/home/tripg/Documents/dicom/color_dicom/JPEG2000-RGB.dcm'
fpath = '/home/tripg/Documents/dicom/055829-00000000.dcm'
fpath = '/home/tripg/Documents/dicom/us_monochrome2.dcm'
# fpath = '/home/tripg/Documents/dicom/KiTS-00072/04-01-2000-abdomenw-15076/300.000000-Segmentation-99191/1-1.dcm'
# fpath = '/home/tripg/Documents/dicom/MammoTomoUPMC_Case22/Case22 [Case22]/20071030 022108 [ - BREAST IMAGING TOMOSYNTHESIS]/Series 003 [SR]/1.3.6.1.4.1.5962.99.1.2280943358.716200484.1363785608958.476.0.dcm'
# fpath = '/home/tripg/Documents/dicom/MammoTomoUPMC_Case4/Case4 [Case4]/20071218 093012 [ - MAMMOGRAM DIGITAL SCR BILAT]/Series 73100000 [MG - R CC Tomosynthesis Reconstruction]/1.3.6.1.4.1.5962.99.1.2280943358.716200484.1363785608958.589.0.dcm'
# fpath = '/home/tripg/Documents/dicom/test_full/063.dcm'
fpath = '/home/tripg/Documents/dicom/MammoTomoUPMC_Case4/Case4 [Case4]/20071218 093012 [ - MAMMOGRAM DIGITAL SCR BILAT]/Series 73100000 [MG - R CC Tomosynthesis Reconstruction]/1.3.6.1.4.1.5962.99.1.2280943358.716200484.1363785608958.589.0.dcm'
fpath = '/home/tripg/Documents/dicom/invalid_pixel.dcm'
fpath = '/home/tripg/Documents/dicom/Le_Cong_Giuong/1.2.840.113704.9.1000.16.2.20220421110622828000200020001.dcm'
fpath = '/home/tripg/Documents/dicom/dcm/vietnhat/test/2022/04/03/1.2.392.200036.9123.100.12.12.31738.90220403093121413382737448/1.2.392.200036.9123.100.12.12.31738.90220403094010178790824826.dcm'
fpath = '/home/tripg/Documents/dicom/10142022/Acuson/Sequoia/EXAMS/EXAM0003/CLIPS/CLIP0039'
fpath = '/home/tripg/Documents/x2.dcm'
fpath = '/home/tripg/Documents/dicom/test_full/023.dcm'
fpath = '/home/tripg/Documents/dicom/10142022/ALI_Technologies/UltraPACS/studies/w0019837/view0001'
fpath = '/home/tripg/Documents/dicom/vinlab/Mini-batch0/1.3.12.2.1107.5.1.7.112561.30000019122607094739800003704/DICOM/1.3.12.2.1107.5.1.7.112561.30000019122622575003400000100.dcm'
fpath = '/home/tripg/Downloads/123.241606668321866.1722978010541148/DICOM/1.2.840.113619.2.427.84108138632.1643160910.120.dicom'
fpath = '/home/tripg/workspace/1 0142022/ALI_Technologies/UltraPACS/studies/w0055053/view0013'
fpath = '/home/tripg/workspace/10142022/Acuson/Sequoia/EXAMS/EXAM0000/CLIPS/CLIP0031'
fpath = '/home/tripg/workspace/10142022/Hamamatsu/Dog_15x15_20x.dcm'
fpath = '/home/tripg/Downloads/N2D0027.dcm'
fpath = '/home/tripg/Downloads/123.241606668321866.1724728615648318_en.dcm'
fpath = '/home/tripg/Downloads/1-1.dcm'
fpath = '/home/tripg/workspace/dicom3/winter.dcm'
fpath = '/home/tripg/Downloads/PrivateGEImplicitVRBigEndianTransferSyntax16Bits.dcm'
fpath = '/home/tripg/Downloads/IMG-0003-00001 (1).dcm'
fpath = '/home/tripg/Downloads/1.3.46.670589.30.1.3.1.1625132584.1673448683234.1.dcm'
# fpath = '/home/tripg/workspace/pydicom_dcm/SC_rgb_jpeg.dcm'
# fpath = '/home/tripg/workspace/pydicom_dcm/image_dfl.dcm'
fpath = '/home/tripg/workspace/pydicom_dcm/SC_rgb_jpeg.dcm'
fpath = '/home/tripg/Downloads/123.241606668321866.1724728615648318_en.dcm'
fpath = '/home/tripg/workspace/dicom/test_data/File 12943.dcm'
fpath = '/home/tripg/workspace/pydicom_dcm/no_meta_group_length.dcm'
# fpath = '/home/tripg/workspace/pydicom_dcm/waveform_ecg.dcm'
# fpath = '/home/tripg/workspace/pydicom_dcm/meta_missing_tsyntax.dcm'
# fpath = '/home/tripg/workspace/pydicom_dcm/rtstruct.dcm'
ds = dcmread(fpath, force=True)
print(ds)
expected = pydicom.pixel_data_handlers.util.get_expected_length(ds)
print(expected)