<x-html>
<html>
The image viewer ignores the spacing, and displays in pixel coordinates.
(Texture mapping might too.) You will need to use vtkImageResample
to get the spacing (1,1,1) that will produce the correct aspect
ratio.<br>
<br>
Charles.<br>
<br>
At 02:05 AM 12/6/99 -0500, you wrote:<br>
<blockquote type=cite cite> <br>
In drawing images whose pixel dimensions are not necessarily unity, will
setting the spacing using <br>
SetSpacing (of vtkStructuredPoints) ensure the image will be drawn at the
correct aspect ratio? I have been <br>
trying to do that but the images are distorted. For instance, <br>
<br>
image->SetDimensions (256,70) <br>
image->SetSpacing (0.78,1.5) <br>
<br>
I am hoping to see an image of size 200 (256*0.78) by 105 (70*1.5).
<br>
<br>
Am I doing something wrong above. The images seem squished in the Y
direction. <br>
<br>
Thanks. <br>
<br>
-- krs <br>
<pre>--
K.R.Subramanian
Phone: (704) 547-4872
Department of Computer
Science
FAX: (704) 547-3516
UNC
Charlotte
Email: krs@cs.uncc.edu
9201 Univ. City
Blvd.
WWW:
<a href="http://www.cs.uncc.edu/~krs">http://www.cs.uncc.edu/~krs</a>
Charlotte, NC 28223-0001</pre>
</blockquote></html>
-----------------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo@gsao.med.ge.com>. For help, send message body containing
"info vtkusers" to the same address. Live long and prosper.
-----------------------------------------------------------------------------
</x-html>