suever / pydicom-experimental

pydicom test
0 stars 1 forks source link

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

Closed suever closed 10 years ago

suever commented 10 years ago

From darcymason@gmail.com on September 12, 2008 20:50:46

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: http://code.google.com/p/pydicom/issues/detail?id=4

suever commented 10 years ago

From darcymason@gmail.com on September 12, 2008 18:43:58

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.

suever commented 10 years ago

From darcymason@gmail.com on September 13, 2008 22:07:28

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.

Status: Started

suever commented 10 years ago

From darcymason@gmail.com on September 16, 2008 05:47:56

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

Status: Fixed