Commit 87bd8c0
authored
Add support for single-frame DICOM images and images with Bits Allocated > 8 (#102)
* Add head CT slice test file
* add single-frame DICOM file test suite
* Return 1 for single image DICOM files without a NumberOfFrames tag
* Return correct frame size when bits_allocated > 8
* update changelog for single-frame support
* Typo
* Add checks for 1-bit (unimplemented) or non-mod-8 (invalid) BitsAllocated.
8.1.1 Pixel Data Encoding of Related Data Elements
Bits Allocated (0028,0100) shall either be 1, or a multiple of 8.
https://dicom.nema.org/medical/dicom/current/output/html/part05.html#PS3.51 parent a425123 commit 87bd8c0
6 files changed
Lines changed: 70 additions & 3 deletions
File tree
- data/test_files
- src
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
| 300 | + | |
300 | 301 | | |
301 | 302 | | |
302 | 303 | | |
| |||
742 | 743 | | |
743 | 744 | | |
744 | 745 | | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
745 | 758 | | |
746 | 759 | | |
747 | 760 | | |
| |||
1300 | 1313 | | |
1301 | 1314 | | |
1302 | 1315 | | |
| 1316 | + | |
1303 | 1317 | | |
1304 | 1318 | | |
1305 | 1319 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1038 | 1038 | | |
1039 | 1039 | | |
1040 | 1040 | | |
1041 | | - | |
| 1041 | + | |
| 1042 | + | |
1042 | 1043 | | |
1043 | 1044 | | |
1044 | 1045 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
770 | 809 | | |
771 | 810 | | |
772 | 811 | | |
| |||
846 | 885 | | |
847 | 886 | | |
848 | 887 | | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
849 | 899 | | |
850 | 900 | | |
851 | 901 | | |
852 | 902 | | |
853 | 903 | | |
854 | 904 | | |
| 905 | + | |
855 | 906 | | |
856 | 907 | | |
857 | 908 | | |
| |||
0 commit comments