Closed petteriTeikari closed 4 years ago
Hello @petteriTeikari ,
The recent major update+refactoring of the code should have solved this issue.
I am sorry that resolving it took so long. The code was in a very experimental phase when I first uploaded it to GitHub (as you know) and has required significant modifications to work in a general way (improvements to the underlying mathematical models, re-training of the atlas, etc.). However, now it should work well as I have tested it on a large cohort of routine clinical CT images.
Best wishes,
Mikael
You seem to be missing a field
dir_model
(Create directory that will store all that is model related) from youropt
structure, when running with two input argumentsspm_segment_ct(Image, DirOut)
:Image = fullfile(path_base, file_to_analyze); DirOut = fullfile(path_base, 'output');
This come out as the error:
So the
dir_model
is not saved when callinginit_uniform_template
here: https://github.com/WCHN/CTseg/blob/c6cd2dab61d6c37b45adde90a7050d0a6da61c10/toolboxes/segmentation-model/code/load_model.m#L34Which seemed to be due to this flag being
false
https://github.com/WCHN/CTseg/blob/c6cd2dab61d6c37b45adde90a7050d0a6da61c10/spm_segment_ct.m#L300