raacampbell / matlab_elastix

MATLAB Elastix wrapper
http://www.mathworks.com/matlabcentral/fileexchange/52982-matlab-elastix
GNU Lesser General Public License v3.0
26 stars 12 forks source link

The Example Code Failed #18

Closed mylyu closed 3 years ago

mylyu commented 7 years ago

Hi,

It seems you example code does not work, possibly because of your recent update.

Undefined variable "mElastixYML" or class "mElastixYML.yaml.ReadYaml".

Error in elastixYAML2struct (line 40) yml=mElastixYML.yaml.ReadYaml(fname);

Error in elastix_parameter_write (line 56) params=elastixYAML2struct(YAML); %Default params from a user-supplied YAML or the default YAML

Error in elastix (line 195) elastix_parameter_write(paramFname{ii},paramFile,paramstruct(ii))

Error in example_2D_affine_alpha>runExampleLena (line 52) reg=elastix(lenaTrans,lena,[],'elastix_default.yml','paramstruct',p);

Error in example_2D_affine_alpha (line 40) runExampleLena(lenaTrans,lena,p,ind)

40 yml=mElastixYML.yaml.ReadYaml(fname);

raacampbell commented 7 years ago

Yes, that's the problem. Sorry--I thought I tested it. I'll come up with a fix.

raacampbell commented 7 years ago

In the mean time I reverted the master branch back to a working version, so just pull it again.

raacampbell commented 6 years ago

example_invert tested and works

raacampbell commented 6 years ago

examples in elastix dir seem fine too. Presumbably this is all fixed now?