UsTK : Ultrasound ToolKit  version 2.0.1 under development (2023-12-07)

#include <visp3/ustk_gui/usVTKConverter.h>

Static Public Member Functions

static void convert (const usImagePostScan3D< unsigned char > &postScanImage, vtkSmartPointer< vtkImageData > &vtkPostScanImage, vtkSmartPointer< vtkImageImport > importer=NULL)
 
static void convert (const usImagePreScan3D< unsigned char > &preScanImage, vtkSmartPointer< vtkImageData > &vtkPreScanImage, vtkSmartPointer< vtkImageImport > importer=NULL)
 
static void convert (vtkSmartPointer< vtkImageData > &vtkPostScanImage, usImagePostScan2D< unsigned char > &postScanImage)
 
static void convert (const vpHomogeneousMatrix &, vtkMatrix4x4 *)
 
static void convert (vtkMatrix4x4 *, vpHomogeneousMatrix &)
 

Detailed Description

Class to convert ustk image types to vtkImageData.

Definition at line 65 of file usVTKConverter.h.

Member Function Documentation

◆ convert() [1/5]

◆ convert() [2/5]

void usVTKConverter::convert ( const usImagePreScan3D< unsigned char > &  preScanImage,
vtkSmartPointer< vtkImageData > &  vtkPreScanImage,
vtkSmartPointer< vtkImageImport >  importer = NULL 
)
static

◆ convert() [3/5]

void usVTKConverter::convert ( const vpHomogeneousMatrix &  vispMatrix,
vtkMatrix4x4 *  vtkMatrix 
)
static

Converts a vpHomogeneousMatrix to a vtkMatrix4x4.

Definition at line 120 of file usVTKConverter.cpp.

◆ convert() [4/5]

void usVTKConverter::convert ( vtkMatrix4x4 *  vtkMatrix,
vpHomogeneousMatrix &  vispMatrix 
)
static

Converts a vtkMatrix4x4 to a vpHomogeneousMatrix.

Definition at line 130 of file usVTKConverter.cpp.

◆ convert() [5/5]

void usVTKConverter::convert ( vtkSmartPointer< vtkImageData > &  vtkPostScanImage,
usImagePostScan2D< unsigned char > &  postScanImage 
)
static

Converts a vtkImageData to a usImagePostScan2D. Usefull to extract a slice from a volume. Performs a deep copy.

Definition at line 95 of file usVTKConverter.cpp.

References usImagePostScan2D< Type >::setHeightResolution(), and usImagePostScan2D< Type >::setWidthResolution().