comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: 3D projection rotation
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: 3D projection rotation [message #14232] Mon, 08 February 1999 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Dave Brennan (9147261b@clinmed.gla.ac.uk) writes:

> I am currently trying to produce rotating maximum intensity projections
> using the voxel_proj command.
> To do this I am using scale3 to produce the !P.T transform matrix, i.e.
>
> for j=0,35 do begin
> xrot = (j-9)*10
>
> scale3,xrange=[0,sizematx*scalex],yrange=[0,sizematy*scaley] ,zrange=[0,slicemat*scalez],ax=xrot
>
> img=voxel_proj(imagebyt,/maximum_intensity)
> array(*,*,j) = img
> print,j
> endfor
>
> (scalex etc are the sizes of the voxels in the corresponding directions)
>
> This produces data which can be viewed in xinteranimate producing a
> rotating MIP.
>
> However, I wish to increase the size of the rotating MIP, to say twice
> it's original size, is there a simple way of accomplishing this, with
> the minimum of computing time? I am sure I am missing a simple solution.

Some of the relevant code is missing here, but I think
the simplest solution is to just increase the size of
the XInteranimate window by a factor of two. :-)

XInterAnimate, Set=[currentX*2, currentY*2, frames], /Showload

Be sure this is done *before* you calculate the Scale3
values, since it will use the size of the current display
window in its calculations.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155

[Note: This follow-up was e-mailed to the cited author.]
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: oplot - error in plotting to Z buffer only
Next Topic: plot a graphic with error bars for every point plotted

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:39:13 PDT 2025

Total time taken to generate the page: 0.00452 seconds