<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>What Ever I Code</title>
	<atom:link href="http://whatevericode.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://whatevericode.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 26 Jan 2012 21:02:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='whatevericode.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>What Ever I Code</title>
		<link>http://whatevericode.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://whatevericode.wordpress.com/osd.xml" title="What Ever I Code" />
	<atom:link rel='hub' href='http://whatevericode.wordpress.com/?pushpress=hub'/>
		<item>
		<title>srun and matlab</title>
		<link>http://whatevericode.wordpress.com/2011/11/19/srun-and-matlab/</link>
		<comments>http://whatevericode.wordpress.com/2011/11/19/srun-and-matlab/#comments</comments>
		<pubDate>Sat, 19 Nov 2011 02:36:56 +0000</pubDate>
		<dc:creator>mohsenam</dc:creator>
				<category><![CDATA[basic]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[matlab]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[node]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[slurm]]></category>
		<category><![CDATA[srun]]></category>

		<guid isPermaLink="false">http://whatevericode.wordpress.com/?p=185</guid>
		<description><![CDATA[ok Mr. Cluster, here I come, I have unlocked the power to issue commands to your nodes for my maltab function ha ha ha ha! so if you are in slurm srun -n1 -o t.txt matlab -nodesktop -nosplash -nodisplay -r &#8220;temp4(29)&#8221; &#38; t.txt &#60;&#8212; will get all the output after -r you can give all [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whatevericode.wordpress.com&amp;blog=3207377&amp;post=185&amp;subd=whatevericode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ok Mr. Cluster, here I come, I have unlocked the power to issue commands to your nodes for my maltab function ha ha ha ha!</p>
<p>so if you are in slurm<br />
<strong>srun -n1 -o t.txt matlab -nodesktop -nosplash -nodisplay -r &#8220;temp4(29)&#8221; &amp;</strong></p>
<p>t.txt &lt;&#8212; will get all the output</p>
<p>after -r you can give all the commands as the form of script i.e. &#8221; &#8220;</p>
<p>in above case temp4 was matlab file function, and 29 was input</p>
<p>&amp; so that it can run in background</p>
<p>-n1 only one measly node <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>But then you can run multiple of such commands and each one gets node <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Don&#8217;t forget to open the <strong>matlabpool</strong> in the file you are running if you are using the parallel commands.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whatevericode.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whatevericode.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whatevericode.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whatevericode.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/whatevericode.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/whatevericode.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/whatevericode.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/whatevericode.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whatevericode.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whatevericode.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whatevericode.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whatevericode.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whatevericode.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whatevericode.wordpress.com/185/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whatevericode.wordpress.com&amp;blog=3207377&amp;post=185&amp;subd=whatevericode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://whatevericode.wordpress.com/2011/11/19/srun-and-matlab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bdd501bf0684de97b866767639236d81?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mohsenam</media:title>
		</media:content>
	</item>
		<item>
		<title>getPatch; matlab function to get a patch from a matrix</title>
		<link>http://whatevericode.wordpress.com/2011/04/01/getpatch-matlab-function-to-get-a-patch-from-a-matrix/</link>
		<comments>http://whatevericode.wordpress.com/2011/04/01/getpatch-matlab-function-to-get-a-patch-from-a-matrix/#comments</comments>
		<pubDate>Fri, 01 Apr 2011 03:04:18 +0000</pubDate>
		<dc:creator>mohsenam</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[matlab]]></category>
		<category><![CDATA[matlab Code]]></category>

		<guid isPermaLink="false">http://whatevericode.wordpress.com/?p=178</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whatevericode.wordpress.com&amp;blog=3207377&amp;post=178&amp;subd=whatevericode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><pre class="brush: cpp;">
function mat = getPatch(srcMat, rect)
%function getPatch(srcMat, rect)
%rect is [x y width height]

stX = max(rect(1),1);stY = max(rect(2),1);
endX = min(rect(1)+rect(3)-1, size(srcMat,1));endY = min(rect(2)+rect(4)-1, size(srcMat,2));
mat = srcMat(stY:endY, stX:endX);
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whatevericode.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whatevericode.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whatevericode.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whatevericode.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/whatevericode.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/whatevericode.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/whatevericode.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/whatevericode.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whatevericode.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whatevericode.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whatevericode.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whatevericode.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whatevericode.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whatevericode.wordpress.com/178/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whatevericode.wordpress.com&amp;blog=3207377&amp;post=178&amp;subd=whatevericode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://whatevericode.wordpress.com/2011/04/01/getpatch-matlab-function-to-get-a-patch-from-a-matrix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bdd501bf0684de97b866767639236d81?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mohsenam</media:title>
		</media:content>
	</item>
		<item>
		<title>cygwin/x cannot establish any listening sockets</title>
		<link>http://whatevericode.wordpress.com/2011/03/10/cygwinx-cannot-establish-any-listening-sockets/</link>
		<comments>http://whatevericode.wordpress.com/2011/03/10/cygwinx-cannot-establish-any-listening-sockets/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 17:26:12 +0000</pubDate>
		<dc:creator>mohsenam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[cygwinx]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[administrator]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[xwin]]></category>

		<guid isPermaLink="false">http://whatevericode.wordpress.com/?p=172</guid>
		<description><![CDATA[Running cygwin/x I was facing following error Cannot establish any listening sockets  Make sure an X server isn&#8217;t already running poked around to find what&#8217;s happening, firewall was fine and I was on the administrator account, but it appears one has to set the application it-self as &#8220;run as administrator&#8221; i.e. go to the XWin [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whatevericode.wordpress.com&amp;blog=3207377&amp;post=172&amp;subd=whatevericode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Running cygwin/x I was facing following error<br />
<strong> Cannot establish any listening sockets  Make sure an X server isn&#8217;t already running</strong></p>
<p>poked around to find what&#8217;s happening, firewall was fine and I was on the administrator account, but it appears one has to set the application it-self as &#8220;run as administrator&#8221;</p>
<p>i.e. go to the XWin file, right click, get the properties, go to advanced and check  &#8221;Run as administrator&#8221;.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whatevericode.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whatevericode.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whatevericode.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whatevericode.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/whatevericode.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/whatevericode.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/whatevericode.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/whatevericode.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whatevericode.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whatevericode.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whatevericode.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whatevericode.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whatevericode.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whatevericode.wordpress.com/172/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whatevericode.wordpress.com&amp;blog=3207377&amp;post=172&amp;subd=whatevericode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://whatevericode.wordpress.com/2011/03/10/cygwinx-cannot-establish-any-listening-sockets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bdd501bf0684de97b866767639236d81?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mohsenam</media:title>
		</media:content>
	</item>
		<item>
		<title>fixing MSVCR100.DLL not found</title>
		<link>http://whatevericode.wordpress.com/2010/12/23/fixing-msvcr100-dll-not-found/</link>
		<comments>http://whatevericode.wordpress.com/2010/12/23/fixing-msvcr100-dll-not-found/#comments</comments>
		<pubDate>Thu, 23 Dec 2010 23:29:10 +0000</pubDate>
		<dc:creator>mohsenam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://whatevericode.wordpress.com/?p=165</guid>
		<description><![CDATA[Just download Microsoft Visual C++ Redistributable Package. It will install the MSVCR100.DLL in folder windows\system32. However I was not able to get MSVCR100D.DLL for the debugging<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whatevericode.wordpress.com&amp;blog=3207377&amp;post=165&amp;subd=whatevericode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just download Microsoft Visual C++ Redistributable Package. It will install the MSVCR100.DLL in folder windows\system32.<br />
However I was not able to get MSVCR100D.DLL for the debugging</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whatevericode.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whatevericode.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whatevericode.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whatevericode.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/whatevericode.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/whatevericode.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/whatevericode.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/whatevericode.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whatevericode.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whatevericode.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whatevericode.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whatevericode.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whatevericode.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whatevericode.wordpress.com/165/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whatevericode.wordpress.com&amp;blog=3207377&amp;post=165&amp;subd=whatevericode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://whatevericode.wordpress.com/2010/12/23/fixing-msvcr100-dll-not-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bdd501bf0684de97b866767639236d81?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mohsenam</media:title>
		</media:content>
	</item>
		<item>
		<title>Dynamic Multi-dimensional memory allocation C/C++</title>
		<link>http://whatevericode.wordpress.com/2010/10/15/dynamic-multi-dimensional-memory-allocation-cc/</link>
		<comments>http://whatevericode.wordpress.com/2010/10/15/dynamic-multi-dimensional-memory-allocation-cc/#comments</comments>
		<pubDate>Fri, 15 Oct 2010 04:49:00 +0000</pubDate>
		<dc:creator>mohsenam</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[allocation]]></category>
		<category><![CDATA[dynamic memory allocation]]></category>
		<category><![CDATA[multi dimensional]]></category>

		<guid isPermaLink="false">http://whatevericode.wordpress.com/?p=157</guid>
		<description><![CDATA[An excellent library for the multi dimensional memory allocation. http://www8.cs.umu.se/~isak/snippets/mdalloc.c some other code snippets are http://www8.cs.umu.se/~isak/snippets/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whatevericode.wordpress.com&amp;blog=3207377&amp;post=157&amp;subd=whatevericode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>An excellent library for the multi dimensional memory allocation.</p>
<p><a href="http://www8.cs.umu.se/~isak/snippets/mdalloc.c">http://www8.cs.umu.se/~isak/snippets/mdalloc.c</a></p>
<p>some other code snippets are <a href="http://www8.cs.umu.se/~isak/snippets/">http://www8.cs.umu.se/~isak/snippets/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whatevericode.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whatevericode.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whatevericode.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whatevericode.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/whatevericode.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/whatevericode.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/whatevericode.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/whatevericode.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whatevericode.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whatevericode.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whatevericode.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whatevericode.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whatevericode.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whatevericode.wordpress.com/157/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whatevericode.wordpress.com&amp;blog=3207377&amp;post=157&amp;subd=whatevericode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://whatevericode.wordpress.com/2010/10/15/dynamic-multi-dimensional-memory-allocation-cc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bdd501bf0684de97b866767639236d81?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mohsenam</media:title>
		</media:content>
	</item>
		<item>
		<title>VLFeat; library for SIFT and MSER</title>
		<link>http://whatevericode.wordpress.com/2010/10/05/vlfeat-library-for-sift-and-mser/</link>
		<comments>http://whatevericode.wordpress.com/2010/10/05/vlfeat-library-for-sift-and-mser/#comments</comments>
		<pubDate>Tue, 05 Oct 2010 19:46:58 +0000</pubDate>
		<dc:creator>mohsenam</dc:creator>
				<category><![CDATA[library]]></category>
		<category><![CDATA[Libray]]></category>
		<category><![CDATA[matlab]]></category>
		<category><![CDATA[matlab Code]]></category>
		<category><![CDATA[computer vision]]></category>
		<category><![CDATA[matlab code]]></category>
		<category><![CDATA[MSER]]></category>
		<category><![CDATA[SIFT]]></category>

		<guid isPermaLink="false">http://whatevericode.wordpress.com/?p=153</guid>
		<description><![CDATA[While searching some code for Maximally Stable Extermal Regions, I came to this libraray. http://www.vlfeat.org/index.html<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whatevericode.wordpress.com&amp;blog=3207377&amp;post=153&amp;subd=whatevericode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>While searching some code for Maximally Stable Extermal Regions, I came to this libraray.</p>
<p><a href="http://www.vlfeat.org/index.html">http://www.vlfeat.org/index.html</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whatevericode.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whatevericode.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whatevericode.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whatevericode.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/whatevericode.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/whatevericode.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/whatevericode.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/whatevericode.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whatevericode.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whatevericode.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whatevericode.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whatevericode.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whatevericode.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whatevericode.wordpress.com/153/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whatevericode.wordpress.com&amp;blog=3207377&amp;post=153&amp;subd=whatevericode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://whatevericode.wordpress.com/2010/10/05/vlfeat-library-for-sift-and-mser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bdd501bf0684de97b866767639236d81?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mohsenam</media:title>
		</media:content>
	</item>
		<item>
		<title>calculating distance matrix; Matlab</title>
		<link>http://whatevericode.wordpress.com/2010/07/07/calculating-distance-matrix-matlab/</link>
		<comments>http://whatevericode.wordpress.com/2010/07/07/calculating-distance-matrix-matlab/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 07:18:58 +0000</pubDate>
		<dc:creator>mohsenam</dc:creator>
				<category><![CDATA[basic]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[matlab]]></category>
		<category><![CDATA[distance]]></category>
		<category><![CDATA[distance matrix]]></category>

		<guid isPermaLink="false">http://whatevericode.wordpress.com/?p=145</guid>
		<description><![CDATA[A simple code to calculate the L2 distance matrix between any features.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whatevericode.wordpress.com&amp;blog=3207377&amp;post=145&amp;subd=whatevericode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A simple code to calculate the L2 distance matrix between any features.</p>
<pre>
<div id="_mcePaste"><pre class="brush: cpp;">
function D = calculateDistMatrix( points1, points2, f)
%D = calculateDistMatrix( points1, points2)
%points1: is m by n matrix, where n is number of points
if nargin &lt;3
    f = 0;
end
totalPoints1 = size(points1,2);
totalPoints2 = size(points2,2);
if f == 0
D= zeros(totalPoints1, totalPoints2);
else
D = sparse(totalPoints1, totalPoints2);
end
for i=1:totalPoints1
    D(i,:) = sqrt(sum((points2-repmat(points1(:,i), 1,totalPoints2)).^2));
end

</pre>
</div>
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whatevericode.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whatevericode.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whatevericode.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whatevericode.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/whatevericode.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/whatevericode.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/whatevericode.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/whatevericode.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whatevericode.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whatevericode.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whatevericode.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whatevericode.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whatevericode.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whatevericode.wordpress.com/145/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whatevericode.wordpress.com&amp;blog=3207377&amp;post=145&amp;subd=whatevericode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://whatevericode.wordpress.com/2010/07/07/calculating-distance-matrix-matlab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bdd501bf0684de97b866767639236d81?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mohsenam</media:title>
		</media:content>
	</item>
		<item>
		<title>Recovering 2D motion between the frames of video</title>
		<link>http://whatevericode.wordpress.com/2010/06/28/recovering-2d-motion-between-the-frames-of-video/</link>
		<comments>http://whatevericode.wordpress.com/2010/06/28/recovering-2d-motion-between-the-frames-of-video/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 19:11:37 +0000</pubDate>
		<dc:creator>mohsenam</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[computer vision]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[image sequence. library]]></category>
		<category><![CDATA[motion2D]]></category>
		<category><![CDATA[parametric model]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://whatevericode.wordpress.com/?p=136</guid>
		<description><![CDATA[Motion2D is C/C++ library by Irsia/INRIA to estimate 2D parametric motion in between the frames of video.  Works very good. Have a good example code. Only headache is I am having problem in compiling with the VC. They don&#8217;t have any dsp file for compilation of code in Windows, so don&#8217;t know which libaries to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whatevericode.wordpress.com&amp;blog=3207377&amp;post=136&amp;subd=whatevericode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.irisa.fr/vista/Motion2D/">Motion2D</a> is C/C++ library by Irsia/INRIA to estimate 2D parametric motion in between the frames of video.  Works very good. Have a good example code.</p>
<p>Only headache is I am having problem in compiling with the VC. They don&#8217;t have any dsp file for compilation of code in Windows, so don&#8217;t know which libaries to create. Have to use cygwin.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whatevericode.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whatevericode.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whatevericode.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whatevericode.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/whatevericode.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/whatevericode.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/whatevericode.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/whatevericode.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whatevericode.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whatevericode.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whatevericode.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whatevericode.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whatevericode.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whatevericode.wordpress.com/136/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whatevericode.wordpress.com&amp;blog=3207377&amp;post=136&amp;subd=whatevericode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://whatevericode.wordpress.com/2010/06/28/recovering-2d-motion-between-the-frames-of-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bdd501bf0684de97b866767639236d81?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mohsenam</media:title>
		</media:content>
	</item>
		<item>
		<title>Block commenting in Visual Studio</title>
		<link>http://whatevericode.wordpress.com/2010/06/26/block-commenting-in-visual-studio/</link>
		<comments>http://whatevericode.wordpress.com/2010/06/26/block-commenting-in-visual-studio/#comments</comments>
		<pubDate>Sat, 26 Jun 2010 20:26:58 +0000</pubDate>
		<dc:creator>mohsenam</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Visual C]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://whatevericode.wordpress.com/?p=132</guid>
		<description><![CDATA[Having worked in the Matlab, you get habit of selecting multiple lines and commenting them just using short keys.  So nowadays when I have to work in Visual Studio, I tried finding short keys for this. Comment: Ctrl+K+C Un-Comment: Ctrl+K+U<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whatevericode.wordpress.com&amp;blog=3207377&amp;post=132&amp;subd=whatevericode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Having worked in the Matlab, you get habit of selecting multiple lines and commenting them just using short keys.  So nowadays when I have to work in Visual Studio, I tried finding short keys for this.</p>
<p><strong>Comment:</strong> Ctrl+K+C</p>
<p><strong>Un-Comment: </strong>Ctrl+K+U</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whatevericode.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whatevericode.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whatevericode.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whatevericode.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/whatevericode.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/whatevericode.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/whatevericode.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/whatevericode.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whatevericode.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whatevericode.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whatevericode.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whatevericode.wordpress.com/132/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whatevericode.wordpress.com/132/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whatevericode.wordpress.com/132/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whatevericode.wordpress.com&amp;blog=3207377&amp;post=132&amp;subd=whatevericode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://whatevericode.wordpress.com/2010/06/26/block-commenting-in-visual-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bdd501bf0684de97b866767639236d81?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mohsenam</media:title>
		</media:content>
	</item>
		<item>
		<title>IPP, new version of OpenCV, cmake and all the mess</title>
		<link>http://whatevericode.wordpress.com/2010/06/12/ipp-new-version-of-opencv-cmake-and-all-the-mess/</link>
		<comments>http://whatevericode.wordpress.com/2010/06/12/ipp-new-version-of-opencv-cmake-and-all-the-mess/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 03:43:37 +0000</pubDate>
		<dc:creator>mohsenam</dc:creator>
				<category><![CDATA[ImageProcessing]]></category>
		<category><![CDATA[IPP]]></category>
		<category><![CDATA[OpenCv]]></category>
		<category><![CDATA[cmake]]></category>
		<category><![CDATA[dll]]></category>
		<category><![CDATA[environment variable]]></category>

		<guid isPermaLink="false">http://whatevericode.wordpress.com/?p=128</guid>
		<description><![CDATA[After some long time, had to work on OpenCV and for the first time had to use the IPP. IPP is Intel&#8217;s high performance routines. They many of them, but I had to work on OpenCV one. http://software.intel.com/en-us/articles/intel-integrated-performance-primitives-intel-ipp-open-source-computer-vision-library-opencv-faq/ Download it, run it. Follow these two links for installation help Deploying applications with Intel® IPP DLLs [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whatevericode.wordpress.com&amp;blog=3207377&amp;post=128&amp;subd=whatevericode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After some long time, had to work on OpenCV and for the first time had to use the IPP. IPP is Intel&#8217;s high performance routines. They many of them, but I had to work on OpenCV one. <a href="http://software.intel.com/en-us/articles/intel-integrated-performance-primitives-intel-ipp-open-source-computer-vision-library-opencv-faq/">http://software.intel.com/en-us/articles/intel-integrated-performance-primitives-intel-ipp-open-source-computer-vision-library-opencv-faq/</a></p>
<p>Download it, run it.</p>
<p>Follow these two links for installation help</p>
<ul>
<li><a href="http://software.intel.com/en-us/articles/intel-integrated-performance-primitives-intel-ipp-for-windows-deploying-applications-with-intel-ipp-dlls/">Deploying applications with Intel® IPP DLLs</a></li>
<li><a href="http://sites.google.com/site/rudychip/posts/ippwithopencvhighguivs2008express" target="_blank">IPP with OpenCV highGUI + VS 2008 express</a> ; as the name shows is more about making OpenCV and IPP work together. It even has the test code in it.</li>
</ul>
<p>Before we move ahead, let&#8217;s look at the new version of OpenCV. It&#8217;s install guide is <a href="http://opencv.willowgarage.com/wiki/InstallGuide">here</a>. They were recommending CMake, so tried it. Because we are using the IPP here also so carefully have to give the bin address.</p>
<p>The IPP it appears, by searching online,  not to work properly with OpenCV&#8217;s new version. Had actually some problem, but it was I think because IPP libraries access the OpenCv libraries and these libraries have their names changed. So copy pasted them and changed new names to old names. Compiled and viola it&#8217;s linking.</p>
<p>Well while putting it here, it looks everything is working fine but it took some time before i was able to solve that.</p>
<p>Some lessons actually commonsense things which one forgets the moment you need it most.</p>
<p>1) Every time you add the Environment variable, restart Visual Studio</p>
<p>2) Bad idea to copy paste your dll&#8217;s, set their location path in the Environment Variable path.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/whatevericode.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/whatevericode.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/whatevericode.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/whatevericode.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/whatevericode.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/whatevericode.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/whatevericode.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/whatevericode.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/whatevericode.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/whatevericode.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/whatevericode.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/whatevericode.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/whatevericode.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/whatevericode.wordpress.com/128/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=whatevericode.wordpress.com&amp;blog=3207377&amp;post=128&amp;subd=whatevericode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://whatevericode.wordpress.com/2010/06/12/ipp-new-version-of-opencv-cmake-and-all-the-mess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bdd501bf0684de97b866767639236d81?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mohsenam</media:title>
		</media:content>
	</item>
	</channel>
</rss>
