#NEWLINE# def compute( self ) : #NEWLINE# #INDENT# dim = self . get_input ( 'Dimension' ) #NEWLINE# pType = self . get_input ( 'Input PixelType' ) #NEWLINE# iType = itk . Image [ ( itk . pType , dim ) ] #NEWLINE# self . vtkExport_ = itk . VTKImageExport [ iType ] . New ( ) #NEWLINE# im = self . get_input ( 'Input Image' ) #NEWLINE# self . vtkExport_ . SetInput ( dim ) #NEWLINE# self . vtkExport_ . Update ( ) #NEWLINE# self . set_output ( 'VTK Output' , self . vtkExport_ . GetOutput ( ) )