<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5670790231004574442</id><updated>2011-09-03T05:31:09.397-07:00</updated><title type='text'>carmilumban_ ap186</title><subtitle type='html'>scilabsem</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://carmilumban-ap186.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://carmilumban-ap186.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>carmilumban</name><uri>http://www.blogger.com/profile/16390082465332891638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>22</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5670790231004574442.post-5287255497356925522</id><published>2010-10-24T01:25:00.000-07:00</published><updated>2010-10-24T01:36:04.779-07:00</updated><title type='text'>Determination of grain size</title><content type='html'>&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Image Processing&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;.. wala nang grades at stress this time &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/TMPvcnDZzHI/AAAAAAAAAeQ/yN5u7omVYqs/s1600/plate1.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 299px; height: 400px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/TMPvcnDZzHI/AAAAAAAAAeQ/yN5u7omVYqs/s400/plate1.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5531528042139733106" /&gt;&lt;/a&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Plate 1. Unknown Sample&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="font-size: 16px; "&gt;&lt;div style="text-align: justify; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;Jeffries Method&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;Table 1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;Table 2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;Mean Lineal Intercept Method (Heyn's Method)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;Table 3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;Table 4&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;Image processing using Scilab&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;Histogram&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;Table 5&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;clclclclclclclclcllclclclclclclclcllclclclclclclclclclclclclclclclclclclclclclclclclclclclclcllcllclcllclclclclcllclclclcllccccccccclllllllllllllllcllcl&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center; "&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/TMPt1sKpuuI/AAAAAAAAAeI/WeFat-KKYzc/s1600/plate+2+spheroideized+steel+1000x+img589.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 295px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/TMPt1sKpuuI/AAAAAAAAAeI/WeFat-KKYzc/s400/plate+2+spheroideized+steel+1000x+img589.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5531526273985788642" /&gt;&lt;/a&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/TMPt1sKpuuI/AAAAAAAAAeI/WeFat-KKYzc/s1600/plate+2+spheroideized+steel+1000x+img589.jpg"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Spheroidized Steel&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Jeffries Method&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Table 1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Table 2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Mean Lineal Intercept Method (Heyn's Method)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Table 3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Table 4&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Image processing using Scilab&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Histogram&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Table 5&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5670790231004574442-5287255497356925522?l=carmilumban-ap186.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carmilumban-ap186.blogspot.com/feeds/5287255497356925522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://carmilumban-ap186.blogspot.com/2010/10/determination-of-grain-size.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/5287255497356925522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/5287255497356925522'/><link rel='alternate' type='text/html' href='http://carmilumban-ap186.blogspot.com/2010/10/determination-of-grain-size.html' title='Determination of grain size'/><author><name>carmilumban</name><uri>http://www.blogger.com/profile/16390082465332891638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_PBEYFvSjHb0/TMPvcnDZzHI/AAAAAAAAAeQ/yN5u7omVYqs/s72-c/plate1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5670790231004574442.post-7447923133741585644</id><published>2009-10-03T05:25:00.001-07:00</published><updated>2009-10-14T02:18:34.602-07:00</updated><title type='text'>A18 – Noise models and basic image restoration</title><content type='html'>&lt;span style="font-size:100%;"&gt;In this activity this is what I did:&lt;br /&gt;&lt;br /&gt;Procedure:&lt;br /&gt;&lt;br /&gt;1. Add noise to the original image:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SshKYe79c_I/AAAAAAAAAco/L3bDBHxolAo/s1600-h/testpattern.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 201px; height: 182px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SshKYe79c_I/AAAAAAAAAco/L3bDBHxolAo/s400/testpattern.png" alt="" id="BLOGGER_PHOTO_ID_5388638738630669298" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:100%;"&gt;Original Image&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size:100%;"&gt;Noises:&lt;br /&gt;I applied the following noises using genradn and imnoise in Scilab and obtained their corresponding PDF p(z):&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/Ssm1Zkjn64I/AAAAAAAAAdo/2aMvTGI7ROE/s1600-h/1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 303px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/Ssm1Zkjn64I/AAAAAAAAAdo/2aMvTGI7ROE/s400/1.png" alt="" id="BLOGGER_PHOTO_ID_5389037880039959426" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;2. Filter the noisy images&lt;br /&gt;&lt;br /&gt;I made and then applied the following filters on each type of noise in (1).&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;Assuming a rectangular sub-image with of size &lt;/span&gt;&lt;span style="font-size:100%;"&gt; n*m, &lt;/span&gt;&lt;span style="font-size:100%;"&gt; n=m=3( for nearest neighbor perimeter)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;1.ARITHEMETIC&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; FILTER&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;2.GEOMETRIC FILTER&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;3.HARMONIC FILTER &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;4.CONTRAHARMNIC FILTER&lt;/span&gt;&lt;/p&gt;  &lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;Q=+1,- 1&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/SsmuoKTrCbI/AAAAAAAAAdY/Pv-7Kl3FrG8/s1600-h/3.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 282px; height: 400px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/SsmuoKTrCbI/AAAAAAAAAdY/Pv-7Kl3FrG8/s400/3.png" alt="" id="BLOGGER_PHOTO_ID_5389030434110376370" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;3. Determined which type of filter suited for each type noise.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In the following images  the arrangement is as follows:&lt;br /&gt;&lt;br /&gt;from the top- left-right :&lt;br /&gt;(1) NOISY image (2) &lt;/span&gt;&lt;span style="font-size:100%;"&gt;Filtered Image with Arithmetic Filter, &lt;/span&gt;&lt;span style="font-size:100%;"&gt; (3) &lt;/span&gt;&lt;span style="font-size:100%;"&gt;Arithmetic Filter&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;bottom-left-right   is :&lt;/span&gt;&lt;br /&gt;(4) Harmonic Filter, (5) Contraharmonic Filter : Q=-1, (6) Contraharmonic Filter : Q=+1.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;1. GAUSSIAN OR NORMAL NOISE, PDF AND FILTERING&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SshH6PFOfBI/AAAAAAAAAbI/ZSTtfp3nzn4/s1600-h/normal+pdf.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 302px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SshH6PFOfBI/AAAAAAAAAbI/ZSTtfp3nzn4/s400/normal+pdf.gif" alt="" id="BLOGGER_PHOTO_ID_5388636019955235858" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/SshKWkSqkXI/AAAAAAAAAcI/pD1WMb9iCU0/s1600-h/4.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 250px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/SshKWkSqkXI/AAAAAAAAAcI/pD1WMb9iCU0/s400/4.png" alt="" id="BLOGGER_PHOTO_ID_5388638705708339570" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;All but the geometric filter was able to somehow remove the gaussian noise in the image.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;div style="text-align: center;"&gt;2. RAYLEIGH  NOISE , PDF AND FILTERING&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SshH6vlkvsI/AAAAAAAAAbQ/ZYwcN9FaWs0/s1600-h/r+pdf.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 302px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SshH6vlkvsI/AAAAAAAAAbQ/ZYwcN9FaWs0/s400/r+pdf.gif" alt="" id="BLOGGER_PHOTO_ID_5388636028680847042" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SshKXNlDmyI/AAAAAAAAAcQ/tQbpHaAjAtY/s1600-h/5.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 250px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SshKXNlDmyI/AAAAAAAAAcQ/tQbpHaAjAtY/s400/5.png" alt="" id="BLOGGER_PHOTO_ID_5388638716791331618" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;From these results,  all the filter worked but I think the contraharmonic filter  with positive Q =+1 was most effective in removing the uniform noise since the filter at Q=+1 is beginning to restore the white circle at the center.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;3.EXPONENTIAL NOISE, PDF AND FILTERING&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/SshH5IaUaUI/AAAAAAAAAa4/fxv5HYK1xTs/s1600-h/exp+pdf.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 302px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/SshH5IaUaUI/AAAAAAAAAa4/fxv5HYK1xTs/s400/exp+pdf.gif" alt="" id="BLOGGER_PHOTO_ID_5388636000984787266" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SshIkL-ysLI/AAAAAAAAAb4/4AuIHAX7Ia4/s1600-h/2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 251px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SshIkL-ysLI/AAAAAAAAAb4/4AuIHAX7Ia4/s400/2.png" alt="" id="BLOGGER_PHOTO_ID_5388636740677447858" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;All the filter worked except the arithmetic filter.&lt;br /&gt;&lt;br /&gt;4.GAMMA NOISE AND FILTERING&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SshH5iChgVI/AAAAAAAAAbA/Q_Lln2iqS6g/s1600-h/gamma+pdf.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 302px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SshH5iChgVI/AAAAAAAAAbA/Q_Lln2iqS6g/s400/gamma+pdf.gif" alt="" id="BLOGGER_PHOTO_ID_5388636007864303954" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SshIk8Akg1I/AAAAAAAAAcA/PnUueLmJ-Ls/s1600-h/3.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 251px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SshIk8Akg1I/AAAAAAAAAcA/PnUueLmJ-Ls/s400/3.png" alt="" id="BLOGGER_PHOTO_ID_5388636753569809234" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;The  arithmetic and geometric filter cannot remove gamma noise.&lt;br /&gt;&lt;br /&gt;5.UNIFORM NOISE , PDF AND FILTERING&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SshIjdHQtqI/AAAAAAAAAbo/rCXXbJzBUjA/s1600-h/uniform+pdf.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 302px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SshIjdHQtqI/AAAAAAAAAbo/rCXXbJzBUjA/s400/uniform+pdf.gif" alt="" id="BLOGGER_PHOTO_ID_5388636728096503458" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SshKXxMY2uI/AAAAAAAAAcg/ef09z-d8HI8/s1600-h/7.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 251px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SshKXxMY2uI/AAAAAAAAAcg/ef09z-d8HI8/s400/7.png" alt="" id="BLOGGER_PHOTO_ID_5388638726351543010" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;The contra-harmonic filter was most effective since its &lt;span style="font-size:100%;"&gt;beginning to restore the white circle at the center.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6.SALT AND PEPPER NOISE AND FILTERING&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SshIixkAMGI/AAAAAAAAAbg/cMnRFYvgY2A/s1600-h/ss+pepper+pdf.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 302px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SshIixkAMGI/AAAAAAAAAbg/cMnRFYvgY2A/s400/ss+pepper+pdf.gif" alt="" id="BLOGGER_PHOTO_ID_5388636716405895266" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SshIjyfqIhI/AAAAAAAAAbw/tTjmriv2n0s/s1600-h/1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 251px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SshIjyfqIhI/AAAAAAAAAbw/tTjmriv2n0s/s400/1.png" alt="" id="BLOGGER_PHOTO_ID_5388636733835977234" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;Again , the contra-harmonic filter  wins.&lt;br /&gt;&lt;br /&gt;7.SPECKLE NOISE AND FILTERING&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SshH7PZNdGI/AAAAAAAAAbY/Y9W_Wf8wOig/s1600-h/speckle+pdf.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 302px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SshH7PZNdGI/AAAAAAAAAbY/Y9W_Wf8wOig/s400/speckle+pdf.gif" alt="" id="BLOGGER_PHOTO_ID_5388636037218923618" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SshKXU793gI/AAAAAAAAAcY/UpW5mpZkCLs/s1600-h/6.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 251px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SshKXU793gI/AAAAAAAAAcY/UpW5mpZkCLs/s400/6.png" alt="" id="BLOGGER_PHOTO_ID_5388638718766472706" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;Again , the contra-harmonic filter  wins (again).&lt;br /&gt;&lt;/div&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;SOURCE: A18 – Noise models and basic image restoration manual&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;ASSESSMENT: 10/10 because I was able to code and  implement all the image noise and image filters :) and use imnoise. The main problem was that for the results I only used the imwrite outputs. The imshow rendered different effects that seemed better than end results saved in imwrite :) ..odd&lt;br /&gt;&lt;br /&gt;GRATITUDE: I would like to thank Mandee and Alva for discussing with me :) (salamat)  and Gibert for the rayleigh.&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="PowerPoint.Slide"&gt;&lt;meta name="Generator" content="Microsoft PowerPoint 12"&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5670790231004574442-7447923133741585644?l=carmilumban-ap186.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carmilumban-ap186.blogspot.com/feeds/7447923133741585644/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/10/a18-noise-models-and-basic-image.html#comment-form' title='38 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/7447923133741585644'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/7447923133741585644'/><link rel='alternate' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/10/a18-noise-models-and-basic-image.html' title='A18 – Noise models and basic image restoration'/><author><name>carmilumban</name><uri>http://www.blogger.com/profile/16390082465332891638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_PBEYFvSjHb0/SshKYe79c_I/AAAAAAAAAco/L3bDBHxolAo/s72-c/testpattern.png' height='72' width='72'/><thr:total>38</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5670790231004574442.post-2250615775708646965</id><published>2009-10-03T05:22:00.000-07:00</published><updated>2009-10-12T19:46:06.611-07:00</updated><title type='text'>A19 – Restoration of blurred and noisy image</title><content type='html'>&lt;span style="color: rgb(0, 0, 0);font-family:arial;font-size:100%;"  &gt;&lt;br /&gt;&lt;/span&gt;&lt;p  style="margin: 4.8pt 0in 0pt 0.38in; line-height: normal; text-indent: -0.38in; direction: ltr; unicode-bidi: embed; color: rgb(0, 0, 0);font-family:times new roman;"&gt;&lt;span style="font-variant: normal; text-transform: none; letter-spacing: 0pt; font-weight: normal; font-style: normal; vertical-align: baseline; color: rgb(0, 0, 0);font-size:100%;" &gt;Objective: Be able to restore the &lt;/span&gt;&lt;span style="font-variant: normal; text-transform: none; letter-spacing: 0pt; font-weight: normal; font-style: normal; vertical-align: baseline;font-size:100%;" &gt;&lt;span style="color: rgb(255, 255, 255);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;original image from a degraded image using Wiener filter&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p  style="margin-top: 4.32pt; margin-bottom: 0pt; margin-left: 0.38in; text-indent: -0.38in; text-align: left; direction: ltr; unicode-bidi: embed; color: rgb(0, 0, 0);font-family:times new roman;"&gt;&lt;span style="font-size:100%;"&gt;Steps:&lt;/span&gt;&lt;/p&gt;  &lt;div class="O0"  style="margin-top: 4.32pt; margin-bottom: 0pt; margin-left: 0.38in; text-indent: -0.38in; text-align: left; direction: ltr; unicode-bidi: embed; color: rgb(0, 0, 0);font-family:times new roman;"&gt;&lt;span style="font-weight: bold;font-size:100%;" &gt;&lt;span style=""&gt;1.&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;"&gt;Motion blur the&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;  &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;original image&lt;/span&gt; by taking&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SsdMy2IQWFI/AAAAAAAAAXA/ziPDjLYOp0A/s1600-h/01.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 343px; height: 55px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SsdMy2IQWFI/AAAAAAAAAXA/ziPDjLYOp0A/s400/01.png" alt="" id="BLOGGER_PHOTO_ID_5388359915579398226" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p  style="margin-top: 4.32pt; margin-bottom: 0pt; margin-left: 0.38in; text-indent: -0.38in; text-align: left; direction: ltr; unicode-bidi: embed; color: rgb(0, 0, 0);font-family:times new roman;"&gt;&lt;span style="font-size:100%;"&gt;or  the product of FT of f(image) and h (spatial degradation function) that is G(&lt;/span&gt;&lt;span style="font-size:100%;"&gt;u,v&lt;/span&gt;&lt;span style="font-size:100%;"&gt;):&lt;/span&gt;&lt;/p&gt;&lt;p  style="margin-top: 4.32pt; margin-bottom: 0pt; margin-left: 0.38in; text-indent: -0.38in; text-align: left; direction: ltr; unicode-bidi: embed; color: rgb(0, 0, 0);font-family:times new roman;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="margin-top: 4.32pt; margin-bottom: 0pt; margin-left: 0.38in; text-indent: -0.38in; text-align: left; direction: ltr; unicode-bidi: embed; color: rgb(0, 0, 0);font-family:times new roman;"&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p  style="margin-top: 4.32pt; margin-bottom: 0pt; margin-left: 0.38in; text-indent: -0.38in; text-align: left; direction: ltr; unicode-bidi: embed; color: rgb(0, 0, 0);font-family:times new roman;"&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p  style="margin-top: 4.32pt; margin-bottom: 0pt; margin-left: 0.38in; text-indent: -0.38in; text-align: left; direction: ltr; unicode-bidi: embed; color: rgb(0, 0, 0);font-family:times new roman;"&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;span style="color: rgb(0, 0, 0);font-family:times new roman;font-size:100%;"  &gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SsdMzenJ9rI/AAAAAAAAAXI/28wKM11-uI8/s1600-h/02.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 221px; height: 40px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SsdMzenJ9rI/AAAAAAAAAXI/28wKM11-uI8/s400/02.png" alt="" id="BLOGGER_PHOTO_ID_5388359926446421682" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;where F(u,v) is the Fourier transform of the original image and H(u,v) is the trasfer function given by&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SsdO3P-UbcI/AAAAAAAAAXQ/RNGGKfOnlG8/s1600-h/03.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 381px; height: 83px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SsdO3P-UbcI/AAAAAAAAAXQ/RNGGKfOnlG8/s400/03.png" alt="" id="BLOGGER_PHOTO_ID_5388362190259776962" border="0" /&gt;&lt;/a&gt;where a and b is the total distance for which the image has been displaced in the x and y direction.&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;The blurred image g(x,y) is obtained by taking the ifft of G(u,v).This is shown below with &lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 0);"&gt;a=b=0.01 and T=1.&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:times new roman;font-size:100%;"  &gt;&lt;br /&gt;&lt;/span&gt;&lt;p  style="margin: 4.8pt 0in 0pt 0.38in; line-height: normal; text-indent: -0.38in; direction: ltr; unicode-bidi: embed; text-align: left; color: rgb(0, 0, 0);font-family:times new roman;"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SsdLo0jxo5I/AAAAAAAAAWw/Zu1L1TAqcHU/s1600-h/4.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 243px; height: 219px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SsdLo0jxo5I/AAAAAAAAAWw/Zu1L1TAqcHU/s400/4.jpg" alt="" id="BLOGGER_PHOTO_ID_5388358643847635858" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p face="times new roman" style="margin: 4.8pt 0in 0pt 0.38in; line-height: normal; text-indent: -0.38in; direction: ltr; unicode-bidi: embed; text-align: left; color: rgb(0, 0, 0); font-family: arial;"&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 12"&gt;&lt;meta name="Originator" content="Microsoft Word 12"&gt;&lt;link rel="File-List" href="file:///C:%5CUsers%5CUSA%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"&gt;&lt;link rel="themeData" href="file:///C:%5CUsers%5CUSA%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"&gt;&lt;link rel="colorSchemeMapping" href="file:///C:%5CUsers%5CUSA%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:trackmoves/&gt;   &lt;w:trackformatting/&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:donotpromoteqf/&gt;   &lt;w:lidthemeother&gt;EN-US&lt;/w:LidThemeOther&gt;   &lt;w:lidthemeasian&gt;JA&lt;/w:LidThemeAsian&gt;   &lt;w:lidthemecomplexscript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;    &lt;w:splitpgbreakandparamark/&gt;    &lt;w:dontvertaligncellwithsp/&gt;    &lt;w:dontbreakconstrainedforcedtables/&gt;    &lt;w:dontvertalignintxbx/&gt;    &lt;w:word11kerningpairs/&gt;    &lt;w:cachedcolbalance/&gt;    &lt;w:usefelayout/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;   &lt;m:mathpr&gt;    &lt;m:mathfont val="Cambria Math"&gt;    &lt;m:brkbin val="before"&gt;    &lt;m:brkbinsub val="&amp;#45;-"&gt;    &lt;m:smallfrac val="off"&gt;    &lt;m:dispdef/&gt;    &lt;m:lmargin val="0"&gt;    &lt;m:rmargin val="0"&gt;    &lt;m:defjc val="centerGroup"&gt;    &lt;m:wrapindent val="1440"&gt;    &lt;m:intlim val="subSup"&gt;    &lt;m:narylim val="undOvr"&gt;   &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"&gt;   &lt;w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"&gt;   &lt;w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 1"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 2"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 3"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 4"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 5"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 6"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 7"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 8"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 9"&gt;   &lt;w:lsdexception locked="false" priority="35" qformat="true" name="caption"&gt;   &lt;w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"&gt;   &lt;w:lsdexception locked="false" priority="1" name="Default Paragraph Font"&gt;   &lt;w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"&gt;   &lt;w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"&gt;   &lt;w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"&gt;   &lt;w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Revision"&gt;   &lt;w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"&gt;   &lt;w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"&gt;   &lt;w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"&gt;   &lt;w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"&gt;   &lt;w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"&gt;   &lt;w:lsdexception locked="false" priority="37" name="Bibliography"&gt;   &lt;w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:"ＭＳ 明朝"; 	panose-1:2 2 6 9 4 2 5 8 3 4; 	mso-font-alt:"MS Mincho"; 	mso-font-charset:128; 	mso-generic-font-family:roman; 	mso-font-pitch:fixed; 	mso-font-signature:-536870145 1791491579 18 0 131231 0;} @font-face 	{font-family:"Cambria Math"; 	panose-1:2 4 5 3 5 4 6 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:roman; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1073750139 0 0 159 0;} @font-face 	{font-family:"\@ＭＳ 明朝"; 	panose-1:2 2 6 9 4 2 5 8 3 4; 	mso-font-charset:128; 	mso-generic-font-family:roman; 	mso-font-pitch:fixed; 	mso-font-signature:-536870145 1791491579 18 0 131231 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:10.0pt; 	margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:"ＭＳ 明朝"; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing 	{mso-style-priority:1; 	mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:"ＭＳ 明朝"; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} .MsoChpDefault 	{mso-style-type:export-only; 	mso-default-props:yes; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:"ＭＳ 明朝"; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} .MsoPapDefault 	{mso-style-type:export-only; 	margin-bottom:10.0pt; 	line-height:115%;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.0in 1.0in 1.0in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin-top:0in; 	mso-para-margin-right:0in; 	mso-para-margin-bottom:10.0pt; 	mso-para-margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;/p&gt;&lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 12"&gt;&lt;meta name="Originator" content="Microsoft Word 12"&gt;&lt;link rel="File-List" href="file:///C:%5CUsers%5CUSA%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"&gt;&lt;link rel="themeData" href="file:///C:%5CUsers%5CUSA%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"&gt;&lt;link rel="colorSchemeMapping" href="file:///C:%5CUsers%5CUSA%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:trackmoves/&gt;   &lt;w:trackformatting/&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:donotpromoteqf/&gt;   &lt;w:lidthemeother&gt;EN-US&lt;/w:LidThemeOther&gt;   &lt;w:lidthemeasian&gt;JA&lt;/w:LidThemeAsian&gt;   &lt;w:lidthemecomplexscript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;    &lt;w:splitpgbreakandparamark/&gt;    &lt;w:dontvertaligncellwithsp/&gt;    &lt;w:dontbreakconstrainedforcedtables/&gt;    &lt;w:dontvertalignintxbx/&gt;    &lt;w:word11kerningpairs/&gt;    &lt;w:cachedcolbalance/&gt;    &lt;w:usefelayout/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;   &lt;m:mathpr&gt;    &lt;m:mathfont val="Cambria Math"&gt;    &lt;m:brkbin val="before"&gt;    &lt;m:brkbinsub val="&amp;#45;-"&gt;    &lt;m:smallfrac val="off"&gt;    &lt;m:dispdef/&gt;    &lt;m:lmargin val="0"&gt;    &lt;m:rmargin val="0"&gt;    &lt;m:defjc val="centerGroup"&gt;    &lt;m:wrapindent val="1440"&gt;    &lt;m:intlim val="subSup"&gt;    &lt;m:narylim val="undOvr"&gt;   &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"&gt;   &lt;w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"&gt;   &lt;w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 1"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 2"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 3"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 4"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 5"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 6"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 7"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 8"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 9"&gt;   &lt;w:lsdexception locked="false" priority="35" qformat="true" name="caption"&gt;   &lt;w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"&gt;   &lt;w:lsdexception locked="false" priority="1" name="Default Paragraph Font"&gt;   &lt;w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"&gt;   &lt;w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"&gt;   &lt;w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"&gt;   &lt;w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Revision"&gt;   &lt;w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"&gt;   &lt;w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"&gt;   &lt;w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"&gt;   &lt;w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"&gt;   &lt;w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"&gt;   &lt;w:lsdexception locked="false" priority="37" name="Bibliography"&gt;   &lt;w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:"ＭＳ 明朝"; 	panose-1:2 2 6 9 4 2 5 8 3 4; 	mso-font-alt:"MS Mincho"; 	mso-font-charset:128; 	mso-generic-font-family:roman; 	mso-font-pitch:fixed; 	mso-font-signature:-536870145 1791491579 18 0 131231 0;} @font-face 	{font-family:"Cambria Math"; 	panose-1:2 4 5 3 5 4 6 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:roman; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1073750139 0 0 159 0;} @font-face 	{font-family:"\@ＭＳ 明朝"; 	panose-1:2 2 6 9 4 2 5 8 3 4; 	mso-font-charset:128; 	mso-generic-font-family:roman; 	mso-font-pitch:fixed; 	mso-font-signature:-536870145 1791491579 18 0 131231 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:10.0pt; 	margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:"ＭＳ 明朝"; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing 	{mso-style-priority:1; 	mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:"ＭＳ 明朝"; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} .MsoChpDefault 	{mso-style-type:export-only; 	mso-default-props:yes; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:"ＭＳ 明朝"; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} .MsoPapDefault 	{mso-style-type:export-only; 	margin-bottom:10.0pt; 	line-height:115%;} @page Section1 	{size:8.5in 11.0in; 	margin:99.25pt 85.05pt 85.05pt 85.05pt; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin-top:0in; 	mso-para-margin-right:0in; 	mso-para-margin-bottom:10.0pt; 	mso-para-margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;/p&gt;&lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size:12pt;"&gt;&lt;a href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SsdLo0jxo5I/AAAAAAAAAWw/Zu1L1TAqcHU/s1600-h/4.jpg"&gt;&lt;span style="text-decoration: none; color: rgb(0, 0, 0);"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;font-size:100%;"  &gt;&lt;span style="font-size:12pt;"&gt;&lt;a href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SsdLo0jxo5I/AAAAAAAAAWw/Zu1L1TAqcHU/s1600-h/4.jpg"&gt;&lt;span style="text-decoration: none; color: rgb(0, 0, 0);"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 12"&gt;&lt;meta name="Originator" content="Microsoft Word 12"&gt;&lt;link rel="File-List" href="file:///C:%5CUsers%5CUSA%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"&gt;&lt;link rel="themeData" href="file:///C:%5CUsers%5CUSA%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"&gt;&lt;link rel="colorSchemeMapping" href="file:///C:%5CUsers%5CUSA%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:trackmoves/&gt;   &lt;w:trackformatting/&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:donotpromoteqf/&gt;   &lt;w:lidthemeother&gt;EN-US&lt;/w:LidThemeOther&gt;   &lt;w:lidthemeasian&gt;JA&lt;/w:LidThemeAsian&gt;   &lt;w:lidthemecomplexscript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;    &lt;w:splitpgbreakandparamark/&gt;    &lt;w:dontvertaligncellwithsp/&gt;    &lt;w:dontbreakconstrainedforcedtables/&gt;    &lt;w:dontvertalignintxbx/&gt;    &lt;w:word11kerningpairs/&gt;    &lt;w:cachedcolbalance/&gt;    &lt;w:usefelayout/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;   &lt;m:mathpr&gt;    &lt;m:mathfont val="Cambria Math"&gt;    &lt;m:brkbin val="before"&gt;    &lt;m:brkbinsub val="&amp;#45;-"&gt;    &lt;m:smallfrac val="off"&gt;    &lt;m:dispdef/&gt;    &lt;m:lmargin val="0"&gt;    &lt;m:rmargin val="0"&gt;    &lt;m:defjc val="centerGroup"&gt;    &lt;m:wrapindent val="1440"&gt;    &lt;m:intlim val="subSup"&gt;    &lt;m:narylim val="undOvr"&gt;   &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"&gt;   &lt;w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"&gt;   &lt;w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 1"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 2"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 3"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 4"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 5"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 6"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 7"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 8"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 9"&gt;   &lt;w:lsdexception locked="false" priority="35" qformat="true" name="caption"&gt;   &lt;w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"&gt;   &lt;w:lsdexception locked="false" priority="1" name="Default Paragraph Font"&gt;   &lt;w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"&gt;   &lt;w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"&gt;   &lt;w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"&gt;   &lt;w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Revision"&gt;   &lt;w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"&gt;   &lt;w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"&gt;   &lt;w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"&gt;   &lt;w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"&gt;   &lt;w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"&gt;   &lt;w:lsdexception locked="false" priority="37" name="Bibliography"&gt;   &lt;w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:"ＭＳ 明朝"; 	panose-1:2 2 6 9 4 2 5 8 3 4; 	mso-font-alt:"MS Mincho"; 	mso-font-charset:128; 	mso-generic-font-family:roman; 	mso-font-pitch:fixed; 	mso-font-signature:-536870145 1791491579 18 0 131231 0;} @font-face 	{font-family:"Cambria Math"; 	panose-1:2 4 5 3 5 4 6 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:roman; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1073750139 0 0 159 0;} @font-face 	{font-family:"\@ＭＳ 明朝"; 	panose-1:2 2 6 9 4 2 5 8 3 4; 	mso-font-charset:128; 	mso-generic-font-family:roman; 	mso-font-pitch:fixed; 	mso-font-signature:-536870145 1791491579 18 0 131231 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:10.0pt; 	margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:"ＭＳ 明朝"; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing 	{mso-style-priority:1; 	mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:"ＭＳ 明朝"; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} .MsoChpDefault 	{mso-style-type:export-only; 	mso-default-props:yes; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:"ＭＳ 明朝"; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} .MsoPapDefault 	{mso-style-type:export-only; 	margin-bottom:10.0pt; 	line-height:115%;} @page Section1 	{size:8.5in 11.0in; 	margin:99.25pt 85.05pt 85.05pt 85.05pt; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin-top:0in; 	mso-para-margin-right:0in; 	mso-para-margin-bottom:10.0pt; 	mso-para-margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;/p&gt;&lt;p  style="font-weight: bold; color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;2.Add noise to this blurred image&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-weight: bold; color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;For the noise I used: n=grand(ix,iy,'nor',0.05,0.06);&lt;/span&gt;&lt;/p&gt;&lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;The blurred and noisy image:&lt;/span&gt;&lt;/p&gt;&lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SsdLpaQbGaI/AAAAAAAAAW4/CKB95nVGzbc/s1600-h/5.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 243px; height: 219px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SsdLpaQbGaI/AAAAAAAAAW4/CKB95nVGzbc/s400/5.jpg" alt="" id="BLOGGER_PHOTO_ID_5388358653967014306" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style="color: rgb(0, 0, 0);font-family:arial;font-size:100%;"  &gt;&lt;br /&gt;&lt;span style=""&gt;&lt;a href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SsdLo0jxo5I/AAAAAAAAAWw/Zu1L1TAqcHU/s1600-h/4.jpg"&gt;&lt;span style="text-decoration: none; color: rgb(0, 0, 0);"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;  &lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;&lt;span style="font-weight: bold;"&gt;3.Use Wiener filter to restore the original image.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;The Wiener filter aka minimum mean square error filter or &lt;i&gt;least square error filter.&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="text-align: justify; color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;As stated earlier,the objective is to find an estimate of the original image f(x,y) from the&lt;span style=""&gt;  &lt;/span&gt;of the corrupted image such that the &lt;b&gt;mean square error&lt;/b&gt; between them is minimized. Based on these conditions, the &lt;b&gt;minimum of the error function&lt;/b&gt; is given in the frequency domain by the expression :&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="margin: 4.8pt 0in 0pt 0.38in; line-height: normal; text-indent: -0.38in; direction: ltr; unicode-bidi: embed; color: rgb(0, 0, 0);font-family:times new roman;"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/SsdLn0xyzMI/AAAAAAAAAWY/KJ_hucG6PdA/s1600-h/1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 83px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/SsdLn0xyzMI/AAAAAAAAAWY/KJ_hucG6PdA/s400/1.png" alt="" id="BLOGGER_PHOTO_ID_5388358626726563010" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="margin: 4.8pt 0in 0pt 0.38in; line-height: normal; text-indent: -0.38in; direction: ltr; unicode-bidi: embed; color: rgb(0, 0, 0);font-family:times new roman;"&gt;&lt;span style="font-size:100%;"&gt;where&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="margin: 4.8pt 0in 0pt 0.38in; line-height: normal; text-indent: -0.38in; direction: ltr; unicode-bidi: embed; color: rgb(0, 0, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SsdLoOywzrI/AAAAAAAAAWg/cyIkcqol7mA/s1600-h/2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 90px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SsdLoOywzrI/AAAAAAAAAWg/cyIkcqol7mA/s400/2.png" alt="" id="BLOGGER_PHOTO_ID_5388358633709948594" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;span style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt; From here the restored image f(x,y) can be retrieved as the ifft of F(u,v).&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SsdUUlsZpVI/AAAAAAAAAXY/6asOtHvE2E8/s1600-h/6.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 243px; height: 219px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SsdUUlsZpVI/AAAAAAAAAXY/6asOtHvE2E8/s400/6.jpg" alt="" id="BLOGGER_PHOTO_ID_5388368191864546642" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;4. Effects of varying the values of a,b and at constant T=1(sec) and applied noise (normal / gaussian).&lt;/span&gt;&lt;/p&gt;&lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/SsdtVuLXY8I/AAAAAAAAAXg/CW264BmXFnM/s1600-h/a1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 166px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/SsdtVuLXY8I/AAAAAAAAAXg/CW264BmXFnM/s400/a1.png" alt="" id="BLOGGER_PHOTO_ID_5388395699112469442" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;as expected , there will be no capture image as a=b=T=1.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/SsdtWPhFUcI/AAAAAAAAAXo/I1qPzld22YA/s1600-h/a2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 164px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/SsdtWPhFUcI/AAAAAAAAAXo/I1qPzld22YA/s400/a2.png" alt="" id="BLOGGER_PHOTO_ID_5388395708061929922" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SsdtXtDQM8I/AAAAAAAAAX4/edPQ8sX-R1s/s1600-h/a4.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 165px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SsdtXtDQM8I/AAAAAAAAAX4/edPQ8sX-R1s/s400/a4.png" alt="" id="BLOGGER_PHOTO_ID_5388395733169746882" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt; &lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SsdtWkayM6I/AAAAAAAAAXw/u9TM0LiWEwI/s1600-h/a3.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 164px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SsdtWkayM6I/AAAAAAAAAXw/u9TM0LiWEwI/s400/a3.png" alt="" id="BLOGGER_PHOTO_ID_5388395713672655778" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SsdtX40zCqI/AAAAAAAAAYA/CIExUe9Iu-Q/s1600-h/a5.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 169px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SsdtX40zCqI/AAAAAAAAAYA/CIExUe9Iu-Q/s400/a5.png" alt="" id="BLOGGER_PHOTO_ID_5388395736330341026" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;Here we notice that as the distance a,b is reduced the image captured becomes less blurred and  we can see that the text become more clear. Moreover, as the blurring is reduced the degradation due to the noise become more apparent and becomes a major factor in precluding the restoration of the image. So.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;5.Effects of varying the noise added while at constant a=b=0.01, and T=1.&lt;/span&gt;&lt;/p&gt;&lt;p  style="color: rgb(0, 0, 0);font-family:arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p face="arial" style="color: rgb(0, 0, 0);" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;APPLYING RAYLEIGH NOISE:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p face="arial" style="color: rgb(0, 0, 0);" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/Ssdv1ONifXI/AAAAAAAAAYo/YHMI2xpUam8/s1600-h/a10.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 162px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/Ssdv1ONifXI/AAAAAAAAAYo/YHMI2xpUam8/s400/a10.png" alt="" id="BLOGGER_PHOTO_ID_5388398439310720370" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;APPLYING EXPONENTIAL NOISE:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SsdvzmJSsBI/AAAAAAAAAYY/z8Y73iSLJag/s1600-h/a8.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 172px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SsdvzmJSsBI/AAAAAAAAAYY/z8Y73iSLJag/s400/a8.png" alt="" id="BLOGGER_PHOTO_ID_5388398411375620114" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;APPLYING UNIFORM NOISE:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SsdvzLHLWKI/AAAAAAAAAYQ/PB9KMX32jvE/s1600-h/a7.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 171px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SsdvzLHLWKI/AAAAAAAAAYQ/PB9KMX32jvE/s400/a7.png" alt="" id="BLOGGER_PHOTO_ID_5388398404118993058" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;APPLYING NORMAL OR GAUSSIAN NOISE:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/SsdvyePofXI/AAAAAAAAAYI/_ELv9pzWfOE/s1600-h/a6.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 158px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/SsdvyePofXI/AAAAAAAAAYI/_ELv9pzWfOE/s400/a6.png" alt="" id="BLOGGER_PHOTO_ID_5388398392074861938" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;APPLYING SPECKLE NOISE:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SsdwlhROU9I/AAAAAAAAAY4/Ru-AA4_Dotg/s1600-h/a12.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 162px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SsdwlhROU9I/AAAAAAAAAY4/Ru-AA4_Dotg/s400/a12.png" alt="" id="BLOGGER_PHOTO_ID_5388399269060170706" border="0" /&gt;&lt;/a&gt;The  speckle noise was easily removed by the W.Filter as seen in the image above but the restored image still retained the degradation effects of the blur.&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 0, 0); font-family: arial;" class="MsoNoSpacing"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 0, 0); font-family: arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;APPLYING SALT AND PEPPER NOISE:&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 0, 0); font-family: arial;" class="MsoNoSpacing"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/SsdwlL-5RBI/AAAAAAAAAYw/xH88CWFTGTE/s1600-h/a11.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 183px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/SsdwlL-5RBI/AAAAAAAAAYw/xH88CWFTGTE/s400/a11.png" alt="" id="BLOGGER_PHOTO_ID_5388399263346148370" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style="color: rgb(0, 0, 0);font-family:times new roman;font-size:100%;"  &gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SsdLo0jxo5I/AAAAAAAAAWw/Zu1L1TAqcHU/s1600-h/4.jpg"&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="PowerPoint.Slide"&gt;&lt;meta name="Generator" content="Microsoft PowerPoint 12"&gt;&lt;/a&gt;&lt;/span&gt;&lt;p  style="margin: 4.8pt 0in 0pt 0.38in; line-height: normal; text-indent: -0.38in; direction: ltr; unicode-bidi: embed; text-align: left; color: rgb(0, 0, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;Some errors and remarks:&lt;/span&gt;&lt;/p&gt;&lt;p  style="margin: 4.8pt 0in 0pt 0.38in; line-height: normal; text-indent: -0.38in; direction: ltr; unicode-bidi: embed; text-align: left; color: rgb(0, 0, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;I used the imwrite (Scilab) versions of the images  for the blurred, noisy and restored and not the imshow.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;I don't know but the resulting  imshow and  imwrite of the images are somewhat different:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div  style="text-align: center; color: rgb(0, 0, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SsyMVKjdacI/AAAAAAAAAdw/4GYgw_o5x7A/s1600-h/inshows.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 142px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SsyMVKjdacI/AAAAAAAAAdw/4GYgw_o5x7A/s400/inshows.png" alt="" id="BLOGGER_PHOTO_ID_5389837149293865410" border="0" /&gt;&lt;/a&gt;(LEFT) imshow  (RIGHT) imwrite&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-size:85%;"&gt;SOURCE: A19 Restoration of blurred and noisy image&lt;br /&gt;&lt;br /&gt;ASSESSMENT: 10/10 since I was able to implement the motion blurr and Wiener filter in Scilab and get the results for various parameter :) I also enjoyed doing this activity.&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style="font-family: arial; color: rgb(0, 0, 0);"&gt;&lt;/p&gt;&lt;p style="font-family: arial; color: rgb(0, 0, 0);"&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5670790231004574442-2250615775708646965?l=carmilumban-ap186.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carmilumban-ap186.blogspot.com/feeds/2250615775708646965/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/10/a19-restoration-of-blurred-image.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/2250615775708646965'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/2250615775708646965'/><link rel='alternate' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/10/a19-restoration-of-blurred-image.html' title='A19 – Restoration of blurred and noisy image'/><author><name>carmilumban</name><uri>http://www.blogger.com/profile/16390082465332891638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_PBEYFvSjHb0/SsdMy2IQWFI/AAAAAAAAAXA/ziPDjLYOp0A/s72-c/01.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5670790231004574442.post-6710765648190496283</id><published>2009-09-17T00:55:00.001-07:00</published><updated>2009-10-14T01:25:51.944-07:00</updated><title type='text'>A16 Neural Networks</title><content type='html'>We are done with pattern recognition and classification by (1) mean distance method and (2) probabilistic classification by LDA. Let us now try another classification technique by way of (3) probabilistic neural networks. A neural network is a mathematical model of how neurons in the brain work. Among the many function and varied capabilities of the brain is classification.&lt;br /&gt;&lt;br /&gt;Just like the brain, neural network can perform tasks based on experience. It can carry out mapping or classification only after learning the patterns of the classification scheme, something which can be taught by giving examples or training the program. Each example serves to improve the neural network program’s recognition processing.&lt;br /&gt;&lt;br /&gt;The architecture of this neural network is illustrated as:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SsglmXbhNhI/AAAAAAAAAaI/6PqbHKiTJsw/s1600-h/1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 323px; height: 259px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SsglmXbhNhI/AAAAAAAAAaI/6PqbHKiTJsw/s400/1.png" alt="" id="BLOGGER_PHOTO_ID_5388598295203493394" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Input layer- is where the features of the set are fed. This first layer computes distances from the input vector to the training input vectors and produces a vector whose elements indicate how close this input is to a training input.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hidden layer- acts contributions from the input layer by computing the summed probabilities for each class of inputs and passes the results to the output layer.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Output layer-outputs which class these set of feature vectors pertain/ belong to.&lt;br /&gt;&lt;br /&gt;In Scilab, we use ANN or Artificial Neural Network to do the classification of the set of features extracted in activity 14. The program used was adapted from Cole’ Blog.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In Activity 14, the samples consisted of 2 class of chips, the Cheese- it labeled as (0) and Pillows as (1). Each class has 12 samples and each sample is described by 4 features namely: hor*ver or area 1, area 2(#pixels), perimeter, and the ratio of area2/perimeter.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Procedure:&lt;br /&gt;&lt;br /&gt;1.Specify the no. of neurons in (4)input layer,(4) hidden layer and (1)output layer.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The ANN architecture&lt;br /&gt;&lt;br /&gt;N = [4,4,1];&lt;br /&gt;&lt;br /&gt;There are 4 features (normalized) extracted from each sample:&lt;br /&gt;These features were specified as x:&lt;br /&gt;&lt;br /&gt;x=read('data6train.txt',-1,4);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. Training&lt;br /&gt;&lt;br /&gt;Used 12 objects, 6 from each class in training process as the example classification&lt;br /&gt;&lt;br /&gt;t=[0 0 0 0 0 0 1 1 1 1 1 1];&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3. Learning&lt;br /&gt;&lt;br /&gt;The learning rate and threshold are specified by:&lt;br /&gt;&lt;br /&gt;lp = [0.1,0];&lt;br /&gt;&lt;br /&gt;Here 0.1 and 0 is the threshold for the error tolerated by the network:&lt;br /&gt;&lt;br /&gt;Training cycles or iterations:&lt;br /&gt;&lt;br /&gt;T = 1000;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4. Run the classification using ann_FF_Std_online and ann_FF_run(x,N,W);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;W = ann_FF_Std_online(x,t,N,W,lp,T);&lt;br /&gt;&lt;br /&gt;c=ann_FF_run(x,N,W);&lt;br /&gt;&lt;br /&gt;c=c'&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;5. Results and Discussion&lt;br /&gt;&lt;br /&gt;The expected output values were supposed to be in 0’s and 1’s. However the actual results as seen in column 1 Table1 were in decimal. Still, values for each sample were very close to 0 and 1’s and from here we can say that the program has learned the proper grouping of each sample.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/SsglmyKF0nI/AAAAAAAAAaQ/YxWfLdlqWLc/s1600-h/2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 215px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/SsglmyKF0nI/AAAAAAAAAaQ/YxWfLdlqWLc/s400/2.png" alt="" id="BLOGGER_PHOTO_ID_5388598302378152562" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Next, I tested whether the program is now ready for the real classification.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SsglnPf3T8I/AAAAAAAAAaY/HpC5ljsfvX0/s1600-h/3.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 302px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SsglnPf3T8I/AAAAAAAAAaY/HpC5ljsfvX0/s400/3.png" alt="" id="BLOGGER_PHOTO_ID_5388598310254104514" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This test worked well and the results show that the program worked with 100% correct classification.&lt;br /&gt;Then to see whether or not the program is dependent on the arrangement of the samples, I shuffled the arrangement of the test samples.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SsglnkIoKqI/AAAAAAAAAag/sRKc86EbpgA/s1600-h/4.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 249px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SsglnkIoKqI/AAAAAAAAAag/sRKc86EbpgA/s400/4.png" alt="" id="BLOGGER_PHOTO_ID_5388598315793787554" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Again the test worked well and the samples were classified correctly and showed that this time the program can work smoothly as it can adapt to the arrangement of the inputs.&lt;br /&gt;Then I tested the effects of varying the parameter T which is the no. of cycles or iterations.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SsgloA9JUjI/AAAAAAAAAao/I9FrKmgLFI4/s1600-h/5.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 211px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SsgloA9JUjI/AAAAAAAAAao/I9FrKmgLFI4/s400/5.png" alt="" id="BLOGGER_PHOTO_ID_5388598323530256946" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;As expected lowering the T value reduced the accuracy of the classification while increasing it improves the accuracy, although doing that took a rather a longer runtime. Still the classifications for both cases were all correct.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Afterwards I shuffled the 24 samples to test whether this program can still sort them into their respected classes. Then I just rearranged the output in order.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SsgoEM8qgOI/AAAAAAAAAaw/up3OcZ5qLwU/s1600-h/6.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 225px; height: 400px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SsgoEM8qgOI/AAAAAAAAAaw/up3OcZ5qLwU/s400/6.png" alt="" id="BLOGGER_PHOTO_ID_5388601006809055458" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;These tests proved that the program has learned the classification pattern and is 100% accurate.&lt;br /&gt;&lt;br /&gt;SOURCE: A16 Neural Networks Manual and Cole' Blog&lt;br /&gt;&lt;br /&gt;ASSESSMENT: 10/10 because I was able to use NN in Scilab and  make it classify my samples into their respective classes correctly.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5670790231004574442-6710765648190496283?l=carmilumban-ap186.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carmilumban-ap186.blogspot.com/feeds/6710765648190496283/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/09/a16-neural-networks_17.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/6710765648190496283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/6710765648190496283'/><link rel='alternate' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/09/a16-neural-networks_17.html' title='A16 Neural Networks'/><author><name>carmilumban</name><uri>http://www.blogger.com/profile/16390082465332891638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_PBEYFvSjHb0/SsglmXbhNhI/AAAAAAAAAaI/6PqbHKiTJsw/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5670790231004574442.post-8849820878228448775</id><published>2009-09-16T17:57:00.000-07:00</published><updated>2009-10-14T02:15:41.196-07:00</updated><title type='text'>A17 Photometric Stereo</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SrGQoBOxClI/AAAAAAAAATw/QilWvorg65U/s1600-h/ints.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 231px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SrGQoBOxClI/AAAAAAAAATw/QilWvorg65U/s320/ints.png" alt="" id="BLOGGER_PHOTO_ID_5382242046883990098" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;Fig1. Images I1,I2,I3 and I4&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="PowerPoint.Slide"&gt;&lt;meta name="Generator" content="Microsoft PowerPoint 12"&gt;  &lt;/div&gt;&lt;p  style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; direction: ltr; unicode-bidi: embed; text-align: justify;font-family:trebuchet ms;"&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; direction: ltr; unicode-bidi: embed; text-align: justify;font-family:trebuchet ms;"&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;Based on the manual for this activity , f&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;rom&lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt; &lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;the point sources &lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;locations (1) &lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;and intensities obtained from the 4 images of the object we are able to compute for g &lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;via equation (2). Next we determine &lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;the normal &lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;vector(3), and then compute &lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;component surface &lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;normals&lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;(&lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;nx,ny,nz&lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;) from each &lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;row.&lt;/span&gt;&lt;/p&gt;&lt;p  style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; direction: ltr; unicode-bidi: embed; text-align: justify;font-family:trebuchet ms;"&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SrGRThwyGUI/AAAAAAAAAUQ/lCAtXmxcyjQ/s1600-h/1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 305px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SrGRThwyGUI/AAAAAAAAAUQ/lCAtXmxcyjQ/s320/1.png" alt="" id="BLOGGER_PHOTO_ID_5382242794350975298" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; direction: ltr; unicode-bidi: embed; text-align: justify;font-family:trebuchet ms;"&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SrGRT_SpNqI/AAAAAAAAAUY/evNqdvt1QlI/s1600-h/2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 127px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SrGRT_SpNqI/AAAAAAAAAUY/evNqdvt1QlI/s320/2.png" alt="" id="BLOGGER_PHOTO_ID_5382242802277627554" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; direction: ltr; unicode-bidi: embed; text-align: justify; font-family: trebuchet ms;"&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="PowerPoint.Slide"&gt;&lt;meta name="Generator" content="Microsoft PowerPoint 12"&gt;  &lt;/p&gt;&lt;p  style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; direction: ltr; unicode-bidi: embed; text-align: justify;font-family:trebuchet ms;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;And relate these surface &lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;normals&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt; to the partial &lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt;derivatives&lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt; &lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;of &lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;f (4) and compute the elevation z=f(&lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;u,v&lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;) by taking the integral of in (5) &lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;via cumsum of (4) &lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;over x and y. This can be easily plotted in 3d using mesh.&lt;/span&gt;&lt;/p&gt;&lt;p  style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; direction: ltr; unicode-bidi: embed; text-align: justify;font-family:trebuchet ms;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/SrGS1zC0QyI/AAAAAAAAAU4/Mpz2gW2X504/s1600-h/3.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 191px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/SrGS1zC0QyI/AAAAAAAAAU4/Mpz2gW2X504/s320/3.png" alt="" id="BLOGGER_PHOTO_ID_5382244482617197346" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p  style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; direction: ltr; unicode-bidi: embed; text-align: center;font-family:trebuchet ms;"&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SrGRUwnyv-I/AAAAAAAAAUo/AAr2tIvxjYs/s1600-h/p4.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 242px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SrGRUwnyv-I/AAAAAAAAAUo/AAr2tIvxjYs/s320/p4.gif" alt="" id="BLOGGER_PHOTO_ID_5382242815519670242" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; direction: ltr; unicode-bidi: embed; font-family: trebuchet ms; text-align: center;"&gt;Fig 2. 3D plot of the object shape using mesh&lt;br /&gt;&lt;/p&gt;&lt;p  style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; direction: ltr; unicode-bidi: embed; text-align: justify;font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p  style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; direction: ltr; unicode-bidi: embed; text-align: justify;font-family:trebuchet ms;"&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;SOURCE:  A17 Photometric Stereo Manual&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p face="trebuchet ms" style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; direction: ltr; unicode-bidi: embed; text-align: justify;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p face="trebuchet ms" style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; direction: ltr; unicode-bidi: embed; text-align: justify;"&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;ASSESSMENT: 10 because I was able to reconstruct the surface using the directions in the manual :) and I was able to use mesh :)&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-size:100%;color:black;"  &gt; &lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;  &lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;  &lt;/div&gt;&lt;p face="trebuchet ms" style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; direction: ltr; unicode-bidi: embed; text-align: justify;"&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt; &lt;/span&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5670790231004574442-8849820878228448775?l=carmilumban-ap186.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carmilumban-ap186.blogspot.com/feeds/8849820878228448775/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/09/a17-photometric-stereo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/8849820878228448775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/8849820878228448775'/><link rel='alternate' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/09/a17-photometric-stereo.html' title='A17 Photometric Stereo'/><author><name>carmilumban</name><uri>http://www.blogger.com/profile/16390082465332891638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_PBEYFvSjHb0/SrGQoBOxClI/AAAAAAAAATw/QilWvorg65U/s72-c/ints.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5670790231004574442.post-924523695934903308</id><published>2009-09-02T19:25:00.000-07:00</published><updated>2009-10-12T18:46:48.070-07:00</updated><title type='text'>A15 Probabilistic Classification</title><content type='html'>&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 12"&gt;&lt;meta name="Originator" content="Microsoft Word 12"&gt;&lt;link rel="File-List" href="file:///C:%5CUsers%5CGuest%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"&gt;&lt;link rel="themeData" href="file:///C:%5CUsers%5CGuest%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"&gt;&lt;link rel="colorSchemeMapping" href="file:///C:%5CUsers%5CGuest%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:trackmoves/&gt;   &lt;w:trackformatting/&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:donotpromoteqf/&gt;   &lt;w:lidthemeother&gt;EN-US&lt;/w:LidThemeOther&gt;   &lt;w:lidthemeasian&gt;JA&lt;/w:LidThemeAsian&gt;   &lt;w:lidthemecomplexscript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;    &lt;w:splitpgbreakandparamark/&gt;    &lt;w:dontvertaligncellwithsp/&gt;    &lt;w:dontbreakconstrainedforcedtables/&gt;    &lt;w:dontvertalignintxbx/&gt;    &lt;w:word11kerningpairs/&gt;    &lt;w:cachedcolbalance/&gt;    &lt;w:usefelayout/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;   &lt;m:mathpr&gt;    &lt;m:mathfont val="Cambria Math"&gt;    &lt;m:brkbin val="before"&gt;    &lt;m:brkbinsub val="&amp;#45;-"&gt;    &lt;m:smallfrac val="off"&gt;    &lt;m:dispdef/&gt;    &lt;m:lmargin val="0"&gt;    &lt;m:rmargin val="0"&gt;    &lt;m:defjc val="centerGroup"&gt;    &lt;m:wrapindent val="1440"&gt;    &lt;m:intlim val="subSup"&gt;    &lt;m:narylim val="undOvr"&gt;   &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"&gt;   &lt;w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"&gt;   &lt;w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 1"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 2"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 3"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 4"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 5"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 6"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 7"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 8"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 9"&gt;   &lt;w:lsdexception locked="false" priority="35" qformat="true" name="caption"&gt;   &lt;w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"&gt;   &lt;w:lsdexception locked="false" priority="1" name="Default Paragraph Font"&gt;   &lt;w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"&gt;   &lt;w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"&gt;   &lt;w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"&gt;   &lt;w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Revision"&gt;   &lt;w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"&gt;   &lt;w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"&gt;   &lt;w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"&gt;   &lt;w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"&gt;   &lt;w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"&gt;   &lt;w:lsdexception locked="false" priority="37" name="Bibliography"&gt;   &lt;w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:"ＭＳ 明朝"; 	panose-1:2 2 6 9 4 2 5 8 3 4; 	mso-font-alt:"MS Mincho"; 	mso-font-charset:128; 	mso-generic-font-family:roman; 	mso-font-pitch:fixed; 	mso-font-signature:-536870145 1791491579 18 0 131231 0;} @font-face 	{font-family:"Cambria Math"; 	panose-1:0 0 0 0 0 0 0 0 0 0; 	mso-font-charset:1; 	mso-generic-font-family:roman; 	mso-font-format:other; 	mso-font-pitch:variable; 	mso-font-signature:0 0 0 0 0 0;} @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1073750139 0 0 159 0;} @font-face 	{font-family:"\@ＭＳ 明朝"; 	panose-1:2 2 6 9 4 2 5 8 3 4; 	mso-font-charset:128; 	mso-generic-font-family:roman; 	mso-font-pitch:fixed; 	mso-font-signature:-536870145 1791491579 18 0 131231 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:10.0pt; 	margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:"ＭＳ 明朝"; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} p 	{mso-style-priority:99; 	mso-margin-top-alt:auto; 	margin-right:0in; 	mso-margin-bottom-alt:auto; 	margin-left:0in; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman","serif"; 	mso-fareast-font-family:"Times New Roman";} .MsoChpDefault 	{mso-style-type:export-only; 	mso-default-props:yes; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:"ＭＳ 明朝"; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} .MsoPapDefault 	{mso-style-type:export-only; 	margin-bottom:10.0pt; 	line-height:115%;} @page Section1 	{size:8.5in 11.0in; 	margin:99.25pt 85.05pt 85.05pt 85.05pt; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin-top:0in; 	mso-para-margin-right:0in; 	mso-para-margin-bottom:10.0pt; 	mso-para-margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p&gt;&lt;b&gt;Linear discriminant analysis (LDA)&lt;/b&gt; is one of the techniques used pattern recognition to classify two or more classes of objects and in this case the separation of the 2 kinds of chips using the 4 features aextracte from previous activities. &lt;/p&gt;&lt;p&gt;The classification works by taking the combinations of features based on differences. Say the objects’ features are linearly separable, we can use linear discriminant model (LDA) formula given as: &lt;/p&gt;&lt;p&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SrHqMPnBybI/AAAAAAAAAWA/d6Grp0yjNN4/s1600-h/lda+2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 252px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SrHqMPnBybI/AAAAAAAAAWA/d6Grp0yjNN4/s400/lda+2.png" alt="" id="BLOGGER_PHOTO_ID_5382340525754010034" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;  &lt;p&gt;SOURCE: http://people.revoledu.com/kardi/tutorial/LDA/LDA.html#LDA&lt;/p&gt; This is a summary of the data used in activity 14:&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;Table 1.&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SrHqL3Dax3I/AAAAAAAAAV4/PdhcfM1wqA8/s1600-h/LDA+data.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 382px; height: 400px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SrHqL3Dax3I/AAAAAAAAAV4/PdhcfM1wqA8/s400/LDA+data.png" alt="" id="BLOGGER_PHOTO_ID_5382340519162201970" border="0" /&gt;&lt;/a&gt;Procedure:&lt;br /&gt;1. LDA&lt;br /&gt;After processing the data in Table 1 as input x in the implemented LDA formula in Scilab, each sample was easily classified as either belonging in class 1 or 2 depending on its value f.&lt;br /&gt;2. Determine if f1&gt;f2:&lt;br /&gt; By comparison,  a large value of f1 would mean that this object belonged to class 1 and and class 2 if f1 is small.&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/SrHqwIy7VTI/AAAAAAAAAWQ/2yo8IeJ1nRM/s1600-h/lda+3.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 215px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/SrHqwIy7VTI/AAAAAAAAAWQ/2yo8IeJ1nRM/s400/lda+3.png" alt="" id="BLOGGER_PHOTO_ID_5382341142400161074" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;The LDA worked successfully in assigning the 24 samples to its respective class.&lt;br /&gt;&lt;br /&gt;ASSESSMENT: 10/10 because I successfully implemented LDA in scilab and used EXCEL to summarize the data into tables :)&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5670790231004574442-924523695934903308?l=carmilumban-ap186.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carmilumban-ap186.blogspot.com/feeds/924523695934903308/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/09/a15-probabilistic-classification.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/924523695934903308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/924523695934903308'/><link rel='alternate' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/09/a15-probabilistic-classification.html' title='A15 Probabilistic Classification'/><author><name>carmilumban</name><uri>http://www.blogger.com/profile/16390082465332891638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_PBEYFvSjHb0/SrHqMPnBybI/AAAAAAAAAWA/d6Grp0yjNN4/s72-c/lda+2.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5670790231004574442.post-5920700016500907847</id><published>2009-08-26T10:11:00.000-07:00</published><updated>2009-10-12T19:32:39.398-07:00</updated><title type='text'>A14 Pattern Recognition</title><content type='html'>&lt;div style="text-align: justify;"&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="font-size:100%;"&gt;PROCEDURE:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="font-size:100%;"&gt;1. Trials&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Pattern recognition&lt;/span&gt; by way of shape classification was implemented in this activity where I took an image full of various shapes(Fig.1a),convert it to black and white after thresholding, and took the edges of  each shape, then labeled each shape and computed its perimeter by  bwlabel and tabul.&lt;/span&gt;&lt;/div&gt;&lt;div  style="color: rgb(0, 0, 0); text-align: justify;font-family:georgia;"&gt; &lt;/div&gt;&lt;div  style="color: rgb(0, 0, 0); text-align: justify;font-family:georgia;"&gt;&lt;span style="font-size:85%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SpVzCrC7DPI/AAAAAAAAARo/zr2vQI9jfTc/s1600-h/collections.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 275px; height: 320px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SpVzCrC7DPI/AAAAAAAAARo/zr2vQI9jfTc/s320/collections.jpg" alt="" id="BLOGGER_PHOTO_ID_5374328220088470770" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;a.original image&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SpWA8kkjWHI/AAAAAAAAAS4/xgqQIR0vdZw/s1600-h/im.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 275px; height: 320px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SpWA8kkjWHI/AAAAAAAAAS4/xgqQIR0vdZw/s320/im.jpg" alt="" id="BLOGGER_PHOTO_ID_5374343508434049138" border="0" /&gt;&lt;/a&gt;b. bw of the original im&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/SpWAsWnmKjI/AAAAAAAAASw/zBwqLJBcicQ/s1600-h/th.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 275px; height: 320px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/SpWAsWnmKjI/AAAAAAAAASw/zBwqLJBcicQ/s320/th.jpg" alt="" id="BLOGGER_PHOTO_ID_5374343229810813490" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;c. thin&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SpWBYOI9-pI/AAAAAAAAATA/fSg2ABimW4g/s1600-h/sk.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 275px; height: 320px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SpWBYOI9-pI/AAAAAAAAATA/fSg2ABimW4g/s320/sk.jpg" alt="" id="BLOGGER_PHOTO_ID_5374343983449111186" border="0" /&gt;&lt;/a&gt;d. skeleton&lt;br /&gt;&lt;br /&gt;Figure1.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div face="georgia" style="color: rgb(0, 0, 0); text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SpVzDePER2I/AAAAAAAAAR4/B5Cvw3YDF-o/s1600-h/collections+bw.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 274px; height: 320px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SpVzDePER2I/AAAAAAAAAR4/B5Cvw3YDF-o/s320/collections+bw.jpg" alt="" id="BLOGGER_PHOTO_ID_5374328233829615458" border="0" /&gt;&lt;/a&gt;Figure 2. Took the edge this time&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SpV8D0SF1mI/AAAAAAAAASg/uooUAXVBQAo/s1600-h/bar.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 223px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SpV8D0SF1mI/AAAAAAAAASg/uooUAXVBQAo/s400/bar.jpg" alt="" id="BLOGGER_PHOTO_ID_5374338135352530530" border="0" /&gt;&lt;/a&gt;Figure 3. Barplot of  each shape tagged from 1-30 and its corresponding perimeter.&lt;br /&gt;&lt;br /&gt;From Figure 3, the tally of the shapes are :DEW: 8,HEART: 5, petal :6, circle :10, leaf:1 and these results  agree with the number of occurrence of those patterns in Figure 1,2. :)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:78%;"&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-size:100%;"&gt;2. Minimum Distance Classification&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/SrGrCSBCIYI/AAAAAAAAAVw/UYY6lws_uFc/s1600-h/cb.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 218px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/SrGrCSBCIYI/AAAAAAAAAVw/UYY6lws_uFc/s320/cb.png" alt="" id="BLOGGER_PHOTO_ID_5382271085368713602" border="0" /&gt;&lt;/a&gt;Applying this,&lt;span style="font-size:85%;"&gt;we captured an image of 2 kinds(2 class) of chips and extracted the best features of the objects. After obtaining these features I separated them in half as training feature and test features.For each class, I computed mean feature vector mj and which I then used to classify the remaining test features. The one with the minimum distance was used determining which class an object belonged to. Afterward, the percent error of the classifier was then computed.&lt;/span&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="PowerPoint.Slide"&gt;&lt;meta name="Generator" content="Microsoft PowerPoint 12"&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;The original image (Fig4)has these vertical that I cannot remove using fft so I just used Gimp to remove it.Then I converted the image to grayscale then to bw after thresholding. I used dilation and erosion to finally clean the image. Here they are(Fig5).&lt;br /&gt;I then extracted the following features:&lt;br /&gt;&lt;br /&gt;1. AREA1 from the vertical and horizontal length of each chip,&lt;br /&gt;&lt;br /&gt;hor=[];ver=[];this=1;&lt;br /&gt;&lt;br /&gt;for i=2:n&lt;br /&gt;&lt;br /&gt;[x,y]=find(L==i); hor(this)=max(y)-min(y); ver(this)=max(x)-min(x);&lt;br /&gt;&lt;br /&gt;area1=ver.*hor; this=this+1;&lt;br /&gt;&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;area1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. AREA  from the length of the bwlabel(L,n) then the are itself by area=tabul(L,"i")&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3. the perimeter using edge of the bwlabel(L,n) then the are itself by perimeter=tabul(L,"i")&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4. ratio of area /perimeter by (area./perimeter)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;5. rgb component of each chip by&lt;br /&gt;&lt;br /&gt;r=im1(:,:,1);g=im1(:,:,2);b=im1(:,:,3);red=[];blue=[];green=[];&lt;br /&gt;&lt;br /&gt;this=1;for i=1:n&lt;br /&gt;&lt;br /&gt;[x,y]=find(L==i);&lt;br /&gt;&lt;br /&gt;//at that chip lang&lt;br /&gt;&lt;br /&gt;red(this)=mean(r(x));&lt;br /&gt;&lt;br /&gt;green(this)=mean(g(x));&lt;br /&gt;&lt;br /&gt;blue(this)=mean(b(x));&lt;br /&gt;&lt;br /&gt;this=this+1;&lt;br /&gt;&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;//lhat ng chip&lt;br /&gt;&lt;br /&gt;red&lt;br /&gt;&lt;br /&gt;green&lt;br /&gt;&lt;br /&gt;blue&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;p style="margin-top: 3.12pt; margin-bottom: 0pt; margin-left: 0.38in; text-indent: -0.38in; direction: ltr; unicode-bidi: embed;"&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="PowerPoint.Slide"&gt;&lt;meta name="Generator" content="Microsoft PowerPoint 12"&gt;  &lt;/p&gt;&lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:85%;"  &gt;After &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:85%;"  &gt;obtaining these features I separated them in half as training feature and test &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:85%;"  &gt;features.For&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:85%;"  &gt; each class, I computed mean feature vector &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:85%;"  &gt;mj&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:85%;"  &gt; and&lt;span style=""&gt;  &lt;/span&gt;which I then used to classify the remaining test features. The one with the minimum distance was used &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:85%;"  &gt;determinining&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:85%;"  &gt; which class an object belonged to. Afterwards, the percent error of the classifier was then computed.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; direction: ltr; unicode-bidi: embed;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; direction: ltr; unicode-bidi: embed;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SrGm8pCvikI/AAAAAAAAAVo/-e7k99Dzb_M/s1600-h/c4.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 266px; height: 320px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SrGm8pCvikI/AAAAAAAAAVo/-e7k99Dzb_M/s320/c4.png" alt="" id="BLOGGER_PHOTO_ID_5382266590424173122" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; direction: ltr; unicode-bidi: embed;"&gt;Fig 4 Image of the chips :), cheeseit and pillows&lt;br /&gt;&lt;/p&gt;    &lt;span style="font-size:85%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SrGmY_lH4AI/AAAAAAAAAVI/4IpIRnC7n0I/s1600-h/c5.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 254px; height: 320px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SrGmY_lH4AI/AAAAAAAAAVI/4IpIRnC7n0I/s320/c5.png" alt="" id="BLOGGER_PHOTO_ID_5382265977998663682" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;Fig 5 After removing the lines, graycaling, converting to bw, dilation and erosion .&lt;br /&gt;From here got the area from the vertical*horizontal line running across each chip and area from the sum(pixels)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SrGmZasZusI/AAAAAAAAAVQ/yzp3tZJZTC4/s1600-h/c6.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 254px; height: 320px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SrGmZasZusI/AAAAAAAAAVQ/yzp3tZJZTC4/s320/c6.jpg" alt="" id="BLOGGER_PHOTO_ID_5382265985276951234" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;Fig 6 Got the perimeter from the edges.&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:85%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/SrGmZ-7cg4I/AAAAAAAAAVY/rCcdphGPkOo/s1600-h/c7.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 196px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/SrGmZ-7cg4I/AAAAAAAAAVY/rCcdphGPkOo/s320/c7.png" alt="" id="BLOGGER_PHOTO_ID_5382265995003724674" border="0" /&gt;&lt;/a&gt;Table1: Summary of the extracted features.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:85%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SrGmaUNvcsI/AAAAAAAAAVg/M4H5A4uTRYw/s1600-h/c8.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 199px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SrGmaUNvcsI/AAAAAAAAAVg/M4H5A4uTRYw/s320/c8.png" alt="" id="BLOGGER_PHOTO_ID_5382266000717607618" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;Table 2. Summary of the data after &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;Minimum Distance Classification. In the classification I just used area1, area,perimeter, and area/perimeter in the classification(para madali).&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;SOURCE: A14 Pattern Recognition Manual&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;ASSESSMENT:  10/10 because I implemented my idea of using of  using only bwlabel  and tabul in getting the features from  areas to RGB of each sample.I was also able to apply other techniques from the previous activity. Then the classifier was 100% error free in classifying the two chips. (yes:)&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5670790231004574442-5920700016500907847?l=carmilumban-ap186.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carmilumban-ap186.blogspot.com/feeds/5920700016500907847/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/08/a14-pattern-recognition.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/5920700016500907847'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/5920700016500907847'/><link rel='alternate' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/08/a14-pattern-recognition.html' title='A14 Pattern Recognition'/><author><name>carmilumban</name><uri>http://www.blogger.com/profile/16390082465332891638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_PBEYFvSjHb0/SpVzCrC7DPI/AAAAAAAAARo/zr2vQI9jfTc/s72-c/collections.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5670790231004574442.post-942980365086379089</id><published>2009-08-19T19:02:00.000-07:00</published><updated>2009-10-13T07:09:22.171-07:00</updated><title type='text'>A13 – Correcting Geometric Distortions</title><content type='html'>&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="PowerPoint.Slide"&gt;&lt;meta name="Generator" content="Microsoft PowerPoint 12"&gt;  &lt;p style="margin-top: 4.32pt; margin-bottom: 0pt; text-align: left; direction: ltr; unicode-bidi: embed; vertical-align: baseline; color: rgb(0, 0, 0); font-weight: bold;"&gt;&lt;span style=";font-family:Calibri;font-size:130%;"  &gt;Two&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:130%;"  &gt; forms of d&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:130%;"  &gt;istortion&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:130%;"  &gt; commonly encountered in image processing :&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:130%;"  &gt; &lt;/span&gt;&lt;/p&gt;  &lt;div style="margin-top: 4.32pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed; vertical-align: baseline; color: rgb(0, 0, 0); font-weight: bold;"&gt;&lt;span style="font-size:130%;"&gt;&lt;span style=""&gt;1.&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:130%;"  &gt;Barrel effect&lt;/span&gt;&lt;/div&gt;  &lt;p style="margin: 4.32pt 0in 0pt 0.25in; line-height: normal; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed; vertical-align: baseline; color: rgb(0, 0, 0); font-weight: bold;"&gt;&lt;span style=";font-family:Calibri;font-size:130%;"  &gt;This effect gives the image an inflated&lt;span style=""&gt;  &lt;/span&gt;or blown up appearance .&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:130%;"  &gt;&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:130%;"  &gt; &lt;/span&gt;&lt;/p&gt;  &lt;div style="margin-top: 4.32pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed; vertical-align: baseline; color: rgb(0, 0, 0); font-weight: bold;"&gt;&lt;!--[if ppt]--&gt;&lt;span style="font-size:130%;"&gt;&lt;span style=""&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span style=";font-family:Calibri;font-size:130%;"  &gt; &lt;/span&gt;&lt;/div&gt;  &lt;p style="margin-top: 4.32pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed; vertical-align: baseline; color: rgb(0, 0, 0); font-weight: bold;"&gt;&lt;span style=";font-family:Calibri;font-size:130%;"  &gt;2. Pincushion Effect&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin: 4.32pt 0in 0pt 0.25in; line-height: normal; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed; vertical-align: baseline; color: rgb(0, 0, 0); font-weight: bold;"&gt;&lt;span style=";font-family:Calibri;font-size:130%;"  &gt;This effect gives the opposite of barrel distortion&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:130%;"  &gt; wherein the &lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:130%;"  &gt;image suffers&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:130%;"  &gt; from deflated&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:130%;"  &gt; appearance. &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;"  &gt;&lt;/span&gt;&lt;/p&gt; &lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;PROCEDURE:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;To correct for distortion we  need to capture a reference image with a regularly occuring pattern  so that we can visualize the distortion across the image frame.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;The correction will be done on two image properties:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;1. pixel coordinates and&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;2. graylevel values&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;1. From the most undistorted part of the image the  ideal grid vertex points were located and the  reference image for the corrected constructed.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;2.For each rectangle compute c1 to c8 using pairs of equations (x's,y's) from&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify; color: rgb(0, 0, 0);"&gt;the four corner points. Per pixel in the ideal rectangle,  the location of that point in the&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify; color: rgb(0, 0, 0);"&gt;distorted image was determined. If the computed distorted location is integer-valued, the grayscale value from the distorted image onto the blank pixel was used. If the location was not integer-valued,  the interpolated grayscale value was computed instead using the equations in the manula provided in the source.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;SOURCE: A13 Correcting Geometric Distortions Manual&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center; color: rgb(0, 0, 0);"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/Soy1Bmq_8TI/AAAAAAAAARY/tCFsyhRm0NY/s1600-h/square.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 266px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/Soy1Bmq_8TI/AAAAAAAAARY/tCFsyhRm0NY/s320/square.jpg" alt="" id="BLOGGER_PHOTO_ID_5371867494711554354" border="0" /&gt;&lt;/a&gt;Figure 1 . Distorted image&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center; color: rgb(0, 0, 0);"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/Soy1CCzqqkI/AAAAAAAAARg/2ZdZmlNh1ZQ/s1600-h/plots.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 266px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/Soy1CCzqqkI/AAAAAAAAARg/2ZdZmlNh1ZQ/s320/plots.jpg" alt="" id="BLOGGER_PHOTO_ID_5371867502264101442" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Figure 2. Reference image for the distorted image in figure1. pixel distances from a square in fig1.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;Since it was really difficult to correct the distortion in Figure 1 at once, I just tried to correct the distortion in 1/2 the image.&lt;br /&gt;So far&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/Sp8mNwLURMI/AAAAAAAAATY/sznzXF3i0bw/s1600-h/a.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 296px; height: 320px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/Sp8mNwLURMI/AAAAAAAAATY/sznzXF3i0bw/s320/a.png" alt="" id="BLOGGER_PHOTO_ID_5377058497816184002" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/Sp8mOZ1-29I/AAAAAAAAATg/HSd-LBgt6sA/s1600-h/b.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 290px; height: 320px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/Sp8mOZ1-29I/AAAAAAAAATg/HSd-LBgt6sA/s320/b.png" alt="" id="BLOGGER_PHOTO_ID_5377058509000989650" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/Sp8mOwG95fI/AAAAAAAAATo/qVnZbAzE_Ec/s1600-h/c.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 296px; height: 320px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/Sp8mOwG95fI/AAAAAAAAATo/qVnZbAzE_Ec/s320/c.png" alt="" id="BLOGGER_PHOTO_ID_5377058514977809906" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;Figure 3. a. Half portion of image 1, (b) Corrected image distortion using linear approximation and (c) using bilinear interpolation. The crooked lines in b and c are partly due to the error in the location of the corner points in locate(and the sobrang grabeng distortion).&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;div style="text-align: left;"&gt;&lt;div style="text-align: justify;"&gt;The quality of the corrected image using linear approximation was not as good as that of the bilinear interpolation since the image for the linear approximation using only the nearest neighbors resulted to more jagged corners for each square in the grid.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;ASSESSMENT: 9/10, because I didn't get the complete distortion correction of the image though I was able to implement the distortion correction in Scilab. The main problem and the hardest part was the location of the distorted points xi and yi. Eventhough I used locate I still couldn't get the exact endpoint for each square. I should have limited myself in either barrel or pincushion distortion. :)&lt;br /&gt;&lt;br /&gt;GRATITUDE:I would like to thank Mandee and Alva for teaching me how to do this activity :)&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5670790231004574442-942980365086379089?l=carmilumban-ap186.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carmilumban-ap186.blogspot.com/feeds/942980365086379089/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/08/a13-correcting-geometric-distortions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/942980365086379089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/942980365086379089'/><link rel='alternate' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/08/a13-correcting-geometric-distortions.html' title='A13 – Correcting Geometric Distortions'/><author><name>carmilumban</name><uri>http://www.blogger.com/profile/16390082465332891638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_PBEYFvSjHb0/Soy1Bmq_8TI/AAAAAAAAARY/tCFsyhRm0NY/s72-c/square.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5670790231004574442.post-1728618995635838296</id><published>2009-08-06T22:46:00.000-07:00</published><updated>2009-08-06T23:04:08.252-07:00</updated><title type='text'>A10 Preprocessing Text</title><content type='html'>Int this activity we tried to extract handwritten text from an imaged document with lines. This is often used in in handwriting recognition where individual examples of letters must be extracted.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SnvAuzOIEEI/AAAAAAAAALY/NrWX8kIbQGw/s1600-h/resibo.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 400px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SnvAuzOIEEI/AAAAAAAAALY/NrWX8kIbQGw/s400/resibo.jpg" alt="" id="BLOGGER_PHOTO_ID_5367095291198050370" border="0" /&gt;Fig. 1 The problem&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/SnvAvXO44VI/AAAAAAAAALg/-XtzKtg2oKE/s1600-h/hwa.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 193px; height: 137px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/SnvAvXO44VI/AAAAAAAAALg/-XtzKtg2oKE/s400/hwa.png" alt="" id="BLOGGER_PHOTO_ID_5367095300864926034" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SnvAuzOIEEI/AAAAAAAAALY/NrWX8kIbQGw/s1600-h/resibo.jpg"&gt;Fig. 2 Cropped image and mogrified to remove angle&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SnvAv7GcgFI/AAAAAAAAALo/K6G9LNP8EpE/s1600-h/hw1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 235px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SnvAv7GcgFI/AAAAAAAAALo/K6G9LNP8EpE/s400/hw1.png" alt="" id="BLOGGER_PHOTO_ID_5367095310493188178" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SnvAuzOIEEI/AAAAAAAAALY/NrWX8kIbQGw/s1600-h/resibo.jpg"&gt;Fig. 3 Histogram equalization 1&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="text-decoration: underline;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SnvAwQKB3BI/AAAAAAAAALw/VFSsPQecW5A/s1600-h/hw0.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 213px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SnvAwQKB3BI/AAAAAAAAALw/VFSsPQecW5A/s400/hw0.png" alt="" id="BLOGGER_PHOTO_ID_5367095316145363986" border="0" /&gt;&lt;/a&gt;F&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SnvAuzOIEEI/AAAAAAAAALY/NrWX8kIbQGw/s1600-h/resibo.jpg"&gt;ig. 4 Histogram equalization 2&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SnvAw_7vA0I/AAAAAAAAAL4/_SOCSZOiSqY/s1600-h/handw1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 74px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SnvAw_7vA0I/AAAAAAAAAL4/_SOCSZOiSqY/s400/handw1.png" alt="" id="BLOGGER_PHOTO_ID_5367095328970310466" border="0" /&gt;&lt;/a&gt; Fig. 5. Used the enhanced image in Figure 4. So, from the left the image, its shifted Fourier tranform, its mask to remove the horizontal lines and the final image with only the text and the horizontal lines gone.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SnvA-VAn8xI/AAAAAAAAAMA/nbzSQ_8vDS8/s1600-h/sulat.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 146px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SnvA-VAn8xI/AAAAAAAAAMA/nbzSQ_8vDS8/s400/sulat.png" alt="" id="BLOGGER_PHOTO_ID_5367095557966263058" border="0" /&gt;Figure 6. The histogram of the masked or cleaned image with handwriting. After thresholding , it was converted to a binary image to extract the text, but the text is still dirty.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In Figure 5 the desired text is already achieved and the image cleaned , but trying to extract the text requires more cleaning. But I think results inFigure 5 is already ok. I am still working on the threshoding and cleaning Figure 5 image... to get better results than what is shown in  Figure 6.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SnvA-VAn8xI/AAAAAAAAAMA/nbzSQ_8vDS8/s1600-h/sulat.png"&gt; &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5670790231004574442-1728618995635838296?l=carmilumban-ap186.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carmilumban-ap186.blogspot.com/feeds/1728618995635838296/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/08/a10-preprocessing-text.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/1728618995635838296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/1728618995635838296'/><link rel='alternate' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/08/a10-preprocessing-text.html' title='A10 Preprocessing Text'/><author><name>carmilumban</name><uri>http://www.blogger.com/profile/16390082465332891638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_PBEYFvSjHb0/SnvAuzOIEEI/AAAAAAAAALY/NrWX8kIbQGw/s72-c/resibo.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5670790231004574442.post-2038566738909818492</id><published>2009-08-05T19:29:00.000-07:00</published><updated>2009-08-07T07:54:37.614-07:00</updated><title type='text'>A11 Color Image Processing</title><content type='html'>Following the set procedure:&lt;br /&gt;1.We take the picture of colorful objects and an ensemble of objects with different shades , in this case shades in green from leaves.&lt;br /&gt;2. Under a fixed light source (sunlight, sunny) we took the their picture under proper and incorrect white balancing through the Auto, Cloudy, Daylight , Fluorescent and Incandescent settings.&lt;br /&gt;3. We proscessed these images through the white and gray world algorithm.&lt;br /&gt;4. For the WWA  we took the the RGB values of pixels belonging to the white object of objects. Let these be Rw, Gw, Bw and implement the White Patch algorithm by dividing all the pixels in the red layer of the image by Rw, the green layer by Gw and the blue layer by Bw. After making sure that no pixel exceed 1.0, the resulting image is shown in the second column in Figure 1.&lt;br /&gt;5. For the GWA we took the average red, green and bluevalue of the captured image and used them as the balancing constants and the resulting image is shown in the third column.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SnpGrMYrD2I/AAAAAAAAAKA/PStXB6GdjO0/s1600-h/1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 351px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SnpGrMYrD2I/AAAAAAAAAKA/PStXB6GdjO0/s400/1.png" alt="" id="BLOGGER_PHOTO_ID_5366679613838397282" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SnpPIBOQZ9I/AAAAAAAAAKQ/j_NBKdhqMlA/s1600-h/2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 263px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SnpPIBOQZ9I/AAAAAAAAAKQ/j_NBKdhqMlA/s400/2.png" alt="" id="BLOGGER_PHOTO_ID_5366688905151145938" border="0" /&gt;&lt;/a&gt;&lt;div style="text-align: center;"&gt;Figure 1.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;6. Afterwards we did the same procedure for the ensemble of green leaves and put them agains a white background. And &lt;span style="font-style: italic;"&gt;did&lt;/span&gt; both for the proper and improper white balancing for the outdoor illumination where AUTO nad DAYLIGHT provide the proper white balancing while CLOUDY, FLURESCENT and INCANDESCENT are the improper.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SnpPIzvK8uI/AAAAAAAAAKY/KfpYVzoMCmo/s1600-h/3.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 344px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SnpPIzvK8uI/AAAAAAAAAKY/KfpYVzoMCmo/s400/3.png" alt="" id="BLOGGER_PHOTO_ID_5366688918710973154" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Haha I couldn't make the imwrite fcn work in this activity so I just resorted to PrtSc and the images are  saturated since imshow has limited resolution and still saturated after multiplying the imshow by 0.5.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;br /&gt;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5670790231004574442-2038566738909818492?l=carmilumban-ap186.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carmilumban-ap186.blogspot.com/feeds/2038566738909818492/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/08/a11-color-image-processing.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/2038566738909818492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/2038566738909818492'/><link rel='alternate' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/08/a11-color-image-processing.html' title='A11 Color Image Processing'/><author><name>carmilumban</name><uri>http://www.blogger.com/profile/16390082465332891638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_PBEYFvSjHb0/SnpGrMYrD2I/AAAAAAAAAKA/PStXB6GdjO0/s72-c/1.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5670790231004574442.post-2138267253095437998</id><published>2009-08-05T18:54:00.000-07:00</published><updated>2009-08-06T19:40:26.138-07:00</updated><title type='text'>A12 Color Image Segmentation</title><content type='html'>Color segmentation can be performed by determining the probability that a pixel belongs to a color distribution of interest.This is how we can do just that.&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;1.The histogram of the region of interest (ROI) must first be extracted.&lt;br /&gt;&lt;br /&gt;2.Tag a pixel as belonging to the ROI or not is to find its probability of belonging to the color of the ROI&lt;br /&gt;&lt;br /&gt;3. We used the sample code in the manual to show just how histogram backprojection is implemented to tag the pixel and get its  histogram value in chromaticity space.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/Sno6fw9sSsI/AAAAAAAAAJo/_Uue8BoupkA/s1600-h/1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 302px; height: 302px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/Sno6fw9sSsI/AAAAAAAAAJo/_Uue8BoupkA/s400/1.png" alt="" id="BLOGGER_PHOTO_ID_5366666223359380162" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Figure 1.Normalized chromaticity&lt;br /&gt;space. X-axis is r and y-axis is g.[manual]&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/Sno6gEehEGI/AAAAAAAAAJw/IGqXu-m0qBI/s1600-h/2.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 300px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/Sno6gEehEGI/AAAAAAAAAJw/IGqXu-m0qBI/s400/2.jpg" alt="" id="BLOGGER_PHOTO_ID_5366666228597330018" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;Figure 2. Image 1-Christmas balls&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/Sno6glv6Y5I/AAAAAAAAAJ4/c9D6in0EOX4/s1600-h/3.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 148px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/Sno6glv6Y5I/AAAAAAAAAJ4/c9D6in0EOX4/s400/3.png" alt="" id="BLOGGER_PHOTO_ID_5366666237528662930" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;Figure 3. The top 3 RGB patches are taken from the RGB regions in figure 2. The 2D histograms at the bottom illustrate that these ROI coincide with the small region in their individual R G B space in the NCC shown on the left with the variation corresponding to the pixel chromaticity.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;As expected, images of the 3D objects such as bright colored balls have shading variations . Given that its shading variation due to brightness  is small, for the red green and blue ROI  pathces its  pixel chromaticities  for RGB will occupy a small portion in its region in NCC as in Figure 3.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The next step was to see which method was more effective in the tagging of the pixels RGB value with the first using use of the red and green joint PDF by parametric  segmentation with a  Gaussian Distribution function and the other using non parametric segmenatation which takes the 2D histogram of the ROI that is then used segment the image using histogram backprojection. For both technique the result should yield white or high peaks  (red in hotcolormap) for matches in the range of red and green of the ROI to that image pixel's RGB.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The results and code are shown below:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SnuK0jGOrkI/AAAAAAAAAKw/EPXSkma7SQo/s1600-h/4.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 358px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SnuK0jGOrkI/AAAAAAAAAKw/EPXSkma7SQo/s400/4.png" alt="" id="BLOGGER_PHOTO_ID_5367036016321277506" border="0" /&gt;&lt;/a&gt;Figure 4. The ROI was the red patch in the left middle of the red ball.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SnuK1A6yGiI/AAAAAAAAAK4/n1B5uU5bDR4/s1600-h/5.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 378px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SnuK1A6yGiI/AAAAAAAAAK4/n1B5uU5bDR4/s400/5.png" alt="" id="BLOGGER_PHOTO_ID_5367036024326330914" border="0" /&gt;&lt;br /&gt;&lt;/a&gt;&lt;div style="text-align: center;"&gt;Figure 5. The ROI was a blue patch in the left middle of the blue ball.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SnuTNTNDRvI/AAAAAAAAALQ/4mP3FEwwyzw/s1600-h/green.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 356px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SnuTNTNDRvI/AAAAAAAAALQ/4mP3FEwwyzw/s400/green.png" alt="" id="BLOGGER_PHOTO_ID_5367045237644674802" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SnuK1A6yGiI/AAAAAAAAAK4/n1B5uU5bDR4/s1600-h/5.png"&gt;&lt;br /&gt;&lt;/a&gt;&lt;div style="text-align: center;"&gt;Figure 6. The ROI was a green patch in the left middle of the green ball.&lt;/div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SnuTNAlLwPI/AAAAAAAAALI/cLka_sDF4jw/s1600-h/roi.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 80px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SnuTNAlLwPI/AAAAAAAAALI/cLka_sDF4jw/s400/roi.png" alt="" id="BLOGGER_PHOTO_ID_5367045232645619954" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Figure 7. Plots of Gaussian Probability Distribution of the red, blue and green ROI&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;It can be noted that both the parametric method and non parametric method were indeed effective in highlighting the image pixels with the same RGB probability distribution as seen in the rendered image.&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;br /&gt;&lt;span style=";font-family:arial;font-size:85%;"  &gt;Code:&lt;br /&gt;&lt;br /&gt;1st part:&lt;br /&gt;//////1. Capture a digital image of a 3D object with a single color (e.g. colored mugs,faces, hands or any exposed skin, brightly colored balls, etc.). You may also&lt;br /&gt;//////use colored pictures you've captured in previous activities.&lt;br /&gt;//&lt;br /&gt;//&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;stacksize(4e7);&lt;br /&gt;I=imread('red.jpg');&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//&lt;br /&gt;//R = I(:,:,1); G = I(:,:,2); B = I(:,:,3);&lt;br /&gt;//Int= R + G + B;&lt;br /&gt;//r=R./I;&lt;br /&gt;//g=G./I;&lt;br /&gt;//b=B./I;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I = double(I); //I is the image of the ROI&lt;br /&gt;R = I(:,:,1); G = I(:,:,2); B = I(:,:,3);&lt;br /&gt;Int= R + G + B;&lt;br /&gt;Int(find(Int==0))=100000;&lt;br /&gt;r = R./ Int; g = G./Int;&lt;br /&gt;BINS = 32;&lt;br /&gt;rint = round( r*(BINS-1) + 1);&lt;br /&gt;gint = round (g*(BINS-1) + 1);&lt;br /&gt;colors = gint(:) + (rint(:)-1)*BINS;&lt;br /&gt;hist = zeros(BINS,BINS);&lt;br /&gt;for row = 1:BINS&lt;br /&gt;for col = 1:(BINS-row+1)&lt;br /&gt;hist(row,col) = length( find(colors==( ((col + (row-1)*BINS)))));&lt;br /&gt;end&lt;br /&gt;end&lt;br /&gt;scf(1);&lt;br /&gt;subplot(221);&lt;br /&gt;imshow(I)&lt;br /&gt;subplot(222);&lt;br /&gt;imshow(hist,[]);xset('colormap',jetcolormap(64));&lt;br /&gt;//imwrite(hist,'redh.jpg');&lt;br /&gt;&lt;br /&gt;/////////////////////////////////////////&lt;br /&gt;&lt;br /&gt;I=imread('green.jpg');&lt;br /&gt;&lt;br /&gt;//&lt;br /&gt;//R = I(:,:,1); G = I(:,:,2); B = I(:,:,3);&lt;br /&gt;//Int= R + G + B;&lt;br /&gt;//r=R./I;&lt;br /&gt;//g=G./I;&lt;br /&gt;//b=B./I;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I = double(I); //I is the image of the ROI&lt;br /&gt;R = I(:,:,1); G = I(:,:,2); B = I(:,:,3);&lt;br /&gt;Int= R + G + B;&lt;br /&gt;Int(find(Int==0))=100000;&lt;br /&gt;r = R./ Int; g = G./Int;&lt;br /&gt;BINS = 32;&lt;br /&gt;rint = round( r*(BINS-1) + 1);&lt;br /&gt;gint = round (g*(BINS-1) + 1);&lt;br /&gt;colors = gint(:) + (rint(:)-1)*BINS;&lt;br /&gt;hist = zeros(BINS,BINS);&lt;br /&gt;for row = 1:BINS&lt;br /&gt;for col = 1:(BINS-row+1)&lt;br /&gt;hist(row,col) = length( find(colors==( ((col + (row-1)*BINS)))));&lt;br /&gt;end&lt;br /&gt;end&lt;br /&gt;scf(2);&lt;br /&gt;subplot(221);&lt;br /&gt;imshow(I);&lt;br /&gt;subplot(222);&lt;br /&gt;imshow(hist,[]);xset('colormap',jetcolormap(64));&lt;br /&gt;&lt;br /&gt;//imwrite(hist,'greenh.jpg');&lt;br /&gt;&lt;br /&gt;/////////////////////////////////////////&lt;br /&gt;&lt;br /&gt;I=imread('blue.jpg');&lt;br /&gt;&lt;br /&gt;//&lt;br /&gt;//R = I(:,:,1); G = I(:,:,2); B = I(:,:,3);&lt;br /&gt;//Int= R + G + B;&lt;br /&gt;//r=R./I;&lt;br /&gt;//g=G./I;&lt;br /&gt;//b=B./I;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I = double(I); //I is the image of the ROI&lt;br /&gt;R = I(:,:,1); G = I(:,:,2); B = I(:,:,3);&lt;br /&gt;Int= R + G + B;&lt;br /&gt;Int(find(Int==0))=100000;&lt;br /&gt;r = R./ Int; g = G./Int;&lt;br /&gt;BINS = 32;&lt;br /&gt;rint = round( r*(BINS-1) + 1);&lt;br /&gt;gint = round (g*(BINS-1) + 1);&lt;br /&gt;colors = gint(:) + (rint(:)-1)*BINS;&lt;br /&gt;hist = zeros(BINS,BINS);&lt;br /&gt;for row = 1:BINS&lt;br /&gt;for col = 1:(BINS-row+1)&lt;br /&gt;hist(row,col) = length( find(colors==( ((col + (row-1)*BINS)))));&lt;br /&gt;end&lt;br /&gt;end&lt;br /&gt;//scf(6);&lt;br /&gt;//subplot(221);&lt;br /&gt;//imshow(hist,[]);&lt;br /&gt;scf(3);&lt;br /&gt;subplot(221);&lt;br /&gt;imshow(I)&lt;br /&gt;subplot(222);&lt;br /&gt;imshow(hist,[]);xset('colormap',jetcolormap(64));&lt;br /&gt;//imwrite(hist,'blueh.jpg');&lt;br /&gt;&lt;br /&gt;2nd part:&lt;br /&gt;&lt;br /&gt;stacksize(50000000);&lt;br /&gt;&lt;br /&gt;//parametric segmentation&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//ROI,image patch&lt;br /&gt;ip=imread('red.jpg');//Imagepatches: red,green blue.jpg&lt;br /&gt;Rp = ip(:,:,1); Gp= ip(:,:,2); Bp = ip(:,:,3);&lt;br /&gt;Ip=Rp+Gp+Bp; Ip(find(Ip==0))=100000;&lt;br /&gt;&lt;br /&gt;//normalize&lt;br /&gt;Rp=Rp./Ip;Gp=Gp./Ip;Bp=Bp./Ip;&lt;br /&gt;&lt;br /&gt;//for the probability destribution&lt;br /&gt;//mean-nu&lt;br /&gt;rm=mean(Rp);gm=mean(Gp);bm=mean(Bp);&lt;br /&gt;&lt;br /&gt;//stdev-sigma&lt;br /&gt;rs=stdev(Rp);gs=stdev(Gp);bs=stdev(Bp);&lt;br /&gt;&lt;br /&gt;//whole image&lt;br /&gt;wi=imread('balls.jpg');&lt;br /&gt;R=wi(:,:,1);G=wi(:,:,2);B=wi(:,:,3);&lt;br /&gt;&lt;br /&gt;I=R+G+B;I(find(I==0))=100000;&lt;br /&gt;&lt;br /&gt;//normalize&lt;br /&gt;R=R./I;G=G./I;B=B./I;//&lt;br /&gt;&lt;br /&gt;//probability in r and g&lt;br /&gt;&lt;br /&gt;pr=(1.0/(rs*sqrt(2*%pi))) *exp(-1.0*(R-rm).^2/(2*rs^2));&lt;br /&gt;&lt;br /&gt;pg=(1.0/(gs*sqrt(2*%pi))) *exp(-1.0*(G-gm).^2/(2*gs^2));&lt;br /&gt;&lt;br /&gt;p=pr.*pg;//joint prob.&lt;br /&gt;//normalize&lt;br /&gt;p=p/max(p);&lt;br /&gt;&lt;br /&gt;scf(1);&lt;br /&gt;imshow(p,[]);xset('colormap',hotcolormap(256));//parametric in Gaussian&lt;br /&gt;imwrite(p,'prredpatch.jpg');xset('colormap',hotcolormap(256));&lt;br /&gt;&lt;br /&gt;//hm=histogram of the patch&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[row,col]=size(ip);&lt;br /&gt;&lt;br /&gt;BINS=32;&lt;br /&gt;&lt;br /&gt;r=0:1.0/32:1; g=0:1.0/32:1;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ht = zeros(BINS,BINS);//EMPTY&lt;br /&gt;&lt;br /&gt;for i=1:row //of imagepatch&lt;br /&gt;for j=1:col&lt;br /&gt;//get&lt;br /&gt;fr=find(r&lt;=ip(i,j,1)); fg=find(g&lt;=ip(i,j,2)); //find frr=size(fr,2); fgg=size(fg,2); ht( fr(frr), fg(fgg) )=ht(  fr(frr) ,fg(fgg))+1 ; end end  //the backprojection to the whole image  [xi,yi]=size(wi);//whole image  tag=zeros(xi,yi);// EMPTY for i=1:xi for j=1:yi  //get fr=find(r&lt;=wi(i,j,1)); fg=find(g&lt;=wi(i,j,2));  //find frr=length(fr); fgg=length(fg);  tag(i,j)=ht(fr(frr), fg(fgg));  end end  scf(2); imshow(tag, []);xset('colormap',hotcolormap(256));// non paramertric imwrite(tag,'tagred.jpg');xset('colormap',hotcolormap(256));&lt;/span&gt;&lt;br /&gt;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;br /&gt;Acknowledgements: Mandee salamat sa pagturo ng parametric segmanetation :)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5670790231004574442-2138267253095437998?l=carmilumban-ap186.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carmilumban-ap186.blogspot.com/feeds/2138267253095437998/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/08/a12-color-image-segmentation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/2138267253095437998'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/2138267253095437998'/><link rel='alternate' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/08/a12-color-image-segmentation.html' title='A12 Color Image Segmentation'/><author><name>carmilumban</name><uri>http://www.blogger.com/profile/16390082465332891638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_PBEYFvSjHb0/Sno6fw9sSsI/AAAAAAAAAJo/_Uue8BoupkA/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5670790231004574442.post-6189593760887309374</id><published>2009-08-03T18:32:00.000-07:00</published><updated>2009-08-07T08:47:34.429-07:00</updated><title type='text'>A9 – Binary Operations</title><content type='html'>&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;The activity goes like this:&lt;br /&gt;From an image we must be able to obtain the a value of the cell area. Getting that means that we must be able to properly threshold the image before we can convert it to black and white and be able to separate as many cells as we can from the cluster.&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/Snw9el1QJLI/AAAAAAAAAP4/cK-FMtlqSEs/s1600-h/r1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 162px; height: 156px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/Snw9el1QJLI/AAAAAAAAAP4/cK-FMtlqSEs/s320/r1.png" alt="" id="BLOGGER_PHOTO_ID_5367232451679626418" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="PowerPoint.Slide"&gt;&lt;meta name="Generator" content="Microsoft PowerPoint 12"&gt;  &lt;p  style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;font-family:times new roman;"&gt;&lt;span style=";font-size:100%;color:black;"  &gt;First I crop a 256x256 patch&lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt; from Figure 1 and called it co1. Converted it to &lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;graycale&lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;, then got the histogram to obtain a threshold so I can separate the cell from the background and turn co1 to a &lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;bw&lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt; image. This is in Figure 2.&lt;/span&gt;&lt;/p&gt;&lt;p  style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;font-family:times new roman;"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/Snw9eyW6aKI/AAAAAAAAAQA/RVJ7wbzuEaM/s1600-h/r2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 220px; height: 128px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/Snw9eyW6aKI/AAAAAAAAAQA/RVJ7wbzuEaM/s320/r2.png" alt="" id="BLOGGER_PHOTO_ID_5367232455042033826" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;font-family:times new roman;"&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;font-family:times new roman;"&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt; Afterwards, with no erosion nor&lt;span style=""&gt;  &lt;/span&gt;dilation, I used paint to crop 5 distinct well separated cells and got its area using sum(im1).I used the mean area &lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;ai&lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;=540 as reference area before getting the areas from different regions of the image.&lt;/span&gt;&lt;/p&gt;&lt;p  style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;font-family:times new roman;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;font-family:times new roman;"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/Snw9fH9jucI/AAAAAAAAAQI/8dsnLU7yFCU/s1600-h/r3.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 100px; height: 85px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/Snw9fH9jucI/AAAAAAAAAQI/8dsnLU7yFCU/s320/r3.png" alt="" id="BLOGGER_PHOTO_ID_5367232460841269698" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;font-family:times new roman;"&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt; &lt;/span&gt;&lt;/p&gt;&lt;p  style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;font-family:times new roman;"&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt; In order to removed the holes and other irregularity in cells and reduce some&lt;span style=""&gt;  &lt;/span&gt;distinct cells from the&lt;span style=""&gt;  &lt;/span&gt;clusters, I used a double erosion to remove holes and &lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;separate&lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt; some cells and double dilation to reconstruct some separate &lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;cells&lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;font-family:times new roman;"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/Snw9fcM3D8I/AAAAAAAAAQQ/sB-dxH6E3y8/s1600-h/r4.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 92px; height: 56px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/Snw9fcM3D8I/AAAAAAAAAQQ/sB-dxH6E3y8/s320/r4.png" alt="" id="BLOGGER_PHOTO_ID_5367232466274160578" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;font-family:times new roman;"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/Snw9fpD9rAI/AAAAAAAAAQY/T8QCfABXeZI/s1600-h/r5.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 271px; height: 123px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/Snw9fpD9rAI/AAAAAAAAAQY/T8QCfABXeZI/s320/r5.png" alt="" id="BLOGGER_PHOTO_ID_5367232469726505986" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;font-family:times new roman;"&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;However not all cells were completely separated and they remained in clusters. No matter, the areas of these cells or clusters are then computed as follows,&lt;/span&gt;&lt;/p&gt;  &lt;div  style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;font-family:times new roman;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;a.&lt;/span&gt;&lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;Identification and &lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;labelling&lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt; by [&lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;L,n&lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;]=&lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;bwlabel&lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;(&lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;im&lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;)&lt;/span&gt;&lt;/div&gt;  &lt;div  style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;font-family:times new roman;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;b.&lt;/span&gt;&lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;Getting the area of the&lt;span style=""&gt;  &lt;/span&gt;n labeled cells by getting the area via tabul(L,'i'). This way I get the frequency of each i in n which is equivalent to that cell or cluster area. I just set the limit the computed areas in the range of 500&lt;600&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/Snw-UH4TifI/AAAAAAAAAQg/jdq6R97RsJ8/s1600-h/r6.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 284px; height: 325px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/Snw-UH4TifI/AAAAAAAAAQg/jdq6R97RsJ8/s320/r6.png" alt="" id="BLOGGER_PHOTO_ID_5367233371352304114" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="vertical-align: baseline;color:black;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="PowerPoint.Slide"&gt;&lt;meta name="Generator" content="Microsoft PowerPoint 12"&gt;    &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color:black;"&gt;Finally,&lt;/span&gt;&lt;span style="vertical-align: baseline;color:black;" &gt; the average area obtained with this method is &lt;/span&gt;&lt;span style="vertical-align: baseline;color:black;" &gt;af&lt;/span&gt;&lt;span style="vertical-align: baseline;color:black;" &gt;=&lt;/span&gt;&lt;span style="color:black;"&gt; 531.38889 or 531 and the standard deviation&lt;/span&gt;&lt;span style="vertical-align: baseline;color:black;" &gt; of the values from this mean is &lt;/span&gt;&lt;span style="color:black;"&gt;14.034155. Furthermore,&lt;/span&gt;&lt;span style="vertical-align: baseline;color:black;" &gt; the reference area mean is &lt;/span&gt;&lt;span style="vertical-align: baseline;color:black;" &gt;ai&lt;/span&gt;&lt;span style="vertical-align: baseline;color:black;" &gt;= 540,&lt;span style=""&gt;  &lt;/span&gt;and the percent difference of the computed area from the reference is only &lt;/span&gt;&lt;span style="color:black;"&gt;1.6%.&lt;/span&gt;&lt;span style="vertical-align: baseline;color:black;" &gt; This suggest that the values are very close and the  calculation was indeed correct.&lt;/span&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="vertical-align: baseline;font-size:100%;color:black;"  &gt;&lt;span style="vertical-align: baseline;color:black;" &gt;References:&lt;br /&gt;[1]Activity 9 AP 186 Manual&lt;br /&gt;[2]http://groups.google.com/group/face-rec/browse_thread/thread/0d29fb3a357a530a?pli=1&lt;br /&gt;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;br /&gt;&lt;/span&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="PowerPoint.Slide"&gt;&lt;meta name="Generator" content="Microsoft PowerPoint 12"&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;stacksize&lt;/span&gt;&lt;span style="color:black;"&gt;(50000000&lt;/span&gt;&lt;span style="color:black;"&gt;);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;apat&lt;/span&gt;&lt;span style="color:black;"&gt;=4;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;nito&lt;/span&gt;&lt;span style="color:black;"&gt;=1;//areas &lt;/span&gt;&lt;span style="color:black;"&gt;nito&lt;/span&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;for &lt;/span&gt;&lt;span style="color:black;"&gt;i&lt;/span&gt;&lt;span style="color:black;"&gt;=1:apat&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;cut=&lt;/span&gt;&lt;span style="color:black;"&gt;imread&lt;/span&gt;&lt;span style="color:black;"&gt;('C:\Users\USA\Desktop\co'+string(i)+'.&lt;/span&gt;&lt;span style="color:black;"&gt;png&lt;/span&gt;&lt;span style="color:black;"&gt;');&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;cut=im2gray(cut);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;cut=im2bw(cut, 0.80);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;//&lt;/span&gt;&lt;span style="color:black;"&gt;imwrite&lt;/span&gt;&lt;span style="color:black;"&gt;(&lt;/span&gt;&lt;span style="color:black;"&gt;cut,'C&lt;/span&gt;&lt;span style="color:black;"&gt;:\Users\USA\Desktop\&lt;/span&gt;&lt;span style="color:black;"&gt;cobw'+string&lt;/span&gt;&lt;span style="color:black;"&gt;(&lt;/span&gt;&lt;span style="color:black;"&gt;i&lt;/span&gt;&lt;span style="color:black;"&gt;)+'.bmp');&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;x= [-2.0:.5:2];&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;[X,Y] =&lt;/span&gt;&lt;span style="color:black;"&gt;ndgrid&lt;/span&gt;&lt;span style="color:black;"&gt;(&lt;/span&gt;&lt;span style="color:black;"&gt;x,x&lt;/span&gt;&lt;span style="color:black;"&gt;);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;[&lt;/span&gt;&lt;span style="color:black;"&gt;sx,sy&lt;/span&gt;&lt;span style="color:black;"&gt;]= size(X);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;r= &lt;/span&gt;&lt;span style="color:black;"&gt;sqrt&lt;/span&gt;&lt;span style="color:black;"&gt;(X.^2 + Y.^2);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;c=zeros(&lt;/span&gt;&lt;span style="color:black;"&gt;sx,sy&lt;/span&gt;&lt;span style="color:black;"&gt;);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;f=find(r&lt;=2);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;c(f)=1;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;im&lt;/span&gt;&lt;span style="color:black;"&gt;=cut;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;se=c;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;//h=&lt;/span&gt;&lt;span style="color:black;"&gt;scf&lt;/span&gt;&lt;span style="color:black;"&gt;(i+1);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;//1.erodeerode. to close holes&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;im&lt;/span&gt;&lt;span style="color:black;"&gt;=erode(&lt;/span&gt;&lt;span style="color:black;"&gt;im&lt;/span&gt;&lt;span style="color:black;"&gt;, se); &lt;/span&gt;&lt;span style="color:black;"&gt;im&lt;/span&gt;&lt;span style="color:black;"&gt;=erode(&lt;/span&gt;&lt;span style="color:black;"&gt;im&lt;/span&gt;&lt;span style="color:black;"&gt;, se);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;im&lt;/span&gt;&lt;span style="color:black;"&gt;=dilate(&lt;/span&gt;&lt;span style="color:black;"&gt;im&lt;/span&gt;&lt;span style="color:black;"&gt;, se);&lt;/span&gt;&lt;span style="color:black;"&gt;im&lt;/span&gt;&lt;span style="color:black;"&gt;=dilate(&lt;/span&gt;&lt;span style="color:black;"&gt;im&lt;/span&gt;&lt;span style="color:black;"&gt;, se);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;//h=&lt;/span&gt;&lt;span style="color:black;"&gt;scf&lt;/span&gt;&lt;span style="color:black;"&gt;(i+3);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;//&lt;/span&gt;&lt;span style="color:black;"&gt;imshow&lt;/span&gt;&lt;span style="color:black;"&gt;(&lt;/span&gt;&lt;span style="color:black;"&gt;im&lt;/span&gt;&lt;span style="color:black;"&gt;); &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;//&lt;/span&gt;&lt;span style="color:black;"&gt;imwrite&lt;/span&gt;&lt;span style="color:black;"&gt;(&lt;/span&gt;&lt;span style="color:black;"&gt;im,'C&lt;/span&gt;&lt;span style="color:black;"&gt;:\Users\USA\Desktop\&lt;/span&gt;&lt;span style="color:black;"&gt;cobwdilate&lt;/span&gt;&lt;span style="color:black;"&gt; erode use &lt;/span&gt;&lt;span style="color:black;"&gt;tabul'+string&lt;/span&gt;&lt;span style="color:black;"&gt;(&lt;/span&gt;&lt;span style="color:black;"&gt;i+sho&lt;/span&gt;&lt;span style="color:black;"&gt;)+'.bmp');&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;[&lt;/span&gt;&lt;span style="color:black;"&gt;L,n&lt;/span&gt;&lt;span style="color:black;"&gt;]=&lt;/span&gt;&lt;span style="color:black;"&gt;bwlabel&lt;/span&gt;&lt;span style="color:black;"&gt;(&lt;/span&gt;&lt;span style="color:black;"&gt;im&lt;/span&gt;&lt;span style="color:black;"&gt;);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;//find the area&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;mm=&lt;/span&gt;&lt;span style="color:black;"&gt;tabul&lt;/span&gt;&lt;span style="color:black;"&gt;(&lt;/span&gt;&lt;span style="color:black;"&gt;L,'i&lt;/span&gt;&lt;span style="color:black;"&gt;');// &lt;/span&gt;&lt;span style="color:black;"&gt;frequecny&lt;/span&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;span style="color:black;"&gt;ng&lt;/span&gt;&lt;span style="color:black;"&gt; values &lt;/span&gt;&lt;span style="color:black;"&gt;na&lt;/span&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;span style="color:black;"&gt;eun&lt;/span&gt;&lt;span style="color:black;"&gt;(0,1,2..n n cell)=area &lt;/span&gt;&lt;span style="color:black;"&gt;ng&lt;/span&gt;&lt;span style="color:black;"&gt; cell&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;xx=mm(:,2)//area&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;make it easy remove area &lt;/span&gt;&lt;span style="color:black;"&gt;na&lt;/span&gt;&lt;span style="color:black;"&gt; higher than 600 &lt;/span&gt;&lt;span style="color:black;"&gt;na&lt;/span&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;fi&lt;/span&gt;&lt;span style="color:black;"&gt;=find(xx&lt;=600 &amp;amp; xx&gt;=500);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;xx=xx(&lt;/span&gt;&lt;span style="color:black;"&gt;fi&lt;/span&gt;&lt;span style="color:black;"&gt;)&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;end&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;--&gt;Size:&lt;span style=""&gt;        &lt;/span&gt;258 rows X 258 columns&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;Truecolor&lt;/span&gt;&lt;span style="color:black;"&gt; Image&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt; &lt;/span&gt;xx&lt;span style=""&gt;  &lt;/span&gt;=&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;529.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;554.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;514.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;523.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;524.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;533.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;526.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;Size:&lt;span style=""&gt;   &lt;/span&gt;258 rows X 258 columns&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;Truecolor&lt;/span&gt;&lt;span style="color:black;"&gt; Image&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt; &lt;/span&gt;xx&lt;span style=""&gt;  &lt;/span&gt;=&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;530.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;521.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;542.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;522.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;560.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;559.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;Size:&lt;span style=""&gt;   &lt;/span&gt;258 rows X 258 columns&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;Truecolor&lt;/span&gt;&lt;span style="color:black;"&gt; Image&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt; &lt;/span&gt;xx&lt;span style=""&gt;  &lt;/span&gt;=&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;533.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;536.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;523.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;531.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;526.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;524.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;521.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;518.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;529.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;Size:&lt;span style=""&gt;   &lt;/span&gt;258 rows X 258 columns&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;Truecolor&lt;/span&gt;&lt;span style="color:black;"&gt; Image&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt; &lt;/span&gt;xx&lt;span style=""&gt;  &lt;/span&gt;=&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;528.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;518.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;515.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;    &lt;/span&gt;530.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;areas=read('areas.txt',-1,1);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;f=&lt;/span&gt;&lt;span style="color:black;"&gt;tabul&lt;/span&gt;&lt;span style="color:black;"&gt;(&lt;/span&gt;&lt;span style="color:black;"&gt;areas,'i&lt;/span&gt;&lt;span style="color:black;"&gt;');&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;x=f(:,1);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;y=f(:,2);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;bar(&lt;/span&gt;&lt;span style="color:black;"&gt;x,y&lt;/span&gt;&lt;span style="color:black;"&gt;);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;areas=read('&lt;/span&gt;&lt;span style="color:black;"&gt;tabul&lt;/span&gt;&lt;span style="color:black;"&gt; areas.txt',-1,1);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;f=&lt;/span&gt;&lt;span style="color:black;"&gt;tabul&lt;/span&gt;&lt;span style="color:black;"&gt;(&lt;/span&gt;&lt;span style="color:black;"&gt;areas,'i&lt;/span&gt;&lt;span style="color:black;"&gt;');&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;x=f(:,1);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;fi&lt;/span&gt;&lt;span style="color:black;"&gt;=find(xx&lt;=600) &lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;fi=find(xx&gt;=500);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;x=x(&lt;/span&gt;&lt;span style="color:black;"&gt;fi&lt;/span&gt;&lt;span style="color:black;"&gt;);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;y=f(:,2);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;y=y(&lt;/span&gt;&lt;span style="color:black;"&gt;fi&lt;/span&gt;&lt;span style="color:black;"&gt;);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="color:black;"&gt;bar(&lt;/span&gt;&lt;span style="color:black;"&gt;x,y&lt;/span&gt;&lt;span style="color:black;"&gt;);&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5670790231004574442-6189593760887309374?l=carmilumban-ap186.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carmilumban-ap186.blogspot.com/feeds/6189593760887309374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/08/a9-binary-operations.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/6189593760887309374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/6189593760887309374'/><link rel='alternate' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/08/a9-binary-operations.html' title='A9 – Binary Operations'/><author><name>carmilumban</name><uri>http://www.blogger.com/profile/16390082465332891638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_PBEYFvSjHb0/Snw9el1QJLI/AAAAAAAAAP4/cK-FMtlqSEs/s72-c/r1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5670790231004574442.post-3091447297678893562</id><published>2009-08-03T17:58:00.000-07:00</published><updated>2009-08-03T18:28:58.497-07:00</updated><title type='text'>A8 – Morphological Operations</title><content type='html'>Part I. Paper and pencil&lt;br /&gt;First weee predicted the effects of erosion and dilation of different shapes ,namely, square (50×50) , a triangle (base = 50 , height= 30), a circle (radius 25), a hollow square (60×60, edges are 4 pixels thick), and a plus sign (8 pixels thick and 50 pixels long for each line). Each shape is individually dilated and eroded using the following structuring elements or SE :&lt;br /&gt;1. 4×4 ones&lt;br /&gt;2. 2×4 ones&lt;br /&gt;3. 4×2 ones&lt;br /&gt;4. cross, 5 pixels long, one pixel thick.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SneJKFIERkI/AAAAAAAAAJY/mWzn74KkorQ/s1600-h/triangle.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 225px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SneJKFIERkI/AAAAAAAAAJY/mWzn74KkorQ/s400/triangle.png" alt="" id="BLOGGER_PHOTO_ID_5365908287302944322" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Figure 1. Triangle ( a.) top : original shape, (b.) middle: dilation and (c.)  bottom: erosion.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SneJJo9CqrI/AAAAAAAAAJI/0UXWtKuen8Q/s1600-h/circle.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 258px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SneJJo9CqrI/AAAAAAAAAJI/0UXWtKuen8Q/s400/circle.png" alt="" id="BLOGGER_PHOTO_ID_5365908279740508850" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Figure 2. Circle ( a.) top : original shape, (b.) middle: dilation and (c.)  bottom: erosion.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SneJJeqydRI/AAAAAAAAAJA/RUYKQV1lH8s/s1600-h/hollow.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 197px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SneJJeqydRI/AAAAAAAAAJA/RUYKQV1lH8s/s400/hollow.png" alt="" id="BLOGGER_PHOTO_ID_5365908276979594514" border="0" /&gt;&lt;/a&gt;Figure 3. Hollow square ( a.) top : original shape, (b.) middle: dilation and (c.)  bottom: erosion.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SneJJENMC0I/AAAAAAAAAI4/a3UiGwrs38A/s1600-h/square.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 220px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SneJJENMC0I/AAAAAAAAAI4/a3UiGwrs38A/s400/square.png" alt="" id="BLOGGER_PHOTO_ID_5365908269876120386" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Figure 4. Square ( a.) top : original shape, (b.) middle: dilation and (c.)  bottom: erosion.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SneOkXNXC-I/AAAAAAAAAJg/n8MImS_8dMY/s1600-h/plus.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 309px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SneOkXNXC-I/AAAAAAAAAJg/n8MImS_8dMY/s400/plus.png" alt="" id="BLOGGER_PHOTO_ID_5365914236391721954" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Figure 5. Plus ( a.) top : original shape, (b.) middle: dilation and (c.)  bottom: erosion.&lt;br /&gt;&lt;br /&gt;'under construction'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5670790231004574442-3091447297678893562?l=carmilumban-ap186.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carmilumban-ap186.blogspot.com/feeds/3091447297678893562/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/08/a8-morphological-operations.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/3091447297678893562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/3091447297678893562'/><link rel='alternate' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/08/a8-morphological-operations.html' title='A8 – Morphological Operations'/><author><name>carmilumban</name><uri>http://www.blogger.com/profile/16390082465332891638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_PBEYFvSjHb0/SneJKFIERkI/AAAAAAAAAJY/mWzn74KkorQ/s72-c/triangle.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5670790231004574442.post-8387319946233831623</id><published>2009-07-13T18:08:00.000-07:00</published><updated>2009-08-07T07:16:44.535-07:00</updated><title type='text'>A7 – Enhancement in the Frequency Domain</title><content type='html'>&lt;span style="font-weight: bold;font-size:100%;" &gt;Filtering in Fourier Space&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;"Unwanted repetitive patterns in an image can be removed by masking their&lt;br /&gt;frequencies in the Fourier domain. Alternatively, desired frequencies in the image&lt;br /&gt;may also be enhanced."&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;A Convolution Theorem&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SlxIXHrRA2I/AAAAAAAAAH8/shEBqEFZ-KM/s1600-h/fig1+7.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 210px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SlxIXHrRA2I/AAAAAAAAAH8/shEBqEFZ-KM/s320/fig1+7.png" alt="" id="BLOGGER_PHOTO_ID_5358237218698756962" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:100%;"&gt;Figure 1.Results for steps 1 to 3.&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SnwfoHtu_kI/AAAAAAAAANY/-SKCteJ1zmc/s1600-h/variance.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 154px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SnwfoHtu_kI/AAAAAAAAANY/-SKCteJ1zmc/s320/variance.png" alt="" id="BLOGGER_PHOTO_ID_5367199630044888642" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Figure 2. Variance&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;As you vary the variance the FT intensity changes in such a way that increasing the variance increase the radius of the FT.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/Snwgxr4TrlI/AAAAAAAAANg/HRHenTBybsY/s1600-h/invert.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 455px; height: 141px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/Snwgxr4TrlI/AAAAAAAAANg/HRHenTBybsY/s320/invert.png" alt="" id="BLOGGER_PHOTO_ID_5367200893883362898" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;Fig 3. Inversion&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style="font-size:100%;"&gt;To invert the gaussian dots such that highest becomes 0, lowest becomes 255&lt;br /&gt;or 1.0 , I just multiplied the original values by -1 *255 and then added 255.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;B.  Fingerprints : Ridge Enhancement&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/Snwjv2UZEnI/AAAAAAAAANo/FqiDJsGgy1M/s1600-h/finger.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 267px; height: 286px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/Snwjv2UZEnI/AAAAAAAAANo/FqiDJsGgy1M/s320/finger.jpg" alt="" id="BLOGGER_PHOTO_ID_5367204160860656242" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;Fig 4. The problem&lt;br /&gt;&lt;div style="text-align: justify;"&gt;After converting the image to grayscale, I took the FFT and from here try to create a mask to remove the frequencies of the blotches which is ... unknown.&lt;br /&gt;So what I did is start by removing the higher frequencies...obviously using a circular aperture didnt work as seen in Fig.5.&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SnwjxHhJkvI/AAAAAAAAAOA/MLvO-J1QR6o/s1600-h/f3+didnt.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 86px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SnwjxHhJkvI/AAAAAAAAAOA/MLvO-J1QR6o/s320/f3+didnt.png" alt="" id="BLOGGER_PHOTO_ID_5367204182657438450" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Fig 5. Removing the higher frequencies with a circular aperture... didnt work&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Next I tried the other way around, I didnt mask the higher frquencies but just retained it, then I tried cleaning the frequencies close the center as shown in Fig 6 until I finally tried creating a mask from the FT and just clean the FT as shown in Fig 7. The final almost cleaned finger print is shown in Fig 6 (last).&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SnwjwXFA2AI/AAAAAAAAANw/CG2SMoUscAU/s1600-h/f1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 398px; height: 160px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SnwjwXFA2AI/AAAAAAAAANw/CG2SMoUscAU/s320/f1.png" alt="" id="BLOGGER_PHOTO_ID_5367204169654523906" border="0" /&gt;&lt;/a&gt;Figure 5.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SnwjwgPtLlI/AAAAAAAAAN4/87K4cCNqgFw/s1600-h/f2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 364px; height: 137px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SnwjwgPtLlI/AAAAAAAAAN4/87K4cCNqgFw/s320/f2.png" alt="" id="BLOGGER_PHOTO_ID_5367204172115291730" border="0" /&gt;&lt;/a&gt;Figure 6.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/Snwjv2UZEnI/AAAAAAAAANo/FqiDJsGgy1M/s1600-h/finger.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 267px; height: 286px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/Snwjv2UZEnI/AAAAAAAAANo/FqiDJsGgy1M/s320/finger.jpg" alt="" id="BLOGGER_PHOTO_ID_5367204160860656242" border="0" /&gt;&lt;/a&gt;before(original fingerprint)&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/SnwnhcffsuI/AAAAAAAAAOI/LCGv1B27VHA/s1600-h/final.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 260px; height: 279px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/SnwnhcffsuI/AAAAAAAAAOI/LCGv1B27VHA/s320/final.png" alt="" id="BLOGGER_PHOTO_ID_5367208311456248546" border="0" /&gt;&lt;/a&gt;after-the enhanced fingerprint with ridges more clear and less blotches. This final image is from Figure 6c.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-weight: bold;"&gt;C. Lunar Landing Scanned Pictures : Line removal&lt;/span&gt;&lt;br /&gt;Remove the vertical lines in the image by filtering in the Fourier Domain.&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SnwqPET72eI/AAAAAAAAAOY/0Z2tyNoHG-A/s1600-h/prob.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SnwqPET72eI/AAAAAAAAAOY/0Z2tyNoHG-A/s320/prob.png" alt="" id="BLOGGER_PHOTO_ID_5367211294262548962" border="0" /&gt;&lt;/a&gt;Fig 7. Lunar image with vertical lines&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;div style="text-align: justify;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SnwqOxtbSII/AAAAAAAAAOQ/lkCZOu7AymA/s1600-h/lunar+clean.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 285px; height: 120px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SnwqOxtbSII/AAAAAAAAAOQ/lkCZOu7AymA/s320/lunar+clean.png" alt="" id="BLOGGER_PHOTO_ID_5367211289269192834" border="0" /&gt;&lt;/a&gt;                                                                         a.                                   b.&lt;br /&gt;&lt;/div&gt;Fig 8. a.FT and horizontal mask to remove the vertical lines.   b. the FFT of thw masked FT, the final image is inverted with no more vertical lines.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SnwqPj3AFeI/AAAAAAAAAOg/sUEnX1ug8I4/s1600-h/final+lunar.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 238px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SnwqPj3AFeI/AAAAAAAAAOg/sUEnX1ug8I4/s320/final+lunar.png" alt="" id="BLOGGER_PHOTO_ID_5367211302731126242" border="0" /&gt;&lt;/a&gt;Fig. 9. The final cleaned image after rotation.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;D Canvas Weave Modeling and Removal&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SnwuRIi-ngI/AAAAAAAAAOo/5g2mZ-Htexk/s1600-h/canvasw.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 276px; height: 200px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SnwuRIi-ngI/AAAAAAAAAOo/5g2mZ-Htexk/s320/canvasw.png" alt="" id="BLOGGER_PHOTO_ID_5367215727805636098" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Fig. 10 The canvas with weave pattern&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SnwuRVYCjsI/AAAAAAAAAOw/x7odBCxOzR8/s1600-h/g.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 279px; height: 205px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SnwuRVYCjsI/AAAAAAAAAOw/x7odBCxOzR8/s320/g.png" alt="" id="BLOGGER_PHOTO_ID_5367215731249417922" border="0" /&gt;&lt;/a&gt;Fig 11. The graycale of canvas image&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SnwyLlHLbHI/AAAAAAAAAPQ/NTPKA75KLgM/s1600-h/red.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 311px; height: 193px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SnwyLlHLbHI/AAAAAAAAAPQ/NTPKA75KLgM/s320/red.png" alt="" id="BLOGGER_PHOTO_ID_5367220030440959090" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Figure 12.FT of the image&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SnwuR_f8a2I/AAAAAAAAAO4/_udDBRw4CDo/s1600-h/gg.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 175px; height: 401px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SnwuR_f8a2I/AAAAAAAAAO4/_udDBRw4CDo/s320/gg.png" alt="" id="BLOGGER_PHOTO_ID_5367215742556859234" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Fig 12. Tried a combination of gaussian filtering and masking the regions shown in c... didint work , the resulting image in e was too blurred.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SnwuSsN3YiI/AAAAAAAAAPA/pqW4gmObokE/s1600-h/ggg.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 167px; height: 311px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SnwuSsN3YiI/AAAAAAAAAPA/pqW4gmObokE/s320/ggg.png" alt="" id="BLOGGER_PHOTO_ID_5367215754560627234" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Figure 13. Made a mask that removes the symmetric peaks around the center.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;The mask  in figure 13 b, removed the frequencies of the weave pattern and a cleaned image is retrieved by taking the FT again. Also, the cleaned image has higher contrast such that the brushstrokes are enhanced.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/Snw0zEUKPjI/AAAAAAAAAPg/WDB5ANICRCI/s1600-h/ha.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 199px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/Snw0zEUKPjI/AAAAAAAAAPg/WDB5ANICRCI/s320/ha.png" alt="" id="BLOGGER_PHOTO_ID_5367222907855060530" border="0" /&gt;&lt;/a&gt;Fig. 14. The unwanted canvas weave pattern is now removed(im from Fig 13 c).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/Snw1u35f-uI/AAAAAAAAAPo/2m2MRldZBh0/s1600-h/imask.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 240px; height: 155px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/Snw1u35f-uI/AAAAAAAAAPo/2m2MRldZBh0/s320/imask.png" alt="" id="BLOGGER_PHOTO_ID_5367223935314164450" border="0" /&gt;&lt;/a&gt;Fig. 14. The inverted mask of the peaks&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/Snw2KrZ5fYI/AAAAAAAAAPw/-HoubqSEPWA/s1600-h/x.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 237px; height: 177px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/Snw2KrZ5fYI/AAAAAAAAAPw/-HoubqSEPWA/s320/x.png" alt="" id="BLOGGER_PHOTO_ID_5367224412996730242" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;Fig. 15. The FT of inverted mask. It does look like the canvas weave pattern.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style="font-size:100%;"&gt;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;br /&gt;Code:&lt;br /&gt;&lt;/span&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="PowerPoint.Slide"&gt;&lt;meta name="Generator" content="Microsoft PowerPoint 12"&gt;  &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;a.&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;Variance =2^2&lt;/span&gt;&lt;/div&gt;  &lt;div style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style=""&gt;b.&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;Variance=3^2&lt;/span&gt;&lt;/div&gt;    &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;nx&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt; = 100; &lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;ny&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt; = 100;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;x = &lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;linspace&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;(-100,1,nx);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;y = &lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;linspace&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;(-100,1,ny);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;[X,Y] = &lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;ndgrid&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;x,y&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;s1=4;//variance 1&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;s2=9;//variance 2&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;h=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;scf&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;(1);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;z1 = exp((-1*(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;sqrt&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;((X+50).^2+(Y+50).^2)))/s1);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;imshow&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;(z1);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;//xs2gif(1,'variance1.gif');&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;h=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;scf&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;(2);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;ft1=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;fftshift&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;(abs(fft2(z1)));&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;imshow&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;(ft1);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;h=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;scf&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;(3);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;z2=exp((-1*(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;sqrt&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;((X+50).^2+(Y+50).^2)))/s2);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;imshow&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;(z2);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;//xs2gif(2,'variance2.gif');&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;h=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;scf&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;(4);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;ft2=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;fftshift&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;(abs(fft2(z2)));&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;imshow&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;(ft2);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0.25in; text-indent: -0.25in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="PowerPoint.Slide"&gt;&lt;meta name="Generator" content="Microsoft PowerPoint 12"&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5670790231004574442-8387319946233831623?l=carmilumban-ap186.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carmilumban-ap186.blogspot.com/feeds/8387319946233831623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/07/a7-enhancement-in-frequency-domain.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/8387319946233831623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/8387319946233831623'/><link rel='alternate' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/07/a7-enhancement-in-frequency-domain.html' title='A7 – Enhancement in the Frequency Domain'/><author><name>carmilumban</name><uri>http://www.blogger.com/profile/16390082465332891638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_PBEYFvSjHb0/SlxIXHrRA2I/AAAAAAAAAH8/shEBqEFZ-KM/s72-c/fig1+7.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5670790231004574442.post-3482615892218748318</id><published>2009-07-09T08:56:00.001-07:00</published><updated>2009-08-07T05:21:48.157-07:00</updated><title type='text'>A6 – Properties of the 2D Fourier Transform</title><content type='html'>&lt;span style="font-size:100%;"&gt;A .Familiarization with FT of different 2D patterns&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/SnwQ7dX_GKI/AAAAAAAAAMQ/v-iZ1H_pYS8/s1600-h/A6+2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 105px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/SnwQ7dX_GKI/AAAAAAAAAMQ/v-iZ1H_pYS8/s320/A6+2.png" alt="" id="BLOGGER_PHOTO_ID_5367183469602347170" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Figure 1. a FFT of a circle, b. shifted FFT and c. FFT of FT resulting to the same circle.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SlYTZDT3LyI/AAAAAAAAAG8/86VboMFh2oE/s1600-h/s1.png"&gt;&lt;img style="cursor: pointer; width: 396px; height: 151px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SlYTZDT3LyI/AAAAAAAAAG8/86VboMFh2oE/s320/s1.png" alt="" id="BLOGGER_PHOTO_ID_5356490127910055714" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:100%;"&gt;Figure 2.&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;For Fig.2, the images above starting from the left are namely, an annulus, a square, square annulus, 2 slits and 2 dots all representing what we call apertures. The images on the bottom are their corresponding FT which is an Airy pattern for the annulus, a sinc function for the square apertures, double slit diffraction of maxima and minima in the horizontal axis for the vertical slits ans the sinusoid for the two dots.&lt;br /&gt;&lt;/span&gt;&lt;/div&gt; &lt;/div&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SlYTZc4wDYI/AAAAAAAAAHE/-Xzht8x2hps/s1600-h/s2.png"&gt;&lt;img style="cursor: pointer; width: 427px; height: 210px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SlYTZc4wDYI/AAAAAAAAAHE/-Xzht8x2hps/s320/s2.png" alt="" id="BLOGGER_PHOTO_ID_5356490134775664002" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size:100%;"&gt;                                    a.                                                     b.                                                   c.                                                    d.&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:100%;"&gt;Figure 3. Comparison of a circular annulus and square annulus.&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;As expected the we have the a Airy pattern for a,b and a sinc function for c,d.&lt;br /&gt;From these results we can say that the size of the aperture determines the intensity of the resulting diffraction pattern. It can be seen that the smaller the aperture is the brighter or more intense the FT or diffraction pattern is.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SlYTZwEe7gI/AAAAAAAAAHM/U8Mx4RQlnks/s1600-h/s3.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 241px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SlYTZwEe7gI/AAAAAAAAAHM/U8Mx4RQlnks/s320/s3.png" alt="" id="BLOGGER_PHOTO_ID_5356490139925147138" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:100%;"&gt;Figure 4. Variation in the  dot size or pinhole radii&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;IT is shown in Fig.3 that the FT of 2 dots is a superposition of the FT of 2 small dots and FT of a circular aperture.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;B Anamorphic property of the Fourier Transform&lt;br /&gt;&lt;br /&gt;Anamorphic means something like producing different imaging effects along mutually perpendicular radii. We can see these in FT of perpendicular sinusoid signals.&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SnwMBvxNPTI/AAAAAAAAAMI/9rcqSxpWNkY/s1600-h/a6+1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 371px; height: 219px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SnwMBvxNPTI/AAAAAAAAAMI/9rcqSxpWNkY/s400/a6+1.png" alt="" id="BLOGGER_PHOTO_ID_5367178080061046066" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:100%;"&gt;Figure 5. Increase in the frquency&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;meta name="ProgId" content="PowerPoint.Slide"&gt;&lt;meta name="Generator" content="Microsoft PowerPoint 12"&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;Increasing the frequency of the signal(sinusoid) resulted to the increase in the separation of the dots.&lt;span style=""&gt;  &lt;/span&gt;We see here that the two dots corresponding to the &lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;frquency&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt; peaks shifted farther and father from the center, such that the lower the frequency the closer it is to the center while farther at higher frequency. The same with &lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;interferograms&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt; ,the spacing between the peaks of the FT of the signal gives corresponding frequency of the signal.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SnwQ7xg_5JI/AAAAAAAAAMY/Jqe3m-6FaSE/s1600-h/A6+7.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 383px; height: 96px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SnwQ7xg_5JI/AAAAAAAAAMY/Jqe3m-6FaSE/s320/A6+7.png" alt="" id="BLOGGER_PHOTO_ID_5367183475008857234" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: center; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="font-size:100%;"&gt;Fig.6 Effect of biasing&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: justify; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt;&lt;img src="file:///C:/Users/USA/AppData/Local/Temp/moz-screenshot-7.jpg" alt="" /&gt;&lt;/span&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="PowerPoint.Slide"&gt;&lt;meta name="Generator" content="Microsoft PowerPoint 12"&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;For&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; a sinusoid of constant frequency and orientation, we expect that the peaks of the FT to remain the same since and it did and the position of the peaks did not vary. However the intensity of the dots was observe to change such that at low biasing the outer peaks were brighter and reduced at higher biasing which made (m=0) the central maximum peak brightest. &lt;/span&gt;&lt;/p&gt; &lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SnwUtFZTtoI/AAAAAAAAAM4/nUaH0FE-4pY/s1600-h/na.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 76px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SnwUtFZTtoI/AAAAAAAAAM4/nUaH0FE-4pY/s320/na.png" alt="" id="BLOGGER_PHOTO_ID_5367187620693784194" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:100%;"&gt;Fig.7&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="PowerPoint.Slide"&gt;&lt;meta name="Generator" content="Microsoft PowerPoint 12"&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;Since adding or subtracting the bias didn’t affect position of the peaks of the FT&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; of the signal , we can just to choose to add the bias . For frequency=4, bias=0.1,1,10,100 was added to the sine wave and the resulting FT of the signal show that the only the intensity of the peaks varied and not the spacing. &lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;/p&gt; &lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SnwQ8R8Y5UI/AAAAAAAAAMo/MTVxsy6A_j4/s1600-h/A6+9.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 281px; height: 301px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SnwQ8R8Y5UI/AAAAAAAAAMo/MTVxsy6A_j4/s320/A6+9.png" alt="" id="BLOGGER_PHOTO_ID_5367183483713676610" border="0" /&gt;&lt;/a&gt;Fig. 8&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="PowerPoint.Slide"&gt;&lt;meta name="Generator" content="Microsoft PowerPoint 12"&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;Rotating the signal(sinusoid) by an angle results to the rotation of the peaks of the FT.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SnwQ83caH4I/AAAAAAAAAMw/Y3dHSEjjkV4/s1600-h/A6+10.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 261px; height: 205px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SnwQ83caH4I/AAAAAAAAAMw/Y3dHSEjjkV4/s320/A6+10.png" alt="" id="BLOGGER_PHOTO_ID_5367183493780086658" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:100%;"&gt;Fig. 9&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="PowerPoint.Slide"&gt;&lt;meta name="Generator" content="Microsoft PowerPoint 12"&gt;  &lt;/div&gt;&lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; direction: ltr; unicode-bidi: embed; text-align: justify;"&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;Top &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;image&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; shows &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;the&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;pattern&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;and &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;below&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;is&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;its&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; Fourier &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;transform&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; .&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;Now&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;the&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; c&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;ombination&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; of these sinusoids in X and Y &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;with the formula&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;  &lt;/div&gt;&lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; direction: ltr; unicode-bidi: embed; text-align: justify;"&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;&lt;span style=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;z = sin(2*%pi*4*X).*sin(2*%pi*4*Y);&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;  &lt;/div&gt;&lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; direction: ltr; unicode-bidi: embed; text-align: justify;"&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;&lt;span style=""&gt; &lt;/span&gt;has a FT that is again symmetric about the &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;center &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;and with peaks that correspond to the frequency of each sinusoid in their respective &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;axis. &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;The&lt;span style=""&gt;  &lt;/span&gt;combined signal had the same frequency as illustrated in their perfect symmetry but once we changed one of the frequency of the signals, say in the X axis,&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;  &lt;/div&gt;&lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; direction: ltr; unicode-bidi: embed; text-align: justify;"&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;z4 = sin(2*%pi*8*X).*sin(2*%pi*4*Y&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;);&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;  &lt;/div&gt;&lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; direction: ltr; unicode-bidi: embed; text-align: justify;"&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;the&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; x &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;separation&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; in &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;the&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; vertical &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;orientation&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;increased&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;. &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;We&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;recall&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;that&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;the&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;higher&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;the&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;frequency&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;the&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;farther&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;the&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;peak&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;from&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;the&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; center.&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SnwYN1cTnWI/AAAAAAAAANA/bZ4IOkUUVYM/s1600-h/A6+11.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 157px; height: 236px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SnwYN1cTnWI/AAAAAAAAANA/bZ4IOkUUVYM/s320/A6+11.png" alt="" id="BLOGGER_PHOTO_ID_5367191481881959778" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;Fig 10&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="PowerPoint.Slide"&gt;&lt;meta name="Generator" content="Microsoft PowerPoint 12"&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:black;"   &gt;Addition of&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; the combined sinusoids in the X and Y axis to 2 rotated sinusoids (theta=40,60deg)&lt;span style=""&gt;  &lt;/span&gt;resulted to the image illustrated on top. Below is its FT which by inspection, is just the sum of the FT of each signal. The FT is thus useful for decomposing the frequency component in sampled &lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt;signals.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SnwYN1cTnWI/AAAAAAAAANA/bZ4IOkUUVYM/s1600-h/A6+11.png"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="vertical-align: baseline;font-family:Calibri;font-size:100%;color:black;"   &gt; &lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SnwYPLjDNkI/AAAAAAAAANQ/R0iKSnBlAAE/s1600-h/A6+13.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 157px; height: 261px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SnwYPLjDNkI/AAAAAAAAANQ/R0iKSnBlAAE/s320/A6+13.png" alt="" id="BLOGGER_PHOTO_ID_5367191504995694146" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5670790231004574442-3482615892218748318?l=carmilumban-ap186.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carmilumban-ap186.blogspot.com/feeds/3482615892218748318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/07/a6-properties-of-2d-fourier-transform.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/3482615892218748318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/3482615892218748318'/><link rel='alternate' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/07/a6-properties-of-2d-fourier-transform.html' title='A6 – Properties of the 2D Fourier Transform'/><author><name>carmilumban</name><uri>http://www.blogger.com/profile/16390082465332891638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_PBEYFvSjHb0/SnwQ7dX_GKI/AAAAAAAAAMQ/v-iZ1H_pYS8/s72-c/A6+2.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5670790231004574442.post-6681760868386358609</id><published>2009-07-06T20:22:00.000-07:00</published><updated>2009-07-08T06:59:14.868-07:00</updated><title type='text'>Activity 5 Fourier transformers!</title><content type='html'>-busy ang neurons...&lt;br /&gt;&lt;br /&gt;Lens as Fourier Transformer&lt;br /&gt;&lt;br /&gt;6.A – Familiarization with discrete FFT&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/SlSXzksqo5I/AAAAAAAAAFc/AOWzNDz7JYk/s1600-h/ko.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 107px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/SlSXzksqo5I/AAAAAAAAAFc/AOWzNDz7JYk/s320/ko.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5356072769130505106" /&gt;&lt;/a&gt;&lt;br /&gt;Figure 1.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SlSX0HruyfI/AAAAAAAAAFk/358TgOPiT2U/s1600-h/k1.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 138px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SlSX0HruyfI/AAAAAAAAAFk/358TgOPiT2U/s320/k1.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5356072778521823730" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Figure 2.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SlSX0TaNUNI/AAAAAAAAAFs/p_-h8ebmlm8/s1600-h/k2.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 138px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SlSX0TaNUNI/AAAAAAAAAFs/p_-h8ebmlm8/s320/k2.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5356072781669552338" /&gt;&lt;/a&gt;&lt;br /&gt;Figure 3.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;6.B Simulation of an imaging device&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/SlSlVwLVGaI/AAAAAAAAAG0/jxzMvk9I3xY/s1600-h/k3.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 103px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/SlSlVwLVGaI/AAAAAAAAAG0/jxzMvk9I3xY/s320/k3.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5356087649978620322" /&gt;&lt;/a&gt;&lt;br /&gt;Figure 4.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SlSYYxZmt7I/AAAAAAAAAF0/9KR03kIZEYg/s1600-h/k4.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 77px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SlSYYxZmt7I/AAAAAAAAAF0/9KR03kIZEYg/s320/k4.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5356073408195377074" /&gt;&lt;/a&gt;&lt;br /&gt;Figure 5.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SlSYZG1RaJI/AAAAAAAAAF8/S_vec6OSYnE/s1600-h/k5.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 76px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SlSYZG1RaJI/AAAAAAAAAF8/S_vec6OSYnE/s320/k5.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5356073413948565650" /&gt;&lt;/a&gt;&lt;br /&gt;Figure 6.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;6.C Template Matching using correlation&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/SlSYZQOv84I/AAAAAAAAAGE/KsJC3vFhLWk/s1600-h/k6.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 274px; height: 320px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/SlSYZQOv84I/AAAAAAAAAGE/KsJC3vFhLWk/s320/k6.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5356073416471344002" /&gt;&lt;/a&gt;&lt;br /&gt;Figure 7.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/SlSYZsnOhwI/AAAAAAAAAGM/-Idcp5y4_YE/s1600-h/k7.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 274px; height: 320px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/SlSYZsnOhwI/AAAAAAAAAGM/-Idcp5y4_YE/s320/k7.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5356073424090203906" /&gt;&lt;/a&gt;&lt;br /&gt;Figure 8.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SlSYZ9AWXTI/AAAAAAAAAGU/GqciN7dbmnM/s1600-h/k8.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 274px; height: 320px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SlSYZ9AWXTI/AAAAAAAAAGU/GqciN7dbmnM/s320/k8.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5356073428490542386" /&gt;&lt;/a&gt;&lt;br /&gt;Figure 9.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SlSYltk9LlI/AAAAAAAAAGc/PQBzW4DwNyQ/s1600-h/k8.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 274px; height: 320px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SlSYltk9LlI/AAAAAAAAAGc/PQBzW4DwNyQ/s320/k8.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5356073630507544146" /&gt;&lt;/a&gt;&lt;br /&gt;Figure 10.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SlSYl4DgCEI/AAAAAAAAAGk/wjPMXrAguJA/s1600-h/k9.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 274px; height: 320px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SlSYl4DgCEI/AAAAAAAAAGk/wjPMXrAguJA/s320/k9.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5356073633320011842" /&gt;&lt;/a&gt;&lt;br /&gt;Figure 11.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;6.D Edge detection using the convolution integral&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SlSYlzyEOKI/AAAAAAAAAGs/vXMkRfAShTs/s1600-h/k10.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 102px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SlSYlzyEOKI/AAAAAAAAAGs/vXMkRfAShTs/s320/k10.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5356073632173144226" /&gt;&lt;/a&gt;&lt;br /&gt;Figure 12.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5670790231004574442-6681760868386358609?l=carmilumban-ap186.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carmilumban-ap186.blogspot.com/feeds/6681760868386358609/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/07/activity-5-fourier-transformers.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/6681760868386358609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/6681760868386358609'/><link rel='alternate' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/07/activity-5-fourier-transformers.html' title='Activity 5 Fourier transformers!'/><author><name>carmilumban</name><uri>http://www.blogger.com/profile/16390082465332891638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_PBEYFvSjHb0/SlSXzksqo5I/AAAAAAAAAFc/AOWzNDz7JYk/s72-c/ko.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5670790231004574442.post-6802827272014240062</id><published>2009-06-29T18:34:00.000-07:00</published><updated>2009-08-07T08:39:35.866-07:00</updated><title type='text'>Activity 4 Enhancement by Histogram Manipulation</title><content type='html'>&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;The histogram of a grayscale image is equal to the graylevel probability&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;distribution function (PDF) if normalized by the total number of pixels. As such,&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;the grayscale PDF of an image can be modified in the same way one can modify&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;the PDF of random numbers.&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;Histogram manipulation is one way of improving the quality of an image,&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;enhancing certain image features, or mimicking the response of different imaging&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;systems, such as the human eye.&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;Given the cumulative distribution function (CDF) of a desired PDF, the grayscale&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;PDF of an image can be modified by backprojecting the grayscale values using&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;the CDF. Then&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;newly encountered functions in scilab:&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;tabul - frequency of values of a matrix or vector&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;tabul allows&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;you to compute the frequency of of occurence of a vector or matrix&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;[m]=tabul(X [,order])&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;•&lt;span style="color:black;"&gt;Activity 4:&lt;/span&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;•&lt;span style="font-weight: bold;color:black;" &gt;Two categories&lt;/span&gt;&lt;span style="color:black;"&gt; of image enhancement techniques include &lt;/span&gt;&lt;span style="font-weight: bold;color:black;" &gt;spatial&lt;/span&gt;&lt;span style="color:black;"&gt; and &lt;/span&gt;&lt;span style="font-weight: bold;color:black;" &gt;frequency&lt;/span&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;span style="font-weight: bold;color:black;" &gt;domain techniques&lt;/span&gt;&lt;span style="color:black;"&gt;. Spatial techniques involve direct manipulation of image &lt;/span&gt;&lt;span style="font-weight: bold;color:black;" &gt;pixels&lt;/span&gt;&lt;span style="color:black;"&gt; while frequency domain techniques works by manipulation of &lt;/span&gt;&lt;span style="color:black;"&gt;fourier&lt;/span&gt;&lt;span style="color:black;"&gt; of the and wavelet transform of a signal.&lt;/span&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;•&lt;span style="color:black;"&gt;Here, the &lt;/span&gt;&lt;span style="font-weight: bold;color:black;" &gt;spatial&lt;/span&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;span style="font-weight: bold;color:black;" &gt;technique&lt;/span&gt;&lt;span style="color:black;"&gt; will used by way of &lt;/span&gt;&lt;span style="font-weight: bold;color:black;" &gt;histogram enhancement&lt;/span&gt;&lt;span style="color:black;"&gt;. The histogram of an image illustrate the&lt;span style=""&gt;  &lt;/span&gt;distribution of gray levels in the image in the range 0 to 255 where 0 is black and 255 is white and normalized when in the range [0.0, 1.0]&lt;/span&gt;&lt;span style="color:black;"&gt;. &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;•&lt;span style="color:black;"&gt;The method of histogram enhancement works by &lt;/span&gt;&lt;span style="color:black;"&gt;equalization.This&lt;/span&gt;&lt;span style="color:black;"&gt; is one of the ways in which it can be done in &lt;/span&gt;&lt;span style="color:black;"&gt;Scilab&lt;/span&gt;&lt;span style="color:black;"&gt;:&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;•&lt;span style="color:black;"&gt;You get the histogram of the image by using the &lt;/span&gt;&lt;span style="color:black;"&gt;tabul&lt;/span&gt;&lt;span style="color:black;"&gt;(filename, ‘&lt;/span&gt;&lt;span style="color:black;"&gt;i&lt;/span&gt;&lt;span style="color:black;"&gt;’) command that gives the frequency of occurrence of the matrix or vectors, or in this case the no. of pixels having that &lt;/span&gt;&lt;span style="color:black;"&gt;graylevel&lt;/span&gt;&lt;span style="color:black;"&gt; and then plot it.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;•&lt;span style="color:black;"&gt;The histogram:&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;•&lt;span style="color:black;"&gt;x axis for the &lt;/span&gt;&lt;span style="color:black;"&gt;graylevel&lt;/span&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;•&lt;span style="color:black;"&gt; y axis for the frequency value&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;•&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;•&lt;span style="color:black;"&gt;Next, normalize the &lt;/span&gt;&lt;span style="color:black;"&gt;greylevel&lt;/span&gt;&lt;span style="color:black;"&gt; and you distribute the frequency &lt;/span&gt;&lt;/span&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 12"&gt;&lt;meta name="Originator" content="Microsoft Word 12"&gt;&lt;link style="font-family: times new roman;" rel="File-List" href="file:///C:%5CUsers%5CUSA%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"&gt;&lt;link style="font-family: times new roman;" rel="themeData" href="file:///C:%5CUsers%5CUSA%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;&lt;span style=""&gt;&lt;span style=""&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;over the total no. of pixels and thus &lt;b style=""&gt;&lt;span style=""&gt;spread out the most frequent intensity values.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Results and discussions:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SnxELWdqQ8I/AAAAAAAAAQo/lGZywfgxF_Q/s1600-h/y1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 281px; height: 260px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SnxELWdqQ8I/AAAAAAAAAQo/lGZywfgxF_Q/s320/y1.png" alt="" id="BLOGGER_PHOTO_ID_5367239817718023106" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Using linear method of histrogram equalization, we see in Fig.1 that the resulting new image has a well distributed histogram as compared to the original image which has uneven probability distribution. The new image has a higher contrast than the original.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/SnxELk1CeJI/AAAAAAAAAQw/QowCqVMxhH8/s1600-h/y2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 387px; height: 275px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/SnxELk1CeJI/AAAAAAAAAQw/QowCqVMxhH8/s320/y2.png" alt="" id="BLOGGER_PHOTO_ID_5367239821574174866" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;In Figure 2, using nonlinear histogram equalization using interp1(,,'linear') was used. However the resulting image has lower contrast than the original.&lt;br /&gt;&lt;br /&gt;For this image the linear method was able to enhance the contrast in the image while the non linear method was not and only resulted to reduction in grayvalue of each graylevel.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;br /&gt;Code:&lt;br /&gt;linear&lt;br /&gt;&lt;/span&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="PowerPoint.Slide"&gt;&lt;meta name="Generator" content="Microsoft PowerPoint 12"&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;im&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;imread&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;('C:\Users\USA\Desktop\scilab and 186\grayscale parrot.png');&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;m=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;tabul&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;im,'i&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;');&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;hx&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=m(:,1);&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;hy&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=m(:,2);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;scf&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(0);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;[&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;px,py&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;]=size(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;im&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;np&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;px&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;*&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;py&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;nx&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;hx&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;/max(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;hx&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;ny&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;hy&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;ccy&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;cumsum&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;ny&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;)/max(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;cumsum&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;ny&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;));&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;subplot(321);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;imshow&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;im&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;,[]);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;subplot(322);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;plot(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;nx,ny&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;title('PDF1- Histogram 1');&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;xlabel&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;('grayscale level');&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;ylabel&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;('frequency');&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;subplot(323);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;plot(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;nx,ccy&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;title('CDF1');&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;//2. &lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;backprojection&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; of the image through the CDF original&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;newim&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;= []; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;for &lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;i&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; = 1:px&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;for j = 1:py&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;newim&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;i,j&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;) = &lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;ccy&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;im&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;i,j&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;));&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;end&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;end&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;subplot(324);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;imshow&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;newim&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;,[]);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;//&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;scf&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(1);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;//&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;imshow&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;newim&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;,[]);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;//&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;imwrite&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(good1, 'newim.jpg');&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;/////for this &lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;newimage&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; get the PDF and CDF again&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;im&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;imread&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;('C:\Users\USA\Desktop\scilab and 186\newim.jpg');&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;im&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;tabul&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;newim,'i&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;');&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;hx&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=m(:,1);&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;hy&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=m(:,2);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;scf&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(0);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;[&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;px,py&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;]=size(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;im&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;np&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;px&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;*&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;py&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;nx&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;hx&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;/max(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;hx&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;ny&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;hy&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;ccy&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;cumsum&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;ny&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;)/max(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;cumsum&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;ny&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;));&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;subplot(325);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;plot(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;nx,ny&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;title('PDF2- Histogram of Image 2');&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;xlabel&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;('grayscale level');&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;ylabel&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;('frequency');&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;subplot(326);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;plot(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;nx,ccy&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;)&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;title('CDF of Image 2');&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;xs2sgif(0,’figure1.gif’);&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;code: non linear:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="PowerPoint.Slide"&gt;&lt;meta name="Generator" content="Microsoft PowerPoint 12"&gt;  &lt;/p&gt;&lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;im&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;imread&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;('C:\Users\USA\Desktop\scilab and 186\grayscale parrot.png');&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;m=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;tabul&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;im,'i&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;');&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;hx&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=m(:,1);&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;hy&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=m(:,2);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;scf&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(0);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;[&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;px,py&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;]=size(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;im&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;np&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;px&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;*&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;py&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;nx&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;hx&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;/max(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;hx&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;ny&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;hy&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;ccy&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;cumsum&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;ny&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;)/max(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;cumsum&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;ny&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;));&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;subplot(321);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;imshow&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;im&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;,[]);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;subplot(322);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;plot(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;nx,ny&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;title('PDF1- Histogram 1');&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;xlabel&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;('grayscale level');&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;ylabel&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;('frequency');&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;subplot(323);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;plot(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;nx,ccy&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;title('CDF1');&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;// for the equalization by &lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;backprojection&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; of the image through a desired &lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;cdf&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;xx=[0:1:255];&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;yy&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=xx^2;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;yy&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;yy&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;/max(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;yy&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;xxp&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=[];&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;yyp&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=[]&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;for &lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;i&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=1:px;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;for j=1:py;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;xxp&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;i&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;, j)=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;ccy&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;im&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;i,j&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;));&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;end&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;end&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;yyp&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=interp1(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;yy,xx&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;, &lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;xxp,'linear&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;');&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;//&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;yyp&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=interp1(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;yy,xx&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;, &lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;xxp&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;,'&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;spline&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;');&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;//&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;yyp&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=interp1(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;yy,xx&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;, &lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;xxp,'nearest&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;newim&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;yyp&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;subplot(324);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;imshow&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;newim&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;, []);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;newim&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=round(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;newim&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;subplot(324);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;imshow&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;newim&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;,[]);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;im&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;imread&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;('C:\Users\USA\Desktop\scilab and 186\newim.jpg');&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;im&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;tabul&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;newim,'i&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;');&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;hx&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=m(:,1);&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;hy&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=m(:,2);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;scf&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(0);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;[&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;px,py&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;]=size(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;im&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;np&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;px&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;*&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;py&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;nx&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;hx&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;/max(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;hx&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;ny&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;hy&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;ccy&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;=&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;cumsum&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;ny&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;)/max(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;cumsum&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;ny&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;));&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;subplot(325);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;plot(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;nx,ny&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;title('PDF2- Histogram of Image 2');&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;xlabel&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;('grayscale level');&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;ylabel&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;('frequency');&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;subplot(326);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;plot(&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;nx,ccy&lt;/span&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;)&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;title('CDF of Image 2');&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt;xs2sgif(0,’figure1.gif’);&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;    &lt;p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 0in; text-align: left; direction: ltr; unicode-bidi: embed;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;color:red;"   &gt; &lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="PowerPoint.Slide"&gt;&lt;meta name="Generator" content="Microsoft PowerPoint 12"&gt;                        &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5670790231004574442-6802827272014240062?l=carmilumban-ap186.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carmilumban-ap186.blogspot.com/feeds/6802827272014240062/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/06/activity-4-enhancement-by-histogram.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/6802827272014240062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/6802827272014240062'/><link rel='alternate' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/06/activity-4-enhancement-by-histogram.html' title='Activity 4 Enhancement by Histogram Manipulation'/><author><name>carmilumban</name><uri>http://www.blogger.com/profile/16390082465332891638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_PBEYFvSjHb0/SnxELWdqQ8I/AAAAAAAAAQo/lGZywfgxF_Q/s72-c/y1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5670790231004574442.post-8485510834021610135</id><published>2009-06-29T18:14:00.000-07:00</published><updated>2009-08-06T19:41:50.031-07:00</updated><title type='text'>Activity 2:Area estimations of images with defined images</title><content type='html'>Activity 2 Area estimations of images with defined images&lt;br /&gt;&lt;br /&gt;For this activity the area of certain region in an image with a defined geometry is estimated using Green’s theorem.  In summation (discrete) form, if there are Nb pixels in the boundary or contour of R then the area of R is&lt;br /&gt;&lt;br /&gt;The parametrized x and y coordinates for this computation were obtained using th SCIlab’s SIP toolbox function follow() that has the command&lt;br /&gt;[x,y] = follow(Img).The xy vectors stores the parametized contour and Img is a binary array of 0 and 1 where 0 is equivalent to background and 1 is the object. But before we can do this, the image data is first loaded in for processing.&lt;br /&gt;&lt;br /&gt;Imread is used to read the image and obtain an array containing the image data and im2bw is used to convert these data values to binary by thresholding, say 0.5. Then the follow command is used to trace the x y pixel coordinates nearest the edge which we plug in to Green’s function to get the area.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SlSKmZHl8uI/AAAAAAAAAE8/Opq2OObNs4A/s1600-h/green.jpg"&gt;&lt;img style="cursor: pointer; width: 230px; height: 90px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SlSKmZHl8uI/AAAAAAAAAE8/Opq2OObNs4A/s320/green.jpg" alt="" id="BLOGGER_PHOTO_ID_5356058249032757986" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Another way of obtaining the area is by taking the sum of the white region via sum(Img). Basically we sum the 1’s in the binary array. This value is equivalent to what we call the analytical sum and is used to check the experimental area value obtained using Green’s function. The closer these values coincide the lesser the error.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/Skl6P3ZYnAI/AAAAAAAAADE/7bl1eI7NiSg/s1600-h/table1.jpg"&gt;&lt;img style="cursor: pointer; width: 320px; height: 66px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/Skl6P3ZYnAI/AAAAAAAAADE/7bl1eI7NiSg/s320/table1.jpg" alt="" id="BLOGGER_PHOTO_ID_5352944045093592066" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;The code made is shown below:&lt;br /&gt;&lt;br /&gt;I=imread('C:\Users\USA\Desktop\circle140d.bmp');&lt;br /&gt;b=im2bw(I,0.5);&lt;br /&gt;[x,y]=follow(b);&lt;br /&gt;xsize=size(x);&lt;br /&gt;ysize=size(y);&lt;br /&gt;xlen=length(x);&lt;br /&gt;ylen=length(y);&lt;br /&gt;xi(1)=x(xlen);&lt;br /&gt;yi(1)=y(ylen);&lt;br /&gt;A_g=abs(0.5* sum( xi.*y - x.*yi));&lt;br /&gt;A_sum=sum(b) ;&lt;br /&gt;D= abs( (A_sum-A_g)/A_sum),"Error"&lt;br /&gt;&lt;br /&gt;**************************************&lt;br /&gt;&lt;br /&gt;I would like to acknowledge Rommel for helping me with scilab and code for loop code.. when it  didn’t worked… thanks otherwise I wouldn’t have finished the work.&lt;br /&gt;Grade: 9/10 because of the small error in the results.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5670790231004574442-8485510834021610135?l=carmilumban-ap186.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carmilumban-ap186.blogspot.com/feeds/8485510834021610135/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/06/activity-2area-estimations-of-images.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/8485510834021610135'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/8485510834021610135'/><link rel='alternate' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/06/activity-2area-estimations-of-images.html' title='Activity 2:Area estimations of images with defined images'/><author><name>carmilumban</name><uri>http://www.blogger.com/profile/16390082465332891638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_PBEYFvSjHb0/SlSKmZHl8uI/AAAAAAAAAE8/Opq2OObNs4A/s72-c/green.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5670790231004574442.post-7791660344869838340</id><published>2009-06-22T18:27:00.000-07:00</published><updated>2009-07-08T07:50:53.829-07:00</updated><title type='text'>A3 – Image types and basic image enhancement</title><content type='html'>Images&lt;br /&gt;"An image is represented by a two-dimensional table in which each cell is a pixel. To represent an image by means of computer, it is thus enough to create a pixel table in which each cell contains a value. The value stored in a cell is coded on a certain number of bits which determine the colour or the intensity of the pixel, This is called the coding depth (or is sometimes also called the colour depth. "[http://en.kioskea.net/contents/video/affich.php3]&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Using imfinfo(filename, 'verbose') in Scilab , one can determine the type of an image and also determine other file information.&lt;br /&gt;&lt;br /&gt;1.Grayscale: &lt;br /&gt;Pixel color depth: 8-bit color &lt;br /&gt;&lt;br /&gt;Grayscale images are monochromatic and carries only intensity information composed exclusively of shades of gray that vary from black (lowest intensity) to white (highest intensity) equivalent to 2^4 intensities( 256) or 8 bits per sampled pixel.&lt;br /&gt;&lt;br /&gt;Image source:http://en.wikipedia.org/wiki/Grayscale&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SlM7WUP5jAI/AAAAAAAAAEU/adkKa-ovGfs/s1600-h/grayscale+parrot.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 150px; height: 200px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SlM7WUP5jAI/AAAAAAAAAEU/adkKa-ovGfs/s320/grayscale+parrot.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5355689636452207618" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;--&gt;imfinfo('C:\Users\USA\Desktop\scilab and 186\grayscale parrot.png','verbose')&lt;br /&gt;       FileName: C:\Users\USA\Desktop\scilab and 186\grayscale parrot.png&lt;br /&gt;       FileSize: 29342&lt;br /&gt;         Format: PNG&lt;br /&gt;          Width: 150&lt;br /&gt;         Height: 200&lt;br /&gt;          Depth: 8&lt;br /&gt;    StorageType: indexed&lt;br /&gt; NumberOfColors: 256&lt;br /&gt; ResolutionUnit: centimeter&lt;br /&gt;    XResolution: 72.000000&lt;br /&gt;    YResolution: 72.000000   &lt;br /&gt;******&lt;br /&gt;On part 6. Bonus – If you can make a program in Scilab to compute and plot the&lt;br /&gt;histogram of a grayscale image, you get 2 points bonus.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;im=imread('C:\Users\USA\Desktop\scilab and 186\grayscale parrot.png'); // read image&lt;br /&gt;im=im*255;&lt;br /&gt;scf(0);&lt;br /&gt;m=tabul(im,'i');&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;hx=m(:,1);&lt;br /&gt;hy=m(:,2);&lt;br /&gt;h=scf(0);&lt;br /&gt;&lt;br /&gt;[px,py]=size(im);&lt;br /&gt;npixel=px*py;&lt;br /&gt;&lt;br /&gt;nx= hx/max(hx);&lt;br /&gt;ny= hy/npixel;&lt;br /&gt;&lt;br /&gt;ccy=cumsum(ny).*(1/max(cumsum(ny)));&lt;br /&gt;&lt;br /&gt;subplot(321);&lt;br /&gt;plot(nx,ny);&lt;br /&gt;title('norm hist');&lt;br /&gt;title('nxy');&lt;br /&gt;&lt;br /&gt;subplot(322);&lt;br /&gt;plot(nx,ccy);&lt;br /&gt;title('nxccy');&lt;br /&gt;&lt;br /&gt;xs2gif(0,'C:\Users\USA\Desktop\histograms2.gif');&lt;br /&gt;****************&lt;br /&gt;2. True color&lt;br /&gt;Pixel color depth: 24-bit color (True Color)&lt;br /&gt;&lt;br /&gt;These consist of at least 256 shades of red, green, and blue resulting to around 16,777,216 color variations.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_PBEYFvSjHb0/SlM9nqIwq3I/AAAAAAAAAEc/bf9y21XX0WM/s1600-h/color+pizza.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 302px; height: 302px;" src="http://4.bp.blogspot.com/_PBEYFvSjHb0/SlM9nqIwq3I/AAAAAAAAAEc/bf9y21XX0WM/s320/color+pizza.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5355692133408877426" /&gt;&lt;/a&gt;&lt;br /&gt;--&gt;imfinfo('C:\Users\USA\Desktop\scilab and 186\color pizza.png','verbose')&lt;br /&gt;       FileName: C:\Users\USA\Desktop\scilab and 186\color pizza.png&lt;br /&gt;       FileSize: 246909&lt;br /&gt;         Format: PNG&lt;br /&gt;          Width: 302&lt;br /&gt;         Height: 302&lt;br /&gt;          Depth: 8&lt;br /&gt;    StorageType: truecolor&lt;br /&gt; NumberOfColors: 0&lt;br /&gt; ResolutionUnit: centimeter&lt;br /&gt;    XResolution: 23.230000&lt;br /&gt;    YResolution: 23.230000&lt;br /&gt;&lt;br /&gt;3. Binary&lt;br /&gt;&lt;br /&gt;These are two level images, wherein each pixel store only store two possible values, that is, either 0 or 1, black or white but any two color combination can be used.&lt;br /&gt;&lt;br /&gt;Image source: http://en.wikipedia.org/wiki/File:Neighborhood_watch_bw.png&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SlM-qDBroMI/AAAAAAAAAEs/SldunbHaQYs/s1600-h/binary.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 200px; height: 140px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SlM-qDBroMI/AAAAAAAAAEs/SldunbHaQYs/s320/binary.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5355693273961439426" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;--&gt;imfinfo('C:\Users\USA\Desktop\scilab and 186\binary.png','verbose')&lt;br /&gt;       FileName: C:\Users\USA\Desktop\scilab and 186\binary.png&lt;br /&gt;       FileSize: 2660&lt;br /&gt;         Format: PNG&lt;br /&gt;          Width: 200&lt;br /&gt;         Height: 140&lt;br /&gt;          Depth: 8&lt;br /&gt;    StorageType: indexed&lt;br /&gt; NumberOfColors: 2&lt;br /&gt; ResolutionUnit: centimeter&lt;br /&gt;    XResolution: 72.000000&lt;br /&gt;    YResolution: 72.000000&lt;br /&gt;&lt;br /&gt;4. Indexed&lt;br /&gt;Indexed images are made up of colors indexed by its position in the pallete or an array of color elements.  The color information is not directly carried by the image pixel data. &lt;br /&gt;&lt;br /&gt;Image source: http://en.wikipedia.org/wiki/File:IndexedColorSample_(Mosaic).png&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SlM_E-_MU0I/AAAAAAAAAE0/oaGQ9TAKwMU/s1600-h/indexed.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 160px; height: 142px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SlM_E-_MU0I/AAAAAAAAAE0/oaGQ9TAKwMU/s320/indexed.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5355693736733725506" /&gt;&lt;/a&gt;&lt;br /&gt;--&gt;imfinfo('C:\Users\USA\Desktop\indexed.png','verbose')&lt;br /&gt;       FileName: C:\Users\USA\Desktop\indexed.png&lt;br /&gt;       FileSize: 9789&lt;br /&gt;         Format: PNG&lt;br /&gt;          Width: 160&lt;br /&gt;         Height: 142&lt;br /&gt;          Depth: 8&lt;br /&gt;    StorageType: indexed&lt;br /&gt; NumberOfColors: 256&lt;br /&gt; ResolutionUnit: centimeter&lt;br /&gt;    XResolution: 72.000000&lt;br /&gt;    YResolution: 72.000000  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;********************************&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Getting the area of scanned of images or objects&lt;br /&gt;In this part, a rebisco cracker was photograph and the resulting image was scanned and the area of this biscuit was computed using the resulting plot in Scilab from the traced edges through the command follow.( Whahah I later realized that I should have scanned the rebisco directly in order to lessen the error :p .. oh well )&lt;br /&gt;&lt;br /&gt;The procedure and results are as follows:&lt;br /&gt;1. Take picture and scan it.&lt;br /&gt;2. Approximate the physical area via an area of a circle with radius r=diameter/2.&lt;br /&gt;3. Find the computed area from the ratio of the no. of pixels to the actual measurements in the photo or take the plot of the object via the follow() command.&lt;br /&gt;4. The first one was difficult cause the x y coordinates in the photo matching the pixels in paint required alllot of data points and I soon give up this approach.&lt;br /&gt;5. I then used the plot in the follow() command to trace the edges. and approximate the object as a circle and get the radius from the diameter. &lt;br /&gt;6. Also I compared the results of the computed area from analytical sum and the Green's function but wasn't able to relate these values to the physical area. (whahaa)&lt;br /&gt;7. The difference between the analytical area and  are computed from green’s function is the error  in this estimation. Taking that its area for a circle, the physical area is  around 14.13 cm (d=4.5 cm)  while the  computed are is  10.6814 (w/ d=3.4 cm from the plot).&lt;br /&gt;8. The area from the two physical and numerical methods do not coincide since area of the object was only approximated to that of a circle even thought the object is curved in the edges. The computed area of the image is more accurate since it has taken into account the curved edges but is affected by the distortion of the scanned image.  The error is 24.42 image if we take the physical area to be more accurate while 32.30% for the computed area. &lt;br /&gt;9. The sources of errors includes the distortion effect of the camera, lighting or background and the shades or shadow in the edges .  These errors may have been avoided if the object was scanned directly (o_o) or photographed in a uniform background lighting to avoid unwanted shading in the edges.&lt;br /&gt; Here are the pix:&lt;br /&gt;&lt;br /&gt;The scanned picture:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_PBEYFvSjHb0/SlSQHKA2StI/AAAAAAAAAFE/AcwrfJoRLAQ/s1600-h/p1.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 314px;" src="http://1.bp.blogspot.com/_PBEYFvSjHb0/SlSQHKA2StI/AAAAAAAAAFE/AcwrfJoRLAQ/s320/p1.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5356064309471759058" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The image after im2bw and thresholding, and converting the black to white and vv. to get the sum of the white area:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/SlSQfDJ002I/AAAAAAAAAFM/NAJBVTfY6_M/s1600-h/p2.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 319px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/SlSQfDJ002I/AAAAAAAAAFM/NAJBVTfY6_M/s320/p2.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5356064719947223906" /&gt;&lt;/a&gt;&lt;br /&gt;The plot:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SlSQ_dAC7FI/AAAAAAAAAFU/tBuU0SGHc2U/s1600-h/p3.gif"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 298px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SlSQ_dAC7FI/AAAAAAAAAFU/tBuU0SGHc2U/s320/p3.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5356065276641340498" /&gt;&lt;/a&gt;&lt;br /&gt;.*.*.*.*.*.*.*.&lt;br /&gt;&lt;br /&gt;Grade:&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5670790231004574442-7791660344869838340?l=carmilumban-ap186.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carmilumban-ap186.blogspot.com/feeds/7791660344869838340/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/06/different-image-types.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/7791660344869838340'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/7791660344869838340'/><link rel='alternate' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/06/different-image-types.html' title='A3 – Image types and basic image enhancement'/><author><name>carmilumban</name><uri>http://www.blogger.com/profile/16390082465332891638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_PBEYFvSjHb0/SlM7WUP5jAI/AAAAAAAAAEU/adkKa-ovGfs/s72-c/grayscale+parrot.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5670790231004574442.post-3203856696093705123</id><published>2009-06-17T19:57:00.000-07:00</published><updated>2009-06-20T07:12:27.045-07:00</updated><title type='text'>Activity 1 Re-plotting with Paint and Excel</title><content type='html'>In this activity we scanned a handwritten plot and used Paint and Excel to replot this.&lt;br /&gt;To do this:&lt;br /&gt;1.A number of x and y  coordinates in pixel positions of the scanned plot are obtained one by one starting from the left side and listed down in Excel. It must be noted that the origin in Paint is at the top left part.&lt;br /&gt;&lt;br /&gt;2. Next,  the origin of the scanned plot is noted down and the number of pixel per unit measure in the x and y axis of the original plot is computed to be able to convert the x-y pixel positions to x-y units--use this ratio as the conversion factor.&lt;br /&gt;&lt;br /&gt;3.  Third, the x-y coordinates for the replotting are computed using the relation of the listed x-y pixels coordinates to the origin of the scanned plot and multiplied by a conversion factor found in 2.   This is how:&lt;br /&gt;For the x axis, positive direction (to the right):&lt;br /&gt;&lt;br /&gt;x &lt;span style="font-size:78%;"&gt;plot&lt;/span&gt;=1* (x &lt;span style="font-size:78%;"&gt;pixel&lt;/span&gt;-x &lt;span style="font-size:78%;"&gt;origin&lt;/span&gt;) &lt;span style="font-weight: bold;"&gt;pixel &lt;/span&gt;*(  measure/#&lt;span style="font-weight: bold;"&gt;pixel &lt;/span&gt;in x)&lt;br /&gt;&lt;br /&gt;For the y axis, negative or downward direction:&lt;br /&gt;&lt;br /&gt;y &lt;span style="font-size:78%;"&gt;plot&lt;/span&gt;= -1* (y &lt;span style="font-size:78%;"&gt;pixel&lt;/span&gt;-y &lt;span style="font-size:78%;"&gt;origin&lt;/span&gt;) &lt;span style="font-weight: bold;"&gt;pixel&lt;/span&gt; *(  measure/#&lt;span style="font-weight: bold;"&gt;pixel&lt;/span&gt; in y)&lt;br /&gt;&lt;br /&gt;4. These xplot and y plot coordinates are then plotted in Excel and the picture of the scanned plot is used as the background in Plot area in Excel to superimpose the two to see if the resulting plot coincides with the original using the pixel and units relation.&lt;br /&gt;&lt;br /&gt;The figure below illustrates the resulting plot and the table includes the datapoints for the pixels and the corresponding converted values using the formulas in 3.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_PBEYFvSjHb0/SjzOAsQhfWI/AAAAAAAAAAk/uQ203M7mKew/s1600-h/plot1.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 285px;" src="http://2.bp.blogspot.com/_PBEYFvSjHb0/SjzOAsQhfWI/AAAAAAAAAAk/uQ203M7mKew/s320/plot1.jpg" alt="" id="BLOGGER_PHOTO_ID_5349376968685092194" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_PBEYFvSjHb0/SjzrMw9FLtI/AAAAAAAAAAs/Y1RXEhQP01c/s1600-h/Datapoints.png"&gt;&lt;img style="cursor: pointer; width: 268px; height: 320px;" src="http://3.bp.blogspot.com/_PBEYFvSjHb0/SjzrMw9FLtI/AAAAAAAAAAs/Y1RXEhQP01c/s320/Datapoints.png" alt="" id="BLOGGER_PHOTO_ID_5349409061941358290" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;This plot coincides with the original plot along with the grid and origin.&lt;br /&gt;&lt;br /&gt;*************&lt;br /&gt;Acknowledgement: I would like to give thanks to Kaye for teaching us and Gary in the CS lib on how to go about the pixel and ratio of the units while waiting for our library clearance. :) Also, thanks to Janno for rotation of the image in Nero.&lt;br /&gt;&lt;br /&gt;Grade: 10/10. Because  I was able to understand and enjoy the activity and superimpose the plots right away. :)&lt;br /&gt;&lt;br /&gt;Book: Algebra and Calculus 1912, Palmer&lt;br /&gt;&lt;br /&gt;&lt;img src="file:///C:/Users/USA/AppData/Local/Temp/moz-screenshot-1.jpg" alt="" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="file:///C:/Users/USA/AppData/Local/Temp/moz-screenshot-2.jpg" alt="" /&gt;&lt;img src="file:///C:/Users/USA/AppData/Local/Temp/moz-screenshot-3.jpg" alt="" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5670790231004574442-3203856696093705123?l=carmilumban-ap186.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carmilumban-ap186.blogspot.com/feeds/3203856696093705123/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/06/activity-1-re-plotting-with-paint-and.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/3203856696093705123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/3203856696093705123'/><link rel='alternate' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/06/activity-1-re-plotting-with-paint-and.html' title='Activity 1 Re-plotting with Paint and Excel'/><author><name>carmilumban</name><uri>http://www.blogger.com/profile/16390082465332891638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_PBEYFvSjHb0/SjzOAsQhfWI/AAAAAAAAAAk/uQ203M7mKew/s72-c/plot1.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5670790231004574442.post-2421374421986383764</id><published>2009-06-15T20:30:00.000-07:00</published><updated>2009-06-15T20:32:38.572-07:00</updated><title type='text'>A1 DIGITAL SCANNING</title><content type='html'>Introduction (ahem...)&lt;br /&gt;&lt;br /&gt;In this activity , we use ratio and proportion to fing the numerical values of a digitally scanned hand drawn plot. Using paint and XCel we reconstruct the graph ...kuno.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5670790231004574442-2421374421986383764?l=carmilumban-ap186.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carmilumban-ap186.blogspot.com/feeds/2421374421986383764/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/06/a1-digital-scanning.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/2421374421986383764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/2421374421986383764'/><link rel='alternate' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/06/a1-digital-scanning.html' title='A1 DIGITAL SCANNING'/><author><name>carmilumban</name><uri>http://www.blogger.com/profile/16390082465332891638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5670790231004574442.post-3457802734479249269</id><published>2009-06-15T20:10:00.000-07:00</published><updated>2009-06-15T20:12:42.944-07:00</updated><title type='text'>first day ng class at 186</title><content type='html'>testing.....da- blog :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5670790231004574442-3457802734479249269?l=carmilumban-ap186.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://carmilumban-ap186.blogspot.com/feeds/3457802734479249269/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/06/first-day-ng-class-at-186.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/3457802734479249269'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5670790231004574442/posts/default/3457802734479249269'/><link rel='alternate' type='text/html' href='http://carmilumban-ap186.blogspot.com/2009/06/first-day-ng-class-at-186.html' title='first day ng class at 186'/><author><name>carmilumban</name><uri>http://www.blogger.com/profile/16390082465332891638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
