<?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: findbounds</title>
	<atom:link href="http://blogs.mathworks.com/steve/2006/06/13/spatial-transformations-findbounds/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/steve/2006/06/13/spatial-transformations-findbounds/</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 Eddins</title>
		<link>http://blogs.mathworks.com/steve/2006/06/13/spatial-transformations-findbounds/#comment-24778</link>
		<dc:creator>Steve Eddins</dc:creator>
		<pubDate>Wed, 04 Jan 2012 12:50:53 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=63#comment-24778</guid>
		<description>Ashwani&#8212;See this &lt;a href=&quot;http://en.wikipedia.org/wiki/Rotation_matrix#Basic_rotations&quot; rel=&quot;nofollow&quot;&gt;Wikipedia page&lt;/a&gt; for some information that might be useful.</description>
		<content:encoded><![CDATA[<p>Ashwani&mdash;See this <a href="http://en.wikipedia.org/wiki/Rotation_matrix#Basic_rotations" rel="nofollow">Wikipedia page</a> for some information that might be useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ashwani</title>
		<link>http://blogs.mathworks.com/steve/2006/06/13/spatial-transformations-findbounds/#comment-24777</link>
		<dc:creator>ashwani</dc:creator>
		<pubDate>Tue, 03 Jan 2012 18:24:40 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=63#comment-24777</guid>
		<description>the above example is good for rotation along z axis using x,y axis. but if i have to rotate image along x axis by varying z axis what code to be used</description>
		<content:encoded><![CDATA[<p>the above example is good for rotation along z axis using x,y axis. but if i have to rotate image along x axis by varying z axis what code to be used</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry</title>
		<link>http://blogs.mathworks.com/steve/2006/06/13/spatial-transformations-findbounds/#comment-23188</link>
		<dc:creator>Henry</dc:creator>
		<pubDate>Fri, 11 Jun 2010 14:09:22 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=63#comment-23188</guid>
		<description>Dear Steve,

     Many thanks for your clarification. It works perfectly fine now.

Regards,
Henry.</description>
		<content:encoded><![CDATA[<p>Dear Steve,</p>
<p>     Many thanks for your clarification. It works perfectly fine now.</p>
<p>Regards,<br />
Henry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2006/06/13/spatial-transformations-findbounds/#comment-23187</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 11 Jun 2010 11:26:06 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=63#comment-23187</guid>
		<description>Henry&#8212;imtransform automatically adjusts the output pixel grid spacing when the scale factor increases beyond a certain amount. To prevent this from happening, use the &lt;tt&gt;&#039;XYScale&#039;&lt;/tt&gt; optional input parameter (set it to 1).</description>
		<content:encoded><![CDATA[<p>Henry&mdash;imtransform automatically adjusts the output pixel grid spacing when the scale factor increases beyond a certain amount. To prevent this from happening, use the <tt>'XYScale'</tt> optional input parameter (set it to 1).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry</title>
		<link>http://blogs.mathworks.com/steve/2006/06/13/spatial-transformations-findbounds/#comment-23184</link>
		<dc:creator>Henry</dc:creator>
		<pubDate>Fri, 11 Jun 2010 04:24:37 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=63#comment-23184</guid>
		<description>Hi Steve,

I am resizing an image with following two methods:
1) makeform + imtransform
2) imresize

&lt;pre&gt;
I = imread(&#039;pout.tif&#039;);
size(I)
sx = 5;
sy = 7;
% using makeform + imtransform
T = [sx 0 0; 0 sy 0; 0 0 1];
tform = maketform(&#039;affine&#039;, T);
I2 = imtransform(I, tform);
% using imresize
I3 = imresize(I, &#039;scale&#039;, [sx sy]);
size(I2)
size(I3)

&lt;/pre&gt;

When sx or sy is large (says &gt; 2), the first method does not seem to return the correct dimension as 2nd method. Is this a limitation in imtransform? I need the first method for transformation beyond just scale. Appreciated that if you can help to clarify on the matter. Thank you.

Regards,
Henry.</description>
		<content:encoded><![CDATA[<p>Hi Steve,</p>
<p>I am resizing an image with following two methods:<br />
1) makeform + imtransform<br />
2) imresize</p>
<pre>
I = imread('pout.tif');
size(I)
sx = 5;
sy = 7;
% using makeform + imtransform
T = [sx 0 0; 0 sy 0; 0 0 1];
tform = maketform('affine', T);
I2 = imtransform(I, tform);
% using imresize
I3 = imresize(I, 'scale', [sx sy]);
size(I2)
size(I3)
</pre>
<p>When sx or sy is large (says &gt; 2), the first method does not seem to return the correct dimension as 2nd method. Is this a limitation in imtransform? I need the first method for transformation beyond just scale. Appreciated that if you can help to clarify on the matter. Thank you.</p>
<p>Regards,<br />
Henry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://blogs.mathworks.com/steve/2006/06/13/spatial-transformations-findbounds/#comment-23170</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Thu, 03 Jun 2010 15:05:34 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=63#comment-23170</guid>
		<description>Hi Steve,

I wonder if I run into the limits of image transformation with the application.

Based on 2 sets of 4 Ctrl points I establish a projective image transformation. (&#039;cp2tform&#039;) 
I transform the image using &#039;imtransform&#039;. After some processing of the transformed image, I obtain new ctrl points for further processing. Using the inverse transformation I locate these new ctrl points on the original image (&#039;tforminv&#039;). I control in and output space using the [xdata,ydata] output from &#039;imtransform&#039;.

It all works fine, unless the projective transform reaches a relatively steep perspective angle (~60degrees). Transforming the image works fine but the inverse transformation of the ctrl points has an unexplained offset. 

The transformed ctrl points appear in the original image but with a slight error on perspective and location. It looks like the function lost some accuracy. Again the whole process works fine on images with less perspective. 

Have you encountered this phenomenon? Any idea what is causing it and better what can be done.

Thanks! Great Blog!</description>
		<content:encoded><![CDATA[<p>Hi Steve,</p>
<p>I wonder if I run into the limits of image transformation with the application.</p>
<p>Based on 2 sets of 4 Ctrl points I establish a projective image transformation. (&#8216;cp2tform&#8217;)<br />
I transform the image using &#8216;imtransform&#8217;. After some processing of the transformed image, I obtain new ctrl points for further processing. Using the inverse transformation I locate these new ctrl points on the original image (&#8216;tforminv&#8217;). I control in and output space using the [xdata,ydata] output from &#8216;imtransform&#8217;.</p>
<p>It all works fine, unless the projective transform reaches a relatively steep perspective angle (~60degrees). Transforming the image works fine but the inverse transformation of the ctrl points has an unexplained offset. </p>
<p>The transformed ctrl points appear in the original image but with a slight error on perspective and location. It looks like the function lost some accuracy. Again the whole process works fine on images with less perspective. </p>
<p>Have you encountered this phenomenon? Any idea what is causing it and better what can be done.</p>
<p>Thanks! Great Blog!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2006/06/13/spatial-transformations-findbounds/#comment-22070</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Thu, 20 Aug 2009 16:26:20 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=63#comment-22070</guid>
		<description>Zhenbo&#8212;Can you say more about what you are looking for? I gave a specific example in this post.  Also, be aware that users generally don&#039;t need to worry about calling findbounds directly. This post was intended to explain a little bit about what&#039;s going on behind the scene.</description>
		<content:encoded><![CDATA[<p>Zhenbo&mdash;Can you say more about what you are looking for? I gave a specific example in this post.  Also, be aware that users generally don&#8217;t need to worry about calling findbounds directly. This post was intended to explain a little bit about what&#8217;s going on behind the scene.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zhenbo Wang</title>
		<link>http://blogs.mathworks.com/steve/2006/06/13/spatial-transformations-findbounds/#comment-22068</link>
		<dc:creator>Zhenbo Wang</dc:creator>
		<pubDate>Thu, 20 Aug 2009 03:46:10 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=63#comment-22068</guid>
		<description>Hi,Steve.
Would you give a specific Example by using findbounds function,PLZ? I still don&#039;t quite get it after reading the &quot;findbounds&quot; demo.</description>
		<content:encoded><![CDATA[<p>Hi,Steve.<br />
Would you give a specific Example by using findbounds function,PLZ? I still don&#8217;t quite get it after reading the &#8220;findbounds&#8221; demo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2006/06/13/spatial-transformations-findbounds/#comment-7266</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 24 Aug 2007 20:01:26 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=63#comment-7266</guid>
		<description>And&#8212;The functions &lt;tt&gt;tformfwd&lt;/tt&gt; and &lt;tt&gt;tforminv&lt;/tt&gt; can be used to transform point locations.  See my &lt;a href=&quot;http://blogs.mathworks.com/steve/2006/02/14/spatial-transformations-maketform-tformfwd-and-tforminv/&quot; rel=&quot;nofollow&quot;&gt;February 10, 2006 post&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>And&mdash;The functions <tt>tformfwd</tt> and <tt>tforminv</tt> can be used to transform point locations.  See my <a href="http://blogs.mathworks.com/steve/2006/02/14/spatial-transformations-maketform-tformfwd-and-tforminv/" rel="nofollow">February 10, 2006 post</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: and</title>
		<link>http://blogs.mathworks.com/steve/2006/06/13/spatial-transformations-findbounds/#comment-7265</link>
		<dc:creator>and</dc:creator>
		<pubDate>Fri, 24 Aug 2007 19:55:37 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/?p=63#comment-7265</guid>
		<description>i have a data set of points (10 points of the image in different places of the image) of an image that i&#039;m interest to and i would like to know if there is a way to know where these points would be after a rotation .</description>
		<content:encoded><![CDATA[<p>i have a data set of points (10 points of the image in different places of the image) of an image that i&#8217;m interest to and i would like to know if there is a way to know where these points would be after a rotation .</p>
]]></content:encoded>
	</item>
</channel>
</rss>

