[vtkusers] Problem of ScalarType after using vtkImageMathematics

Aldredo Gourbish the.answer3 at libertysurf.fr
Wed Aug 22 12:49:59 EDT 2007


Hi everybody !

I've got a problem after using vtkImageMathematics in order to subtract 2 vtk volumes.
In fact, the result is quiet good when I render it with vtkOpenGLVolumeTextureMapper3D which supports short ScalarType.
But when I render the result with vtkOpenGLVolumeTextureMapper2D, it is bad since this mapper only supports UnsignedShort or UnsignedChar ScalarType, and the volume is all white.
I saw that in fact the ScalarRange of the vtkImageMathematics result is (-15, 35), so I think there is a problem of ScalarRange for vtkOpenGLVolumeTextureMapper2D. I tried to use a vtkImageCast in order to cast the ScalarType to UnsignedShort but there is always the problem.

I hope you understand my problem, and somebody has an idea. I spend a long time searching a solution but with no results !

Thanks in advance,

Alfredo.

------------------------ ALICE C'EST ENCORE MIEUX AVEC CANAL+ LE BOUQUET ! ---------------
Découvrez vite l'offre exclusive ALICEBOX et CANAL+ LE BOUQUET, en cliquant ici http://alicebox.fr
Soumis à conditions.





More information about the vtkusers mailing list