Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!news.glorb.com!postnews.google.com!h20g2000yqn.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: image processing
Date: Sat, 7 Feb 2009 14:48:48 -0800 (PST)
Organization: http://groups.google.com
Lines: 24
Message-ID: <980f739a-b554-455a-8b2d-6d56c67c98e7@h20g2000yqn.googlegroups.com>
References: <gmkfio$ghj$1@fred.mathworks.com>
NNTP-Posting-Host: 75.186.70.56
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1234046929 10347 127.0.0.1 (7 Feb 2009 22:48:49 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 7 Feb 2009 22:48:49 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: h20g2000yqn.googlegroups.com; posting-host=75.186.70.56; 
	posting-account=0rLUzAkAAABojYSRC64DkTbtiSCX77HH
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET 
	CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 
	3.5.21022),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:516863


On Feb 7, 12:15=A0pm, "Peter Schreiber" <schreiber.pete...@gmail.com>
wrote:
> Hi guys,
> Is there any way to load pictures (any format would be okay, but high res=
olution) into matlab and rotate them in a 3d cartesian coordinate system? I=
 have to make a 3d picutere, consisting of slices at different focal positi=
ons, =A0where on each slice the intensity of the beam is shown.
>
> Best Regards,
> Peter

------------------------------------------------------------------
Peter:
imrotate only rotates in 2D, so that won't help.  imtransform() could
probably give you a 2D image of a projection of an image rotated in 3D
(in which case the 2D projection would look like it has a perspective
(vanishing point) in addition to the rotation.)  You might try
tformarray() which can apply a transform to an N-D array.  You may
have to load your 2D pictures into a 3D volume image array first
though (use the cat() function).  I can't help you beyond that, as I
haven't used tformarray, so just try to understand the help and
examples for it.  These all require the image processing toolbox.
Good luck,
ImageAnalyst