.. include:: ../macros.hrst .. include:: ../abbreviations.hrst .. _chapter:VTKNumPyIntegration: Using NumPy for processing data ############################### In :numref:`chapter:PythonProgrammableFilter`, we looked at several recipes for writing Python script for data processing that relied heavily on using NumPy for accessing arrays and performing operations on them. In this chapter, we take a closer look at the VTK-NumPy integration layer that makes it possible to use VTK and NumPy together, despite significant differences in the data representations between the two systems. Teaser ====== Let's start with a teaser by creating a simple pipeline with ``Sphere`` :index:`\ `\ connected to an ``Elevation`` :index:`\ `\ filter, followed by the ``Programmable Filter`` :index:`\ `\ . Let's see how we would access the input data object in the ``Script`` :index:`\