[vtkusers] vtkImageNormalize()

Mathieu Malaterre mmalat at irus.rri.ca
Wed May 1 16:11:41 EDT 2002


Hi all,
  I am using vtkImageNormalize class. But then I want to save my image
to a file. I get the error message:
ERROR: In /shalom/data/mmalat/VTK_cvs/IO/vtkBMPWriter.cxx, line 110
vtkBMPWriter (0x8268700): PNMWriter only accepts unsigned char scalars!

So I tried vtkImageCast and then SetOutputScalarTypeToUnsignedChar().
But that doesn't work (the image is black, every pixels is 0). Does
anyone has any idea.
I also tried vtkImageMathematics and multiply but an arbitrary number
but I am not sure of what I'm doing.

Thanks a lot
mathieu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mmalat.vcf
Type: text/x-vcard
Size: 392 bytes
Desc: Card for Mathieu Malaterre
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020501/2a03aa7c/attachment.vcf>


More information about the vtkusers mailing list