#NEWLINE# def writeImage( self , imageName , outFile ) : #NEWLINE# #INDENT# writer = vtk . vtkPNGWriter ( ) #NEWLINE# writer . SetInput ( self . images [ writer ] ) #NEWLINE# writer . SetFileName ( outFile ) #NEWLINE# writer . Write ( )