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
After getting the
Start making initial estimates of GMM parameters... done!
andStart making initial estimate of template...done!
This error comes
So I assume that somehow this check is skipped? https://github.com/WCHN/CTseg/blob/2710377fd3c8d2c2eace4802bb0192961a2d3f33/toolboxes/segmentation-model/code/init_load_a_der.m#L9
So maybe the
pth_H
,but notpth_gr
is set?And when I added "double-checking" of the variables defined within the structure, it worked: https://github.com/WCHN/CTseg/blob/2710377fd3c8d2c2eace4802bb0192961a2d3f33/toolboxes/segmentation-model/code/segment_subject.m#L449
and indeed only
pth_gr
was undefined andpth_H
was defined for "initial estimate", and both were undefined for the "Analyzing and transferring files to the workers ...done." part