Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#include <stdint.h>
#include <string.h>
#include <numeric>
#include <functional>
#include "mitkImage.h"
Go to the source code of this file.
Functions | |
static PyObject * | mitk_GetMemoryViewFromImage (PyObject *SWIGUNUSEDPARM(self), PyObject *args) |
static PyObject * | mitk_SetImageFromArray (PyObject *SWIGUNUSEDPARM(self), PyObject *args) |
|
static |
An internal function that returns a memoryview object to the MITK Image's buffer (shallow). The correct copy and writing policies need to be done by the end-user method.
Definition at line 40 of file mitkNumpyArrayConversion.cxx.
References mitk::PixelType::GetBitsPerComponent(), mitk::Image::GetData(), mitk::Image::GetDimension(), mitk::PixelType::GetNumberOfComponents(), and mitk::Image::GetPixelType().
|
static |
An internal function that performs a deep copy of the image buffer into a python byte array. The byte array can later be converted into a numpy array with the frombuffer method.
Definition at line 116 of file mitkNumpyArrayConversion.cxx.
References mitk::PixelType::GetBitsPerComponent(), mitk::Image::GetData(), mitk::Image::GetDimension(), mitk::PixelType::GetNumberOfComponents(), and mitk::Image::GetPixelType().