<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1522" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi all,</FONT></DIV>
<DIV><FONT face=Arial size=2>I´m with a problem in the execution of my
program.</FONT></DIV>
<DIV><FONT face=Arial size=2>An error is occuring and my program is
closing and this message appears : 'python.exe error'</FONT></DIV>
<DIV><FONT face=Arial size=2>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)
)</FONT></DIV>
<DIV><FONT face=Arial size=2>the error occurs when the pipeline is in this point
:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> fator =
2</FONT></DIV>
<DIV><FONT face=Arial size=2> magnify =
vtkImageMagnify()<BR>
<BR> magnify.AddObserver("StartEvent",
lambda obj, event: ProgressBar.StartProgress("Magnify
image..."))<BR>
magnify.AddObserver("ProgressEvent",
ProgressBar.UpdateProgress)<BR>
magnify.AddObserver("EndEvent",
ProgressBar.EndProgress)<BR>
<BR>
magnify.SetInput(reader.GetOutput())<BR>
magnify.SetMagnificationFactors(self.fator,self.fator,1)<BR>
magnify.SetInterpolate(1)<BR> magnify.Update()<BR> <BR>
print
magnify.GetOutput() <BR> <BR>
imageColors =
vtkImageMapToColors()<BR>
<BR>
imageColors.AddObserver("StartEvent", lambda obj, event:
ProgressBar.StartProgress("Color
image..."))<BR>
imageColors.AddObserver("ProgressEvent",
ProgressBar.UpdateProgress)<BR>
imageColors.AddObserver("EndEvent", ProgressBar.EndProgress)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>
imageColors.SetInput(magnify.GetOutput())<BR>
imageColors.SetLookupTable(mapaLabel.ilut)<BR>
imageColors.Update()</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>exactly in vtkImageMapToColors !!!</FONT></DIV>
<DIV><FONT face=Arial size=2>the image data in vtkImageManify that I print with
magnify.GetOutput is :</FONT></DIV>
<DIV><FONT face=Arial size=2><BR>
</FONT></DIV>
<DIV><FONT face=Arial size=2>vtkImageData (1F951F78)<BR> Debug:
Off<BR> Modified Time: 16078<BR> Reference Count: 3<BR>
Registered Events: (none)<BR> Source: 018964D8<BR> Release Data:
Off<BR> Data Released: False<BR> Global Release Data: Off<BR>
MaximumNumberOfPieces: -1<BR> PipelineMTime: 16060<BR> UpdateTime:
16079<BR> UpdateExtent: Not Initialized<BR> Update Number Of Pieces:
1<BR> Update Piece: 0<BR> Update Ghost Level: 0<BR>
RequestExactExtent: Off<BR> UpdateExtent: 0, 511, 0, 511, 0,
399<BR> WholeExtent: 0, 511, 0, 511, 0, 399<BR> Field
Data:<BR> Debug: Off<BR> Modified Time:
16067<BR> Reference Count: 1<BR> Registered
Events: (none)<BR> Number Of Arrays: 0<BR>
Number Of Components: 0<BR> Number Of Tuples: 0<BR>
Locality: 0<BR> NumberOfConsumers: 0<BR> ExtentTranslator:
(0195DB10)<BR> MaximumNumberOfPieces: -1<BR> Number Of Points:
104857600<BR> Number Of Cells: 104187279<BR> Cell
Data:<BR> Debug: Off<BR> Modified Time:
16069<BR> Reference Count: 1<BR> Registered
Events: (none)<BR> Number Of Arrays: 0<BR>
Number Of Components: 0<BR> Number Of Tuples:
0<BR> Copy Flags: ( 1 1 1 1 1 )<BR> Scalars:
(none)<BR> Vectors: (none)<BR> Normals:
(none)<BR> TCoords: (none)<BR> Tensors:
(none)<BR> Point Data:<BR> Debug:
Off<BR> Modified Time: 16078<BR> Reference
Count: 1<BR> Registered Events: (none)<BR>
Number Of Arrays: 1<BR> Array 0 name =
ImageFile<BR> Number Of Components: 1<BR>
Number Of Tuples: 104857600<BR> Copy Flags: ( 1 1 1 1 1
)<BR> Scalars: Debug:
Off<BR> Modified Time:
16075<BR> Reference Count:
1<BR> Registered Events:
(none)<BR> Name:
ImageFile<BR> Number Of Components:
1<BR> Number Of Tuples:
104857600<BR> Size:
104857600<BR> MaxId:
104857599<BR> LookupTable:
(none)<BR> Array: 51050020<BR>
Vectors: (none)<BR> Normals: (none)<BR>
TCoords: (none)<BR> Tensors: (none)<BR>
Bounds:<BR> Xmin,Xmax: (0, 256.502)<BR>
Ymin,Ymax: (0, 256.502)<BR> Zmin,Zmax: (0, 119.7)<BR>
Compute Time: 0<BR> Release Data: Off<BR> ScalarType: 4<BR>
NumberOfScalarComponents: 1<BR> Spacing: (0.501961, 0.501961,
0.3)<BR> Origin: (0, 0, 0)<BR> Dimensions: (512, 512, 400)<BR>
Increments: (1, 512, 262144)<BR> Extent: (0, 511, 0, 511, 0,
399)<BR> WholeExtent: (0, 511, 0, 511, 0, 399)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I would like to know if the memory is a problem in
this case !!?</FONT></DIV>
<DIV><FONT face=Arial size=2>Thanks !!!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>python2.3</FONT></DIV>
<DIV><FONT face=Arial size=2>vtk 4.4</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>platform : windows 2000</FONT></DIV>
<DIV><FONT face=Arial size=2>memory: 512 MB</FONT></DIV>
<DIV><FONT face=Arial size=2>processor : AMD Athlon(tm) XP 2400+</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>memory usage at crash point: 1300000
KB</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>