Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
pmi432 / LR07 / 2read / image processing toolbox guide.pdf
Скачиваний:
166
Добавлен:
18.03.2015
Размер:
18.08 Mб
Скачать

7 Image Registration

time500 =

30.1878

Step 4: Improve the Speed of Registration

The previous section showed that it’s often possible to improve a registration with the default parameters simply by letting it run longer. Although

7-40

Registering Multimodal MRI Images

increasing ’MaximumIterations’ will likely lead to convergence, it’s also likely that running for a longer time will yield diminishing returns.

It’s often possible to force the optimizer to be more aggressive in its initial steps. Changing parameters that control step size might move the registration closer to the correct solution more quickly, but it could result in treating a local extrema as the best answer, when the best answer is elsewhere in the optimization space.

The ’InitialRadius’ property controls the initial search radius for the optimizer.

optimizer.MaximumIterations = 100; optimizer.InitialRadius = 0.009;

movingRegistered = imregister(moving, fixed, 'affine', optimizer, metric); figure, imshowpair(movingRegistered, fixed)

title('MaximumIterations = 100, InitialRadius = 0.009')

7-41

7 Image Registration

Compared with the default configuration, the results are worse. While ’InitialRadius specifies the upper bound of the search radius, ’Epsilon’ sets the lower bound.

[optimizer,metric] = imregconfig('multimodal'); optimizer.Epsilon = 1.5e-4;

movingRegistered = imregister(moving, fixed, 'affine', optimizer, metric); figure, imshowpair(movingRegistered, fixed)

title('MaximumIterations = 100, Epsilon = 1.5e-4')

7-42

Registering Multimodal MRI Images

This configuration yields almost exactly the same registration as the default parameters with almost no difference in performance.

The only remaining optimizer property to tweak independently is ’GrowthFactor’, which controls the rate at which the search radius grows in parameter space. A larger growth factor causes a more aggressive optimization.

[optimizer,metric] = imregconfig('multimodal'); optimizer.GrowthFactor = 1.1;

7-43

7 Image Registration

movingRegistered = imregister(moving, fixed, 'affine', optimizer, metric); figure, imshowpair(movingRegistered, fixed)

title('MaximumIterations = 100, GrowthFactor = 1.1')

That seemed too aggressive. Perhaps the default value is too large. Try a smaller ’GrowthFactor’ setting.

optimizer.GrowthFactor = 1.01;

tic

movingRegisteredGrowth = imregister(moving, fixed, 'affine', optimizer, met

7-44

Registering Multimodal MRI Images

timeGrowth = toc

figure, imshowpair(movingRegisteredGrowth, fixed) title('C: MaximumIterations = 100, GrowthFactor = 1.01')

timeGrowth =

6.1934

7-45

Соседние файлы в папке 2read