<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Spatial transformations: Defining and applying custom transforms</title>
	<atom:link href="http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/</link>
	<description>Steve Eddins manages the Image &#38; Geospatial development team at The MathWorks and coauthored Digital Image Processing Using MATLAB. He writes here about image processing concepts, algorithm implementations, and MATLAB.</description>
	<lastBuildDate>Sat, 11 Feb 2012 18:27:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/#comment-24182</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 09 May 2011 14:23:20 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=75#comment-24182</guid>
		<description>Mary&#8212;This post was about defining and applying custom tforms. What information is missing for you?</description>
		<content:encoded><![CDATA[<p>Mary&mdash;This post was about defining and applying custom tforms. What information is missing for you?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mary</title>
		<link>http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/#comment-24177</link>
		<dc:creator>mary</dc:creator>
		<pubDate>Sun, 08 May 2011 13:48:12 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=75#comment-24177</guid>
		<description>Daer Steve,
I also have a question for you which is somehow related to the topic of this post:
I am trying to implement the global axial bending tranformation for a 3D image along the Y axis. The transformation looks like the following:
X=x;
Y=-sin(theta)*(z-1/k);
Z=cos(theta)*(z-1/k);

where theta=k*y (thata changes with y). Besically I would like to applay the transformation

[0, -sin(theta),0; 0 cos(theta),0; sin(theta)/k), -cos(theta)/k), 1]

to each plane (y,z) of the 3-dimensional image. However, I eperienced that this cannot be done with

