<!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.1528" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial>Hi all,<BR>I´m with a problem in the execution of my
program.<BR>An error is occuring and my program is closing and this message
appears : 'python.exe error'<BR>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) )<BR>the error occurs when the pipeline is in this point
:<BR><BR> fator =
2<BR> 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)<BR><BR>
imageColors.SetInput(magnify.GetOutput())<BR>
imageColors.SetLookupTable(mapaLabel.ilut)<BR>
imageColors.Update()<BR><BR>exactly in vtkImageMapToColors !!!<BR>the image data
in vtkImageManify that I print with magnify.GetOutput is
:<BR><BR> <BR>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)<BR><BR>I would like to know
if the memory is a problem in this case !!?<BR>Thanks
!!!<BR><BR>python2.3<BR>vtk 4.4<BR><BR>platform : windows 2000<BR>memory: 512
MB<BR>processor : AMD Athlon(tm) XP 2400+<BR><BR>memory usage at crash point:
1300000 KB<BR><BR></FONT></DIV></BODY></HTML>