<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Spatial transformations: Defining and applying custom transforms</title>
	<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 &#60;a href="http://www.mathworks.com/"&#62;The MathWorks&#60;/a&#62; and coauthored &#60;a href="http://www.mathworks.com/support/books/book5291.html?category=-1&#38;language=-1"&#62;Digital Image Processing Using MATLAB&#60;/a&#62;. He writes here about image processing concepts, algorithm implementations, and MATLAB.&#60;br&#62;&#60;br&#62;&#60;img&#62;</description>
	<pubDate>Mon, 23 Nov 2009 00:57:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<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>http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/#comment-22233</guid>
		<description>Douglas&#8212;I don't know what you mean by "extract the data point from the deformation grid."  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>
	<item>
		<title>By: douglas</title>
		<link>http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/#comment-22213</link>
		<dc:creator>douglas</dc:creator>
		<pubDate>Sun, 11 Oct 2009 08:12:36 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/#comment-22213</guid>
		<description>Dear Steve, 
thx for your answer. I can use the imtransform now. However, I have no idea on how to extract the data point from the deformation grid. Could you help?
</description>
		<content:encoded><![CDATA[<p>Dear Steve,<br />
thx for your answer. I can use the imtransform now. However, I have no idea on how to extract the data point from the deformation grid. Could you help?</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-22117</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 15 Sep 2009 12:16:19 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/#comment-22117</guid>
		<description>Douglas&#8212;Yes. This post shows how to do that using &lt;tt&gt;imtransform&lt;/tt&gt;. Or did I misunderstand your question?</description>
		<content:encoded><![CDATA[<p>Douglas&mdash;Yes. This post shows how to do that using <tt>imtransform</tt>. Or did I misunderstand your question?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: douglas</title>
		<link>http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/#comment-22116</link>
		<dc:creator>douglas</dc:creator>
		<pubDate>Tue, 15 Sep 2009 12:00:50 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/#comment-22116</guid>
		<description>&lt;pre&gt;

Can we apply the deformation grid to an image?

&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<pre>

Can we apply the deformation grid to an image?
</pre>
]]></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-21193</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 29 Oct 2008 22:36:25 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/#comment-21193</guid>
		<description>Shiva&#8212;If you look at the various blogs posts in the &lt;a href="http://blogs.mathworks.com/steve/category/spatial-transforms/" rel="nofollow"&gt;spatial transforms&lt;/a&gt; category, you'll find some descriptions of how they work.  The Image Processing Toolbox functions &lt;tt&gt;imtransform&lt;/tt&gt; and &lt;tt&gt;maketform&lt;/tt&gt; use &lt;em&gt;inverse mapping&lt;/em&gt;, which is described in the posts.

Whether it is linear depends on whether you are talking about the warping function, or the process of warping an image.  Image warping is linear, meaning that warping the image (aF + bG) is the same as a*warp_of_F + b*warp_of_G.</description>
		<content:encoded><![CDATA[<p>Shiva&mdash;If you look at the various blogs posts in the <a href="http://blogs.mathworks.com/steve/category/spatial-transforms/" rel="nofollow">spatial transforms</a> category, you&#8217;ll find some descriptions of how they work.  The Image Processing Toolbox functions <tt>imtransform</tt> and <tt>maketform</tt> use <em>inverse mapping</em>, which is described in the posts.</p>
<p>Whether it is linear depends on whether you are talking about the warping function, or the process of warping an image.  Image warping is linear, meaning that warping the image (aF + bG) is the same as a*warp_of_F + b*warp_of_G.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shiva</title>
		<link>http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/#comment-21105</link>
		<dc:creator>Shiva</dc:creator>
		<pubDate>Fri, 26 Sep 2008 02:03:31 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/#comment-21105</guid>
		<description>Hello Steve,

I am working on a project where I need to simulate non-linear deformations in the images. Since these are MR images, the deformations can't be as severe as the examples given above. Currently, I am using the following code to create the deformations.

a = 0.95; b = 1.05;
Tform_values = a + ((b-a) * rand(1,30));
for i = 1:30
    f = @(x) ((x(:,:).^Tform_values(i)));
    g = @(x, unused) f(x);
    tform3 = maketform('custom', 2, 2, [], g, []);
    img_stack_Tformed(:,:,i) = imtransform(img_stack_org(:,:,i),tform3,'size',size(img_stack_org(:,:,i)));
end

What I am not able to understand is how it the spatial transformation created using the function f given below. I am not sure whether the created transform is non-linear. Any information regarding this will be really helpful.

Thanks,

Shiva</description>
		<content:encoded><![CDATA[<p>Hello Steve,</p>
<p>I am working on a project where I need to simulate non-linear deformations in the images. Since these are MR images, the deformations can&#8217;t be as severe as the examples given above. Currently, I am using the following code to create the deformations.</p>
<p>a = 0.95; b = 1.05;<br />
Tform_values = a + ((b-a) * rand(1,30));<br />
for i = 1:30<br />
    f = @(x) ((x(:,:).^Tform_values(i)));<br />
    g = @(x, unused) f(x);<br />
    tform3 = maketform(&#8217;custom&#8217;, 2, 2, [], g, []);<br />
    img_stack_Tformed(:,:,i) = imtransform(img_stack_org(:,:,i),tform3,&#8217;size&#8217;,size(img_stack_org(:,:,i)));<br />
end</p>
<p>What I am not able to understand is how it the spatial transformation created using the function f given below. I am not sure whether the created transform is non-linear. Any information regarding this will be really helpful.</p>
<p>Thanks,</p>
<p>Shiva</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-20605</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 16 Apr 2008 17:50:37 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/#comment-20605</guid>
		<description>Tim&#8212;You could try something like this:

&lt;pre&gt;
r = @(x) hypot(x(:,1), x(:,2))
theta = @(x) atan2(x(:,2), x(:,1))
f = @(x) [r(x) .* cos(theta(x) + r(x)/3), ...
    r(x) .* sin(theta(x) + r(x)/3)];
g = @(x, unused) f(x);
&lt;/pre&gt;

and then form a custom tform as shown in this post.</description>
		<content:encoded><![CDATA[<p>Tim&mdash;You could try something like this:</p>
<pre>
r = @(x) hypot(x(:,1), x(:,2))
theta = @(x) atan2(x(:,2), x(:,1))
f = @(x) [r(x) .* cos(theta(x) + r(x)/3), ...
    r(x) .* sin(theta(x) + r(x)/3)];
g = @(x, unused) f(x);
</pre>
<p>and then form a custom tform as shown in this post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/#comment-20572</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Tue, 08 Apr 2008 15:29:07 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/#comment-20572</guid>
		<description>These are most helpful in implementing in MATLAB the algorithms specified in "Beyond Photography".  Probably due to my beginner status in using the Image Processing Toolbox, I was unable to get the the transformation where 
   r -&#62; r  but
   theta -&#62; theta + r/3
This is on page 44 in "Beyond Photography".</description>
		<content:encoded><![CDATA[<p>These are most helpful in implementing in MATLAB the algorithms specified in &#8220;Beyond Photography&#8221;.  Probably due to my beginner status in using the Image Processing Toolbox, I was unable to get the the transformation where<br />
   r -&gt; r  but<br />
   theta -&gt; theta + r/3<br />
This is on page 44 in &#8220;Beyond Photography&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Faisal</title>
		<link>http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/#comment-9286</link>
		<dc:creator>Faisal</dc:creator>
		<pubDate>Fri, 14 Sep 2007 05:07:23 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/#comment-9286</guid>
		<description>Awsome stufff ! This is really interesting ! Thanks :)</description>
		<content:encoded><![CDATA[<p>Awsome stufff ! This is really interesting ! Thanks :)</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-3451</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 11 Aug 2006 20:07:39 +0000</pubDate>
		<guid>http://blogs.mathworks.com/steve/2006/08/04/spatial-transformations-defining-and-applying-custom-transforms/#comment-3451</guid>
		<description>Matthew - Well, wizarding powers aside, I'm really more of an engineer than a scientist.  So far, no ill effects are apparent.</description>
		<content:encoded><![CDATA[<p>Matthew - Well, wizarding powers aside, I&#8217;m really more of an engineer than a scientist.  So far, no ill effects are apparent.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
