The partial derivative with respect to metric, in general:
The following portion is metric independent:
It may be implemented in either the metric base class or in each transformation class.
smooth f, m by sigma related to resolution
pass smoothed images to metrics
resample deformation to current resolution
for N iterations or until convergence
- call M (e.g. MeanSquaresImageToImageMetric) with f, m, (D compose A ) as input
- smooth gradient from 1. ( e.g. through a call to a RegularizationMetric or Regularization Filter ? )
- update (A+D) ( through call to the transformation classes? )
- smooth output of 3 as in step 2.
done
done
Does the DemonsTransformation class take care of resampling the images properly for the metric and algorithm? SyN would do something different .... metric would not know about how this is done.