QMRITools`GeneralTools`
QMRITools`GeneralTools`
Data2DToVector
Data2DToVector[data] converst the data to vector.
Data2DToVector[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}}.