ITK  4.13.0
Insight Segmentation and Registration Toolkit
Public Types | Static Public Member Functions | Private Member Functions | List of all members
itk::PyVnl< TElement > Class Template Reference

#include <itkPyVnl.h>

Detailed Description

template<typename TElement>
class itk::PyVnl< TElement >

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 47 of file itkPyVnl.h.

Public Types

typedef TElement DataType
 
typedef vnl_matrix< TElement > MatrixType
 
typedef PyVnl Self
 
typedef vnl_vector< TElement > VectorType
 

Static Public Member Functions

static PyObject * _GetArrayViewFromVnlMatrix (MatrixType *matrix)
 
static PyObject * _GetArrayViewFromVnlVector (VectorType *vector)
 
static const MatrixType _GetVnlMatrixFromArray (PyObject *arr, PyObject *shape)
 
static const VectorType _GetVnlVectorFromArray (PyObject *arr, PyObject *shape)
 

Private Member Functions

void operator= (const Self &)
 
 PyVnl (const Self &)
 

Member Typedef Documentation

template<typename TElement >
typedef TElement itk::PyVnl< TElement >::DataType

Type of the data from which the buffer will be converted

Definition at line 54 of file itkPyVnl.h.

template<typename TElement >
typedef vnl_matrix<TElement> itk::PyVnl< TElement >::MatrixType

Definition at line 56 of file itkPyVnl.h.

template<typename TElement >
typedef PyVnl itk::PyVnl< TElement >::Self

Standard "Self" typedef.

Definition at line 51 of file itkPyVnl.h.

template<typename TElement >
typedef vnl_vector<TElement> itk::PyVnl< TElement >::VectorType

Definition at line 55 of file itkPyVnl.h.

Constructor & Destructor Documentation

template<typename TElement >
itk::PyVnl< TElement >::PyVnl ( const Self )
private

Member Function Documentation

template<typename TElement >
static PyObject* itk::PyVnl< TElement >::_GetArrayViewFromVnlMatrix ( MatrixType matrix)
static

Get an Array with the content of the vnl matrix

template<typename TElement >
static PyObject* itk::PyVnl< TElement >::_GetArrayViewFromVnlVector ( VectorType vector)
static

Get an Array with the content of the vnl vector

template<typename TElement >
static const MatrixType itk::PyVnl< TElement >::_GetVnlMatrixFromArray ( PyObject *  arr,
PyObject *  shape 
)
static

Get a vnl matrix from a Python array

template<typename TElement >
static const VectorType itk::PyVnl< TElement >::_GetVnlVectorFromArray ( PyObject *  arr,
PyObject *  shape 
)
static

Get a vnl vector from a Python array

template<typename TElement >
void itk::PyVnl< TElement >::operator= ( const Self )
private

The documentation for this class was generated from the following file: