Fix gcc compilation errors in ArmatureBones and ArmatureWeight

* ITK_THREAD_RETURN_TYPE can only take ITK_THREAD_RETURN_VALUE as value. Use
itkException if there is error. See #13895
* Use reinterpret_cast when casting from void*
* Remove unused variable warnings
* Compilation error on gcc
* Fix indentation
* Add std:: namespace prefix
Merge branch '13878-fix-parallelized-build-errors' into heat-diffusion

* 13878-fix-parallelized-build-errors:
  Fix gcc compilation errors in ArmatureBones and ArmatureWeight
Use CopyInformation to clone a volume

Using GetOrigin()/GetSpacing() is not enough in some cases (e.g. with the
VisibleMan dataset)
Issue #13919
Restore IsArmatureInRAS in ArmatureWeight

When the module has been split in 2 modules (ArmatureBone & ArmatureWeight),
IsArmatureInRAS has been removed from ArmatureWeight.
Issue #13919
Add Debug option to PoseBody

* Move IsArmatureInRAS below ArmaturePoly in the list of options.
* Remove .vtk as a file format request for geometry type.
* Build PosedArmature.vtk in Debug mode.
* Prevent crash when input arm't contain Transforms array.

Issue #13919
Fix RAS polydata inversion in ARmatureWeight and PoseBody

The polydata are inversed at load time, points should not be inverted
again later.
Only point field data need to be inverted (e.g. "Transforms" field array).
For the output, invert back the result points if needed.
Issue #13919
Fix linear blend regression

Regression introduced by 4aa830bb6be9
Issue #13919
Merge branch '13919-fix-posebody-linear-interpolation' into heat-diffusion

* 13919-fix-posebody-linear-interpolation:
  Fix linear blend regression
  Fix RAS polydata inversion in ARmatureWeight and PoseBody
  Add Debug option to PoseBody
  Restore IsArmatureInRAS in ArmatureWeight
  Use CopyInformation to clone a volume
Fix crash when using narrowly cropped images

Checking if the pixel is inside the image is necessary for preventing
crash.
Also making this whole block debug beacause it is not absolutely
necessary for the computation a can be expensive.

See Issue #13919
Merge branch '13919-fix-posebody-linear-interpolation' into heat-diffusion

* 13919-fix-posebody-linear-interpolation:
  Fix crash when using narrowly cropped images
Improve CLI interface

Mark most of the parameters as advanced and clearly sperate IO and control
parameters.
Also mark input body labelmap as label so the interface does not detect
greyscale images along, but only labelmaps.

See Issue #13917
Merge branch '13917-MarkCLIVolumeAsLabels' into heat-diffusion

* 13917-MarkCLIVolumeAsLabels:
  Improve CLI interface
Refactor EvalWeight to add weight field array

A few things here:
- Getting rid of namespace std, to respect code convetions. At the same
time, using cout for warning instead of cerr so they do not appear as
errors in Slicer.

- Add PrintDebug flag to prevent from printing out message during normal
execution.

- Actually print an output file with the weights fiels arrays

- Handle LPS<->RAS better

See Issue #13931
Big PoseBody Refactoring

Refactor Pose Body to be able to handle input sufarces that have weight
field arrays. This will greatly improve perfomances as there is no need
in processing the input weight images anymore. It is however still possible
to use a surface without these field arrays

See Issue #13931
Merge branch '13931-RealTimePoseBody' into heat-diffusion

* 13931-RealTimePoseBody:
  Big PoseBody Refactoring
  Refactor EvalWeight to add weight field array
Better memory management

Delete the memory as soon as the thread is finished running or as soon as
the weight file was written.

See Issue #13915
Improve Cancelling

Now whenever the computation fails for one of the weights, all the other
computation stop and the error message is reported.

See Issue #13915
EXECUTABLE_ONLY for the CLIs

So far, the CLI where used as Shared object module. A shared object module
give the advantages of reducing the reading/writing of files since they
are directly passed through slicer's API. However, there is no progress
feedback and no way of cancelling such module.
(See http://www.na-mic.org/Bug/view.php?id=2965)
That's way we switch our CLIs to EXECUTABLE_ONLY so they can be cancelled
and give feedeback.

Note: In the case of pose body, we prefer perfomance over control, this is
why it stays a shared module object.

See Issue #13915
Merge branch '13915-ImproveArmatureWeightMulti-threading' into heat-diffusion

* 13915-ImproveArmatureWeightMulti-threading:
  EXECUTABLE_ONLY for the CLIs
  Improve Cancelling
  Better memory management
Check Abort and cancel module if needed

Revert last commit and check for abort in the module itself.

See Issue #13915