Skip to content

Commit 006052e

Browse files
authored
Fix up references to pydicom's RLE handler
1 parent 7236198 commit 006052e

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -30,28 +30,28 @@ python -m setup.py develop
3030
### Benchmarks
3131
#### Decoding
3232

33-
Time per 1000 decodes, pydicom's NumPy RLE handler vs. pylibjpeg-rle
34-
35-
| Dataset | Pixels | Bytes | NumPy | pylibjpeg-rle |
36-
| --- | --- | --- | --- | --- |
37-
| OBXXXX1A_rle.dcm | 480,000 | 480,000 | 4.89 s | 0.79 s |
38-
| OBXXXX1A_rle_2frame.dcm | 960,000 | 960,000 | 9.89 s | 1.65 s |
39-
| SC_rgb_rle.dcm | 10,000 | 30,000 | 0.20 s | 0.15 s |
40-
| SC_rgb_rle_2frame.dcm | 20,000 | 60,000 | 0.32 s | 0.18 s |
41-
| MR_small_RLE.dcm | 4,096 | 8,192 | 0.35 s | 0.13 s |
42-
| emri_small_RLE.dcm | 40,960 | 81,920 | 1.13 s | 0.28 s |
43-
| SC_rgb_rle_16bit.dcm | 10,000 | 60,000 | 0.33 s | 0.17 s |
44-
| SC_rgb_rle_16bit_2frame.dcm | 20,000 | 120,000 | 0.56 s | 0.21 s |
45-
| rtdose_rle_1frame.dcm | 100 | 400 | 0.12 s | 0.13 s |
46-
| rtdose_rle.dcm | 1,500 | 6,000 | 0.53 s | 0.26 s |
47-
| SC_rgb_rle_32bit.dcm | 10,000 | 120,000 | 0.56 s | 0.19 s |
48-
| SC_rgb_rle_32bit_2frame.dcm | 20,000 | 240,000 | 1.03 s | 0.28 s |
33+
Time per 1000 decodes, pydicom's default RLE handler vs. pylibjpeg-rle
34+
35+
| Dataset | Pixels | Bytes | pydicom | pylibjpeg-rle |
36+
| --- | --- | --- | --- | --- |
37+
| OBXXXX1A_rle.dcm | 480,000 | 480,000 | 4.89 s | 0.79 s |
38+
| OBXXXX1A_rle_2frame.dcm | 960,000 | 960,000 | 9.89 s | 1.65 s |
39+
| SC_rgb_rle.dcm | 10,000 | 30,000 | 0.20 s | 0.15 s |
40+
| SC_rgb_rle_2frame.dcm | 20,000 | 60,000 | 0.32 s | 0.18 s |
41+
| MR_small_RLE.dcm | 4,096 | 8,192 | 0.35 s | 0.13 s |
42+
| emri_small_RLE.dcm | 40,960 | 81,920 | 1.13 s | 0.28 s |
43+
| SC_rgb_rle_16bit.dcm | 10,000 | 60,000 | 0.33 s | 0.17 s |
44+
| SC_rgb_rle_16bit_2frame.dcm | 20,000 | 120,000 | 0.56 s | 0.21 s |
45+
| rtdose_rle_1frame.dcm | 100 | 400 | 0.12 s | 0.13 s |
46+
| rtdose_rle.dcm | 1,500 | 6,000 | 0.53 s | 0.26 s |
47+
| SC_rgb_rle_32bit.dcm | 10,000 | 120,000 | 0.56 s | 0.19 s |
48+
| SC_rgb_rle_32bit_2frame.dcm | 20,000 | 240,000 | 1.03 s | 0.28 s |
4949

5050
### Usage
5151
#### Decoding
5252
##### With pylibjpeg
5353

54-
Because pydicom defaults to the NumPy RLE decoder, you must specify the use
54+
Because pydicom defaults to its own RLE decoder, you must specify the use
5555
of pylibjpeg when decompressing:
5656
```python
5757
from pydicom import dcmread
@@ -62,7 +62,7 @@ ds.decompress("pylibjpeg")
6262
arr = ds.pixel_array
6363
```
6464

65-
#### Standalone with pydicom
65+
##### Standalone with pydicom
6666
Alternatively you can use the included functions to decode a given dataset:
6767
```python
6868
from rle import pixel_array, generate_frames

0 commit comments

Comments
 (0)