SeiictyUsui / pydicom

Automatically exported from code.google.com/p/pydicom
0 stars 0 forks source link

Resolve Numeric/numarray/numpy use for reformatting image data #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Original code had Numeric library support for coercing image data to the
right form. Need to resurrect that, and update to the latest library (numpy?).

Original issue reported on code.google.com by darcymason@gmail.com on 13 Sep 2008 at 12:50

GoogleCodeExporter commented 9 years ago
PixelNumericArray is referred to in wiki (along with mention of the Numeric 
library
successors), so that method name and the documentation will have to be updated 
also.

Original comment by darcymason@gmail.com on 13 Sep 2008 at 1:43

GoogleCodeExporter commented 9 years ago
NumPy seems to be the way forward. Made changes in code (not checked in yet as 
I'd
like to write a unit test if possible). Function renamed to PixelDataArray now 
uses
numpy if available, else Numeric if available. 

Note PixelDataArray returns the array (i.e. it is not stored in the dataset); it
might be desirable in future to go direct to this data structure in ReadFile, 
or to
at least store it as a property in the dataset instance.

Original comment by darcymason@gmail.com on 14 Sep 2008 at 5:07

GoogleCodeExporter commented 9 years ago
Checked in changes despite lack of unit test. Will try to add one later; not 
sure
what that should look like.

Original comment by darcymason@gmail.com on 16 Sep 2008 at 12:47