<?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: Timing code in MATLAB</title>
	<atom:link href="http://blogs.mathworks.com/steve/2008/02/29/timing-code-in-matlab/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/steve/2008/02/29/timing-code-in-matlab/</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: Amin</title>
		<link>http://blogs.mathworks.com/steve/2008/02/29/timing-code-in-matlab/#comment-23398</link>
		<dc:creator>Amin</dc:creator>
		<pubDate>Tue, 24 Aug 2010 20:09:16 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/02/29/timing-code-in-matlab/#comment-23398</guid>
		<description>Hi Steve,

I m a little bit late to ask this on your Blog.
So, im using an ActiveX Control of a DAQ Board.
I need to generate a code in a loop which have to be determined to work in 50 ms, the problem is that this loop have many Methods and Properties.

Can you tell me which timing I must use for it ?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi Steve,</p>
<p>I m a little bit late to ask this on your Blog.<br />
So, im using an ActiveX Control of a DAQ Board.<br />
I need to generate a code in a loop which have to be determined to work in 50 ms, the problem is that this loop have many Methods and Properties.</p>
<p>Can you tell me which timing I must use for it ?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2008/02/29/timing-code-in-matlab/#comment-22259</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Thu, 29 Oct 2009 17:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/02/29/timing-code-in-matlab/#comment-22259</guid>
		<description>Muhammad&#8212;timeit doesn&#039;t have anything to do with parallel processing.  Many MATLAB functions are already multithreaded and so will automatically use multiple processor cores.  If you are interested in explicit parallel programming, you might be interested in the Parallel Computing Toolbox.</description>
		<content:encoded><![CDATA[<p>Muhammad&mdash;timeit doesn&#8217;t have anything to do with parallel processing.  Many MATLAB functions are already multithreaded and so will automatically use multiple processor cores.  If you are interested in explicit parallel programming, you might be interested in the Parallel Computing Toolbox.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Muhammad jahanzeb</title>
		<link>http://blogs.mathworks.com/steve/2008/02/29/timing-code-in-matlab/#comment-22258</link>
		<dc:creator>Muhammad jahanzeb</dc:creator>
		<pubDate>Thu, 29 Oct 2009 05:57:44 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/02/29/timing-code-in-matlab/#comment-22258</guid>
		<description>i want to know that how i can use &#039;timeit&#039; for parallel processing.In linux we do &#039;fork&#039; which makes parent and child and processor fastly switch between parent and child to service them.How can we do this thing in matlab.i have to make two functions and processor should switch between these two functions so that it seem that we are doing parallel processing of two functions.</description>
		<content:encoded><![CDATA[<p>i want to know that how i can use &#8216;timeit&#8217; for parallel processing.In linux we do &#8216;fork&#8217; which makes parent and child and processor fastly switch between parent and child to service them.How can we do this thing in matlab.i have to make two functions and processor should switch between these two functions so that it seem that we are doing parallel processing of two functions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: feelfree</title>
		<link>http://blogs.mathworks.com/steve/2008/02/29/timing-code-in-matlab/#comment-20419</link>
		<dc:creator>feelfree</dc:creator>
		<pubDate>Wed, 05 Mar 2008 22:53:54 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/02/29/timing-code-in-matlab/#comment-20419</guid>
		<description>Thanks Steve, i see.</description>
		<content:encoded><![CDATA[<p>Thanks Steve, i see.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2008/02/29/timing-code-in-matlab/#comment-20418</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 05 Mar 2008 16:30:42 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/02/29/timing-code-in-matlab/#comment-20418</guid>
		<description>Feelfree&#8212;There&#039;s no real problem here.  You&#039;re just seeing the affects of interpolation.  Try this:

&lt;pre&gt;
imshow(I - III, [])
impixelinfo
&lt;/pre&gt;

and then move the mouse over the image.  You&#039;ll see that the difference is zero just about everywhere except for along edges, which is what you should expect because of the interpolation approximation.

If whatever you are doing is sensitive to this, then you&#039;ll need to rethink your approach.</description>
		<content:encoded><![CDATA[<p>Feelfree&mdash;There&#8217;s no real problem here.  You&#8217;re just seeing the affects of interpolation.  Try this:</p>
<pre>
imshow(I - III, [])
impixelinfo
</pre>
<p>and then move the mouse over the image.  You&#8217;ll see that the difference is zero just about everywhere except for along edges, which is what you should expect because of the interpolation approximation.</p>
<p>If whatever you are doing is sensitive to this, then you&#8217;ll need to rethink your approach.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: feelfree</title>
		<link>http://blogs.mathworks.com/steve/2008/02/29/timing-code-in-matlab/#comment-20417</link>
		<dc:creator>feelfree</dc:creator>
		<pubDate>Wed, 05 Mar 2008 16:12:46 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/02/29/timing-code-in-matlab/#comment-20417</guid>
		<description>Thanks Steve, and I do as you suggest, and in this case the output image is of the same size with the original one, but their gray value still have difference though not much. The average gray value difference is about 2 gray level for uint8 type image. sum(abs(III(:)-I(:)))/256/256*256. Then how can I deal with this problem? Thanks. Hope I did not throw a spanner in your current topic.</description>
		<content:encoded><![CDATA[<p>Thanks Steve, and I do as you suggest, and in this case the output image is of the same size with the original one, but their gray value still have difference though not much. The average gray value difference is about 2 gray level for uint8 type image. sum(abs(III(:)-I(:)))/256/256*256. Then how can I deal with this problem? Thanks. Hope I did not throw a spanner in your current topic.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blogs.mathworks.com/steve/2008/02/29/timing-code-in-matlab/#comment-20416</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 05 Mar 2008 14:40:49 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/02/29/timing-code-in-matlab/#comment-20416</guid>
		<description>Feelfree&#8212;Use the &#039;Size&#039; parameter in your second call to imtransform.</description>
		<content:encoded><![CDATA[<p>Feelfree&mdash;Use the &#8216;Size&#8217; parameter in your second call to imtransform.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: feelfree</title>
		<link>http://blogs.mathworks.com/steve/2008/02/29/timing-code-in-matlab/#comment-20407</link>
		<dc:creator>feelfree</dc:creator>
		<pubDate>Tue, 04 Mar 2008 21:32:19 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/steve/2008/02/29/timing-code-in-matlab/#comment-20407</guid>
		<description>Hi Steve, I write to have a disscussion with you on MATLAB function imtransform.

My question is how to get back to the original image after some kind of transformation, for example affine transform. The following codes can illustrate my question:

I = imread(&#039;cameraman.tif&#039;);
I = im2double(I);
delta = pi/6;
t = [ 2*cos(delta), sin(delta), 0
      -sin(delta), 2*cos(delta), 0
      3,  4,  1];
tform = maketform(&#039;projective&#039;,t);

[II,xdata,ydata] = imtransform(I,tform);
figure;imshow(II,[]);

%%
revt = inv(t);
revtform = maketform(&#039;projective&#039;,revt);
III = imtransform(II,revtform,&#039;UData&#039;,xdata,&#039;VData&#039;,ydata,&#039;XData&#039;,[1,256],&#039;YData&#039;,[1,256]);
figure;imshow(III,[]);

Hower, the orignal image I and  III are different not only in theirwidth and height but also in their gray value. 

Would you like to open a new topic on this problem?</description>
		<content:encoded><![CDATA[<p>Hi Steve, I write to have a disscussion with you on MATLAB function imtransform.</p>
<p>My question is how to get back to the original image after some kind of transformation, for example affine transform. The following codes can illustrate my question:</p>
<p>I = imread(&#8216;cameraman.tif&#8217;);<br />
I = im2double(I);<br />
delta = pi/6;<br />
t = [ 2*cos(delta), sin(delta), 0<br />
      -sin(delta), 2*cos(delta), 0<br />
      3,  4,  1];<br />
tform = maketform(&#8216;projective&#8217;,t);</p>
<p>[II,xdata,ydata] = imtransform(I,tform);<br />
figure;imshow(II,[]);</p>
<p>%%<br />
revt = inv(t);<br />
revtform = maketform(&#8216;projective&#8217;,revt);<br />
III = imtransform(II,revtform,&#8217;UData&#8217;,xdata,&#8217;VData&#8217;,ydata,&#8217;XData&#8217;,[1,256],&#8217;YData&#8217;,[1,256]);<br />
figure;imshow(III,[]);</p>
<p>Hower, the orignal image I and  III are different not only in theirwidth and height but also in their gray value. </p>
<p>Would you like to open a new topic on this problem?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

