This is a port from the original WrapITK PyBuffer to an ITKv4 module.
Differences from the original PyBuffer:
Support for VectorImage's
Option to not swap the axes (only for GetArrayViewFromImage)
Tests
Based on the NumPy Views, i.e. it
presents the ITK image pixel buffer in the NumPy array, and the buffer is
shared. This means that no copies are made (which increases speed and
reduces memory consumption). It also means that any changes in the NumPy
array change the ITK image content. Additionally, a reference to an ITK
image object must be available to use its NumPy array view. Using an array
view after its source image has been deleted can results in corrupt values
or a segfault.