Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Regarding affine transormation using maketform
Date: Wed, 07 Jan 2009 07:27:17 -0500
Organization: The MathWorks, Inc.
Lines: 24
Message-ID: <gk2735$qkf$1@fred.mathworks.com>
References: <gk0ime$8f1$1@fred.mathworks.com>
NNTP-Posting-Host: eddinss-lt.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1231331237 27279 172.31.57.98 (7 Jan 2009 12:27:17 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 7 Jan 2009 12:27:17 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
In-Reply-To: <HIDDEN>
Xref: news.mathworks.com comp.soft-sys.matlab:510207

Gautam wrote:
> Hello,
> 
> I am trying to write MATLAB code to rotate a point in 3-space about an
> arbitrary axis. I have based my code on this article -
> http://local.wasp.uwa.edu.au/~pbourke/geometry/rotate/. The problem I am
> facing is that the maketform function expects the last column to
> comprise of all 0's except the last element in the last row which has to
> be a 1 for affine transformation. However, my composite transformation
> matrix does not adhere to this requirement. I am not sure I understand
> why the maketform function expects the last column to comprise of all 0s
> for an affine transformation. Any information on how to get around this
> problem would be appreciated.
> 
> - Gautam.

In the article at the link you provided, the transform matrices are 
transposed from the convention used by the Image Processing Toolbox. 
Notice in that article that the bottom row is all 0s except the last 
element, which is 1.

---
Steve Eddins
http://blogs.mathworks.com/steve/