Re: scale3 [message #13201] |
Fri, 23 October 1998 00:00 |
David Foster
Messages: 341 Registered: January 1996
|
Senior Member |
|
|
horaciop@yahoo.com wrote:
>
> Hi, I am visualisating a 3d array using this routine:
>
> array=fltarr(64,300,300)
> read,1,array
> Shade_Volume, array, 1.5, v, p, /Low
> s = Size(data)
> Scale3, XRange=[0,s(1)], YRange=[0,s(2)], $
> ZRange=[0,s(3)]
> tv, polyshade(v,p,/t3d)
Marcus -
If this is really the code you're using, then the Scale3 routine
isn't the problem; the variable "data" is undefined so the ranges
for Scale3 will be *very* wrong. I used your code to render a
set of brain images, and it works fine (with the one minor change).
Dave
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|