BIC-MNI / minc-tools

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

Convert to octave-based MAT reader #40

Closed gdevenyi closed 8 years ago

gdevenyi commented 8 years ago

Resubmit against develop

gdevenyi commented 8 years ago

I'd like to integrate this with ana2mnc_xfm_reduce.pl but #39 currently prevents me

gdevenyi commented 8 years ago

@andrewjanke just to reiterate my question, I wanted to make sure that octave's display command printed the matrix the same way mat1dump is doing so, so your parsing will handle it properly.

gdevenyi commented 8 years ago

i.e. this is octave's output:

$ 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
vfonov commented 8 years ago

How does itk_convert_xfm behave in this situation ?

andrewjanke commented 8 years ago

@vfonov probably does exactly the same thing (But better!) I wasn't aware of it but no doubt you wrote it to solve the same problem.

gdevenyi commented 8 years ago

@vfonov

itk_convert_xfm 1001794_wba_001.mat /tmp/itk.xfm
Transform reader for 1001794_wba_001.mat caught an ITK exception:

itk::ExceptionObject (0x1ef4bd0)
Location: "unknown" 
File: /opt/quarantine/minc-toolkit/git/src/build/ITKv4/Modules/IO/TransformMatlab/include/itkMatlabTransformIO.hxx
Line: 107
Description: itk::ERROR: MatlabTransformIOTemplate(0x1ef4bf0): Only vector parameters supported

Can't read:1001794_wba_001.mat