BUG: Return of NaN by DiffusionTensor3D::GetFractionalAnisotropy

As reported here:
https://itk.icts.uiowa.edu/jira/browse/ITK-3030

There are cases where the computed anisotropy
is NaN because of taking the square root of a
negative value.  This patch returns zero for FA
if it would be NaN.

This sensible solution was reviewed by several DWI processing
experts, and consider this approach to be a good couse of action.

It is suspected that the problem enters here

 anisotropy = 3.0 * isp - trace * trace;

when precision errors make the right side of the minus sign slightly larger
than the left. In this case the true anisotropy is going to be close to zero.

Change-Id: I2f9b47998f8dcefbca9ab27f315574617191ca6c
ENH: JPEG IO now writes and reads spacing, similar to the TIFF IO (ITK-3023)

Change-Id: I5f40e226040233672eed3dcdec1a5b9007899574
PERF: Use ImageAlgorithm::Copy in CastImageFilter

Overload and "specialize" the ThreadedGenerateData method to use this
optimized procedure instead of the standard functor
implementation. This results in a ~5-25X performance increase when
compared to ITKv4.3.2, when combined with the optimized copy
method. However, this does remove incremental progress reporting.

Change-Id: I8a2af5c4ec4726967bf6a0cdccaa5f2a4e82d156
Merge topic 'ITK-3023'

b7c7107 ENH: JPEG IO now writes and reads spacing, similar to the TIFF IO (ITK-3023)
Merge topic 'CastImageFilterToImageAlgorithmCopy'

22fa569 PERF: Use ImageAlgorithm::Copy in CastImageFilter
Merge topic 'DiffusionTensorFA_3030'

2f8951f BUG: Return of NaN by DiffusionTensor3D::GetFractionalAnisotropy
COMP: Fix failing implicit conversion from NULL

This patch addressed the following compilation error on certain VS
builds:

c:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\utility(163): error C2664:
'itk::SmartPointer<TObjectType>::SmartPointer(const
itk::SmartPointer<TObjectType> &)' : cannot convert parameter 1 from
'int' to 'const itk::SmartPointer<TObjectType> &'

Change-Id: Id66b38e72a6ce2ee2d7887cd9dd8ccc0a7ad6be2
Merge topic 'FixProcessObjectPointerConversion'

d575dac COMP: Fix failing implicit conversion from NULL