danishm / mritopng

A simple python module to make it easy to batch convert DICOM files to PNG images.
MIT License
141 stars 50 forks source link

Use Numpy instead of List to improve performance #10

Closed kshitij12345 closed 6 years ago

kshitij12345 commented 6 years ago

Since the code already depends on Numpy , we can use Numpy instead of creating and appending lists for scaling the image data from Dicom to improve the performance.

Before using Numpy for converting 10 files it took 98.287921104 s After using Numpy the same task with same images takes 12.0352997347 s