BIC-MNI / minc-tools

Basic minc-tools from former minc repository
Other
30 stars 25 forks source link

Convert to octave-based MAT reader #38

Closed gdevenyi closed 8 years ago

gdevenyi commented 8 years ago

mat1dump (which ana2mnc uses to read mat files) is limited to old versions of the mat format.

Octave can read newer versions.

@andrewjanke I can't check if octave prints the matrix the same way it was stored internally, this is the way octave prints the .mat matrix.

$ spm_show 1001794_wba_001.mat
    -0.46875     0.00000     0.00000   120.46875
     0.00000    -0.46875     0.00000   136.83240
     0.00000     0.00000     1.50000   -66.20751
     0.00000     0.00000     0.00000     1.00000
andrewjanke commented 8 years ago

This is a very good idea and I like it! Not sure why I didn't do this in the first place, possibly because it didn't exist in octave at the time. mat1dump isn't included in minc-tools but might be in minc-toolkit so its been a problematic dependency in any case. I haven't tested this but looking at the code here:

https://github.com/BIC-MNI/minc-tools/blob/master/conversion/ana2mnc/ana2mnc#L226

It looks very similar. perhaps this should be targeted against the develop branch rather than master?

gdevenyi commented 8 years ago

Good idea, see #40