BUG: AntiAliasBinaryImageFilter needs SetUseImageSpacing(false).

ITK-3034.

From Roman Ramseyer:

  The itkAntiAliasBinaryImageFilter should probably SetUseImageSpacing(false)
  for ITK4.2
  since itkFiniteDifferenceImageFilter sets m_UseImageSpacing to true by
  default.
  It makes sense that a DifferenceFilter has this on by default but not all
  inherited filter might want this?
  This was not the case for ITK3.2 (there default was already set to false)
  and AntiAliasFilter was just working fine since it can not take image
  spacing into account.
  Otherwise there are artefacts in the direction with the biggest spacing.
  Example
  Use 3d binary image with 2mm spacing in z and apply AntiAlias (iteration 30
  / rms 0.001) filter and then analise output. Then output has
  heavy spikes in z-Direction.

This patch set the flag off in the constructor, and
improve the test so it validates outputs.

Change-Id: I5b2b16e3201d8901ec6a12b1791dea446a4b62b0
ENH: Remove duplicate code in BinaryBall and BinaryCross

The BinaryBallStructuringElement and BinaryCrossStructuringElement are
special cases of structuring elements that are also available in
FlatStructuringElement.  In fact, the code is duplicated almost
line-for-line in FlatStructuringElement.  To remove duplicate code and
enable easier future enhancements, this patch removes the duplicate
code in the BinaryBall and BinaryCross and instead instantiates the
appropriate FlatStructuringElement internally to do the computations.
Thus, there should be no difference in computational complexity or
behavior, and all prior tests still pass.

Note that, previously, the BinaryCross only enabled the implementation
of structuring elements all of whose radii are 1.  This default
behavior has been retained.  But the new implementation now also
enables the specification of other radii for the BinaryCross since the
implementation in FlatStructuringElement also enabled that.
The test itkBinaryDilateImageFilterTest2 has been updated to also test
this functionality using a cross radius of 2.

Note that itkBinaryDilateImageFilterTest2 is currently the ONLY test
of the BinaryCrossStructuringElement in ITK.

Change-Id: I757108ffe06d8b98f1e67b1a1c4729a0bbcb1509
BUG: Fixed bugs in Form and hidden virtual funcs in Image
COMP: Fixed unused variable warnings in tests
COMP: Disable tests since paths are set wrong in VTK
Merge branch 'release'

Change-Id: I60f5e5a391f4a9b3ae097b7482f2eed6586fe40c
Merge topic 'StructuringElementConsolidation'

1582827 ENH: Remove duplicate code in BinaryBall and BinaryCross
COMP: Add cmake tr1 namespace check for macos clang

Change-Id: I2fde834bfe028686c0af522897c9e062769c1f0c
COMP: Use ZeroValue instead of Zero for clang macos 10.9 compilation

Change-Id: I194fe45e328ed3ab8463595b26ee30959b8eaf53
DOC: Recommend newer BSplineTransform over BSplineDeformableTransform.

Change-Id: I3b9381ef6f8096cbdea10494522699b3df9324b9
ENH: Added radiusIsParametric  mode to FlatStructuringElement

This patch introduces an optional flag called
"radiusIsParametric" to the "ball" and "annulus" structuring
elements of FlatStructuringElement.  Setting this flag to true will
generate structuring elements with more accurate areas, which can be
especially important when morphological operations are intended to
remove or retain objects of particular sizes.

This mode was introduced because the original ball and annulus
structuring elements have a systematic bias in the radius of +0.5
voxels in each dimension relative to the analytic definition of the
radius.

We recommend using this mode for more accurate structuring elements.
However, this mode is turned off by default for backward
compatibility.

Examples:
For a 3D ball of radius 5 should have an area of 523. With this mode
turned on, the number of "on" pixels is 515 (error 1.6%), but with it
turned off, the area is 739 (error 41%).

For a 3D annulus of radius 5 and thickness 2, the area should be 410.
With this mode turned on, the area is 392 (error 4.5%),  but when
turned off it is 560 (error 36%).

This same trend holds for balls and annuli of any radius or dimension.
For more detailed experiments with this mode, please refer to the
results of the test itkFlatStructuringElementTest.cxx or the wiki
example.

Change-Id: If7b2f654de396771beb49b6736eae57b28445eed
COMP: Do not warn about unused typedefs.

GCC 4.8 adds a warning about local unused typedefs, but making sure these types
are available is an important part of the ITK ConceptChecking framework.
Disable the check with a compiler flag.

Change-Id: I59040e9d445822d0ba9a0b846fe7f11e58bc76d3
Merge topic 'some-osx-mavericks-corrections'

1976204 COMP: Use ZeroValue instead of Zero for clang macos 10.9 compilation
1e38c1c COMP: Add cmake tr1 namespace check for macos clang
Merge branch 'release'

Change-Id: If358084c1b498643c4211d17cd1073b543011516
Merge topic 'BSplineTransform-recommendation'

8f27b39 DOC: Recommend newer BSplineTransform over BSplineDeformableTransform.
ENH: Add explicit KWStyle testing for Examples directory

The existing pre-commit style checking already applies to C++ files in
the Examples directory. Now, an explicit CTest test and build target,
StyleCheckExamples, is available to run on demand.

Change-Id: Ifc2680a6306ed9d25fbcbf3b4fea61f7586771ad
STYLE: Replace indentation tabs with spaces

Use of spaces for indentation in new commits is already prevented by the
pre-commit style check, but this is not enforced for existing repo
contents.

Change-Id: I4020be06de7b1edffb494a309b802df5f2d2974b
STYLE: Fix KWStyle issues in Examples: whitespace

Scripted fixes for:
* "Empty lines exceed..."
* "Number of empty lines at the end of files"
* "Number of spaces before semicolon exceed"

Change-Id: Icab33b87fd726e0bc532d57fad972470a43a0380
STYLE: Fix KWStyle issues in Examples: typedef alignment

Manual fixes for
"Type definition ... is not aligned with the previous one".

Change-Id: I5c11837890ec67880ed70dab42e526545c1010f1
STYLE: Fix KWStyle issues in Examples: manual fixes

Miscellaneous manual fixes.

Change-Id: I3d28f645ec539416d215617910cfc7deaa8d615d