[vtkusers] class vtkImageImport, strange problem??

Chunyan Jiang jiang at TI.FhG.DE
Mon Dec 16 09:20:39 EST 2002


I'm sorry to send the same email again. In the last mail, I attached one
picture. Maybe it is too big. And it can not pass the vtk's list moderator.
This time I attach the smaller picture.


Dear vtk users,
I meet one strange problem of class vtkImageImport. I use this class in two
applications as the same method. However, it works in one application, in
the other, it doesn't work. The error comes from the function
SetWholeExtent. Then I debug these two application and find that there are
some parameters are not same as initialization. They are compared in the
following:

Available case:
---------------------------------------------
	vtkImageImport *importer = vtkImageImport::New();

importer->SetWholeExtent(0,dimensions[0]-1,0,dimensions[1]-1,0,dimensions[2]
-1);

the parameters after "New()" are:
SaveUserArray:0
NumberOfScalarComponents:1
DataScalarType:4
BufferPointerCallback:0x00000000
---------------------------------------------

Unavailable case:
---------------------------------------------
	vtkImageImport *importer = vtkImageImport::New();

importer->SetWholeExtent(0,dimensions[0]-1,0,dimensions[1]-1,0,dimensions[2]
-1);

the parameters after "New()" are:
SaveUserArray:1
NumberOfScalarComponents:4
DataScalarType:0
BufferPointerCallback:0xbaadf00d
--------------------------------------------

The other parameters are same. And the error message is in the attachment.

How can I solve this problem? It is urgent!!
Thank you very much!


Chunyan

***********************************************************************
Chunyan Jiang, Dipl.-Inform.,
Institut for Telematic
Bahnhofstrasse 30-32, D-54292 Trier, Germany
Phone: (+49) (0)651-97551-34
Fax: (+49) (0)651-97551-12
***********************************************************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ErrorMessage.jpg
Type: image/jpeg
Size: 23215 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20021216/64afec2b/attachment.jpg>


More information about the vtkusers mailing list