makatform(&#039;afine&#039;

but a

&#039;custom&#039;

transformaation should be defined. Do you have any idea on how to do it?</description>
		<content:encoded><![CDATA[<p>Daer Steve,<br />
I also have a question for you which is somehow related to the topic of this post:<br />
I am trying to implement the global axial bending tranformation for a 3D image along the Y axis. The transformation looks like the following:<br />
X=x;<br />
Y=-sin(theta)*(z-1/k);<br />
Z=cos(theta)*(z-1/k);</p>
<p>where theta=k*y (thata changes with y). Besically I would like to applay the transformation</p>
<p>[0, -sin(theta),0; 0 cos(theta),0; sin(theta)/k), -cos(theta)/k), 1]</p>
<p>to each plane (y,z) of the 3-dimensional image. However, I eperienced that this cannot be done with</p>
<p>makatform(&#8216;afine&#8217;</p>
<p>but a</p>
<p>&#8216;custom&#8217;</p>
<p>transformaation should be defined. Do you have any idea on how to do it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Umut</title>
		<link>http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/#comment-23532</link>
		<dc:creator>Umut</dc:creator>
		<pubDate>Sun, 26 Sep 2010 04:57:58 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=75#comment-23532</guid>
		<description>Steve - this is called: knowledge&amp;experience... 
it works ,thanks a lot...</description>
		<content:encoded><![CDATA[<p>Steve &#8211; this is called: knowledge&amp;experience&#8230;<br />
it works ,thanks a lot&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/#comment-23530</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Sun, 26 Sep 2010 00:13:28 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=75#comment-23530</guid>
		<description>Umut&#8212;Try forming the composite in the opposite order:

&lt;pre class=&quot;code&quot;&gt;
Tc = maketform(’composite’,TT2,TT1);
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Umut&mdash;Try forming the composite in the opposite order:</p>
<pre class="code">
Tc = maketform(’composite’,TT2,TT1);
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Umut</title>
		<link>http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/#comment-23529</link>
		<dc:creator>Umut</dc:creator>
		<pubDate>Sat, 25 Sep 2010 05:17:53 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=75#comment-23529</guid>
		<description>Hi Steve,
I&#039;m confused about using custom transform 3D to 2D. I&#039;m trying to extract an arbitrary single slice from being transformed 3D MR data with 3D-2D tranformation. I have 8 transformation parameters for 3D MR = 3-rotation,3-translation and 2-scale(X,Y). In order to reduce transformation time, I decided to use custom and composite (affine+custom) transform as : 


TT1 = maketform(&#039;affine&#039;, T);  % T is 4x4 matrix 
inverseFcn = @(X,t) [X repmat(t.tdata,[size(X,1) 1])];
TT2 = maketform(&#039;custom&#039;,3,2,[],inverseFcn,30);
Tc = maketform(&#039;composite&#039;,TT1,TT2);
R = makeresampler ({&#039;cubic&#039;,&#039;nearest&#039;,&#039;nearest&#039;}, &#039;fill&#039;);
TDIMS_A = [1 2 3];
TDIMS_B = [1 2];
TSIZE_B = [round(size(Vol,1)*scx) round(size(Vol,2)*scy)];
TMAP_B = [];
F = 0;
imT = tformarray(Vol, Tc, R, TDIMS_A, TDIMS_B, TSIZE_B, TMAP_B, F);

I get an error : 
&quot;
Error using ==&gt; maketform&gt;composite at 540
Input TFORM objects have inconsistent dimensions.&quot;

finally, I would be thankful if you could share some suggestions to overcome this inconsistency...</description>
		<content:encoded><![CDATA[<p>Hi Steve,<br />
I&#8217;m confused about using custom transform 3D to 2D. I&#8217;m trying to extract an arbitrary single slice from being transformed 3D MR data with 3D-2D tranformation. I have 8 transformation parameters for 3D MR = 3-rotation,3-translation and 2-scale(X,Y). In order to reduce transformation time, I decided to use custom and composite (affine+custom) transform as : </p>
<p>TT1 = maketform(&#8216;affine&#8217;, T);  % T is 4&#215;4 matrix<br />
inverseFcn = @(X,t) [X repmat(t.tdata,[size(X,1) 1])];<br />
TT2 = maketform(&#8216;custom&#8217;,3,2,[],inverseFcn,30);<br />
Tc = maketform(&#8216;composite&#8217;,TT1,TT2);<br />
R = makeresampler ({&#8216;cubic&#8217;,'nearest&#8217;,'nearest&#8217;}, &#8216;fill&#8217;);<br />
TDIMS_A = [1 2 3];<br />
TDIMS_B = [1 2];<br />
TSIZE_B = [round(size(Vol,1)*scx) round(size(Vol,2)*scy)];<br />
TMAP_B = [];<br />
F = 0;<br />
imT = tformarray(Vol, Tc, R, TDIMS_A, TDIMS_B, TSIZE_B, TMAP_B, F);</p>
<p>I get an error :<br />
&#8220;<br />
Error using ==&gt; maketform&gt;composite at 540<br />
Input TFORM objects have inconsistent dimensions.&#8221;</p>
<p>finally, I would be thankful if you could share some suggestions to overcome this inconsistency&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ftft</title>
		<link>http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/#comment-23206</link>
		<dc:creator>ftft</dc:creator>
		<pubDate>Sun, 20 Jun 2010 08:24:23 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=75#comment-23206</guid>
		<description>hello 
i am doing image registration, but when I applied an affine transformation on  image, and after applied an inverse transformation the transformed image not  returne to original image</description>
		<content:encoded><![CDATA[<p>hello<br />
i am doing image registration, but when I applied an affine transformation on  image, and after applied an inverse transformation the transformed image not  returne to original image</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/#comment-23204</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 18 Jun 2010 19:11:07 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=75#comment-23204</guid>
		<description>RZ&#8212;Sure. Rotation and translation are both affine transformations, and the composition of two affine transformations is also affine. So take a T1 matrix that&#039;s a rotation matrix, a T2 matrix that&#039;s a translation matrix, and multiply them.</description>
		<content:encoded><![CDATA[<p>RZ&mdash;Sure. Rotation and translation are both affine transformations, and the composition of two affine transformations is also affine. So take a T1 matrix that&#8217;s a rotation matrix, a T2 matrix that&#8217;s a translation matrix, and multiply them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RZ</title>
		<link>http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/#comment-23203</link>
		<dc:creator>RZ</dc:creator>
		<pubDate>Fri, 18 Jun 2010 19:06:19 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=75#comment-23203</guid>
		<description>Hi Steve,

Is there a way to do a transform with only rotation and translation but not scaling? 

Thanks</description>
		<content:encoded><![CDATA[<p>Hi Steve,</p>
<p>Is there a way to do a transform with only rotation and translation but not scaling? </p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shre</title>
		<link>http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/#comment-22954</link>
		<dc:creator>Shre</dc:creator>
		<pubDate>Mon, 05 Apr 2010 20:02:43 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=75#comment-22954</guid>
		<description>Hi Steve,

Im working on a facial aging project. I just commented about the same on another post of yours. I realize that this post shows some of those geometrical changes that Im looking out for. so could you please help me out n it. If you check out the before/after photos in the paper (link below) u&#039;ll get an idea of what i want....i wanted to avoid using RBF etc..I had to complete this in 3-4 days..Its extremely urgent. Please help!

heres the link to the paper im trying to implement

http://www.dca.fee.unicamp.br/~leopini/private/pubs/Greyce-2007WesternNYImageProcessingWorksop.pdf</description>
		<content:encoded><![CDATA[<p>Hi Steve,</p>
<p>Im working on a facial aging project. I just commented about the same on another post of yours. I realize that this post shows some of those geometrical changes that Im looking out for. so could you please help me out n it. If you check out the before/after photos in the paper (link below) u&#8217;ll get an idea of what i want&#8230;.i wanted to avoid using RBF etc..I had to complete this in 3-4 days..Its extremely urgent. Please help!</p>
<p>heres the link to the paper im trying to implement</p>
<p><a href="http://www.dca.fee.unicamp.br/~leopini/private/pubs/Greyce-2007WesternNYImageProcessingWorksop.pdf" rel="nofollow">http://www.dca.fee.unicamp.br/~leopini/private/pubs/Greyce-2007WesternNYImageProcessingWorksop.pdf</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/#comment-22233</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 19 Oct 2009 19:27:15 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=75#comment-22233</guid>
		<description>Douglas&#8212;I don&#039;t know what you mean by &quot;extract the data point from the deformation grid.&quot;  Can you be more specific?</description>
		<content:encoded><![CDATA[<p>Douglas&mdash;I don&#8217;t know what you mean by &#8220;extract the data point from the deformation grid.&#8221;  Can you be more specific?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

