BRAINSia/ANTS — pull request #6 by Chaircrusher (2012-07-03 21:42:05+00:00)
Title: Fix affine registration2 template

This does a lot of work to try and get rid of one confusing, style-deficient feature: Template parameters that are ITK SmartPointer types.

This feels more 'ITK-like' though there might be some resistance to this change because you have to put explicit template arguments on some function calls.

Along the way, where I noticed it, I got rid of this erroneous pattern

ITKType::Pointer x = ITKType::New();
x = ReturnedFromSomeFunction();

e.g. image pointers being assigned at declaration with ImageType::New() and then immediately being assigned the output of an Image File Reader.

There's a bit more of this sort of thing I can tackle if it isn't going to annoy anyone.