ENH: adding support to get a vector image as a numpy array
Using byte array pythin interface to export array to numpy
Moved creation of tuple to python code from C code
removing commented out code for python array access
Add python helper methods to convert between sitk type and numpy
Change python _GetImageFromArray to _SetImageFromArray

More code was extracted from the C python code and placed as python
code. So the C method now only fills the sitk Image's buffer with the
provided array. Priviously the array was provided by the python buffer
interface ( PEP 3118 ), this interface was not provided by numpy in
OSX 10.6 nor in Slicer, so with less effort the older read buffer
interface use used via ParseTuple arguments.
Reverse the order of shape to and from numpy.
Respect the value of PY_SSIZE_T_CLEAN for size types of buffers.
First check for a PEP3118 argument the an old buffer argument.

Support was added to the SetImageFromArray methods to check for
PEP3118 buffer interface support first, and use that protocol if
supported.
The usage of PY_SSIZE_T_CLEAN is only needed for "s#" arguments.

The other usages were wrong, resulting in trucations and warnings.
Always run the Python numpy test

The test to see if the python installation has numpy was incorrect. It
used the virutal installation of python at configration time to test,
eventhough the virutal installtion of python isn't created untill
build time.

All dashboard systems should have numpy installed so that it will be
tested.
ENH: Add support for C# SDK version.

Previously, by default, the CMake scripts would detect available
C# versions and default to the latest version (typically v4.0).
On a Windows system, v4.0 can only be used by Visual Studio 2010
(which is not desirable).

This changeset addresses the issue by adding support for the C#
SDK version. Unfortunately .NET and Mono handle this differently.
For .NET we must use the csc.exe from the desired framework
directory (done in FindDotNetFrameworkSdk.cmake). For Mono we
can simply use the commandline switch /sdk.

With this changeset the CMake scripts default to SDK v2.0.
This means that now the precompiled binaries can be used with
Visual Studio 2008 and later.

NOTE: Some of the changes may conflict with commits already on
next branch.

Change-Id: Ic7b72b947e070672b41811419a0c9ab5fb820fcf
BUG: output measurements were not being assigned in VectorConfidenceConnected
Tweaks to comments and error message

recommendations by Matt McCormick
initial conversion of numpy test to a python unit test
Corrected name of functions in error message
Enhancing python unittest for numpy
Merge topic 'AddCSharpSdk'

058400d ENH: Add support for C# SDK version.
Merge topic 'FixVectorConfidenceConnectedMeasurements'

118ae21 BUG: output measurements were not being assigned in VectorConfidenceConnected
Merge topic 'SIMPLEITK-286_ExportVectorImageToNumpy'

a5942da Enhancing python unittest for numpy
0b6fb19 Corrected name of functions in error message
fcaed52 initial conversion of numpy test to a python unit test
eba0acd Tweaks to comments and error message
0a83347 Always run the Python numpy test
7e6f179 The usage of PY_SSIZE_T_CLEAN is only needed for "s#" arguments.
a13088f First check for a PEP3118 argument the an old buffer argument.
b6df45e Respect the value of PY_SSIZE_T_CLEAN for size types of buffers.
1621371 Reverse the order of shape to and from numpy.
38816d0 Change python _GetImageFromArray to _SetImageFromArray
2b00ff3 Add python helper methods to convert between sitk type and numpy
7f49f80 removing commented out code for python array access
e445ac7 Moved creation of tuple to python code from C code
77df9d2 Using byte array pythin interface to export array to numpy
f54be29 ENH: adding support to get a vector image as a numpy array