[Insight-users] MaximizeOn and PixelType

itk@stmoser.ch itk at stmoser . ch
Tue, 15 Jul 2003 17:21:09 +0200 (MEST)


Hi

I've just been playing around with a basic registration program and the
registration example nr. 3.  According to some newsgroup postings,
itkMeanSquareImageToImageMetric does sum up squared differences and
therefore needs to be minimized. So MinimizeOn() needs to be called. In
example 3 there is MaximizeOn() though. Why is that?

It is interesting to note that if PixelType is set to 'short', the
registration does fine with MinimizeOn(), but not with MaximizeOn(). If
it is set to 'unsigned short', it will do with MaximizeOn() but not with
MinimizeOn().

Can anyone help me?

Thanks, Stephan