21 Oct 2019

Average Interleaved Data

The purpose of this python script object is to average interleaved data.

10-18-2019 1-21-10 PM

The purpose of this python script object is to average interleaved data. Sometimes, especially with MRI DICOM data collected for DTI experiments, a time series of related images may be formatted in this way, where the letter refers to a time point and the number refers to the slice number in the data:

CN

BN

AN

...

C2

B2

A2

C1

B1

A1

C0

B0

A0

This script would take the number of time points ("# of images to average"; self.avg) and averages these data into one output like this:

AverageN

...

Average2

Average1

Average0

This is achieved using numpy from python.

To test this Xtra, load the hx project called Average_Data_ExempleProject packaged with the Xtra.