[vtkusers] Re: How to color eigenvectors
YaoHaofeng
hfyao1983 at hotmail.com
Tue Mar 6 12:27:59 EST 2007
Hi,I can now save the JPEG file, thanks for your advice.But now I have another problem, my vector data is in 3D space, the value is between -2 to 2, so I stored them into a float array of 3 components, and rescale all value to 0 to 256 to represent RGB information. But the saved JPEG file is purely black, can somebody help me on this?ThanksHank > To: vtkusers at public.kitware.com> From: wollez at gmx.net> Date: Mon, 5 Mar 2007 00:05:57 +0100> CC: > Subject: [vtkusers] Re: How to color eigenvectors> > YaoHaofeng schrieb:> > I have a set of vectors and I want to color code them according to their > > orientation, e.g. component on x-axis can be colored red, on y-axis > > coded green etc. And I want to save the results to a image as well as > > show it on the screen, now I can correctly save it as .vtk format but > > not other image formats, can anybody tell me how to save as image > > formats such as JPEG? I tried vtkJPEGWriter but because my vectors are > > double type it gives me an error cannot save double into JPEG.> > > > thanks> > > > ------------------------------------------------------------------------> > 使用下一代的 MSN Messenger。 立即尝试! > > <http://imagine-msn.com/messenger/launch80/default.aspx?locale=zh-cn&source=wlmailtagline>> > > > > > ------------------------------------------------------------------------> > > > _______________________________________________> > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ> > Follow this link to subscribe/unsubscribe:> > http://www.vtk.org/mailman/listinfo/vtkusers> > > You can try vtkImageCast to convert your data to unsignd char what the> jpeg writer needs as input.> > Regards> Wolfgang> > > _______________________________________________> This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ> Follow this link to subscribe/unsubscribe:> http://www.vtk.org/mailman/listinfo/vtkusers
_________________________________________________________________
探索 Windows Vista 的世界
http://search.live.com/results.aspx?q=windows+vista&mkt=zh-cn&FORM=LIVSOP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070306/a8e256a5/attachment.htm>
More information about the vtkusers
mailing list