[vtkusers] Error in pipeline point

Glauco glauco.silva at cenpra.gov.br
Tue Nov 22 06:22:18 EST 2005


Hi all,
I´m with a problem in the execution of my program.
An error is occuring and my program is closing and this message appears : 'python.exe error'
I´m openning a lot of images with vtkImageReader. ( about 400 slices with spaccing : (0.5,0.5,0.3) extent ( 0, 511, 0, 511, 1, 400) )
the error occurs when the pipeline is in this point :

        fator = 2
        magnify = vtkImageMagnify()
        
        magnify.AddObserver("StartEvent", lambda obj, event: ProgressBar.StartProgress("Magnify image..."))
        magnify.AddObserver("ProgressEvent", ProgressBar.UpdateProgress)
        magnify.AddObserver("EndEvent", ProgressBar.EndProgress)
        
        magnify.SetInput(reader.GetOutput())
        magnify.SetMagnificationFactors(self.fator,self.fator,1)
        magnify.SetInterpolate(1)
        magnify.Update()
                
        print magnify.GetOutput()         
                 
        imageColors = vtkImageMapToColors()
        
        imageColors.AddObserver("StartEvent", lambda obj, event: ProgressBar.StartProgress("Color image..."))
        imageColors.AddObserver("ProgressEvent", ProgressBar.UpdateProgress)
        imageColors.AddObserver("EndEvent", ProgressBar.EndProgress)

        imageColors.SetInput(magnify.GetOutput())
        imageColors.SetLookupTable(mapaLabel.ilut)
        imageColors.Update()

exactly in vtkImageMapToColors !!!
the image data in vtkImageManify that I print with magnify.GetOutput is :

        
vtkImageData (1F951F78)
  Debug: Off
  Modified Time: 16078
  Reference Count: 3
  Registered Events: (none)
  Source: 018964D8
  Release Data: Off
  Data Released: False
  Global Release Data: Off
  MaximumNumberOfPieces: -1
  PipelineMTime: 16060
  UpdateTime: 16079
  UpdateExtent: Not Initialized
  Update Number Of Pieces: 1
  Update Piece: 0
  Update Ghost Level: 0
  RequestExactExtent: Off
   UpdateExtent: 0, 511, 0, 511, 0, 399
  WholeExtent: 0, 511, 0, 511, 0, 399
  Field Data:
    Debug: Off
    Modified Time: 16067
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 0
    Number Of Components: 0
    Number Of Tuples: 0
  Locality: 0
  NumberOfConsumers: 0
  ExtentTranslator: (0195DB10)
  MaximumNumberOfPieces: -1
  Number Of Points: 104857600
  Number Of Cells: 104187279
  Cell Data:
    Debug: Off
    Modified Time: 16069
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 0
    Number Of Components: 0
    Number Of Tuples: 0
    Copy Flags: ( 1 1 1 1 1 )
    Scalars: (none)
    Vectors: (none)
    Normals: (none)
    TCoords: (none)
    Tensors: (none)
  Point Data:
    Debug: Off
    Modified Time: 16078
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 1
    Array 0 name = ImageFile
    Number Of Components: 1
    Number Of Tuples: 104857600
    Copy Flags: ( 1 1 1 1 1 )
    Scalars:       Debug: Off
      Modified Time: 16075
      Reference Count: 1
      Registered Events: (none)
      Name: ImageFile
      Number Of Components: 1
      Number Of Tuples: 104857600
      Size: 104857600
      MaxId: 104857599
      LookupTable: (none)
      Array: 51050020
    Vectors: (none)
    Normals: (none)
    TCoords: (none)
    Tensors: (none)
  Bounds:
    Xmin,Xmax: (0, 256.502)
    Ymin,Ymax: (0, 256.502)
    Zmin,Zmax: (0, 119.7)
  Compute Time: 0
  Release Data: Off
  ScalarType: 4
  NumberOfScalarComponents: 1
  Spacing: (0.501961, 0.501961, 0.3)
  Origin: (0, 0, 0)
  Dimensions: (512, 512, 400)
  Increments: (1, 512, 262144)
  Extent: (0, 511, 0, 511, 0, 399)
  WholeExtent: (0, 511, 0, 511, 0, 399)

I would like to know if the memory is a problem in this case !!?
Thanks !!!

python2.3
vtk 4.4

platform : windows 2000
memory: 512 MB
processor : AMD Athlon(tm) XP 2400+

memory usage at crash point: 1300000 KB


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20051122/400a1fbe/attachment.htm>


More information about the vtkusers mailing list