<?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/"
	>

<channel>
	<title>Kristou.com</title>
	<atom:link href="http://www.kristou.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.kristou.com</link>
	<description>I share my experience</description>
	<lastBuildDate>Mon, 07 Dec 2009 07:46:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Edge orientation</title>
		<link>http://www.kristou.com/archives/1258</link>
		<comments>http://www.kristou.com/archives/1258#comments</comments>
		<pubDate>Sat, 05 Dec 2009 10:31:26 +0000</pubDate>
		<dc:creator>Kristou Mehrez</dc:creator>
				<category><![CDATA[OpenCV]]></category>

		<guid isPermaLink="false">http://www.kristou.com/?p=1258</guid>
		<description><![CDATA[This is a sample code for getting the edges orientation in an image.

CvMat *filter_x=cvCreateMat(1,3,CV_32FC1); filter_x->data.fl[0]=-1;
filter_x->data.fl[1]=0; filter_x->data.fl[2]=1;
CvMat *filter_y=cvCreateMat(3,1,CV_32FC1); filter_y->data.fl[0]=-1;
filter_y->data.fl[1]=0; filter_y->data.fl[2]=1;

IplImage *img_src=cvLoadImage("name",0);

IplImage *img_diff_x=cvCreateImage(cvGetSize(img_src),IPL_DEPTH_32F,1);
IplImage *img_diff_y=cvCreateImage(cvGetSize(img_src),IPL_DEPTH_32F,1);

IplImage *img_32f=cvCreateImage(cvGetSize(img_src),IPL_DEPTH_32F,1);

cvConvert(img_src,img_32f);

cvFilter2D(img_32f,filter_x,img_diff_x);
cvFilter2D(img_32f,filter_y,img_diff_y);

IplImage *magnitude=cvCreateImage(cvGetSize(img_src),IPL_DEPTH_32F,1);
IplImage *orientation=cvCreateImage(cvGetSize(img_src),IPL_DEPTH_32F,1);

cvCartToPolar(img_diff_x, img_diff_y, magnitude, orientation, 1);

]]></description>
			<content:encoded><![CDATA[<p>This is a sample code for getting the edges orientation in an image.</p>
<pre class="brush:cpp">
CvMat *filter_x=cvCreateMat(1,3,CV_32FC1); filter_x->data.fl[0]=-1;
filter_x->data.fl[1]=0; filter_x->data.fl[2]=1;
CvMat *filter_y=cvCreateMat(3,1,CV_32FC1); filter_y->data.fl[0]=-1;
filter_y->data.fl[1]=0; filter_y->data.fl[2]=1;

IplImage *img_src=cvLoadImage("name",0);

IplImage *img_diff_x=cvCreateImage(cvGetSize(img_src),IPL_DEPTH_32F,1);
IplImage *img_diff_y=cvCreateImage(cvGetSize(img_src),IPL_DEPTH_32F,1);

IplImage *img_32f=cvCreateImage(cvGetSize(img_src),IPL_DEPTH_32F,1);

cvConvert(img_src,img_32f);

cvFilter2D(img_32f,filter_x,img_diff_x);
cvFilter2D(img_32f,filter_y,img_diff_y);

IplImage *magnitude=cvCreateImage(cvGetSize(img_src),IPL_DEPTH_32F,1);
IplImage *orientation=cvCreateImage(cvGetSize(img_src),IPL_DEPTH_32F,1);

cvCartToPolar(img_diff_x, img_diff_y, magnitude, orientation, 1);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.kristou.com/archives/1258/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Online service to convert files type</title>
		<link>http://www.kristou.com/archives/1254</link>
		<comments>http://www.kristou.com/archives/1254#comments</comments>
		<pubDate>Sat, 05 Dec 2009 08:57:00 +0000</pubDate>
		<dc:creator>Kristou Mehrez</dc:creator>
				<category><![CDATA[Online service]]></category>

		<guid isPermaLink="false">http://www.kristou.com/?p=1254</guid>
		<description><![CDATA[
Convert any media file format (Documents, Images, Audio, Video &#038; Archives) without buying or installing anything on your PC
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.youconvertit.com/ConvertFiles.aspx"><img src="http://www.kristou.com/wp-content/uploads/2009/12/Screen-shot-2009-12-05-at-5.53.27-PM-300x188.png" alt="youconvertit" title="youconvertit" width="300" height="188" class="aligncenter size-medium wp-image-1255" /></a></p>
<p>Convert any media file format (Documents, Images, Audio, Video &#038; Archives) without buying or installing anything on your PC</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kristou.com/archives/1254/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hirai Ken, Pop star</title>
		<link>http://www.kristou.com/archives/1237</link>
		<comments>http://www.kristou.com/archives/1237#comments</comments>
		<pubDate>Sun, 29 Nov 2009 05:17:21 +0000</pubDate>
		<dc:creator>Kristou Mehrez</dc:creator>
				<category><![CDATA[Japan]]></category>

		<guid isPermaLink="false">http://www.kristou.com/?p=1237</guid>
		<description><![CDATA[I like this song because of many reasons. First it is easy to understand. Also it is very moving. I leave the appreciation for you to judge about it. Please share with me your comments.


wanna be a pop star kimi wo motto muchuu ni sasete ageru kara ne
kirakira no pop star hane wo hiroge mahou [...]]]></description>
			<content:encoded><![CDATA[<p>I like this song because of many reasons. First it is easy to understand. Also it is very moving. I leave the appreciation for you to judge about it. Please share with me your comments.</p>
<p><center><!-- Smart Youtube --><span class="youtube"><object width="480" height="360"><param name="movie" value="http://www.youtube.com/v/oNxk_6JHIfw&amp;rel=0&amp;color1=5d1719&amp;color2=cd311b&amp;border=0&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;ap=%2526fmt%3D18" /><param name="allowFullScreen" value="true" /><embed wmode="transparent" src="http://www.youtube.com/v/oNxk_6JHIfw&amp;rel=0&amp;color1=5d1719&amp;color2=cd311b&amp;border=0&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;ap=%2526fmt%3D18" type="application/x-shockwave-flash" allowfullscreen="true" width="480" height="360" ></embed><param name="wmode" value="transparent" /></object></span><a href="http://www.youtube.com/watch?v=oNxk_6JHIfw&fmt=18"><img src="http://img.youtube.com/vi/oNxk_6JHIfw/default.jpg" width="130" height="97" border=0></a></center></p>
<p><span id="more-1237"></span></p>
<p>wanna be a pop star kimi wo motto muchuu ni sasete ageru kara ne<br />
kirakira no pop star hane wo hiroge mahou wo kakete ageyou kimidake ni</p>
<p>kimi ni deaeta yorokobito, kimi ni aenai samishisa no<br />
ryouhou wo te ni irete, koi wa hashiridasu<br />
sora mo tobenai boku dakedo, kodoku wo utau yoru dakedo<br />
sono hoho ni, hohoemi wo ataerareta nara<br />
hajimete kimi wo dakishimeta shunkan ni<br />
kamisama ga boku ni kudashita shimei wa kimi dake no Hero</p>
<p>i wanna be a pop star kimi wo motto muchuu ni sasete ageru kara ne<br />
kirakira no pop star hane wo hiroge, mahou wo kakete ageyou<br />
i wanna be a pop star kimi wo gyutto, dakishimete ageru kara oide<br />
kirakira no pop star hane wo hiroge, mahou wo kakete ageyou, kimi dakeni</p>
<p>kakushite itai kurayami mo, kimi wa sotto hiroi agete<br />
taisetsu na boku nanda to, dakishimete kureta<br />
hikari eto tsuzuku, michi aruite yukou<br />
kizu kabau, kono migite wa, kimi to te wo tsunagu tame ni</p>
<p>you&#8217;re gonna be my pop star boku wo motto muchuu ni saseteyo hohoende<br />
kirakira no pop star sono hitomi de, boku ni mahou wo kakete<br />
you&#8217;re my only pop star boku wo gyutto, dakishimetara mou hanasanai<br />
kirakira no pop star sono hitomi de, boku ni mahou wo kakete ima sugu ni</p>
<p>koi ni ochitara daremo ga dareka no pop star<br />
kamisama ga bokuni kudashita shimei wa kimi dake no Hero</p>
<p>i wanna be a pop star kimi wo motto muchuu ni sasete ageru kara ne<br />
kirakira no pop star hane wo hiroge, mahou wo kakete ageyou<br />
i wanna be a pop star kimi wo gyutto, dakishimete ageru kara oide<br />
kirakira no pop star hane wo hiroge, mahou wo kakete ageyou, kimi dakeni</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kristou.com/archives/1237/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tsukuba Mountain Hike</title>
		<link>http://www.kristou.com/archives/1212</link>
		<comments>http://www.kristou.com/archives/1212#comments</comments>
		<pubDate>Sat, 28 Nov 2009 08:47:53 +0000</pubDate>
		<dc:creator>Kristou Mehrez</dc:creator>
				<category><![CDATA[Japan]]></category>

		<guid isPermaLink="false">http://www.kristou.com/?p=1212</guid>
		<description><![CDATA[Today I had a trip to Mountain Tsukuba with TWMC Club.
I did not catch them in the beginning. I reached つつじヶ丘(Tsutsujigaoka) station. I got the rope way. It is really scaring view.

As you may know, Tsukuba mountain has two picks: One pick is associated with a girl. The second is associated with boy. There is [...]]]></description>
			<content:encoded><![CDATA[<p>Today I had a trip to <a id="aptureLink_wAuxst9FGl" href="http://en.wikipedia.org/wiki/Mount%20Tsukuba">Mountain Tsukuba</a> with <a href="http://eve.bk.tsukuba.ac.jp/twmc/">TWMC Club</a>.<br />
I did not catch them in the beginning. I reached つつじヶ丘(Tsutsujigaoka) station. I got the rope way. It is really scaring view.</p>
<p><a style="margin: 0pt auto; padding: 0px 6px; text-align: center; display: block;" id="aptureLink_gYchyVuV5u" href="http://maps.google.com/maps?om=0&amp;iwloc=addr&amp;f=q&amp;ll=36.2166667%2C140.1&amp;hl=en&amp;z=1&amp;ie=UTF8"><img title="Tsukuba-san" src="http://placeholder.apture.com/ph/360x280_GoogleMap/?lat=36.225546183333186&amp;lng=140.10299921035767&amp;z=16&amp;type=G_SATELLITE_MAP&amp;markers=%5B%7B%22lat%22%3A36.22513074612713%2C%22lng%22%3A140.10600328445435%2C%22title%22%3A%22%22%7D%2C%7B%22lat%22%3A36.22632512214682%2C%22lng%22%3A140.10063886642456%2C%22title%22%3A%22%22%7D%5D" style="border: 0px none ;" height="280px" width="360px"></a></p>
<p>As you may know, Tsukuba mountain has two picks: One pick is associated with a girl. The second is associated with boy. There is a myth that this mountain bring love and bring couple together.</p>
<p>May be it is true. I met my wife there and I am living a romantic love story.</p>
<p>Here are some of my pictures I took there.<br />

<a href='http://www.kristou.com/archives/1212/img_0034' title='IMG_0034'><img width="150" height="150" src="http://www.kristou.com/wp-content/plugins/image-shadow/cache/cf9f09c3c992cf7af91e765547bcff38.jpg" class="attachment-thumbnail" alt="" title="IMG_0034" /></a>
<a href='http://www.kristou.com/archives/1212/img_0035' title='IMG_0035'><img width="150" height="150" src="http://www.kristou.com/wp-content/plugins/image-shadow/cache/eaf908cd40f4aa294d715f20b25d460d.jpg" class="attachment-thumbnail" alt="" title="IMG_0035" /></a>
<a href='http://www.kristou.com/archives/1212/img_0036' title='IMG_0036'><img width="150" height="150" src="http://www.kristou.com/wp-content/plugins/image-shadow/cache/948ef02e0dbbefb1cb72bf32f363d092.jpg" class="attachment-thumbnail" alt="" title="IMG_0036" /></a>
<a href='http://www.kristou.com/archives/1212/img_0037' title='IMG_0037'><img width="150" height="150" src="http://www.kristou.com/wp-content/plugins/image-shadow/cache/a1f97a7f1cdbffc9666b5404aea2bbb0.jpg" class="attachment-thumbnail" alt="" title="IMG_0037" /></a>
<a href='http://www.kristou.com/archives/1212/img_0038' title='IMG_0038'><img width="150" height="150" src="http://www.kristou.com/wp-content/plugins/image-shadow/cache/e464eb64bc961451320e55bd847f9873.jpg" class="attachment-thumbnail" alt="" title="IMG_0038" /></a>
<a href='http://www.kristou.com/archives/1212/img_0039' title='IMG_0039'><img width="150" height="150" src="http://www.kristou.com/wp-content/plugins/image-shadow/cache/96b7d83993711ca29817a7e3d16d2df9.jpg" class="attachment-thumbnail" alt="" title="IMG_0039" /></a>
<a href='http://www.kristou.com/archives/1212/img_0040' title='IMG_0040'><img width="150" height="150" src="http://www.kristou.com/wp-content/plugins/image-shadow/cache/daa9e49635542e34d5d93d36c11730b5.jpg" class="attachment-thumbnail" alt="" title="IMG_0040" /></a>
<a href='http://www.kristou.com/archives/1212/img_0041' title='IMG_0041'><img width="150" height="150" src="http://www.kristou.com/wp-content/plugins/image-shadow/cache/298a36b3454befddc173cf662e369723.jpg" class="attachment-thumbnail" alt="" title="IMG_0041" /></a>
<a href='http://www.kristou.com/archives/1212/img_0042' title='IMG_0042'><img width="150" height="150" src="http://www.kristou.com/wp-content/plugins/image-shadow/cache/be454f8c0487e5c4cae5f1836669e426.jpg" class="attachment-thumbnail" alt="" title="IMG_0042" /></a>
<a href='http://www.kristou.com/archives/1212/img_0043' title='IMG_0043'><img width="150" height="150" src="http://www.kristou.com/wp-content/plugins/image-shadow/cache/196d20453a72f65c5be13ff8e5fa4fdf.jpg" class="attachment-thumbnail" alt="" title="IMG_0043" /></a>
<a href='http://www.kristou.com/archives/1212/img_0044' title='IMG_0044'><img width="150" height="150" src="http://www.kristou.com/wp-content/plugins/image-shadow/cache/7a5b7e536f05de4a92eb11c7a71ab330.jpg" class="attachment-thumbnail" alt="" title="IMG_0044" /></a>
<a href='http://www.kristou.com/archives/1212/img_0045' title='IMG_0045'><img width="150" height="150" src="http://www.kristou.com/wp-content/plugins/image-shadow/cache/60820dc99b87dacf3dc4ed7c8171a842.jpg" class="attachment-thumbnail" alt="" title="IMG_0045" /></a>
<a href='http://www.kristou.com/archives/1212/img_0047' title='IMG_0047'><img width="150" height="150" src="http://www.kristou.com/wp-content/plugins/image-shadow/cache/73fc506e54103fa5bcdd8e6c3fd576e0.jpg" class="attachment-thumbnail" alt="" title="IMG_0047" /></a>
<a href='http://www.kristou.com/archives/1212/img_0048' title='IMG_0048'><img width="150" height="150" src="http://www.kristou.com/wp-content/plugins/image-shadow/cache/7419c8cb29378a66515aacdd533b0dcb.jpg" class="attachment-thumbnail" alt="" title="IMG_0048" /></a>
<a href='http://www.kristou.com/archives/1212/img_0049' title='IMG_0049'><img width="150" height="150" src="http://www.kristou.com/wp-content/plugins/image-shadow/cache/2f549eca3f5b568bd2afbf60bb8b8d2c.jpg" class="attachment-thumbnail" alt="" title="IMG_0049" /></a>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kristou.com/archives/1212/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Remove items from deque, list or vector in a loop</title>
		<link>http://www.kristou.com/archives/1207</link>
		<comments>http://www.kristou.com/archives/1207#comments</comments>
		<pubDate>Fri, 27 Nov 2009 15:42:53 +0000</pubDate>
		<dc:creator>Kristou Mehrez</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[deque]]></category>
		<category><![CDATA[Erase]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[Loop]]></category>
		<category><![CDATA[rem]]></category>
		<category><![CDATA[Remove]]></category>
		<category><![CDATA[vector]]></category>

		<guid isPermaLink="false">http://www.kristou.com/?p=1207</guid>
		<description><![CDATA[Recently I needed to delete items from a sequence like a deque , list or vector from a for loop, I figured out that I have to do something like this:

for(iter = list.begin(); iter != list.end(); ++iter)
{
// your code
iter = list.erase(iter);
--iter;
// your code
}

It looks basic but it took me a while to figure it out [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I needed to delete items from a sequence like a deque , list or vector from a for loop, I figured out that I have to do something like this:</p>
<pre class="brush:cpp">
for(iter = list.begin(); iter != list.end(); ++iter)
{
// your code
iter = list.erase(iter);
--iter;
// your code
}
</pre>
<p>It looks basic but it took me a while to figure it out so I wanted to share in case somebody need it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kristou.com/archives/1207/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
