|
77 | 77 | map = map.add_mapping('prefix', [map.norm 'c4'], ... |
78 | 78 | 'name_spec', nameSpec); |
79 | 79 |
|
80 | | - % 4th class prior next iteration |
81 | | - nameSpec = map.cfg.segment.gm_norm; |
82 | | - nameSpec.entities.label = 'PRIOR'; |
83 | | - nameSpec.entities.res = 'r1pt5'; |
84 | | - nameSpec.entities.desc = 'nextIte'; |
85 | | - map = map.add_mapping('prefix', [map.norm 'c4prior1'], ... |
86 | | - 'name_spec', nameSpec); |
87 | | - |
88 | | - % 4th class at previous iteration |
89 | | - nameSpec = map.cfg.segment.gm_norm; |
90 | | - nameSpec.entities.label = 'PRIOR'; |
91 | | - nameSpec.entities.res = 'r1pt5'; |
92 | | - nameSpec.entities.desc = 'prevIte'; |
93 | | - map = map.add_mapping('prefix', [map.norm 'c4previous1'], ... |
94 | | - 'name_spec', nameSpec); |
| 80 | + nbIteration = opt.toolbox.ALI.unified_segmentation.step1niti; |
| 81 | + for i = 1:(nbIteration - 1) |
| 82 | + % 4th class prior next iteration |
| 83 | + nameSpec = map.cfg.segment.gm_norm; |
| 84 | + nameSpec.entities.label = 'PRIOR'; |
| 85 | + nameSpec.entities.res = 'r1pt5'; |
| 86 | + nameSpec.entities.desc = sprintf('nextIte%i', i); |
| 87 | + map = map.add_mapping('prefix', sprintf('%sc4prior%i', map.norm, i), ... |
| 88 | + 'name_spec', nameSpec); |
| 89 | + |
| 90 | + % 4th class at previous iteration |
| 91 | + nameSpec = map.cfg.segment.gm_norm; |
| 92 | + nameSpec.entities.label = 'PRIOR'; |
| 93 | + nameSpec.entities.res = 'r1pt5'; |
| 94 | + nameSpec.entities.desc = sprintf('prevIte%i', i); |
| 95 | + map = map.add_mapping('prefix', sprintf('%sc4previous%i', map.norm, i), ... |
| 96 | + 'name_spec', nameSpec); |
| 97 | + end |
95 | 98 |
|
96 | 99 | nameSpec = map.cfg.segment.gm_norm; |
97 | 100 | nameSpec.entities.res = res; |
|
0 commit comments