<?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</title>
	<atom:link href="http://blogs.mathworks.com/steve/2006/01/24/spatial-transforms/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/steve/2006/01/24/spatial-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>Fri, 10 Feb 2012 18:55:59 +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/01/24/spatial-transforms/#comment-21946</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 06 Jul 2009 15:26:14 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve-prototype/?p=22#comment-21946</guid>
		<description>Shai&#8212;I don&#039;t think you&#039;ll be able to establish a direct connection between the GPU and a MATLAB figure window.  And from what I&#039;ve heard, the bus bandwidth is indeed a problematic bottleneck in GPU-based computation.  That is, if you want to get the result back into MATLAB.  ;-)</description>
		<content:encoded><![CDATA[<p>Shai&mdash;I don&#8217;t think you&#8217;ll be able to establish a direct connection between the GPU and a MATLAB figure window.  And from what I&#8217;ve heard, the bus bandwidth is indeed a problematic bottleneck in GPU-based computation.  That is, if you want to get the result back into MATLAB.  ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shai</title>
		<link>http://blogs.mathworks.com/steve/2006/01/24/spatial-transforms/#comment-21941</link>
		<dc:creator>Shai</dc:creator>
		<pubDate>Sun, 05 Jul 2009 11:38:02 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve-prototype/?p=22#comment-21941</guid>
		<description>I am also very concerned about the performance of tformarray.
Is there a way to harness GPU capabilities to assist in this case? GPU is very much tuned to performing all sorts of transformations on images (at least) can it be used to perform image/array transformations in Matlab as well? 
I was thinking of creating a figure with opengl renderer, define an image as a graphical object and apply the transformations to this object. The bottle neck here (as far as I can tell) is reading from the GPU to main memory for further processing.  Can you comment about this?</description>
		<content:encoded><![CDATA[<p>I am also very concerned about the performance of tformarray.<br />
Is there a way to harness GPU capabilities to assist in this case? GPU is very much tuned to performing all sorts of transformations on images (at least) can it be used to perform image/array transformations in Matlab as well?<br />
I was thinking of creating a figure with opengl renderer, define an image as a graphical object and apply the transformations to this object. The bottle neck here (as far as I can tell) is reading from the GPU to main memory for further processing.  Can you comment about this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2006/01/24/spatial-transforms/#comment-6527</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Thu, 15 Feb 2007 22:15:18 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve-prototype/?p=22#comment-6527</guid>
		<description>S.Vibin - Take a look at &lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=1713&amp;objectType=file&quot; rel=&quot;nofollow&quot;&gt;this contribution&lt;/a&gt; on the MATLAB Central File Exchange.</description>
		<content:encoded><![CDATA[<p>S.Vibin &#8211; Take a look at <a href="http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=1713&#038;objectType=file" rel="nofollow">this contribution</a> on the MATLAB Central File Exchange.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vibin.S</title>
		<link>http://blogs.mathworks.com/steve/2006/01/24/spatial-transforms/#comment-6511</link>
		<dc:creator>vibin.S</dc:creator>
		<pubDate>Tue, 13 Feb 2007 05:16:47 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve-prototype/?p=22#comment-6511</guid>
		<description>Respected Sir
 I am doing X-ray CT reconstruction part,I having some problem in 3D reconstruction, i,e how to stacking the data using MATLAB code. If You have some idea kindly mail me..
Thank you
by 
S.Vibin</description>
		<content:encoded><![CDATA[<p>Respected Sir<br />
 I am doing X-ray CT reconstruction part,I having some problem in 3D reconstruction, i,e how to stacking the data using MATLAB code. If You have some idea kindly mail me..<br />
Thank you<br />
by<br />
S.Vibin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2006/01/24/spatial-transforms/#comment-6132</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 22 Nov 2006 13:10:34 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve-prototype/?p=22#comment-6132</guid>
		<description>Abe - I think you could probably set up a MATLAB timer object to update your waitbar.</description>
		<content:encoded><![CDATA[<p>Abe &#8211; I think you could probably set up a MATLAB timer object to update your waitbar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abe</title>
		<link>http://blogs.mathworks.com/steve/2006/01/24/spatial-transforms/#comment-6127</link>
		<dc:creator>Abe</dc:creator>
		<pubDate>Wed, 22 Nov 2006 07:10:50 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve-prototype/?p=22#comment-6127</guid>
		<description>Steve, thanks for the time to confirm that I am getting the expected behaviour.  The memory usage is definitely acceptable, no swapping.  It&#039;s just the time it takes which is a bit long.  I was using other softwares to do the same 3-D rotation and like what Philip has got, a few times faster.  Anyway, I guess it is probably not fair to compare tformarray to other softwares out in the market which is binary-coded.

By the way, is there any way I could continuously update my waitbar to reflect at least some &quot;progress&quot; going.  It looks as if the GUI freezed for a whole minute or two before tformarray returns, which isn&#039;t very good in terms of usability/presentability. :)</description>
		<content:encoded><![CDATA[<p>Steve, thanks for the time to confirm that I am getting the expected behaviour.  The memory usage is definitely acceptable, no swapping.  It&#8217;s just the time it takes which is a bit long.  I was using other softwares to do the same 3-D rotation and like what Philip has got, a few times faster.  Anyway, I guess it is probably not fair to compare tformarray to other softwares out in the market which is binary-coded.</p>
<p>By the way, is there any way I could continuously update my waitbar to reflect at least some &#8220;progress&#8221; going.  It looks as if the GUI freezed for a whole minute or two before tformarray returns, which isn&#8217;t very good in terms of usability/presentability. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2006/01/24/spatial-transforms/#comment-6095</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 21 Nov 2006 01:12:36 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve-prototype/?p=22#comment-6095</guid>
		<description>Abe - I profiled a similar case on my laptop, and it ran in about 100 seconds.  75% of that time was in the MEX code for performing separable resampling, and there was no apparent swapping going on.  I don&#039;t see anything obvious to suggest to you for speeding up this operation.</description>
		<content:encoded><![CDATA[<p>Abe &#8211; I profiled a similar case on my laptop, and it ran in about 100 seconds.  75% of that time was in the MEX code for performing separable resampling, and there was no apparent swapping going on.  I don&#8217;t see anything obvious to suggest to you for speeding up this operation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abe</title>
		<link>http://blogs.mathworks.com/steve/2006/01/24/spatial-transforms/#comment-6039</link>
		<dc:creator>Abe</dc:creator>
		<pubDate>Fri, 17 Nov 2006 04:11:34 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve-prototype/?p=22#comment-6039</guid>
		<description>I&#039;ve been using tformarray to rotate a entire stack of 3-D CT images (dimensions~512x512x250).  
rot_bone_mask = tformarray(bone_mask, tform_trans, R, [2 1 3],[2 1 3], floor([max_x max_y max_z]), [], []);

I&#039;ve segmented it and converted it to uint8, hopefully reduce the memory requirements of it.  However, it seems that the tformarray takes quite a fair bit of time to run, around 1-2 minutes.  I am really interested in hearing your opinion about the performance of tformarray, or how to make the best use of it, as the performance I get here is far for satisfactory.  Thanks for your input.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been using tformarray to rotate a entire stack of 3-D CT images (dimensions~512x512x250).<br />
rot_bone_mask = tformarray(bone_mask, tform_trans, R, [2 1 3],[2 1 3], floor([max_x max_y max_z]), [], []);</p>
<p>I&#8217;ve segmented it and converted it to uint8, hopefully reduce the memory requirements of it.  However, it seems that the tformarray takes quite a fair bit of time to run, around 1-2 minutes.  I am really interested in hearing your opinion about the performance of tformarray, or how to make the best use of it, as the performance I get here is far for satisfactory.  Thanks for your input.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2006/01/24/spatial-transforms/#comment-16</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 27 Jan 2006 14:20:21 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve-prototype/?p=22#comment-16</guid>
		<description>Philip - UData, VData, XData, and YData parameters specify the locations of pixel centers, not pixel edges.  I&#039;ll get into performance issues later.</description>
		<content:encoded><![CDATA[<p>Philip &#8211; UData, VData, XData, and YData parameters specify the locations of pixel centers, not pixel edges.  I&#8217;ll get into performance issues later.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philip batchelor</title>
		<link>http://blogs.mathworks.com/steve/2006/01/24/spatial-transforms/#comment-15</link>
		<dc:creator>philip batchelor</dc:creator>
		<pubDate>Fri, 27 Jan 2006 12:05:04 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve-prototype/?p=22#comment-15</guid>
		<description>I&#039;m certainly interested in this topic, it took me a while to understand why translating an image doesn&#039;t appear to to do anything ;) and some colleagues have also come to me quite puzzled...I&#039;m still not sure what&#039;s the most correct: I set &#039;xdata&#039;, &#039;ydata&#039; using the dimensions of the input image, as I want the transformed one in the same field of view in general, but should it be ...,&#039;xdata&#039;,[1,n1], or  or [0.5,n1-0.5] ?
(seemed more correct when I tried to overlay lines to show a defomration).

I&#039;d be also interested in the issue of speed for tformarray, I have been running code optimizing over 3D spatial transforms, and the profiler shows most of the time is spent there. For the moment I use an external library (mex+vtk) to perform these spatial transforms, with a speedup of ~10. It seems to me the time lost is in interpolation-reslicing parts of the code, it would be great to be able to use tformarray though, as my code doesn&#039;t have the flexibility of &#039;custom&#039; transforms, I need to write new c++/mex code for every new type of transform. So, well, in summary, any design issue related to tformarray I&#039;d be curious to hear about...</description>
		<content:encoded><![CDATA[<p>I&#8217;m certainly interested in this topic, it took me a while to understand why translating an image doesn&#8217;t appear to to do anything ;) and some colleagues have also come to me quite puzzled&#8230;I&#8217;m still not sure what&#8217;s the most correct: I set &#8216;xdata&#8217;, &#8216;ydata&#8217; using the dimensions of the input image, as I want the transformed one in the same field of view in general, but should it be &#8230;,&#8217;xdata&#8217;,[1,n1], or  or [0.5,n1-0.5] ?<br />
(seemed more correct when I tried to overlay lines to show a defomration).</p>
<p>I&#8217;d be also interested in the issue of speed for tformarray, I have been running code optimizing over 3D spatial transforms, and the profiler shows most of the time is spent there. For the moment I use an external library (mex+vtk) to perform these spatial transforms, with a speedup of ~10. It seems to me the time lost is in interpolation-reslicing parts of the code, it would be great to be able to use tformarray though, as my code doesn&#8217;t have the flexibility of &#8216;custom&#8217; transforms, I need to write new c++/mex code for every new type of transform. So, well, in summary, any design issue related to tformarray I&#8217;d be curious to hear about&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

