BUG: NAN results from divide by 0 condition.
Merge pull request #354 from aylward/RadiusEstimationFix

BUG: NAN results from divide by 0 condition.
Enable run tortuosity button only when a valid node is present
Enable deletion of spatial object nodes
Add option to save the tortuosity arrays as an CSV file

This implies a little bit of refactoring/enhancing:
 - Add All flag (0xFF) so we can run all the metrics
 - Refactor the GetArray(s) methods to clarify when the array is created
or not. To this end, a GetOrCreateArray method was added. Internaly, we
use templated method so we can any type of array.
  - Automatically add the NumberOfPoints integer array on each computation
of tortuosity. For each vessels, this array values tells the user how many
point this vessel has. It can be used (like in SaveAsCSV) to only get one
measure value per vessel instead of on measure value of each point of the
vessel.

By default, the csv does not list the InflectionPoints array since it only
makes sense to look at it when we look at all the points of the vessels.
Move logic's tortuosity computation to a TubeTK filter - 1/2

Create a filter in TubeTK that does exactly what is done in the Tortuosity
module logic for a given single vessel. This will allow the tortuosity
measure to be more easily used by people.
Move logic's tortuosity computation to a TubeTK filter - 2/2

Use the new filter in the logic.
Fix Tortuosity module compilation

Include filtering directories. No need to link against any library since
the filter used is templated.

Change-Id: Ie8b98ef7802a5e017aec4d58abb0b5a2ebc34f01
Fix Tortuosity filter and make sure it passes the test

A few things here:
 - Fix test comparison value
 - Fix normalizations to make sure we don't divide by 0 and get NaNs
 - Remove completly useless dynamic_cast
 - Misc fixes of codes badly rewritten when switching from the logic to
a filter
 - Add epsilon parameter for future testing of the filter.

Change-Id: I0af3c60c7ccb4f00601a3da82bd7b6cb9ff93945
Merge remote-tracking branch 'vov/TortuosityModule'

* vov/TortuosityModule:
  Fix Tortuosity filter and make sure it passes the test
  Fix Tortuosity module compilation
  Move logic's tortuosity computation to a TubeTK filter - 2/2
  Move logic's tortuosity computation to a TubeTK filter - 1/2
  Add option to save the tortuosity arrays as an CSV file
  Enable deletion of spatial object nodes
  Enable run tortuosity button only when a valid node is present
Merge pull request #355 from vovythevov/TortuosityModule

Tortuosity module
Fix Max and Unix compilation

Change-Id: I64fb035659a7b4d45004c84dcf409e91fad32fa4
Merge pull request #356 from vovythevov/TortuosityModule

Fix Max and Unix compilation
Fix typenames in tortuosity filter
Merge pull request #357 from vovythevov/TortuosityModule

Fix typenames in tortuosity filter
Fix dimensions in ConvertTRE for TubeTK to TubeX conversion

Change-Id: I7171a5467d57954cd9146d45abcdce8411bc1a51
Merge pull request #359 from vovythevov/FixConvertTRE

Fix convert tre
Fix typename in itktubeTubeXIO

Change-Id: Ia6f8e79adea9794ecc7d4112cbd7c7e34d4736e9
Merge pull request #360 from vovythevov/FixConvertTRE

Fix typename in itktubeTubeXIO
Fix warnings from TubeXIO dimensions change

- Fix unsigned int/int comparison warning
- Uniformize inputImage to inputImageFileName

Change-Id: I507fd56c5b3ab5cd10e997b441e734d89314dd34