QMRITools`
QMRITools`

DataToVector

DataToVector[data]

converst the non zero data to vector.

DataToVector[data,mask]

converst the data within the mask to vector. the data can be reconstructed using VectorToData. output is the vecotrized data and a list contining the original data dimensions and a list with the data coordinates. {vec, {dim,pos}}.

Examples