/[escript]/trunk/pyvisi/py_src/imagereader.py
ViewVC logotype

Diff of /trunk/pyvisi/py_src/imagereader.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1028 by jongui, Thu Feb 1 07:23:34 2007 UTC revision 1029 by jongui, Wed Mar 14 05:01:13 2007 UTC
# Line 7  from constant import ImageFormat Line 7  from constant import ImageFormat
7    
8  class ImageReader:  class ImageReader:
9      """      """
10      Class that defines an image reader.      Class that defines an image reader. An image reader is used to read
11        data from an image in a variety of formats.
12      """      """
13    
14      def __init__(self, format):      def __init__(self, format):
# Line 41  class ImageReader: Line 42  class ImageReader:
42          elif(self.__format == ImageFormat.TIF):          elif(self.__format == ImageFormat.TIF):
43              return vtk.vtkTIFFReader()              return vtk.vtkTIFFReader()
44    
45      def setFileName(self, file_name):      def setImageName(self, image_name):
46          """          """
47          Set the image file name to be read.          Set the image file name to be read.
48    
49          @type file_name: String          @type image_name: String
50          @param file_name: Image file name from which data is to be read          @param image_name: Image name from which data is to be read
51          """          """
52    
53          self.__vtk_image_reader.SetFileName(file_name)          self.__vtk_image_reader.SetFileName(image_name)
54    
55      def _getOutput(self):      def _getOutput(self):
56          """          """
57          Return the output of hte image reader.          Return the output of the image reader.
58    
59          @rtype: vtkImageData          @rtype: vtkImageData
60          @return: Image Data          @return: Image Data

Legend:
Removed from v.1028  
changed lines
  Added in v.1029

  ViewVC Help
Powered by ViewVC 1.1.26