[vtkusers] Problem vtkImageMapToColors and vtkImageBlend

Paulo Henrique Junqueira Amorim paulojamorim at gmail.com
Mon Nov 10 13:31:37 EST 2008


Hi!

I've build a pipeline using vtkImageMapToColors and vtkImageBlend and it
works fine. However, when a large vtkImageData [such as 3] is used as input
and "Update()" is called in one of these classes, my application is
interrupted.

This problem occurs only under Windows (tested under XP Professional SP).
The same pipeline and input worked under Linux (Ubuntu and Fedora) and Mac
OS X (Leopard).

I'm using VTK 5.2 and I've written the code both in Python and C++. In the
first case the error message was [1] . In the second case, the error message
was [2].

Is there a way of processing parallely these filters? I need to load and
manipulate all this data at the same time.

Thanks!

Paulo
*
*[1] -
Window with:

Unhandled exception
An unhandled exception occured. Press "Abort" to terminate the program,
"Retry" to exit the program normally and "Ignory" to try to continue.

[2] -
ERROR: In c:\temp\wrapper\vtk\vtk-5.2.0\
common\vtkDataArrayTemplate.txx, line 137
vtkUnsignedCharArray (02118E20): Unable to allocate 315621376 elements of
size 1 bytes.

ERROR: In ..\..\Filtering\vtkImageData.cxx, line 2117
vtkImageData (02116C10): Coordinate (0, 0, 0) out side of array (max = -1

[3]  -
vtkImageData (053978D8)
  Debug: Off
  Modified Time: 223689
  Reference Count: 3
  Registered Events: (none)
  Source: (none)
  Information: 05387508
  Data Released: False
  Global Release Data: Off
  UpdateTime: 223298
  Release Data: Off
  UpdateExtent: Not Initialized
  UpdateExtent: 0, 511, 0, 511, 0, 399
  WholeExtent: 0, 511, 0, 511, 0, 399
  ExtentTranslator: (053969D8)
  RequestExactExtent: Off
   Field Data:
    Debug: Off
    Modified Time: 223256
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 0
    Number Of Components: 0
    Number Of Tuples: 0
  Number Of Points: 104857600
  Number Of Cells: 104187279
  Cell Data:
    Debug: Off
    Modified Time: 223243
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 0
    Number Of Components: 0
    Number Of Tuples: 0
    Copy Tuple Flags: ( 1 1 1 1 1 0 1 )
    Interpolate Flags: ( 1 1 1 1 1 0 0 )
    Pass Through Flags: ( 1 1 1 1 1 1 1 )
    Scalars: (none)
    Vectors: (none)
    Normals: (none)
    TCoords: (none)
    Tensors: (none)
    GlobalIds: (none)
    PedigreeIds: (none)
  Point Data:
    Debug: Off
    Modified Time: 223689
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 1
    Array 0 name = GDCMImage
    Number Of Components: 1
    Number Of Tuples: 104857600
    Copy Tuple Flags: ( 1 1 1 1 1 0 1 )
    Interpolate Flags: ( 1 1 1 1 1 0 0 )
    Pass Through Flags: ( 1 1 1 1 1 1 1 )
    Scalars:
      Debug: Off
      Modified Time: 223689
      Reference Count: 1
      Registered Events: (none)
      Name: GDCMImage
      Data type: short
      Size: 104857600
      MaxId: 104857599
      NumberOfComponents: 1
      Information: 0538FDF8
        Debug: Off
        Modified Time: 223691
        Reference Count: 1
        Registered Events: (none)
        PER_COMPONENT: vtkInformationVector(05396EB0)
      Name: GDCMImage
      Number Of Components: 1
      Number Of Tuples: 104857600
      Size: 104857600
      MaxId: 104857599
      LookupTable: (none)
      Array: 1E210020
    Vectors: (none)
    Normals: (none)
    TCoords: (none)
    Tensors: (none)
    GlobalIds: (none)
    PedigreeIds: (none)
  Bounds:
    Xmin,Xmax: (-107.5, 148)
    Ymin,Ymax: (111.125, 366.625)
    Zmin,Zmax: (1760, 1880.1)
  Compute Time: 0
  ScalarType: 4
  NumberOfScalarComponents: 1
  Spacing: (0.5, 0.5, 0.301)
  Origin: (-107.5, 111.125, 1760)
  Dimensions: (512, 512, 400)
  Increments: (1, 512, 262144)
  Extent: (0, 511, 0, 511, 0, 399)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081110/e59ce14a/attachment.htm>


More information about the vtkusers mailing list