<?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>Bababa ba?</title>
	<atom:link href="http://baracoma.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://baracoma.wordpress.com</link>
	<description>Just another WordPress.com site</description>
	<lastBuildDate>Mon, 16 Jan 2012 16:10:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='baracoma.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Bababa ba?</title>
		<link>http://baracoma.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://baracoma.wordpress.com/osd.xml" title="Bababa ba?" />
	<atom:link rel='hub' href='http://baracoma.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Hello world!</title>
		<link>http://baracoma.wordpress.com/2012/01/03/hello-world/</link>
		<comments>http://baracoma.wordpress.com/2012/01/03/hello-world/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 08:28:41 +0000</pubDate>
		<dc:creator>baracoma</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://baracoma.wordpress.com/?p=1</guid>
		<description><![CDATA[Welcome to WordPress.com. After you read this, you should delete and write your own post, with a new title above. Or hit Add New on the left (of the admin dashboard) to start a fresh post. Here are some suggestions for your first post. You can find new ideas for what to blog about by [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=baracoma.wordpress.com&amp;blog=31076661&amp;post=1&amp;subd=baracoma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="https://wordpress.com/">WordPress.com</a>. After you read this, you should delete and write your own post, with a new title above. Or hit <a title="Direct link to the Add New in the Admin Dashboard" href="/wp-admin/post-new.php">Add New</a> on the left (of the <a title="Direct link to this blog's admin dashboard" href="/wp-admin">admin dashboard</a>) to start a fresh post.</p>
<p><a title="Learn WordPress.com—From zero to hero." href="http://learn.wordpress.com/">Here</a> are some suggestions for your first post.</p>
<ol>
<li>You can find new ideas for what to blog about by reading <a title="The Daily Post at WordPress.com—post something every day" href="http://dailypost.wordpress.com/">the Daily Post</a>.</li>
<li>Add <a title="Click the &quot;Press This&quot; link on this page to activate the Press this bookmark feature." href="/wp-admin/tools.php">PressThis</a> to your browser. It creates a new blog post for you about any interesting  page you read on the web.</li>
<li><a title="Edit the first post on this blog." href="/wp-admin/post.php?post=1&amp;action=edit">Make some changes to this page</a>, and then hit preview on the right. You can always preview any post or edit it before you share it to the world.</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/baracoma.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/baracoma.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/baracoma.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/baracoma.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/baracoma.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/baracoma.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/baracoma.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/baracoma.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/baracoma.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/baracoma.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/baracoma.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/baracoma.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/baracoma.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/baracoma.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=baracoma.wordpress.com&amp;blog=31076661&amp;post=1&amp;subd=baracoma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://baracoma.wordpress.com/2012/01/03/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9165e708e6211448b3d440fb45b257f1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">baracoma</media:title>
		</media:content>
	</item>
		<item>
		<title>Quit Bullshitting, Sky Internet</title>
		<link>http://baracoma.wordpress.com/2011/02/12/quit-bullshitting-sky-internet/</link>
		<comments>http://baracoma.wordpress.com/2011/02/12/quit-bullshitting-sky-internet/#comments</comments>
		<pubDate>Fri, 11 Feb 2011 19:18:01 +0000</pubDate>
		<dc:creator>baracoma</dc:creator>
				<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://ba.racoma.com.ph/?p=1155</guid>
		<description><![CDATA[Our internet has been dead at peak hours (for us that&#8217;s 12mn to 6am) this past week. Fed up, I resorted to calling our provider, Sky Internet. We&#8217;ve been losing precious hours and a few pesos finding alternate internet sources at such odd hours. First call, it was a recording of downtime at areas such [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=baracoma.wordpress.com&amp;blog=31076661&amp;post=1157&amp;subd=baracoma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Our internet has been dead at peak hours (for us that&#8217;s 12mn to 6am) this past week. Fed up, I resorted to calling our provider, Sky Internet. We&#8217;ve been losing precious hours and a few pesos finding alternate internet sources at such odd hours.</p>
<p>First call, it was a recording of downtime at areas such as Ortigas, Pasig, etc. Not hearing our area in the list, I called them again so I could speak to one of their agents.</p>
<p>Finally an agent answered. Before he could ask for my name I asked why we had no internet at our area, Loyola Heights. He didn&#8217;t answer the question, but instead, went for protocol and asked for my name. I gave it, and I also gave the name that was attached to our subscription. He then asked me where I was located despite me telling him that a few minutes ago.</p>
<p>He asked me to hold for a while, as he would be checking with their technicians to see where Internet would be down.</p>
<p>It was a good five minutes before he came back. The first thing he said? He told me to reset our router.</p>
<p>I said I&#8217;ll do that later since our router is upstairs.</p>
<p>He said try connecting the laptop to the router.</p>
<p>Again, I said I can only do that later.</p>
<p>Furious, I asked him if I did all those, if my Internet come back.</p>
<p>He said no, he wasn&#8217;t sure if those solutions would work.</p>
<p>It was then when I started ranting and rambling about how much precious time and money we wasted because one they couldn&#8217;t provide what we paid for, and second, because they won&#8217;t tell us straight if there was a problem.</p>
<p>I mean, if you&#8217;re the provider, and you know something is wrong, you should tell the user straight to the point that something is wrong, not blaming it on the user&#8217;s hardware.</p>
<p>He should have said, &#8220;sir we&#8217;ve been having problems&#8221; not &#8220;sir you should do this and this and that and shit&#8221; while covering up what has been happening.</p>
<p>GAHD.</p>
<p>30 minutes later the Internet was back up. Yes I restarted our router, but that was long before our connection came back up.</p>
<p>Dear Sky Internet Philippines, do your job. Quit bullshitting your users. Please deliver.</p>
<p>For other Sky Internet users, Internet at midnight to morning apparently has been erratic since Feb 7. WTF.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/baracoma.wordpress.com/1157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/baracoma.wordpress.com/1157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/baracoma.wordpress.com/1157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/baracoma.wordpress.com/1157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/baracoma.wordpress.com/1157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/baracoma.wordpress.com/1157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/baracoma.wordpress.com/1157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/baracoma.wordpress.com/1157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/baracoma.wordpress.com/1157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/baracoma.wordpress.com/1157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/baracoma.wordpress.com/1157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/baracoma.wordpress.com/1157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/baracoma.wordpress.com/1157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/baracoma.wordpress.com/1157/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=baracoma.wordpress.com&amp;blog=31076661&amp;post=1157&amp;subd=baracoma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://baracoma.wordpress.com/2011/02/12/quit-bullshitting-sky-internet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9165e708e6211448b3d440fb45b257f1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">baracoma</media:title>
		</media:content>
	</item>
		<item>
		<title>Wherever Our Hands and Hearts Bring Us</title>
		<link>http://baracoma.wordpress.com/2011/01/01/wherever-our-hands-and-hearts-bring-us/</link>
		<comments>http://baracoma.wordpress.com/2011/01/01/wherever-our-hands-and-hearts-bring-us/#comments</comments>
		<pubDate>Fri, 31 Dec 2010 18:07:11 +0000</pubDate>
		<dc:creator>baracoma</dc:creator>
				<category><![CDATA[Creative Writing]]></category>

		<guid isPermaLink="false">http://ba.racoma.com.ph/?p=1154</guid>
		<description><![CDATA[From sunset to sunrise, and sunrise to sunset, you have always been there for me. Whether it was bright or dark, you always held my hand. I&#8217;m holding on tight.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=baracoma.wordpress.com&amp;blog=31076661&amp;post=1156&amp;subd=baracoma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://img.photobucket.com/albums/v210/b3i__/sunrise.jpg" alt="" width="450" height="450" /></p>
<p>From sunset to sunrise, and sunrise to sunset, you have always been there for me.</p>
<p>Whether it was bright or dark, you always held my hand.</p>
<p>I&#8217;m holding on tight. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/baracoma.wordpress.com/1156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/baracoma.wordpress.com/1156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/baracoma.wordpress.com/1156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/baracoma.wordpress.com/1156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/baracoma.wordpress.com/1156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/baracoma.wordpress.com/1156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/baracoma.wordpress.com/1156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/baracoma.wordpress.com/1156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/baracoma.wordpress.com/1156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/baracoma.wordpress.com/1156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/baracoma.wordpress.com/1156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/baracoma.wordpress.com/1156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/baracoma.wordpress.com/1156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/baracoma.wordpress.com/1156/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=baracoma.wordpress.com&amp;blog=31076661&amp;post=1156&amp;subd=baracoma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://baracoma.wordpress.com/2011/01/01/wherever-our-hands-and-hearts-bring-us/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9165e708e6211448b3d440fb45b257f1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">baracoma</media:title>
		</media:content>

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/sunrise.jpg" medium="image" />
	</item>
		<item>
		<title>Remapping</title>
		<link>http://baracoma.wordpress.com/2010/10/05/remapping/</link>
		<comments>http://baracoma.wordpress.com/2010/10/05/remapping/#comments</comments>
		<pubDate>Tue, 05 Oct 2010 14:50:39 +0000</pubDate>
		<dc:creator>baracoma</dc:creator>
				<category><![CDATA[School]]></category>
		<category><![CDATA[Thoughts]]></category>

		<guid isPermaLink="false">http://ba.racoma.com.ph/?p=1152</guid>
		<description><![CDATA[After having lunch this afternoon, a good friend asked me what would be a good age to reach one&#8217;s personal goal. Meaning if I set realizable goals and dreams for myself, how old would I expect myself to be by that time. I told her that I plan on getting a few things done before [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=baracoma.wordpress.com&amp;blog=31076661&amp;post=1152&amp;subd=baracoma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After having lunch this afternoon, a good friend asked me what would be a good age to reach one&#8217;s personal goal. Meaning if I set realizable goals and dreams for myself, how old would I expect myself to be by that time.</p>
<p>I told her that I plan on getting a few things done before I turn 30.</p>
<p>Why 30?</p>
<p>30 years old is an age that I think is somewhat feasible for goals I have set for myself. By that age, I won&#8217;t be too young to lack maturity, and I also won&#8217;t be too old to be too late.</p>
<p>And then I remember, around 2 years ago, I wrote a blog entry on <a href="http://ba.racoma.com.ph/archives/because-they-say-writing-down-your-goals-might-actually-help-you-reach-them/">how I planned to live my life for the next 8 years</a>. Two years after writing that, I immediately looked it up and read it.</p>
<p><span id="more-1152"></span>In that blog entry I laid out different things. First I wrote about accepting the difficulty of my current situation. Next is I wrote about alternative paths. Then I zeroed in on specifics on what I want or what I can actually do to reach my goals. And finally I even set a time limit: I gave myself 8 years.</p>
<p>So now what I&#8217;d be doing is I&#8217;ll be addressing each point I wrote so I can realize where am I right now in my life.</p>
<p>&#8212;</p>
<blockquote><p><em>First I would have to accept the fact that I am not going to graduate on time. Whatever happens, pass or fail, I would not try anymore to fast forward my academic life. I will be doing things my pace while adhering to the maximum residency rule of the university (maximum time you can stay in UP = [years of academic program] + [years of academic program]/2 ). If I pass most of my subjects this semester, I’d only be taking an extra semester, if not, an extra year. Consequently, I won’t be taking up summer classes next summer. I’d be taking that time to finally take a break that I truly deserve. After all that hype before and after shifting, I think it would be time for me to sit down for a while, regroup, and recharge. Maybe I could even do some part-time work.</em></p></blockquote>
<p>Do you know what&#8217;s surprising? Even if I was already surrendering two years ago telling myself, &#8220;no BA, accept it, you won&#8217;t graduate on time,&#8221; <strong>I have a high chance of graduating April next year</strong>. Four summers I toiled and took classes instead of vacations (yes I didn&#8217;t follow my own road map). Also for a few semesters I almost maximized my allowable units. The result? I have 13 units (plus PE and CWTS) left for the next semester. That means I can actually take up an extra subject!</p>
<blockquote><p><em>Second, I would have to find alternative laboratories that I could do research in for my future thesis. Let’s face it, competition in the laboratories in National Institute of Physics is tough (in the Instrumentation Physics lab for example, out of 27 applicants they would only be accepting 13). So, I would be needing a back up plan if ever I don’t get in one. Surely, there are other laboratories around in the Philippines and it’s possible that I could do some research in them for my future thesis. I would just need to find out where these are and whom I could contact. And also, this is the hard part, I would need to find a thesis adviser who would take me in whatever academic state I’m in and wherever lab I’m from. Research areas I’m thinking of include meteorology, environmental science research, or possibly even geology.</em></p></blockquote>
<p>Do you know what&#8217;s surprising again? I got in the Instrumentation Physics Lab. So this part I didn&#8217;t have to worry about too much. Unfortunately my current research topic doesn&#8217;t deal with the research areas I had interest in. But still, I&#8217;m (somewhat) enjoying my stay in the laboratory.</p>
<p>Coincidentally, an offer came up this afternoon concerning a new and different research topic of interest. I&#8217;ll be looking more into it tomorrow.</p>
<blockquote><p><em>Third, I would take up a graduate course in any of these three fields: meteorology, environmental science, or geology. Yes, those are the three fields I mentioned in the previous paragraph. Why do I want to get into one of them, you ask? Because in the future, I really don’t want to be stuck in a jail cell more commonly referred to as an office cubicle. I want to go out in the world and explore, to learn things first hand. I want my job to be something that entails travel and field work and discovering and working with other people. And of course, having an Applied Physics degree would I guess be very much helpful in those fields.</em></p></blockquote>
<p>Yes. This still holds. I kept on mentioning that <a href="http://ba.racoma.com.ph/archives/looking-forward/">I won&#8217;t be kept in a box</a>, and that&#8217;s because I want to explore the world. I can&#8217;t learn about the world by bolstering myself inside an office.</p>
<p>I will learn about the world by plunging myself into the world.</p>
<p>Actually I have already zeroed in on what graduate course I&#8217;d be taking. God please let this be the right choice.</p>
<blockquote><p><em>Fourth, if God and the Jesuits permit, I would get a job as a Physics teacher in the Ateneo de Manila High School. While taking up one of the Master’s courses that I have mentioned, I guess it wouldn’t hurt to be earning a few extra cash while teaching kids the hardest subject in their fourth year lives in the process. There is a lack of Physics teachers (or just teachers for that matter) in high schools and I guess it wouldn’t be bad to help out for a while in one school until I finish my Master’s degree.</em></p></blockquote>
<p>Actually I forgot about this part. For a year I was really bent on wanting to be a teacher in the Ateneo High School. I even told my past teachers in the Ateneo about it (and they even said they&#8217;d already be writing recommendation forms for me). But then now I&#8217;m not so sure if I can actually stay in such an institution.</p>
<p>I have new principles and beliefs right now, and I&#8217;m not really sure if I would be passing on the right lessons to these Catholic school boys.</p>
<p>Also, I noticed that these kids are becoming richer and richer and at the same time brattier and brattier, so, I&#8217;m not really sure. Hahaha.</p>
<blockquote><p><em>Finally, if things work out the way I planned them to be, I want to settle down when I reach 28. Yeap, have a family and all that chorva. When I was a kid what I wanted to do was to get rich first, and then get married when I already have a lot of money. But with the recent hard times, if I’d continue with that in mind, I might end up settling down after I turn 50. Hahahaha. But seriously, rich or poor, as long as I have a stable source of income, by 28 I hope I’d already be starting a family.</em></p></blockquote>
<p>With regards to this goal, I just realized that if I&#8217;d be getting a PhD, I&#8217;d be getting it in around 6 or more years from now. So by the time I turn 28, I&#8217;ll just be fresh out of grad school. But yes, I think it&#8217;s still achievable. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>After a few conversations with some friends I have actually made peace with not being ultra-rich in finances as long as I&#8217;m ultra-rich in intellect and spirit. What good is money, when you&#8217;re not happy right?</p>
<p>&#8212;</p>
<p>So that&#8217;s where I am right now.</p>
<p>With this entry I was able to disprove and prove myself at the same time. Also a few plans from the blue-print are getting ready to be set on concrete. And finally, I have realized that I have 6 fucking years left before I turn 28.</p>
<p>Would I still be keeping my goal of 28 years old?</p>
<p>Oh God help me.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/baracoma.wordpress.com/1152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/baracoma.wordpress.com/1152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/baracoma.wordpress.com/1152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/baracoma.wordpress.com/1152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/baracoma.wordpress.com/1152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/baracoma.wordpress.com/1152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/baracoma.wordpress.com/1152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/baracoma.wordpress.com/1152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/baracoma.wordpress.com/1152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/baracoma.wordpress.com/1152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/baracoma.wordpress.com/1152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/baracoma.wordpress.com/1152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/baracoma.wordpress.com/1152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/baracoma.wordpress.com/1152/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=baracoma.wordpress.com&amp;blog=31076661&amp;post=1152&amp;subd=baracoma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://baracoma.wordpress.com/2010/10/05/remapping/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9165e708e6211448b3d440fb45b257f1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">baracoma</media:title>
		</media:content>
	</item>
		<item>
		<title>Category: AP186</title>
		<link>http://baracoma.wordpress.com/2010/09/23/category-ap186/</link>
		<comments>http://baracoma.wordpress.com/2010/09/23/category-ap186/#comments</comments>
		<pubDate>Thu, 23 Sep 2010 15:35:35 +0000</pubDate>
		<dc:creator>baracoma</dc:creator>
				<category><![CDATA[AP186]]></category>

		<guid isPermaLink="false">http://ba.racoma.com.ph/?p=1151</guid>
		<description><![CDATA[With the previous blog entry about image compression, I have written my last entry in my AP186 image processing blog entry series. Though this is the end of the blogs, this is not the end of all the image processing. To properly follow the series of blog entries, please click on the Category: AP186 located [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=baracoma.wordpress.com&amp;blog=31076661&amp;post=1151&amp;subd=baracoma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>With the previous blog entry about <a href="http://ba.racoma.com.ph/archives/activity-14-%e2%80%93-image-compression/">image compression</a>, I have written my last entry in my AP186 image processing blog entry series. Though this is the end of the blogs, this is not the end of all the image processing.</p>
<p>To properly follow the series of blog entries, please click on the <a href="http://ba.racoma.com.ph/category/ap186/">Category: AP186</a> located all over the blog (in each entry, in the right sidebar). But for convenience, I linked it here: <a href="http://ba.racoma.com.ph/category/ap186/">Category: AP186</a>. This is to avoid confusion from reading personal blog entries sandwiched between the image processing entries.</p>
<p>I hope you enjoyed and learned a lot from my blog entries. I&#8217;ve put a lot of effort in trying to keep my entries entertaining for my readers to not lose interest. <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Anyways. If you want to use them for reference, go ahead, just give credit where it&#8217;s due. I believe that in the near future I myself would be using my entries for reference</p>
<p>&#8216;Til next time.</p>
<p>PS If I will have fun in my project I&#8217;ll be posting a blog entry about it. Hehehe. We&#8217;ll see.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/baracoma.wordpress.com/1151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/baracoma.wordpress.com/1151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/baracoma.wordpress.com/1151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/baracoma.wordpress.com/1151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/baracoma.wordpress.com/1151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/baracoma.wordpress.com/1151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/baracoma.wordpress.com/1151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/baracoma.wordpress.com/1151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/baracoma.wordpress.com/1151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/baracoma.wordpress.com/1151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/baracoma.wordpress.com/1151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/baracoma.wordpress.com/1151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/baracoma.wordpress.com/1151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/baracoma.wordpress.com/1151/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=baracoma.wordpress.com&amp;blog=31076661&amp;post=1151&amp;subd=baracoma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://baracoma.wordpress.com/2010/09/23/category-ap186/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9165e708e6211448b3d440fb45b257f1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">baracoma</media:title>
		</media:content>
	</item>
		<item>
		<title>Activity 14 – Image Compression</title>
		<link>http://baracoma.wordpress.com/2010/09/23/activity-14-image-compression/</link>
		<comments>http://baracoma.wordpress.com/2010/09/23/activity-14-image-compression/#comments</comments>
		<pubDate>Thu, 23 Sep 2010 04:23:47 +0000</pubDate>
		<dc:creator>baracoma</dc:creator>
				<category><![CDATA[AP186]]></category>

		<guid isPermaLink="false">http://ba.racoma.com.ph/?p=1150</guid>
		<description><![CDATA[Back in 2002, my siblings and I had a relatively high-end computer. It had specs (500Ghz, 80gig hard drive and 512mb RAM, a good video card) that were optimal for playing the newest game at that time, which was the graphics and memory intensive Warcraft 3. Making my setup wicked still is that it had [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=baracoma.wordpress.com&amp;blog=31076661&amp;post=1150&amp;subd=baracoma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:center;"><img class="aligncenter" src="http://img.photobucket.com/albums/v210/b3i__/computer.jpg" alt="" width="350" height="263" /></p>
<p>Back in 2002, my siblings and I had a relatively high-end computer. It had specs (500Ghz, 80gig hard drive and 512mb RAM, a good video card) that were optimal for playing the newest game at that time, which was the graphics and memory intensive Warcraft 3. Making my setup wicked still is that it had two monitors, enabling me to chat and surf the web while at the same time playing Counter-Strike.</p>
<p>This set-up lasted for quite a few years. In fact, I&#8217;ve been using this computer until first year college. Through the years I pushed my use of its hard drive to the limit: I&#8217;ve reinstalled/changed its OS many times (Windows, Ubuntu, both), I partitioned the hard drive for different set-ups (for dual-booting, for media organization) and then I filled it with lots of stuff.</p>
<p>As I installed different games, captured more pictures, pirated more music (hehehe), downloaded more movies, the 80gig hard drive, I realized, was not enough with the demand for more storage. Even now that I own a 3 year old Macbook Pro with a hard drive of 160gig, I sometimes find this storage is not enough (as of now I only have 11.42 gigs left).</p>
<p>Of course, this demand was obvious to the computing community, and that is why different programmers developed different ways of compressing files. Zip, tar, rar, and all were basic solutions to compression of multiple files.</p>
<p>Another compression technique of interest is <strong>image compression</strong>.</p>
<p><span id="more-1150"></span>Cameras are evolving rapidly: from <a href="http://en.wikipedia.org/wiki/Pinhole_camera">pinholes</a> to higher grade lenses, from film to memory card storage. In the next few years we expect that cameras can capture images of higher and higher resolution. But problem is, higher resolution also means more space occupied. To be able to optimize your storage, images must be compressed, though not at the expense of losing quality.</p>
<p>That is why the <a href="http://www.jpeg.org/">Joint Photographic Experts Group</a> conceived the <a href="http://en.wikipedia.org/wiki/JPEG">JPEG image format</a>.</p>
<p>The JPEG compression algorithm is quite complicated and too technical, but one part of the algorithm catches our physicists&#8217; eye for pattens. An image can be reconstructed with the help of the <strong><a href="http://en.wikipedia.org/wiki/JPEG#Discrete_cosine_transform">combination of patterns obtained from a Discrete Cosine Transform (DCT)</a></strong>.</p>
<p style="text-align:center;"><img class="aligncenter" src="http://img.photobucket.com/albums/v210/b3i__/ap186/Dctjpeg.png" alt="" width="200" height="200" /><br />
&#8220;The DCT transforms an 8×8 block of input values to a linear combination of these 64 patterns. The patterns are<br />
referred to as the two-dimensional DCT basis functions, and the output values are referred to as transform<br />
coefficients. The horizontal index is u and the vertical index is v.&#8221; [2]</p>
<p>As physicists, besides learning the DCT, we also learned <strong>Principal Components Analysis (PCA)</strong> to represent different sets of data. PCA basically decomposes our data into eigenvalues, eigenvectors, and principal components. Similar to DCT, these broken down information can be used to reconstruct the original dataset. What we do is simply combine some of these components to able to reconstruct the original image. I say &#8220;some&#8221; because yes, it is possible that we can use only a few components to represent the original data without significant loss.</p>
<p>And that is where the beauty of DCT and PCA lies. From these methods we can choose to use different combinations basis functions to reconstruct our original image. Along these combinations you can choose to use less basis functions to reconstruct. Less basis functions for reconstruction means less memory used.</p>
<p>Now we are ready to compress an image using PCA.</p>
<p style="text-align:center;"><img src="http://img.photobucket.com/albums/v210/b3i__/ap186/ipod-1.jpg" alt="" /><img src="http://img.photobucket.com/albums/v210/b3i__/ap186/ipod_gray.jpg" alt="" /></p>
<p>We first get an image that we want to compress and then convert it to grayscale. Upon conversion, we chop up the image into 10&#215;10 regions. The chopped up images were then sampled using PCA, and then resulted to 100 basis functions, aka eigenimages representing the original image.</p>
<p style="text-align:center;"><img class="aligncenter" src="http://img.photobucket.com/albums/v210/b3i__/ap186/components.png" alt="" width="201" height="200" /></p>
<p>Notice that the components that the PCA method produced are similar to the components in the DCT method.</p>
<p>After obtaining our eigenimages, we use different combinations of the eigenimages multiplied to the principal components to get our reconstruction.</p>
<p style="text-align:center;"><img src="http://img.photobucket.com/albums/v210/b3i__/ap186/eigenimages.jpg" alt="" /></p>
<p>Above is the reconstruction using different numbers of eigenimages (the numbers are embedded on the photo as white text). Notice that even if we just used only 7 eigenimages, an accurate reconstruction is still produced. Quality then starts to decrease when we only used 4 eigenimages. Using 2 eigenimages for reconstruction, the quality then dramatically drops. But as seen in the last block, even 1 eigenimage can be used to reconstruct the image, though at low very quality (try squinting your eye, the image may still look like of high quality, hehe).</p>
<p>In theory, the image is already compressed because less eigenimages, meaning less information was needed to reconstruct the image.</p>
<p>I cannot make an analysis with regards to file size. Apparently, as you save your PCA compressed image using Scilab, it goes through another compression to make it JPG, effectively disregarding the previous compression we made.</p>
<p><strong>Conclusion</strong><br />
Principal Components Analysis instead of Discrete Cosine Transform was used to compress an image. An image can be reconstructed using small basis functions called eigenimages. It is possible that 7 eigenimages may already be enough to compress the image without a significant loss in quality.</p>
<p>I give myself a grade of<strong> 10/10</strong> for demonstrating knowledge of the subject and producing the needed results.</p>
<p><strong>Acknowledgments</strong></p>
<ul>
<li> Brian for helping me code.</li>
<li> Joseph for also helping me code and the discussions about eigenimages.</li>
<li> Dennis for insightful discussions and for sharing the frustration.</li>
<li>Troy for the Adobe Photoshop tips.</li>
</ul>
<p><strong>References</strong><br />
1. M Soriano, &#8220;A14 &#8211; Image Compression&#8221;<br />
2. http://en.wikipedia.org/wiki/JPEG<br />
3. http://en.wikipedia.org/wiki/Principal_component_analysis</p>
<p>&#8216;TIS DONE!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/baracoma.wordpress.com/1150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/baracoma.wordpress.com/1150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/baracoma.wordpress.com/1150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/baracoma.wordpress.com/1150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/baracoma.wordpress.com/1150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/baracoma.wordpress.com/1150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/baracoma.wordpress.com/1150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/baracoma.wordpress.com/1150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/baracoma.wordpress.com/1150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/baracoma.wordpress.com/1150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/baracoma.wordpress.com/1150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/baracoma.wordpress.com/1150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/baracoma.wordpress.com/1150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/baracoma.wordpress.com/1150/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=baracoma.wordpress.com&amp;blog=31076661&amp;post=1150&amp;subd=baracoma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://baracoma.wordpress.com/2010/09/23/activity-14-image-compression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9165e708e6211448b3d440fb45b257f1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">baracoma</media:title>
		</media:content>

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/computer.jpg" medium="image" />

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/Dctjpeg.png" medium="image" />

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/ipod-1.jpg" medium="image" />

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/ipod_gray.jpg" medium="image" />

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/components.png" medium="image" />

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/eigenimages.jpg" medium="image" />
	</item>
		<item>
		<title>Activity 13 – Color Image Segmentation</title>
		<link>http://baracoma.wordpress.com/2010/09/22/activity-13-color-image-segmentation/</link>
		<comments>http://baracoma.wordpress.com/2010/09/22/activity-13-color-image-segmentation/#comments</comments>
		<pubDate>Wed, 22 Sep 2010 05:58:40 +0000</pubDate>
		<dc:creator>baracoma</dc:creator>
				<category><![CDATA[AP186]]></category>

		<guid isPermaLink="false">http://ba.racoma.com.ph/?p=1149</guid>
		<description><![CDATA[Image borrowed from Dr. Freemason &#8220;Were you listening to me, Neo? Or were you looking at the woman in the red dress?&#8221; One of my favorite scenes in the Matrix (besides the spoon bending, bullet evading, reality warping scenes) is the scene wherein Neo is being taught the basics of the Matrix. Neo and Morpheus [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=baracoma.wordpress.com&amp;blog=31076661&amp;post=1149&amp;subd=baracoma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:center;"><img class="aligncenter" src="http://img.photobucket.com/albums/v210/b3i__/ap186/ladyinred.jpg" alt="" /><br />
Image borrowed from <a href="http://drfreemason.com/wp-content/gallery/lady-in-red/matrix-proverbial-red-dress-22.jpg">Dr. Freemason</a><br />
&#8220;Were you listening to me, Neo? Or were you looking at the woman in the red dress?&#8221;</p>
<p>One of my favorite scenes in the Matrix (besides the spoon bending, bullet evading, reality warping scenes) is the scene wherein Neo is being taught the basics of the Matrix. Neo and Morpheus were walking along a bustling street of seemingly hostile and preoccupied people clad in black. Morpheus was explaining something to Neo when a lady in a red dress walks by and catches Neo&#8217;s attention. And then we realize that the woman in red was just to test how cautious Neo, or even the viewer is with respect to his surroundings. Morpheus calls Neo&#8217;s attention and tells him to &#8220;look again,&#8221; only to find a gun point-blank towards his head.</p>
<p>Of course, this was just a simulation to test our hero, so Neo is still well and alive.</p>
<p>But you can&#8217;t blame Neo. In a sea of black coats, black ties and black socks (even black sunglasses) a beautiful woman wearing red is a very welcome distraction. If I were him I&#8217;d also be turning my head in admiration.</p>
<p>We human beings can easily distinguish prominent colors such as the red of the woman&#8217;s dress with the help of our eyes and brains. In a sea of black and white, it is easy to point out which is red. But how about our computers? How can we teach them to automatically isolate different colors?</p>
<p><span id="more-1149"></span>Today we learn about <strong>color image segmentation</strong> using two different methods: <strong>parametric image segmentation and non-parametric image segmentation</strong>.</p>
<p>But before we start isolating the colors, we first talk about <strong>brightness and chromaticity</strong>. A 3-dimensional object illuminated at a direction can have different colors at its different parts due to differing brightness along the object. That is why we just want to get the <strong>normalized chromaticity coordinates</strong> to help us in further segmentation. Getting the normalized chromaticity coordinates eliminates the effects of differing brightness, allowing us to analyze the object based on its color alone.</p>
<p>To get the normalized chromaticity coordinates, we first get the sum of the values of the three red, green and blue channels. Next is we divide each channel with the sum. Mathematically it is explained by the following equation:</p>
<p style="text-align:center;"><img class="aligncenter" src="http://img.photobucket.com/albums/v210/b3i__/ap186/ncc.png" alt="" /></p>
<p>where R, G, B are the red, green, and blue channels, I is the sum of these channels, and r, g, and b are the normalized chromaticities.</p>
<p>Notice that r+g+b = 1. We can then simply represent b as b=1-r-g to simplify our dimensions into 2.</p>
<p>Representing this in 2D space, we get</p>
<p style="text-align:center;"><img class="aligncenter" src="http://img.photobucket.com/albums/v210/b3i__/ap186/ncc_2d.png" alt="" /></p>
<p>where the x-axis represents the normalized red chromaticity, while the y-axis represents the normalized green chromaticity. Notice that when we get equal parts of red, green and blue (values of 33, 33, and 33 each), we get the color white.</p>
<p>Now that we are ready to segment our images using the two different methods.</p>
<p>To segment based on color, from the image we first <strong>get a region of interest (ROI) containing the color that we want to segment</strong>. This ROI we convert to normalized chromaticity coordinates for processing. Now we can choose what kind of segmentation we want.</p>
<p><strong>Parametric</strong><br />
Parametric segmentation is basically assuming that the color of interest we want is a Gaussian probability along the r and g axes of the normalized chromaticity coordinates. Thus, what we do is get the mean and the standard deviations along the r and g coordinates to get two different Gaussians along each axes. These Gaussians we multiply to get a probability distribution along the normalized chromaticity coordinates to get a Gaussian function containing similar colors.</p>
<p>In layman&#8217;s terms, what this does is it projects a Gaussian probability distribution in the normalized chromaticity coordinate plane, with mean and standard deviations coming from the ROI. This denotes the colors similar to our ROI.</p>
<p>This method effectively eliminates pixels of color not in the Gaussian probability distribution from the original image.</p>
<p><strong>Non-parametric</strong><br />
Non-parametric segmentation on the other hand, utilizes the ROI&#8217;s histogram along the normalized chromaticity coordinates. It takes values of the colors from the ROI and stores it in a histogram. This method stores the color information specific to the ROI. This means that it does not project different points in the normalized chromaticity coordinates. The advantage of this method is that it does not encapsulate colors that are not present in the ROI.</p>
<p>The obtained histogram is then projected back to the image. Each pixel is scanned and if the r,g, and b values of this pixel are within the histogram, the value of this coordinate is projected on to the image.</p>
<p>Both image segmentation methods are demonstrated in the image below.</p>
<p style="text-align:center;"><img class="aligncenter" src="http://img.photobucket.com/albums/v210/b3i__/ap186/ipod.jpg" alt="" /></p>
<p>From the image, we  can see that the parametric method segmented the whole iPod very  cleanly, selecting the whole iPod on the process. On the other hand the non-parametric method segmented only points near the  region of interest, and looked dirty compared to the parametric segmentation.</p>
<p>People may say that they prefer the parametric method due to its cleanliness, segmenting the whole object of interest. But sometimes this is not the case, when in the image there are other, err, uninteresting objects of similar color of our region of interest.</p>
<p style="text-align:center;"><img class="aligncenter" src="http://img.photobucket.com/albums/v210/b3i__/ap186/ipod_screen.jpg" alt="" /></p>
<p>Pictured above is the segmentation of the pink iPod along a laptop screen with a picture of an aurora. Since the aurora exhibits colors that are similar to the iPod, it too is segmented when we segment the image using the parametric method.</p>
<p>What if we want to segment the iPod only, not the screen?</p>
<p>With non-parametric segmentation, we can isolate the colors truly belonging to the iPod since we fill the histograms with the values found only in the ROI. We don&#8217;t overestimate some values, as the parametric segmentation sometimes does. Because we get only the colors inside the ROI, we can separate the iPod from the screen.</p>
<p style="text-align:center;"><img class="aligncenter" src="http://img.photobucket.com/albums/v210/b3i__/ap186/non_param.jpg" alt="" /></p>
<p>More interesting is that different ROIs yield different segmentations. At first glance of the unprocessed image the iPod&#8217;s color seems to be similar all throughout. Checking the histograms and the backprojections of different ROIs says otherwise.</p>
<p><strong>So when do we choose one over the other?</strong><br />
It depends on the application on which type of segmentation we would use. If we want to get the whole object, say, for applications of area counting, we can use the parametric segmentation since we can isolate the whole object using only a small patch. Though this process is in danger of segmenting from other parts of the image, you can still get the whole object through segmentation.</p>
<p>On the other hand if you strictly want just the color in or around the ROI, we can use the non-parametric image segmentation. As we see above, the pink iPod was separated from the pink aurora. Also, another application of this method is you can use multiple patches and store them in the same histogram to isolate objects of different colors at the same time (say you want to isolate a yellow ball at the same time with an orange ball).</p>
<p><strong>Conclusion</strong><br />
We have demonstrated image segmentation through two different methods: parametric and non-parametric segmentation. Advantages and disadvantages of each method were discussed. Applications for each method were also presented. For this activity, I give myself a grade of <span style="text-decoration:line-through;"><strong>11/10</strong></span> <strong>12/10</strong>. for thoroughly demonstrating knowledge about the subject and for giving the required output. Plus 1 for discussing and demonstrating when one method is more advantageous compared to the other. Another plus 1 for demonstrating both masking and NCC in the comment below.</p>
<p><strong>Acknowledgments</strong></p>
<ul>
<li> Miss Loren Tusara, for teaching me how to segment images 2 years ago. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  She greatly helped me in determining how to code the histogram backprojection method which I use for research up to this day.</li>
<li> Ma&#8217;am Jing for teaching me how to vectorize the backprojection code in an RM late last year.</li>
</ul>
<p><strong>References</strong><br />
M. Soriano, &#8220;Activity 13 – Color Image Segmentation&#8221;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/baracoma.wordpress.com/1149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/baracoma.wordpress.com/1149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/baracoma.wordpress.com/1149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/baracoma.wordpress.com/1149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/baracoma.wordpress.com/1149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/baracoma.wordpress.com/1149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/baracoma.wordpress.com/1149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/baracoma.wordpress.com/1149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/baracoma.wordpress.com/1149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/baracoma.wordpress.com/1149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/baracoma.wordpress.com/1149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/baracoma.wordpress.com/1149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/baracoma.wordpress.com/1149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/baracoma.wordpress.com/1149/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=baracoma.wordpress.com&amp;blog=31076661&amp;post=1149&amp;subd=baracoma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://baracoma.wordpress.com/2010/09/22/activity-13-color-image-segmentation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9165e708e6211448b3d440fb45b257f1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">baracoma</media:title>
		</media:content>

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/ladyinred.jpg" medium="image" />

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/ncc.png" medium="image" />

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/ncc_2d.png" medium="image" />

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/ipod.jpg" medium="image" />

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/ipod_screen.jpg" medium="image" />

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/non_param.jpg" medium="image" />
	</item>
		<item>
		<title>Activity 12 – Color Image Processing</title>
		<link>http://baracoma.wordpress.com/2010/09/22/activity-12-color-image-processing/</link>
		<comments>http://baracoma.wordpress.com/2010/09/22/activity-12-color-image-processing/#comments</comments>
		<pubDate>Wed, 22 Sep 2010 05:51:08 +0000</pubDate>
		<dc:creator>baracoma</dc:creator>
				<category><![CDATA[AP186]]></category>

		<guid isPermaLink="false">http://ba.racoma.com.ph/?p=1148</guid>
		<description><![CDATA[An obviously wrongly balanced image which was done on purpose to enhance the mood. In the previous entry, I mentioned that I am a musician, though informally trained. It&#8217;s one hobby that I pursue because I just want to enjoy it, so I don&#8217;t need to make it more complicated than what it really is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=baracoma.wordpress.com&amp;blog=31076661&amp;post=1148&amp;subd=baracoma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:center;"><img src="http://img.photobucket.com/albums/v210/b3i__/mucci.jpg" alt="" /><br />
An obviously wrongly balanced image which was done on purpose to enhance the mood.</p>
<p>In the previous entry, I mentioned that <a href="http://ba.racoma.com.ph/archives/activity-11-%e2%80%93-playing-notes-by-image-processing/">I am a musician</a>, though informally trained. It&#8217;s one hobby that I pursue because I just want to enjoy it, so I don&#8217;t need to make it more complicated than what it really is for me.</p>
<p>Another hobby that I pursue is photography, a field in which yet again, I am informally trained. I do not own professional grade cameras and equipment, nor have I attended any workshop on teaching me how to capture the perfect images. I just capture memories (yes, that&#8217;s what I think of my photos) on the go without any forethought on how to optimize the end product.</p>
<p>But one aspect in photography that I always am conscious of are the <strong>white balance settings.</strong></p>
<p><span id="more-1148"></span>This setting allows the modification, or more of <strong>adaptation of the camera to compensate for the light present in the scene</strong>. For example, you have a yellowish light illuminating the object, a white balance setting would negate the yellow effect on the object, allowing the capturing of the object&#8217;s true color.</p>
<p>So how do these white balance settings work?</p>
<p>Our memory machine, err, <strong>our camera basically stores color information by storing intensities of three different colors: red green and blue</strong>.</p>
<p>To illustrate mathematically, we have the following equations from our lab manual [1]</p>
<p style="text-align:center;"><img class="aligncenter" src="http://img.photobucket.com/albums/v210/b3i__/ap186/camerargb.png" alt="" /></p>
<p>where  S(λ) is the spectral power distribution of the incident light source, ρ(λ) is the surface reflectance  and η(λ) is the spectral sensitivity of the camera. Note that all these values are different for the red, green and blue plane. K is the balancing constant for the capturing process.</p>
<p>So now that we know how the camera captures images, we now look into how to balance our images. We look at two white balancing algorithms:<strong> the white patch algorithm and the gray world algorithm</strong>.</p>
<p><strong>White Patch Algorithm</strong><br />
In the white patch algorithm, what we do is simply <strong>select a true white patch</strong> from a wrongly balanced image. <strong>We want this white patch&#8217;s value to be 1 for all color planes</strong> (when R=G=B=1, we get the color white), so what we do is we get the values of red, green and blue from that white patch. After we obtained these values, we divide it from the whole image to get our balanced image.</p>
<p><strong>Gray World Algorithm</strong><br />
The gray world algorithm on the other hand<strong> utilizes the whole image</strong> rather than a patch of white. We get the average the values of each pixel from red, green and blue, and then divide the obtained value from their respective color plane. In using this algorithm, we assume that the mean color of the world is gray. </p>
<p style="text-align:center;"><img class="aligncenter" src="http://img.photobucket.com/albums/v210/b3i__/ap186/objects_whitevsgray.jpg" alt="" /></p>
<p>Above is an application of both the white patch algorithm and gray world algorithm on wrongly balanced images.</p>
<p>Notice that both algorithms worked properly, as we can distinguish each color properly.</p>
<p>So now we have two algorithms, when would we know when to choose one over the other?</p>
<p style="text-align:center;"><img class="aligncenter" src="http://img.photobucket.com/albums/v210/b3i__/ap186/monochromatic.jpg" alt="" /></p>
<p>Say in our image, each of the colors red, green and blue are not well represented, ie we have a set of similar colored objects. Invoking the white patch algorithm as seen above, we can be able to distinguish the different tones of red. However, invoking the gray world algorithm, the balancing goes awry.</p>
<p>How is this so?</p>
<p>Since the gray world algorithm requires the average value for each of the colors, we need to make sure that each color (or also the color white which is the combination of all colors) is well represented to avoid overbalancing (is there such a term?) of the image. This occurs when we divide the planes of the image wrong constants derived from getting the mean.</p>
<p>So now that we learned about white balancing, we try to apply it to real life.</p>
<p style="text-align:center;"><img class="aligncenter" src="http://img.photobucket.com/albums/v210/b3i__/ap186/jonabalance.jpg" alt="" /></p>
<p>Pictured above is our favorite seatmate, Jhona Rhaye who is coincidentally wearing white. Obviously, the image at first is wrongly balanced as Jonats seems like to be suffering from carotenosis (his skin is yellow-orangish). Using his shirt on the white patch algorithm we balance his photo. Also since the photo is mostly white from the CSRC environment and since white represents R, G and B equally, we can also use the gray world algorithm.</p>
<p><strong>Conclusion</strong><br />
We were able to automatically balance images through 2 algorithms, white patch algorithm and gray world algorithm. Since we were able to produce visually pleasing results, we give BA a grade of 10/10</p>
<p><strong>Acknowledgments</strong></p>
<ul>
<li> Dennis for collaborating with me on taking the photos.</li>
<li> May Ann and Tisza for their materials.</li>
<li> And Jonathan for his face.</li>
</ul>
<p>[1] Soriano, &#8220;A12 – Color Image Processing&#8221;</p>
<p><strong>As a post-script</strong><br />
At the top of this entry is a photo of the beautiful Mucci taken using a Nikon D3000. It was an inviting bright, warm and sunny morning and Mucci was unusually behaved and sweetly affectionate. To preserve the warmness of the memory, I chose a white balance that would enhance the warm colors (yellow and orange). For me, it was effective because I feel warm and comfortable every time I see this photo. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/baracoma.wordpress.com/1148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/baracoma.wordpress.com/1148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/baracoma.wordpress.com/1148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/baracoma.wordpress.com/1148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/baracoma.wordpress.com/1148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/baracoma.wordpress.com/1148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/baracoma.wordpress.com/1148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/baracoma.wordpress.com/1148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/baracoma.wordpress.com/1148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/baracoma.wordpress.com/1148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/baracoma.wordpress.com/1148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/baracoma.wordpress.com/1148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/baracoma.wordpress.com/1148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/baracoma.wordpress.com/1148/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=baracoma.wordpress.com&amp;blog=31076661&amp;post=1148&amp;subd=baracoma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://baracoma.wordpress.com/2010/09/22/activity-12-color-image-processing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9165e708e6211448b3d440fb45b257f1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">baracoma</media:title>
		</media:content>

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/mucci.jpg" medium="image" />

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/camerargb.png" medium="image" />

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/objects_whitevsgray.jpg" medium="image" />

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/monochromatic.jpg" medium="image" />

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/jonabalance.jpg" medium="image" />
	</item>
		<item>
		<title>Activity 11 – Playing Notes by Image Processing</title>
		<link>http://baracoma.wordpress.com/2010/09/22/activity-11-playing-notes-by-image-processing/</link>
		<comments>http://baracoma.wordpress.com/2010/09/22/activity-11-playing-notes-by-image-processing/#comments</comments>
		<pubDate>Tue, 21 Sep 2010 16:28:51 +0000</pubDate>
		<dc:creator>baracoma</dc:creator>
				<category><![CDATA[AP186]]></category>

		<guid isPermaLink="false">http://ba.racoma.com.ph/?p=1147</guid>
		<description><![CDATA[I am a musician. I am a musician in the sense that one, I can sing in tune, and two, I can play music using an instrument of choice, which is the guitar. But if you want to be very strict with your terms, I am not a formal musician. I sing and play music [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=baracoma.wordpress.com&amp;blog=31076661&amp;post=1147&amp;subd=baracoma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:center;"><img class="aligncenter" src="http://img.photobucket.com/albums/v210/b3i__/ap186/guitar.jpg" alt="" /></p>
<p>I am a musician.</p>
<p>I am a musician in the sense that one, I can sing in tune, and two, I can play music using an instrument of choice, which is the guitar.</p>
<p>But if you want to be very strict with your terms, I am not a formal musician. I sing and play music by ear. I base my music skills on what I hear. If you give me a musical piece to read and play (you know, with the staff and the notes), my brain automatically presses the pause button. <strong>I can&#8217;t read notes as fast as a formally trained musician can.</strong></p>
<p>Who needs notes anyway? I know that I can play and sing from my heart and soul, so, I don&#8217;t care much about formality.</p>
<p>That was what I thought until I joined the glee club back in high school.</p>
<p><span id="more-1147"></span>In the club, since I was a late addition, the conductor wasn&#8217;t able to let me listen through the whole song first. Instead, he gave me a score sheet to work with. Me being the informally trained musician, had a hard time deciphering which note is which. I had to do painstaking visual inspection. I stopped at every note and manually counted the lines or spaces needed to get to that note. Knowing which line it was, I recite the letters one by one. Knowing the letter, I *try* finding it on the piano. And then I finally sing.</p>
<p>Slow eh?</p>
<p>This is now where technology comes in.</p>
<p>Since note reading is simply visual inspection (wait did I say simply?), we can use different image processing techniques to teach a computer to read a musical score sheet for us.</p>
<p>So how do we go about this? We do it through the following steps:</p>
<p style="text-align:center;"><img src="http://img.photobucket.com/albums/v210/b3i__/ap186/ode.png" alt="" /></p>
<p><strong>First we get an image of the score that we want to read</strong>. For the purposes of this activity, we want to read Beethoven&#8217;s Symphony No. 9 due to it&#8217;s simplicity and familiarity.</p>
<p style="text-align:center;"><img src="http://img.photobucket.com/albums/v210/b3i__/ap186/odetojoy_inv.png" alt="" /></p>
<p>Second is we <strong>binarize the image through <a href="http://ba.racoma.com.ph/archives/activity-3-image-types-and-formats-part-2/">thresholding</a></strong>. After binarizing, <strong>we invert it</strong> by subtracting 1 from the whole image and then getting the absolute value.</p>
<p style="text-align:center;"><img src="http://img.photobucket.com/albums/v210/b3i__/ap186/note_quarter.png" alt="" /><br />
<img src="http://img.photobucket.com/albums/v210/b3i__/ap186/note_half.png" alt="" /></p>
<p>Next is we extract the different notes with the help of <a href="http://ba.racoma.com.ph/archives/activity-6-fourier-transform-model-of-image-formation/">template matching</a>. We get the templates of the quarter note and the half note pictured above. These notes we also binarize and invert.</p>
<p style="text-align:center;"><img src="http://img.photobucket.com/albums/v210/b3i__/ap186/odetojoy_quarter.png" alt="" /></p>
<p style="text-align:center;"><img src="http://img.photobucket.com/albums/v210/b3i__/ap186/odetojoy_half.png" alt="" /></p>
<p><strong>Then we get the Fourier transform of the note template, multiply it to the conjugate of the Fourier transform of the whole score, and then get the Fourier transform of the product. </strong>Once we get the points of highest correlation, we binarize by thresholding, and then apply morphological operations to clean up the image.</p>
<p>In this part of the coding, a little tweaking was done. The template matching for the quarter notes detected only the quarter notes while on the other hand, the template matching for the half notes detected BOTH the quarter and half notes. To account for this, the matched templates for the quarter notes were subtracted for the matched templates in the half notes. This leaves us with only the blobs of the half notes.</p>
<p style="text-align:center;"><img src="http://img.photobucket.com/albums/v210/b3i__/ap186/ode_summary.png" alt="" /><br />
A visual summary of the steps for comparison.</p>
<p>Now that we know the location and the type of the notes, we simply use these values to see what kind of notes they are. And with the help of Scilab&#8217;s <code>sound</code> function, we play the music.</p>
<p><a href="http://static.photobucket.com/player.swf">http://static.photobucket.com/player.swf</a></p>
<p>I&#8217;ve uploaded the music video (yes, I made a music video) to Photobucket. I don&#8217;t know if it&#8217;s streaming. If it&#8217;s not, I&#8217;ll try posting it to Youtube.</p>
<p><strong>Conclusion</strong><br />
A computer can be taught how to read musical score sheets encoded as images. This can be achieved through template matching, binary operations (thresholding, eroding, dilating, opening, closing) and point location. For this activity, I give myself a grade of <strong>10/10</strong>. Though I was able to post it very late, I know I did a well enough job. I understood and applied the concepts very well and produced the needed output.</p>
<p><strong>MUCH THANKS</strong></p>
<ul>
<li> Arvin Mabilangan for providing initial ideas on how to go about this activity.</li>
<li> Dennis Diaz, Tisza Trono, Andy Polinar, Aivin Solatorio, Joseph Bunao, for the discussions and sharing the frustration of writing this code.</li>
<li> Andy Polinar for giving me the idea on how to sort the notes</li>
<li> And most especially, Troy Gonzalez the musician for scoring the music. If it were not for you I wouldn&#8217;t be able to play this song.</li>
</ul>
<p><strong>References</strong><br />
1. Soriano, M. &#8221; Activity 11 – Playing Notes by Image Processing&#8221;<br />
2. http://www.phy.mtu.edu/~suits/notefreqs.html</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/baracoma.wordpress.com/1147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/baracoma.wordpress.com/1147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/baracoma.wordpress.com/1147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/baracoma.wordpress.com/1147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/baracoma.wordpress.com/1147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/baracoma.wordpress.com/1147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/baracoma.wordpress.com/1147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/baracoma.wordpress.com/1147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/baracoma.wordpress.com/1147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/baracoma.wordpress.com/1147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/baracoma.wordpress.com/1147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/baracoma.wordpress.com/1147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/baracoma.wordpress.com/1147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/baracoma.wordpress.com/1147/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=baracoma.wordpress.com&amp;blog=31076661&amp;post=1147&amp;subd=baracoma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://baracoma.wordpress.com/2010/09/22/activity-11-playing-notes-by-image-processing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9165e708e6211448b3d440fb45b257f1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">baracoma</media:title>
		</media:content>

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/guitar.jpg" medium="image" />

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/ode.png" medium="image" />

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/odetojoy_inv.png" medium="image" />

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/note_quarter.png" medium="image" />

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/note_half.png" medium="image" />

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/odetojoy_quarter.png" medium="image" />

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/odetojoy_half.png" medium="image" />

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/ode_summary.png" medium="image" />
	</item>
		<item>
		<title>Activity 10 – Binary Operations</title>
		<link>http://baracoma.wordpress.com/2010/09/09/activity-10-binary-operations/</link>
		<comments>http://baracoma.wordpress.com/2010/09/09/activity-10-binary-operations/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 04:44:01 +0000</pubDate>
		<dc:creator>baracoma</dc:creator>
				<category><![CDATA[AP186]]></category>

		<guid isPermaLink="false">http://ba.racoma.com.ph/?p=1146</guid>
		<description><![CDATA[An image of stars with a supernova, taken from Outer Space Site. As a kid, I used to be fascinated with outer space. Mainly, I guess, because of how my sister always exclaimed that she would be an astronaut when she grew up (although she never pursued this dream, as she became an attorney instead). [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=baracoma.wordpress.com&amp;blog=31076661&amp;post=1146&amp;subd=baracoma&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:center;"><img src="http://img.photobucket.com/albums/v210/b3i__/ap186/supernova2.jpg" alt="" /><br />
An image of stars with a supernova, taken from <a href="http://www.outerspacesite.com/supernova.html">Outer Space Site</a>.</p>
<p>As a kid, I used to be fascinated with outer space. Mainly, I guess, because of how my sister always exclaimed that she would be an astronaut when she grew up (although she never pursued this dream, as she became an attorney instead). I used to look at photos of stars in the net back then. In more recent years, I was giddy when I found out that Mac OSXs featured an image of an aurora with stars behind it as its initial wallpaper (see <a href="http://en.wikipedia.org/wiki/File:Leopard_Desktop.png">here</a>).</p>
<p><span id="more-1146"></span>When looking up in the sky with your bare eyes, the stars nearly look the same in terms of size, most of them simply bright white dots. But looking closer with the help of telescopes, as in the image pictured above, you would notice that other heavenly objects such as nebulae and supernova are present. You may also notice the differently sized stars.</p>
<p>In terms of research, it would be very interesting to be able to<strong> teach the computer to automatically differentiate these different objects from each other</strong>. It&#8217;s possible that you may have thousands of images of stars in your database and manually sorting and labeling them by size would be a great pain.</p>
<p>That is why there are different image pre-processing steps available. <strong>Binarizing the image by thresholding is one of them.</strong></p>
<p>But even though binarizing by thresholding your images may be of great help, sometimes it is not enough. What about in cases when even in careful thresholding, different artifacts are still present?</p>
<p style="text-align:center;"><img src="http://img.photobucket.com/albums/v210/b3i__/ap186/circles_thresh.png" alt="" /><br />
Simulation of normal cells and binarizing using a threshold</p>
<p>For example I have a simulation of different &#8220;normal&#8221; cells pictured above. I would want to know what the area of a normal cell is by labeling each cell and then counting the pixels that each cell contains. However, the labeling process goes awry because of the extra pixels that were not eliminated by our initial thresholding. The calculation for area by pixel counting would then be erroneous.</p>
<p>This is the reason why <a href="http://ba.racoma.com.ph/archives/activity-9-morphological-operations/">morphological operations</a> were invented. Morphological operations are preprocessing steps to help us enhance our images for easier and more advanced processing.</p>
<p>If you remember in the <a href="http://ba.racoma.com.ph/archives/activity-9-morphological-operations/">previous entry</a>, I mentioned the operations <strong>open</strong> (erode dilate) and <strong>close</strong> (dilate erode). These operations are very useful in cleaning up an image for preprocessing. Opening cleans up the image of blobs smaller than the structuring element, while close eliminates holes in the blobs in the image.</p>
<p>So how could these operations help us in our processing? First, <strong>by applying open our binarized image above, we eliminate the extra salt and pepper pixels</strong> on the right. And then by<strong> closing, we eliminate the holes inside the cell blob.</strong> Take note that since<strong> you reverse the initial operation applied</strong> (eroding after dilating, or dilating after eroding), you effectively <strong>restore the original size of the object after cleaning up the extra pixels or holes.</strong></p>
<p>Having cleaned up the area and closed up the cell while maintaining its original area, we can now count the pixels of our normal cell to get the the relevant values in calculating our area. </p>
<blockquote>
<p style="text-align:center;"><img class="aligncenter" src="http://img.photobucket.com/albums/v210/b3i__/ap186/circles-1.png" alt="" /></p>
<p>mean area = 523.77778 px<br />
stdev = 25.034421 px<br />
minimum = 478 px<br />
maximum = 615 px</p></blockquote>
<p>Now that we know this information, we can use it to isolate the normal cells from the abnormal cells.</p>
<p style="text-align:center;"><img class="aligncenter" src="http://img.photobucket.com/albums/v210/b3i__/ap186/Circles_with_cancer.jpg" alt="" width="382" height="316" /></p>
<p>Pictured above is another simulation of cells. but this time, rather than having all normal cells, mixed in are &#8220;cancer cells&#8221; distinguishable by their larger size. In this photo, there are at least 5 cancer cells mixed in.</p>
<p>So what we want to do is to automatically isolate these larger cells by using the information we have obtained beforehand. Remember that the <strong>opening operator erases objects that are smaller than the structuring element</strong>. What we can do then is<strong> create a structuring element with the same shape and size of the average normal cell</strong>. Applying the opening operator on the image using this structuring element effectively <strong>erases the normal cells</strong>, leaving the cancer cells behind.</p>
<p>In the case of our image, <strong>we shall make a circular structuring element very similar to the normal cells</strong>. Since we know the geometry of the cell, we use this information to create that structuring element. We use the maximum cell size to ensure deletion of smaller cells (615 pixels of are, so more or less a radius of 15 pixels will be used).</p>
<p style="text-align:center;"><img class="aligncenter" src="http://img.photobucket.com/albums/v210/b3i__/ap186/cancircles.png" alt="" /></p>
<p>Also note that the <strong>opening operator erases objects with respect to shape, not with respect to area</strong>. So even larger clumps of normal cells are erased due to their contiguous shape being close to the structuring element.</p>
<p><strong>Conclusion</strong><br />
In this activity we have applied two different preprocessing binary operations, namely<strong> thresholding</strong> and <strong>morphological operations</strong>. These operations are very helpful in enhancing our images for processing, such as in the case of this activity, isolation of cells by their area.</p>
<p>I give myself a grade of 10/10 for producing the needed output, and showing understanding of how to use different binary operations.</p>
<p><strong>Acknowledgements</strong><br />
As usual, I thank Dennis, Joseph, Mabi, Tisza, and ma&#8217;am Jing. I also thank Andy for adding a few insights.</p>
<p>References<br />
[1] http://www.outerspacesite.com/supernova.html<br />
[2] Maricor Soriano, &#8220;A10 &#8211; Binary Operations&#8221;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/baracoma.wordpress.com/1146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/baracoma.wordpress.com/1146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/baracoma.wordpress.com/1146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/baracoma.wordpress.com/1146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/baracoma.wordpress.com/1146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/baracoma.wordpress.com/1146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/baracoma.wordpress.com/1146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/baracoma.wordpress.com/1146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/baracoma.wordpress.com/1146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/baracoma.wordpress.com/1146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/baracoma.wordpress.com/1146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/baracoma.wordpress.com/1146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/baracoma.wordpress.com/1146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/baracoma.wordpress.com/1146/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=baracoma.wordpress.com&amp;blog=31076661&amp;post=1146&amp;subd=baracoma&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://baracoma.wordpress.com/2010/09/09/activity-10-binary-operations/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9165e708e6211448b3d440fb45b257f1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">baracoma</media:title>
		</media:content>

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/supernova2.jpg" medium="image" />

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/circles_thresh.png" medium="image" />

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/circles-1.png" medium="image" />

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/Circles_with_cancer.jpg" medium="image" />

		<media:content url="http://img.photobucket.com/albums/v210/b3i__/ap186/cancircles.png" medium="image" />
	</item>
	</channel>
</rss>
