#include <itkPyVectorContainer.h>
Helper class get views of VNL data buffers in python arrays and back.
This class will either receive a VNL data structure and create the equivalent Python array view or will receive a Python array and create a copy of it in a VNL data structure. This permits passing VNL data structures into python arrays from the NumPy python package.
Definition at line 44 of file itkPyVectorContainer.h.
Public Types | |
| using | DataType = TElement |
| using | ElementIdentiferType = TElementIdentifier |
| using | Self = PyVectorContainer |
| using | VectorContainerType = VectorContainer<TElementIdentifier, TElement> |
Static Public Member Functions | |
| static PyObject * | _array_view_from_vector_container (VectorContainerType *vector) |
| static VectorContainerType::Pointer | _vector_container_from_array (PyObject *arr, PyObject *shape) |
| using itk::PyVectorContainer< TElementIdentifier, TElement >::DataType = TElement |
Definition at line 52 of file itkPyVectorContainer.h.
| using itk::PyVectorContainer< TElementIdentifier, TElement >::ElementIdentiferType = TElementIdentifier |
Type of the data from which the buffer will be converted
Definition at line 51 of file itkPyVectorContainer.h.
| using itk::PyVectorContainer< TElementIdentifier, TElement >::Self = PyVectorContainer |
Standard "Self" type alias.
Definition at line 48 of file itkPyVectorContainer.h.
| using itk::PyVectorContainer< TElementIdentifier, TElement >::VectorContainerType = VectorContainer<TElementIdentifier, TElement> |
Definition at line 53 of file itkPyVectorContainer.h.
|
static |
Get an Array with the content of the vnl vector
|
static |
Get a vnl vector from a Python array