<?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-6557682483856522377</id><updated>2011-08-03T12:25:47.158-07:00</updated><category term='pin cushion'/><category term='cdf'/><category term='backprojection'/><category term='morphological operations'/><category term='thin'/><category term='2d FT'/><category term='minimum distance classification'/><category term='erode'/><category term='pattern recognition'/><category term='LDA'/><category term='probabilistic classification'/><category term='pdf'/><category term='skel'/><category term='FFT2'/><category term='barrel'/><category term='image contrast'/><category term='ultrasound images'/><category term='geometric distortion'/><category term='convolution'/><category term='fourier transform correlation'/><category term='image enhancement'/><category term='FFT'/><category term='frequency domain'/><category term='linear discriminant analysis'/><category term='dilate'/><category term='grayscale'/><category term='filtering'/><title type='text'>Think Tank Ni Cherry</title><subtitle type='html'>Blog journal for Applied Physics 186 Video and Image Processing Course</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://thinktanknicherry.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://thinktanknicherry.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>cherry</name><uri>http://www.blogger.com/profile/01475793529692257483</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-6557682483856522377.post-6485574564693929352</id><published>2009-10-12T08:19:00.000-07:00</published><updated>2009-10-17T20:32:53.852-07:00</updated><title type='text'>A19 Restoration of Blurred Image</title><content type='html'>--- brown out bakit mo binura files ko.&lt;br /&gt;&lt;br /&gt;In the previous activity, we restored images that have additive noise.&lt;br /&gt;Now we add another kind of degradation which is the motion blur.&lt;br /&gt;&lt;br /&gt;The degradation/restoration process can be described by the following model.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/StPetyvo0QI/AAAAAAAAAo8/ytPUEkSQ8tg/s1600-h/fig1.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 181px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/StPetyvo0QI/AAAAAAAAAo8/ytPUEkSQ8tg/s400/fig1.bmp" alt="" id="BLOGGER_PHOTO_ID_5391898057189675266" border="0" /&gt;&lt;/a&gt;Degradation can be represented as a function (H) that acts on an image f(x,y) and together with an additive noise, transforms it to a degraded image g(x, y). The goal is then to generate restoration filters that will transform the degraded image to an estimate of the original image f_hat(x,y).&lt;br /&gt;&lt;br /&gt;In the spatial domain, the degradation process is a convolution with the image.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/StPhf6fqjvI/AAAAAAAAApE/NPzTYOunfT0/s1600-h/eqn1.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 52px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/StPhf6fqjvI/AAAAAAAAApE/NPzTYOunfT0/s320/eqn1.bmp" alt="" id="BLOGGER_PHOTO_ID_5391901117286878962" border="0" /&gt;&lt;/a&gt;Therefore in the frequency domain it can be written as&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/StPhgpQ76AI/AAAAAAAAApM/uvYpUpY9JBw/s1600-h/eqn2.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 42px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/StPhgpQ76AI/AAAAAAAAApM/uvYpUpY9JBw/s320/eqn2.bmp" alt="" id="BLOGGER_PHOTO_ID_5391901129841567746" border="0" /&gt;&lt;/a&gt;MOTION BLUR&lt;br /&gt;&lt;br /&gt;Suppose that this degradation is due to the uniform linear motion between the image and the sensor or camera. Then the camera would have captured the image motion in the duration of the exposure time T.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/StPhhdTRHEI/AAAAAAAAApU/QlAlrs70g2Q/s1600-h/eqn3.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 51px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/StPhhdTRHEI/AAAAAAAAApU/QlAlrs70g2Q/s320/eqn3.bmp" alt="" id="BLOGGER_PHOTO_ID_5391901143809989698" border="0" /&gt;&lt;/a&gt;The blurred image can be expressed in Fourier space as&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/StPhh83clrI/AAAAAAAAApc/gHZMElsmjwA/s1600-h/eqn4.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 42px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/StPhh83clrI/AAAAAAAAApc/gHZMElsmjwA/s320/eqn4.bmp" alt="" id="BLOGGER_PHOTO_ID_5391901152283236018" border="0" /&gt;&lt;/a&gt;The degradation transfer function would then be computed using&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/StPh1leGDqI/AAAAAAAAAps/GvhvEaUjGIE/s1600-h/eqn5.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 55px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/StPh1leGDqI/AAAAAAAAAps/GvhvEaUjGIE/s320/eqn5.bmp" alt="" id="BLOGGER_PHOTO_ID_5391901489600269986" border="0" /&gt;&lt;/a&gt;where a and b is the total distance for which the image has been&lt;br /&gt;displaced in the x- and y-direction, respectively. (Note: xo(t) = at/T and&lt;br /&gt;yo(t) = bt/T)&lt;br /&gt;&lt;br /&gt;WEINER FILTERING&lt;br /&gt;&lt;br /&gt;This method considers images and noise as random processes and tries to minimize the MSE between orignal f and restored f_hat images using the following expression known as the Weiner filter&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/StPhiTcIarI/AAAAAAAAApk/Uw_SrB5lhck/s1600-h/eqn6.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 64px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/StPhiTcIarI/AAAAAAAAApk/Uw_SrB5lhck/s320/eqn6.bmp" alt="" id="BLOGGER_PHOTO_ID_5391901158342683314" border="0" /&gt;&lt;/a&gt;where&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/StPh2Dr-_gI/AAAAAAAAAp0/aeiqaNgpM1I/s1600-h/eqn6.5.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 80px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/StPh2Dr-_gI/AAAAAAAAAp0/aeiqaNgpM1I/s320/eqn6.5.bmp" alt="" id="BLOGGER_PHOTO_ID_5391901497711590914" border="0" /&gt;&lt;/a&gt;Assuming that the noise is just white noise and therefore constant, we have&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/StPh2ZlRyII/AAAAAAAAAp8/y1gZS1Olu0w/s1600-h/eqn7.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 77px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/StPh2ZlRyII/AAAAAAAAAp8/y1gZS1Olu0w/s320/eqn7.bmp" alt="" id="BLOGGER_PHOTO_ID_5391901503589042306" border="0" /&gt;&lt;/a&gt;Now for the application of the concepts....&lt;br /&gt;&lt;br /&gt;For our original image we use&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/_rIBnkPGB9po/StPq5Ko4QcI/AAAAAAAAAqE/F-RJ3npztz8/s1600-h/grayscale.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 314px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/StPq5Ko4QcI/AAAAAAAAAqE/F-RJ3npztz8/s400/grayscale.jpg" alt="" id="BLOGGER_PHOTO_ID_5391911446721872322" border="0" /&gt;&lt;/a&gt;http://imageedit.infobind.com/examples/grayscale.jpg&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;Next we degrade the original image by blurring (transfer function given by Eq5) and adding Gaussian noise (Activity 18). We can get the degraded image using Eq2.&lt;br /&gt;&lt;br /&gt;The parameters a, b, and T will determine the velocity of the motion in the x and y direction: vx=a/T and vy=b/T. Of course, increasing the velocities would just make the image more blurry as shown in the following images.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/StqHIkWVlXI/AAAAAAAAAy0/GH6TXv9r-yc/s1600-h/dergaded.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 238px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/StqHIkWVlXI/AAAAAAAAAy0/GH6TXv9r-yc/s400/dergaded.bmp" alt="" id="BLOGGER_PHOTO_ID_5393772084995659122" border="0" /&gt;&lt;/a&gt;Doing the restoration using the actual noise pdf ( eqn 6 ), we get the following results.&lt;br /&gt;Of course, the more blurred an image is, the less perfect the restoration. However we note that even for a=b=0.1 blurring, when image is no longer recognizable, filtering was still able to salvage some of the lost data.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/StqHJOdifSI/AAAAAAAAAy8/CpBxqeJNm4c/s1600-h/restored.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 238px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/StqHJOdifSI/AAAAAAAAAy8/CpBxqeJNm4c/s400/restored.bmp" alt="" id="BLOGGER_PHOTO_ID_5393772096300154146" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now we compare the results when we just assume white noise (Eq 7). As expected. better results were obtained when we did not assume white noise. K=0 results to almost all noise images. The filtering improved when K=0.001 and increasing K further does not seem to result to better restorations.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/StqHJSm8ntI/AAAAAAAAAzE/nk2DFaAQCCs/s1600-h/varying+k.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 382px; height: 400px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/StqHJSm8ntI/AAAAAAAAAzE/nk2DFaAQCCs/s400/varying+k.bmp" alt="" id="BLOGGER_PHOTO_ID_5393772097413357266" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;In this activity, I was able to do reconstructions of very blurry images so I give myself a grade of 10.&lt;br /&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/6557682483856522377-6485574564693929352?l=thinktanknicherry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thinktanknicherry.blogspot.com/feeds/6485574564693929352/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/10/a19-restoration-of-blurred-image.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/6485574564693929352'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/6485574564693929352'/><link rel='alternate' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/10/a19-restoration-of-blurred-image.html' title='A19 Restoration of Blurred Image'/><author><name>cherry</name><uri>http://www.blogger.com/profile/01475793529692257483</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/_rIBnkPGB9po/StPetyvo0QI/AAAAAAAAAo8/ytPUEkSQ8tg/s72-c/fig1.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6557682483856522377.post-4125629560720114774</id><published>2009-10-12T08:06:00.000-07:00</published><updated>2009-10-17T20:08:23.505-07:00</updated><title type='text'>A18 Noise Models and Basic Image Restoration</title><content type='html'>In this activity, we attempt to reconstruct or recover an image that has been degraded by using an a priori knowledge of the degradation phenomenon.&lt;br /&gt;&lt;br /&gt;For the degradation process, we generate noise signals with different probability distribution functions and added them to the image. In actual image capture, noise could be caused by light levels, fluctuating temperatures, atmospheric disturbances and other factors.&lt;br /&gt;&lt;br /&gt;The noises that we generated are those that are common  in image processing applications and are given by the following formulas.&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/Stp7y1CgSmI/AAAAAAAAArM/YiI_1pbuv0A/s1600-h/noise1.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 141px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/Stp7y1CgSmI/AAAAAAAAArM/YiI_1pbuv0A/s200/noise1.bmp" alt="" id="BLOGGER_PHOTO_ID_5393759616890849890" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Stp8K5g2rxI/AAAAAAAAArk/W7fh4gDkjFE/s1600-h/noise2.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 206px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Stp8K5g2rxI/AAAAAAAAArk/W7fh4gDkjFE/s320/noise2.bmp" alt="" id="BLOGGER_PHOTO_ID_5393760030408748818" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/Stp8LHSOYPI/AAAAAAAAArs/sKz2A92GXyU/s1600-h/noise3.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 222px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/Stp8LHSOYPI/AAAAAAAAArs/sKz2A92GXyU/s320/noise3.bmp" alt="" id="BLOGGER_PHOTO_ID_5393760034105483506" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/Stp8LgfhppI/AAAAAAAAAr0/w95JheDHGQY/s1600-h/noise4.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 202px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/Stp8LgfhppI/AAAAAAAAAr0/w95JheDHGQY/s320/noise4.bmp" alt="" id="BLOGGER_PHOTO_ID_5393760040872158866" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/Stp8LzUt6AI/AAAAAAAAAr8/dmqYSIzVxQw/s1600-h/noise5.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/Stp8LzUt6AI/AAAAAAAAAr8/dmqYSIzVxQw/s320/noise5.bmp" alt="" id="BLOGGER_PHOTO_ID_5393760045927098370" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Stp8MUnsFvI/AAAAAAAAAsE/f3I49OFZpyU/s1600-h/noise6.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 104px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Stp8MUnsFvI/AAAAAAAAAsE/f3I49OFZpyU/s320/noise6.bmp" alt="" id="BLOGGER_PHOTO_ID_5393760054865041138" border="0" /&gt;&lt;/a&gt;To remove additive noise, we implemented the spatial filtering method.&lt;br /&gt;&lt;br /&gt;The filters that we used are&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/Stp3fxejQlI/AAAAAAAAAqc/_rT8HNGijGc/s1600-h/filter+formulas.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 294px; height: 400px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/Stp3fxejQlI/AAAAAAAAAqc/_rT8HNGijGc/s400/filter+formulas.bmp" alt="" id="BLOGGER_PHOTO_ID_5393754891470717522" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Below is our original image and its histogram.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/Stp9CMIfztI/AAAAAAAAAsM/mhrSDRaZSn4/s1600-h/test+image1.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 171px; height: 152px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/Stp9CMIfztI/AAAAAAAAAsM/mhrSDRaZSn4/s320/test+image1.bmp" alt="" id="BLOGGER_PHOTO_ID_5393760980299665106" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Stp9Cu2npiI/AAAAAAAAAsU/H43vouWLEMc/s1600-h/pdf+image+test1.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 242px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Stp9Cu2npiI/AAAAAAAAAsU/H43vouWLEMc/s320/pdf+image+test1.bmp" alt="" id="BLOGGER_PHOTO_ID_5393760989619922466" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Adding noise to the image changes this image histogram.&lt;br /&gt;&lt;br /&gt;Gaussian Noise&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Stp-JuV3S3I/AAAAAAAAAs8/o04UBjmRUbA/s1600-h/image+gauss+noise.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 171px; height: 152px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Stp-JuV3S3I/AAAAAAAAAs8/o04UBjmRUbA/s320/image+gauss+noise.bmp" alt="" id="BLOGGER_PHOTO_ID_5393762209253247858" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/Stp_VH3OqbI/AAAAAAAAAuM/xVMJg25LiYQ/s1600-h/pdf+gaussian.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 210px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/Stp_VH3OqbI/AAAAAAAAAuM/xVMJg25LiYQ/s320/pdf+gaussian.bmp" alt="" id="BLOGGER_PHOTO_ID_5393763504594266546" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Rayleigh Noise&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Stp-KNLNWFI/AAAAAAAAAtE/Sd3z0IiT5lk/s1600-h/image+ray+noise.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 171px; height: 152px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Stp-KNLNWFI/AAAAAAAAAtE/Sd3z0IiT5lk/s320/image+ray+noise.bmp" alt="" id="BLOGGER_PHOTO_ID_5393762217530054738" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/Stp_VnrtFdI/AAAAAAAAAuU/4X0bshvFO7c/s1600-h/pdf+rayleigh.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 242px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/Stp_VnrtFdI/AAAAAAAAAuU/4X0bshvFO7c/s320/pdf+rayleigh.bmp" alt="" id="BLOGGER_PHOTO_ID_5393763513135863250" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Erlang (Gamma) Noise&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/Stp-KcSqJ3I/AAAAAAAAAtM/KMbvE-ZxuWk/s1600-h/image+gamma+noise.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 171px; height: 152px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/Stp-KcSqJ3I/AAAAAAAAAtM/KMbvE-ZxuWk/s320/image+gamma+noise.bmp" alt="" id="BLOGGER_PHOTO_ID_5393762221587834738" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/Stp_V5dpnYI/AAAAAAAAAuc/xmhrM-7WcSc/s1600-h/pdf+gamma.bmp"&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/_rIBnkPGB9po/Stp_V5dpnYI/AAAAAAAAAuc/xmhrM-7WcSc/s320/pdf+gamma.bmp" alt="" id="BLOGGER_PHOTO_ID_5393763517908753794" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Exponential Noise&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/Stp-kgAWH9I/AAAAAAAAAts/X7ZvvGUqiG4/s1600-h/image+exp+noise.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 171px; height: 152px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/Stp-kgAWH9I/AAAAAAAAAts/X7ZvvGUqiG4/s320/image+exp+noise.bmp" alt="" id="BLOGGER_PHOTO_ID_5393762669261365202" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/Stp_WZ-SaBI/AAAAAAAAAuk/tVcoGbXAjuI/s1600-h/pdf+exponential.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 242px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/Stp_WZ-SaBI/AAAAAAAAAuk/tVcoGbXAjuI/s320/pdf+exponential.bmp" alt="" id="BLOGGER_PHOTO_ID_5393763526635579410" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Uniform Noise&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/Stp-lPpQovI/AAAAAAAAAt0/xz8LfQgjAIE/s1600-h/image+uni+noise.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 171px; height: 152px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/Stp-lPpQovI/AAAAAAAAAt0/xz8LfQgjAIE/s320/image+uni+noise.bmp" alt="" id="BLOGGER_PHOTO_ID_5393762682049438450" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/Stp_ymw8wrI/AAAAAAAAAus/1y1DBQMXtsA/s1600-h/pdf+uniform.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 242px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/Stp_ymw8wrI/AAAAAAAAAus/1y1DBQMXtsA/s320/pdf+uniform.bmp" alt="" id="BLOGGER_PHOTO_ID_5393764011105632946" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Salt and Pepper Noise&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Stp_U9IKSsI/AAAAAAAAAuE/fPQ0XEJnLKQ/s1600-h/image+salt+noise.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 171px; height: 152px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Stp_U9IKSsI/AAAAAAAAAuE/fPQ0XEJnLKQ/s320/image+salt+noise.bmp" alt="" id="BLOGGER_PHOTO_ID_5393763501712493250" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Stp_zPJ9nYI/AAAAAAAAAu0/iKLB3UYi2rE/s1600-h/pdf+salt.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 242px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Stp_zPJ9nYI/AAAAAAAAAu0/iKLB3UYi2rE/s320/pdf+salt.bmp" alt="" id="BLOGGER_PHOTO_ID_5393764021947964802" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For each noise pdf, we try to reconstruct the original image using the different filters. Our goal is to recover the appearance of the original image. A way of checking this is by comparing the reconstructed image's pdf with the original pdf.   The images below show the reconstructions with their pdf.&lt;br /&gt;&lt;br /&gt;Gaussian Noise&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/StqAeGIle7I/AAAAAAAAAvM/_lhJKMPRBQE/s1600-h/figure+gaussian.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 198px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/StqAeGIle7I/AAAAAAAAAvM/_lhJKMPRBQE/s400/figure+gaussian.bmp" alt="" id="BLOGGER_PHOTO_ID_5393764758260644786" border="0" /&gt;&lt;/a&gt;Rayleigh Noise&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/StqAepQtFlI/AAAAAAAAAvU/2SC1yQ3abH4/s1600-h/figure+rayleigh.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 198px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/StqAepQtFlI/AAAAAAAAAvU/2SC1yQ3abH4/s400/figure+rayleigh.bmp" alt="" id="BLOGGER_PHOTO_ID_5393764767689938514" border="0" /&gt;&lt;/a&gt;Erlang (Gamma) Noise&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/StqAezqqHEI/AAAAAAAAAvc/yXJa1YoFk6M/s1600-h/figure+gamma.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 197px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/StqAezqqHEI/AAAAAAAAAvc/yXJa1YoFk6M/s400/figure+gamma.bmp" alt="" id="BLOGGER_PHOTO_ID_5393764770483149890" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Exponential Noise&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/StqAfZ_1eAI/AAAAAAAAAvk/9j-pWCsMcSA/s1600-h/figure+exponential.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 209px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/StqAfZ_1eAI/AAAAAAAAAvk/9j-pWCsMcSA/s400/figure+exponential.bmp" alt="" id="BLOGGER_PHOTO_ID_5393764780772521986" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Uniform Noise&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/StqAfn1FbYI/AAAAAAAAAvs/dza7vmxtBr4/s1600-h/figure+uniform.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 203px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/StqAfn1FbYI/AAAAAAAAAvs/dza7vmxtBr4/s400/figure+uniform.bmp" alt="" id="BLOGGER_PHOTO_ID_5393764784485526914" border="0" /&gt;&lt;/a&gt;For the first 5 noise pdfs, all four filters were successful in reconstructing the image.&lt;br /&gt;We can see, however, that only Arithmetic and Contraharmonic filters work for salt and pepper noise.&lt;br /&gt;&lt;br /&gt;Salt and Pepper Noise with Q=0&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/StqBCmmRIeI/AAAAAAAAAv0/jIDjSE8_0CE/s1600-h/figure+salt+and+pepper.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 204px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/StqBCmmRIeI/AAAAAAAAAv0/jIDjSE8_0CE/s400/figure+salt+and+pepper.bmp" alt="" id="BLOGGER_PHOTO_ID_5393765385450365410" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Varying Q, we can see that negative values only clean salt noise, while positive values only clean pepper noise. Q=0 cleans both but not completely.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/StqBDIwo2zI/AAAAAAAAAv8/_FMJLjfeklQ/s1600-h/figure+varying+q.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 203px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/StqBDIwo2zI/AAAAAAAAAv8/_FMJLjfeklQ/s400/figure+varying+q.bmp" alt="" id="BLOGGER_PHOTO_ID_5393765394620668722" border="0" /&gt;&lt;/a&gt;We do the same for another image, this time one that has a broader range of grayscale values.&lt;br /&gt;&lt;br /&gt;Original Image&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/StqCcAjbXOI/AAAAAAAAAwM/OFbwNFtZ6LY/s1600-h/pdf2+image.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 273px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/StqCcAjbXOI/AAAAAAAAAwM/OFbwNFtZ6LY/s400/pdf2+image.bmp" alt="" id="BLOGGER_PHOTO_ID_5393766921426132194" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;After adding noise:&lt;br /&gt;&lt;br /&gt;Gaussian Noise&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/StqCcb_iy5I/AAAAAAAAAwU/GP2FJu69bvQ/s1600-h/pdf2+gaussian.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 269px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/StqCcb_iy5I/AAAAAAAAAwU/GP2FJu69bvQ/s400/pdf2+gaussian.bmp" alt="" id="BLOGGER_PHOTO_ID_5393766928791817106" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Rayleigh Noise&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/StqCc7UjCGI/AAAAAAAAAwc/WHe1bXHj9FA/s1600-h/pdf2+rayleigh.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 276px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/StqCc7UjCGI/AAAAAAAAAwc/WHe1bXHj9FA/s400/pdf2+rayleigh.bmp" alt="" id="BLOGGER_PHOTO_ID_5393766937201412194" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Erlang (Gamma) Noise&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/StqCdezW6CI/AAAAAAAAAwk/6e5Uw6vnsgE/s1600-h/pdf2+gamma.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 273px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/StqCdezW6CI/AAAAAAAAAwk/6e5Uw6vnsgE/s400/pdf2+gamma.bmp" alt="" id="BLOGGER_PHOTO_ID_5393766946725881890" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Exponential Noise&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/StqCdinb3OI/AAAAAAAAAws/-_Zs-BkD_wg/s1600-h/pdf2+exponential.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 275px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/StqCdinb3OI/AAAAAAAAAws/-_Zs-BkD_wg/s400/pdf2+exponential.bmp" alt="" id="BLOGGER_PHOTO_ID_5393766947749616866" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Uniform Noise&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/StqFpcJJ3sI/AAAAAAAAAxs/66lXA-xJfrg/s1600-h/pdf2+uniform.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 268px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/StqFpcJJ3sI/AAAAAAAAAxs/66lXA-xJfrg/s400/pdf2+uniform.bmp" alt="" id="BLOGGER_PHOTO_ID_5393770450705309378" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Salt and Pepper Noise&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/StqFp6LiwfI/AAAAAAAAAx0/Ve7RJU8Q9Sk/s1600-h/pdf2+salt.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 269px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/StqFp6LiwfI/AAAAAAAAAx0/Ve7RJU8Q9Sk/s400/pdf2+salt.bmp" alt="" id="BLOGGER_PHOTO_ID_5393770458768392690" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;After reconstruction&lt;br /&gt;&lt;br /&gt;Gaussian Noise&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/StqF11T0EMI/AAAAAAAAAx8/zIY9XUooUfw/s1600-h/figure2+gaussian.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 199px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/StqF11T0EMI/AAAAAAAAAx8/zIY9XUooUfw/s400/figure2+gaussian.bmp" alt="" id="BLOGGER_PHOTO_ID_5393770663619334338" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Rayleigh Noise&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/StqF2Umg3YI/AAAAAAAAAyE/t4hwR6r9cJ0/s1600-h/figure2+rayleigh.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 191px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/StqF2Umg3YI/AAAAAAAAAyE/t4hwR6r9cJ0/s400/figure2+rayleigh.bmp" alt="" id="BLOGGER_PHOTO_ID_5393770672019266946" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Erlang (Gamma) Noise&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/StqF2yK0CLI/AAAAAAAAAyM/rgm2lMtqAok/s1600-h/figure2+gamma.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 193px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/StqF2yK0CLI/AAAAAAAAAyM/rgm2lMtqAok/s400/figure2+gamma.bmp" alt="" id="BLOGGER_PHOTO_ID_5393770679956146354" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Exponential Noise&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/StqF3cxnrwI/AAAAAAAAAyU/d2yKwgfzPAo/s1600-h/figure2+exponential.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 191px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/StqF3cxnrwI/AAAAAAAAAyU/d2yKwgfzPAo/s400/figure2+exponential.bmp" alt="" id="BLOGGER_PHOTO_ID_5393770691393203970" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Uniform Noise&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/StqF3wvNn1I/AAAAAAAAAyc/zhZEdDlWpzo/s1600-h/figure2+uniform.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 190px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/StqF3wvNn1I/AAAAAAAAAyc/zhZEdDlWpzo/s400/figure2+uniform.bmp" alt="" id="BLOGGER_PHOTO_ID_5393770696751816530" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Salt and Pepper Noise w Q=0&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/StqGGlcATTI/AAAAAAAAAyk/iUAHaWBx86E/s1600-h/figure2+salt+and+pepper.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 190px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/StqGGlcATTI/AAAAAAAAAyk/iUAHaWBx86E/s400/figure2+salt+and+pepper.bmp" alt="" id="BLOGGER_PHOTO_ID_5393770951416499506" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Varying Q, we get the same effect as our first image.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/StqGHPFnJcI/AAAAAAAAAys/mSWuNwJLD_k/s1600-h/figure2+varying+q.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 178px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/StqGHPFnJcI/AAAAAAAAAys/mSWuNwJLD_k/s400/figure2+varying+q.bmp" alt="" id="BLOGGER_PHOTO_ID_5393770962596865474" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;In this activity, I was able to do spatial filtering to remove noise from an image. I therefore give myself a grade of 10.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/StNamziXinI/AAAAAAAAAok/9ljm6FPldQI/s1600-h/contraharmonic.bmp"&gt;&lt;br /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6557682483856522377-4125629560720114774?l=thinktanknicherry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thinktanknicherry.blogspot.com/feeds/4125629560720114774/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/10/a18-noise-models-and-basic-image.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/4125629560720114774'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/4125629560720114774'/><link rel='alternate' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/10/a18-noise-models-and-basic-image.html' title='A18 Noise Models and Basic Image Restoration'/><author><name>cherry</name><uri>http://www.blogger.com/profile/01475793529692257483</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/_rIBnkPGB9po/Stp7y1CgSmI/AAAAAAAAArM/YiI_1pbuv0A/s72-c/noise1.bmp' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6557682483856522377.post-5675426262486666638</id><published>2009-10-12T07:17:00.000-07:00</published><updated>2009-10-12T18:48:10.590-07:00</updated><title type='text'>A17 Photometric Stereo</title><content type='html'>Photometric stereo is the technique of extracting shapes from shadow.&lt;br /&gt;We can estimate the shape of the surface by capturing multiple images of the sources at different locations. The information about the surface will be coded in the shadings obtained from the images.&lt;br /&gt;&lt;br /&gt;In this activity we are given synthetic images of a sphere illuminated by a point source located respectively at&lt;br /&gt;&lt;br /&gt;V1 = {0.085832, 0.17365, 0.98106}&lt;br /&gt;V2 = {0.085832, -0.17365, 0.98106}&lt;br /&gt;V3 = {0.17365, 0, 0.98481}&lt;br /&gt;V4 = {0.16318, -0.34202, 0.92542}.&lt;br /&gt;&lt;br /&gt;The figure below shows the multiple images&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/StM71qHsTTI/AAAAAAAAAns/22O0c4elXUY/s1600-h/sphere.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 262px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/StM71qHsTTI/AAAAAAAAAns/22O0c4elXUY/s400/sphere.bmp" alt="" id="BLOGGER_PHOTO_ID_5391718971918273842" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The program that I used is&lt;br /&gt;&lt;br /&gt;//// four synthetic images of a sphere&lt;br /&gt;loadmatfile('C:\Documents and Settings\VIP\Desktop\186 a17\Photos.mat');&lt;br /&gt;I(1,:) = I1(:)';&lt;br /&gt;I(2,:) = I2(:)';&lt;br /&gt;I(3,:) = I3(:)';&lt;br /&gt;I(4,:) = I4(:)';&lt;br /&gt;&lt;br /&gt;scf(1);&lt;br /&gt;subplot(2,2,1);&lt;br /&gt;imshow(I1,[]);&lt;br /&gt;subplot(2,2,2);&lt;br /&gt;imshow(I2,[]);&lt;br /&gt;subplot(2,2,3);&lt;br /&gt;imshow(I3,[]);&lt;br /&gt;subplot(2,2,4);&lt;br /&gt;imshow(I4,[]);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;///// Light source locations&lt;br /&gt;V1 = [0.085832 0.17365 0.98106];&lt;br /&gt;V2 = [0.085832 -0.17365 0.98106];&lt;br /&gt;V3 = [0.17365 0 0.98481];&lt;br /&gt;V4 = [0.16318 -0.34202 0.92542];&lt;br /&gt;V = [V1;V2;V3;V4];&lt;br /&gt;&lt;br /&gt;//// eqn 10&lt;br /&gt;g = inv((V')*V)*(V')*I;&lt;br /&gt;&lt;br /&gt;//// eqn 11&lt;br /&gt;//absg=abs(g);&lt;br /&gt;absg = ((g(1,:).^2 + g(2,:).^2 + g(3,:).^2).^0.5);&lt;br /&gt;n(1, :) = g(1,:)./(absg + 0.00000000000000001);&lt;br /&gt;n(2, :) = g(2,:)./(absg + 0.00000000000000001);&lt;br /&gt;n(3, :) = (g(3,:)./(absg +0.00000000000000001))+ 0.00000000000001;&lt;br /&gt;&lt;br /&gt;////eqn 14&lt;br /&gt;dfdx = -(n(1,:))./n(3,:);&lt;br /&gt;dfdy = -(n(2,:))./n(3,:);&lt;br /&gt;&lt;br /&gt;root=sqrt(length(absg))&lt;br /&gt;dfdx = matrix(dfdx, [root,root]);&lt;br /&gt;dfdy = matrix(dfdy, [root,root]);&lt;br /&gt;&lt;br /&gt;//// eqn 15&lt;br /&gt;z = cumsum(dfdx, 2) +cumsum(dfdy, 1);&lt;br /&gt;&lt;br /&gt;scf(2);&lt;br /&gt;plot3d(1:root, 1:root, z);&lt;br /&gt;&lt;br /&gt;The reconstruction is&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/StM711Lc1ZI/AAAAAAAAAn0/aXLA9egN_48/s1600-h/3drecon.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 262px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/StM711Lc1ZI/AAAAAAAAAn0/aXLA9egN_48/s400/3drecon.bmp" alt="" id="BLOGGER_PHOTO_ID_5391718974886827410" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;It shows a half hemisphere although there are some ridges due to the abrupt changes in the shading&lt;br /&gt;&lt;br /&gt;In this activity, I give myself a grade of 10 since I was able to do the reconstruction.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6557682483856522377-5675426262486666638?l=thinktanknicherry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thinktanknicherry.blogspot.com/feeds/5675426262486666638/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/10/a17-photometric-stereo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/5675426262486666638'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/5675426262486666638'/><link rel='alternate' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/10/a17-photometric-stereo.html' title='A17 Photometric Stereo'/><author><name>cherry</name><uri>http://www.blogger.com/profile/01475793529692257483</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/_rIBnkPGB9po/StM71qHsTTI/AAAAAAAAAns/22O0c4elXUY/s72-c/sphere.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6557682483856522377.post-3560203397243487401</id><published>2009-10-11T21:55:00.000-07:00</published><updated>2009-10-12T18:52:24.597-07:00</updated><title type='text'>A16 Artificial Neural Networks</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:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"&gt;&lt;link rel="themeData" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"&gt;&lt;link rel="colorSchemeMapping" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%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;X-NONE&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:Compatibility&gt;   &lt;m:mathpr&gt;    &lt;m:mathfont val="Cambria Math"&gt;    &lt;m:brkbin val="before"&gt;    &lt;m:brkbinsub val="--"&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:Wingdings; 	panose-1:5 0 0 0 0 0 0 0 0 0; 	mso-font-charset:2; 	mso-generic-font-family:auto; 	mso-font-pitch:variable; 	mso-font-signature:0 268435456 0 0 -2147483648 0;} @font-face 	{font-family:"Cambria Math"; 	panose-1:2 4 5 3 5 4 6 3 2 4; 	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;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin-top:6.0pt; 	margin-right:0in; 	margin-bottom:0in; 	margin-left:.5in; 	margin-bottom:.0001pt; 	text-align:justify; 	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:Calibri; 	mso-fareast-theme-font:minor-latin; 	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.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph 	{mso-style-priority:34; 	mso-style-unhide:no; 	mso-style-qformat:yes; 	margin-top:6.0pt; 	margin-right:0in; 	margin-bottom:0in; 	margin-left:.5in; 	margin-bottom:.0001pt; 	mso-add-space:auto; 	text-align:justify; 	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:Calibri; 	mso-fareast-theme-font:minor-latin; 	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.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst 	{mso-style-priority:34; 	mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-type:export-only; 	margin-top:6.0pt; 	margin-right:0in; 	margin-bottom:0in; 	margin-left:.5in; 	margin-bottom:.0001pt; 	mso-add-space:auto; 	text-align:justify; 	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:Calibri; 	mso-fareast-theme-font:minor-latin; 	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.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle 	{mso-style-priority:34; 	mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-type:export-only; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:0in; 	margin-left:.5in; 	margin-bottom:.0001pt; 	mso-add-space:auto; 	text-align:justify; 	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:Calibri; 	mso-fareast-theme-font:minor-latin; 	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.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast 	{mso-style-priority:34; 	mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-type:export-only; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:0in; 	margin-left:.5in; 	margin-bottom:.0001pt; 	mso-add-space:auto; 	text-align:justify; 	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:Calibri; 	mso-fareast-theme-font:minor-latin; 	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:Calibri; 	mso-fareast-theme-font:minor-latin; 	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-top:6.0pt; 	margin-right:0in; 	margin-bottom:0in; 	margin-left:.5in; 	margin-bottom:.0001pt; 	text-align:justify;} @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;}  /* List Definitions */  @list l0 	{mso-list-id:11997032; 	mso-list-type:hybrid; 	mso-list-template-ids:-1067174958 122208412 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;} @list l0:level1 	{mso-level-number-format:bullet; 	mso-level-text:-; 	mso-level-tab-stop:none; 	mso-level-number-position:left; 	margin-left:.75in; 	text-indent:-.25in; 	font-family:"Calibri","sans-serif"; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} @list l1 	{mso-list-id:1221135373; 	mso-list-type:hybrid; 	mso-list-template-ids:316858448 -451224680 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l1:level1 	{mso-level-tab-stop:none; 	mso-level-number-position:left; 	margin-left:.75in; 	text-indent:-.25in;} ol 	{margin-bottom:0in;} ul 	{margin-bottom:0in;} --&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:6.0pt; 	mso-para-margin-right:0in; 	mso-para-margin-bottom:0in; 	mso-para-margin-left:.5in; 	mso-para-margin-bottom:.0001pt; 	text-align:justify; 	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 class="MsoNormal"&gt;Artificial neural networks are modeled after the way our brain works. Just like our brain, ANN’s most defining feature is its ability to learn through successive trainings. Training of an ANN is done by presenting to the network a set of input and target pairs. The network will then adapt its weights or strengths of connections between neurons so that the difference between the target and the network’s output will be minimized.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Among the applications of ANNs is pattern recognition. The training set will have the features-matrix as input and the classes as target.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Some of the network parameters that can be manipulated are &lt;/p&gt;  &lt;p class="MsoListParagraphCxSpFirst" style="margin-left: 0.75in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;1.&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Number of hidden layers/ neurons in the hidden layer&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="margin-left: 0.75in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;          &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Bigger networks can generally solve more complicated problems. However care must also be taken to limit network size so that memorization can be avoided.&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="margin-left: 0.75in;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="margin-left: 0.75in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;2.&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Epoch&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="margin-left: 0.75in; text-indent: -0.25in;"&gt;&lt;!--[if !supportLists]--&gt;&lt;span style=""&gt;&lt;span style=""&gt;-&lt;span style=";font-family:&amp;quot;;font-size:7;"  &gt;          &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Time when all patterns in the data set have been presented to the network. The weights are adjusted after each epoch.&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpLast"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;3.&lt;span style=""&gt;  &lt;/span&gt;Learning rate&lt;/p&gt;  &lt;p class="MsoNormal"&gt;-&lt;span style=""&gt;    &lt;/span&gt;May be set by trial and error.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;We still use the features extracted from the two previous activities…&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/StM4OVZUrFI/AAAAAAAAAnc/ZuFi-hqzyPs/s1600-h/training.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 152px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/StM4OVZUrFI/AAAAAAAAAnc/ZuFi-hqzyPs/s400/training.bmp" alt="" id="BLOGGER_PHOTO_ID_5391714997805296722" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/StM4O1rnNSI/AAAAAAAAAnk/qAIm4zh3RDI/s1600-h/testing.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 328px; height: 154px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/StM4O1rnNSI/AAAAAAAAAnk/qAIm4zh3RDI/s400/testing.bmp" alt="" id="BLOGGER_PHOTO_ID_5391715006471943458" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/StM4O1rnNSI/AAAAAAAAAnk/qAIm4zh3RDI/s1600-h/testing.bmp"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;… and the code from Cole’s blog.&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;The results of the training and testing classification for different learning rates are listed below.&lt;/p&gt;&lt;p class="MsoNormal"&gt;Correct classification would be 0 for strawberries and 1 for blueberries. Notice that for both training and testing classification the values that the neural network outputs are not exactly 0 or 1. The sample is just classified to the class that is nearer to its own value. As the learning rate is increased the classification goes closer to 0 and 1. The same also happens when we increase the number of epochs.&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/StNFSFlCsOI/AAAAAAAAAoE/XIuZPC7S3HY/s1600-h/results.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 301px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/StNFSFlCsOI/AAAAAAAAAoE/XIuZPC7S3HY/s400/results.bmp" alt="" id="BLOGGER_PHOTO_ID_5391729355930120418" border="0" /&gt;&lt;/a&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;I give myself a grade of 10 because all the classifications were correct.&lt;br /&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6557682483856522377-3560203397243487401?l=thinktanknicherry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thinktanknicherry.blogspot.com/feeds/3560203397243487401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/10/a16-artificial-neural-networks.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/3560203397243487401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/3560203397243487401'/><link rel='alternate' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/10/a16-artificial-neural-networks.html' title='A16 Artificial Neural Networks'/><author><name>cherry</name><uri>http://www.blogger.com/profile/01475793529692257483</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/_rIBnkPGB9po/StM4OVZUrFI/AAAAAAAAAnc/ZuFi-hqzyPs/s72-c/training.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6557682483856522377.post-3671943356737955717</id><published>2009-09-21T19:50:00.000-07:00</published><updated>2009-09-22T01:41:33.701-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LDA'/><category scheme='http://www.blogger.com/atom/ns#' term='probabilistic classification'/><category scheme='http://www.blogger.com/atom/ns#' term='linear discriminant analysis'/><title type='text'>A15 Probabilistic Classification</title><content type='html'>In A14, we used Minimum Distance Classification. In this activity, we implement another kind of classification scheme, which is the linear discriminant analysis or LDA.&lt;br /&gt;&lt;br /&gt;We have already done feature extraction in A14, so we only need to worry about LDA implementation.&lt;br /&gt;&lt;br /&gt;In general, the probabilistic classification criterion is to minimize the total error of classification. That is it follows Bayes rule and assigns an object to the class with the highest conditional probability. So if for example&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SrhDOLmlT9I/AAAAAAAAAls/auC12VsbWDc/s1600-h/Bayes+Rule.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 21px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SrhDOLmlT9I/AAAAAAAAAls/auC12VsbWDc/s400/Bayes+Rule.gif" alt="" id="BLOGGER_PHOTO_ID_5384127265433276370" border="0" /&gt;&lt;/a&gt;then object x will be classified to class i.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Most of the time, however, it is easier to find out the probability that a class will have a particular feature vector than the probability that the feature vector belongs to a class. These two quantities are related by the Bayes theorem.&lt;br /&gt;&lt;/p&gt;         &lt;p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SrhDOmR3_TI/AAAAAAAAAl0/Uj3YpWmbjPo/s1600-h/Bayes+theorem.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 167px; height: 59px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SrhDOmR3_TI/AAAAAAAAAl0/Uj3YpWmbjPo/s400/Bayes+theorem.gif" alt="" id="BLOGGER_PHOTO_ID_5384127272594177330" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;where P(i) is the prior probability or the probability about the group i that is known without making any measurement. In practice we can assume the prior probability is equal for all groups or based on the number of sample in each group.&lt;br /&gt;&lt;br /&gt;In practice, however, this implementation requires lots of data. Instead we just assume a distribution and get the probability that an object belongs to a certain class from there. Assuming that each class has a multivariate Normal distribution and all classes have the same covariance matrix, gives us the Linear Discriminant Analysis formula:         &lt;p style="text-align: center;"&gt; &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SrhDPP5zu8I/AAAAAAAAAl8/1VWW1OCgZHs/s1600-h/LDA+formula.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 215px; height: 27px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SrhDPP5zu8I/AAAAAAAAAl8/1VWW1OCgZHs/s400/LDA+formula.gif" alt="" id="BLOGGER_PHOTO_ID_5384127283767524290" border="0" /&gt;&lt;/a&gt;  &lt;/p&gt;         &lt;p&gt;where object &lt;img src="http://people.revoledu.com/kardi/tutorial/LDA/Image/LDA_clip_image023.gif" width="13" height="19" /&gt;to group &lt;img src="http://people.revoledu.com/kardi/tutorial/LDA/Image/LDA_clip_image018_0000.gif" width="9" height="17" /&gt;that has maximum &lt;img src="http://people.revoledu.com/kardi/tutorial/LDA/Image/LDA_clip_image026.gif" width="16" height="24" /&gt;&lt;/p&gt; LDA assumes that the classes are linearly separable. (This is ok, since the plots from a14 show that the features are indeed linearly separable.) The classes can then be separated by a linear combination of features that describe the objects. A feature vector with only 2 elements will have a separator that is a line. Three features will be separated by a plane and more than three features will be separated by a hyperplane.&lt;br /&gt;&lt;br /&gt;The actual implementation is as follows. We used the features extracted from A14.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;n1=3;n2=3;&lt;/span&gt; //number of test elements for fruit1 and fruit2&lt;br /&gt;&lt;br /&gt;////////the training set features in matrix form with objects as rows and features as columns &lt;span style="color: rgb(0, 102, 0);"&gt;x1=[perim1(1:3,:) mr1(1:3,:) mb1(1:3,:)];&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;x2=[perim2(1:3,:) mr2(1:3,:) mb2(1:3,:)];&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;x_all=[x1;x2];&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;/////// classification of the training set   &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;y=[1;1;1;1;1;1;2;2;2;2;2;2];&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;////// mean features &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;mean1=mean(x1,1);&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;mean2=mean(x2,1);&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;mean_all=mean([x1;x2],1);&lt;/span&gt;/// global mean vector&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/////mean corrected data (data - global mean vector)&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;mean_corr1=x1-ones(n1,1)*mean_all;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;mean_corr2=x2-ones(n2,1)*mean_all;&lt;/span&gt;  &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;///covariance&lt;/span&gt; matrix&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;c1=mean_corr1'*mean_corr1/n1;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;c2=mean_corr2'*mean_corr2/n2;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//// Pooled covariance matrix&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;C=[];&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;[r,s]=size(c1);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;for i=1:r&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;for j=1:s&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;  &lt;br /&gt;C(i,j)=(n1*c1(i,j) + n2*c2(i,j))/(n1+n2);&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;end&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;end&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;invC=inv(C);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;////prior probability&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;p=[n1;n2]./(n1+n2);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;&lt;br /&gt;//// Discriminant function&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;f1=mean1*invC*x_all' - 0.5*mean1*invC*mean1' + log(p(1));&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;f2=mean2*invC*x_all' - 0.5*mean2*invC*mean2' + log(p(2));&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;classify=1*((f1-f2)&lt;0)+1;&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;////////////////////////// Testing&lt;br /&gt;&lt;br /&gt;/////// the testing set&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;//ordered&lt;br /&gt;//x_predict=[perim1(4:6,:) mr1(4:6,:) mb1(4:6,:); perim2(4:6,:) mr2(4:6,:) mb2(4:6,:)];&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;//alternating&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;x_predict=[perim1(4,:) mr1(4,:) mb1(4,:); perim2(4,:) mr2(4,:) mb2(4,:);perim1(5,:) mr1(5,:) mb1(5,:); perim2(5,:) mr2(5,:) mb2(5,:);perim1(6,:) mr1(6,:) mb1(6,:); perim2(6,:) mr2(6,:) mb2(6,:)];&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;f1_predict=mean1*invC*x_predict' - 0.5*mean1*invC*mean1' + log(p(1));&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;f2_predict=mean2*invC*x_predict' - 0.5*mean2*invC*mean2' + log(p(2));&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;classify_predict=1*((f1_predict-f2_predict)&lt;0)+1;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The results are summarized in the following tables.&lt;br /&gt;&lt;br /&gt;&lt;span style="text-decoration: underline;"&gt;TRAINING&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/SriKl8q9YuI/AAAAAAAAAm0/Qfi6j2mk_0o/s1600-h/training.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 152px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/SriKl8q9YuI/AAAAAAAAAm0/Qfi6j2mk_0o/s400/training.bmp" alt="" id="BLOGGER_PHOTO_ID_5384205739067532002" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SriKmDY769I/AAAAAAAAAm8/c4GlZL3tqok/s1600-h/mean+corr.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 327px; height: 139px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SriKmDY769I/AAAAAAAAAm8/c4GlZL3tqok/s400/mean+corr.bmp" alt="" id="BLOGGER_PHOTO_ID_5384205740870986706" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SriKmhkh7DI/AAAAAAAAAnE/NiiLZhZmq8M/s1600-h/class+train.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 328px; height: 121px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SriKmhkh7DI/AAAAAAAAAnE/NiiLZhZmq8M/s400/class+train.bmp" alt="" id="BLOGGER_PHOTO_ID_5384205748972678194" border="0" /&gt;&lt;/a&gt;All the training objects are classified correctly. There are zero errors in training.&lt;br /&gt;We can now use the computed separator for the testing of objects not used in training.&lt;br /&gt;&lt;br /&gt;TESTING&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SriKnDOJSuI/AAAAAAAAAnM/oyS_-KD-8B0/s1600-h/testing.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 328px; height: 154px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SriKnDOJSuI/AAAAAAAAAnM/oyS_-KD-8B0/s400/testing.bmp" alt="" id="BLOGGER_PHOTO_ID_5384205758005594850" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/SriKnelPDyI/AAAAAAAAAnU/7qpdnITpz3Y/s1600-h/class+test.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 328px; height: 121px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/SriKnelPDyI/AAAAAAAAAnU/7qpdnITpz3Y/s400/class+test.bmp" alt="" id="BLOGGER_PHOTO_ID_5384205765350199074" border="0" /&gt;&lt;/a&gt;100% accuracy of classification. I give myself a grade of 10. =)&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;http://people.revoledu.com/kardi/tutorial/LDA/LDA.html#LDA&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6557682483856522377-3671943356737955717?l=thinktanknicherry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thinktanknicherry.blogspot.com/feeds/3671943356737955717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thinktanknicherry.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/6557682483856522377/posts/default/3671943356737955717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/3671943356737955717'/><link rel='alternate' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/09/a15-probabilistic-classification.html' title='A15 Probabilistic Classification'/><author><name>cherry</name><uri>http://www.blogger.com/profile/01475793529692257483</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/_rIBnkPGB9po/SrhDOLmlT9I/AAAAAAAAAls/auC12VsbWDc/s72-c/Bayes+Rule.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6557682483856522377.post-1960277485146858502</id><published>2009-09-12T11:35:00.000-07:00</published><updated>2009-09-21T19:35:48.402-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pattern recognition'/><category scheme='http://www.blogger.com/atom/ns#' term='minimum distance classification'/><title type='text'>A14 Pattern Recognition</title><content type='html'>In this activity, our task was to use image processing techniques in implementing pattern recognition. The task can actually be divided into two parts; first is the feature extraction and then the training and actual classification.&lt;br /&gt;&lt;br /&gt;Let us first define some terms that are commonly used in pattern recognition.&lt;br /&gt;&lt;br /&gt;Pattern - set of features&lt;br /&gt;&lt;br /&gt;Features -quantifiable properties such as color, shape, size, etc.&lt;br /&gt;&lt;br /&gt;Feature vector - ordered set of features&lt;br /&gt;&lt;br /&gt;Class - a set of patterns that share common properties&lt;br /&gt;&lt;br /&gt;For this activity, I chose to work with two classes of fruits: strawberries and blueberries.&lt;br /&gt;There were 6 samples for each class. Of these, 3 will be used as a training set while the other 3 will be for independent testing. The images of the fruits are shown below.&lt;br /&gt;&lt;br /&gt;FRUIT 1: Strawberry&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SqvvqIcOm_I/AAAAAAAAAkE/k8aFdZCNIys/s1600-h/fruits1.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 98px; height: 138px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SqvvqIcOm_I/AAAAAAAAAkE/k8aFdZCNIys/s320/fruits1.bmp" alt="" id="BLOGGER_PHOTO_ID_5380657686923615218" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;FRUIT 2: Blueberry&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SqvvqvqgTgI/AAAAAAAAAkM/yFY8tZPAlWs/s1600-h/fruits2.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 110px; height: 103px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SqvvqvqgTgI/AAAAAAAAAkM/yFY8tZPAlWs/s320/fruits2.bmp" alt="" id="BLOGGER_PHOTO_ID_5380657697452477954" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;PART 1: Feature Extraction&lt;br /&gt;&lt;br /&gt;The features that I decided to extract were color ( as rg and also as RGB), perimeter and area.&lt;br /&gt;&lt;br /&gt;First I had to separate the fruits from the background, so I used histogram backprojection (A12).&lt;br /&gt;However the segmentation wasn't clean enough so I made use of my knowledge of opening and closing operations to fix it. Then I used follow() and bwlabel() to tag each sample. For each sample I then obtained the perimeter, area, perimeter-area ratio, rg and RGB.&lt;br /&gt;The program that I used was as follows.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;//// fruit 1 = strawberry&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;//// fruit 2 = blueberry&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;path = 'C:\Documents and Settings\2004-49537\Desktop\186 act14\';&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;img1 = imread(path+'fruits1.bmp');&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;objpatch1 = imread(path+'patch1.bmp');&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;imgseg1 = 1*(segment(img1,objpatch1)&gt;0);&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;//scf(1); clf(1);&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;//imshow(imgseg1);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;img2 = imread(path+'fruits2.bmp');&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;objpatch2 = imread(path+'patch2b.bmp');&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;imgseg2 = 1*(segment(img2,objpatch2)&gt;0);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;//scf(2); clf(2);&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;//imshow(imgseg2);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;//// perform closing and opening&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;se1=[ 0 1 0 ; 1 1 1 ; 0 1 0 ];&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;se2=ones(7,5);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;imgseg1=dilate(imgseg1,se2);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;imgseg1=erode(imgseg1,se2);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;imgseg1=erode(imgseg1,se1);&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;imgseg1=dilate(imgseg1,se1);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;//scf(3); clf(3);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;//imshow(imgseg1);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;imgseg2=dilate(imgseg2,se2);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;imgseg2=erode(imgseg2,se2);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;imgseg2=erode(imgseg2,se1);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;imgseg2=dilate(imgseg2,se1);&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;//scf(4); clf(4);&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;//imshow(imgseg2);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;[L1,n1]=bwlabel(imgseg1);&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;[L2,n2]=bwlabel(imgseg2);&lt;/span&gt;  &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;R1=img1(:,:,1);&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;G1=img1(:,:,2);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;B1=img1(:,:,3);&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;I1=R1+G1+B1;&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;r1=R1./I1;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;g1=G1./I1;&lt;/span&gt;  &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;R2=img2(:,:,1);&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;G2=img2(:,:,2);&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;B2=img2(:,:,3);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;I2=R2+G2+B2;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;r2=R2./I2;&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;g2=G2./I2;&lt;/span&gt;  &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;&lt;br /&gt;for i=1:n1&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;  &lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;&lt;br /&gt;////// area&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;area1(i,:)=sum(sum(1*(L1==i)));&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;  area2(i,:)=sum(sum(1*(L2==i)));&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;//// perimeter&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;perim1(i,:)=perim(1*(L1==i));&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;perim2(i,:)=perim(1*(L2==i));&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;////// color&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;[row1,col1]=find(L1==i);&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;[row2,col2]=find(L2==i);&lt;/span&gt;  &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;&lt;br /&gt;for j=1:length(row1)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;red1=[red1; R1(row1(j),col1(j))];&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;green1=[green1; G1(row1(j),col1(j))];&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;blue1=[blue1; B1(row1(j),col1(j))];&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;end&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;&lt;br /&gt;for j=1:length(row2)&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;red2=[red2; R2(row2(j),col2(j))];&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;    green2=[green2; G2(row2(j),col2(j))];&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;blue2=[blue2; B2(row2(j),col2(j))];&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;end&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;&lt;br /&gt;mr1(i,:)=mean(red1);&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;mg1(i,:)=mean(green1);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;mb1(i,:)=mean(blue1);&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;mr2(i,:)=mean(red2);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;  mg2(i,:)=mean(green2);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;  mb2(i,:)=mean(blue2);&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;        &lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;  &lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;end&lt;/span&gt;  &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;&lt;br /&gt;apratio1=area1./perim1;&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;apratio2=area2./perim2;&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;where segment was a function that does histogram backprojection segmentation.&lt;br /&gt;&lt;br /&gt;PART 2. Class Representative Vector&lt;br /&gt;&lt;br /&gt;For each class, we used features from the first three samples to get the mean feature per class.&lt;br /&gt;&lt;br /&gt;Noting that the greatest difference of mean features for the two classes and the least standard deviation of feature values within a class occurred for the perimeter, R, and B; I used these three to make up the mean feature vector per class.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/Srguz-hZnNI/AAAAAAAAAkc/6JG-rpkMW6M/s1600-h/mean+feature.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 81px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/Srguz-hZnNI/AAAAAAAAAkc/6JG-rpkMW6M/s400/mean+feature.bmp" alt="" id="BLOGGER_PHOTO_ID_5384104825012722898" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;The program is as follows.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;/////// mean features&lt;br /&gt;meanarea1=mean(area1(1:3,:));&lt;br /&gt;meanarea2=mean(area2(1:3,:));&lt;br /&gt;meanperim1=mean(perim1(1:3,:));&lt;br /&gt;meanperim2=mean(perim2(1:3,:));&lt;br /&gt;meanapratio1=mean(apratio1(1:3,:));&lt;br /&gt;meanapratio2=mean(apratio2(1:3,:));&lt;br /&gt;meanr1=mean(mr1(1:3,:));&lt;br /&gt;meanr2=mean(mr2(1:3,:));&lt;br /&gt;meanb1=mean(mb1(1:3,:));&lt;br /&gt;meanb2=mean(mb2(1:3,:));&lt;br /&gt;&lt;br /&gt;m1=[meanperim1 meanr1 meanb1]';&lt;br /&gt;m2=[meanperim2 meanr2 meanb2]';&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;PART 3: Minimum Distance Classification&lt;br /&gt;&lt;br /&gt;Class membership is then determined by assigning an object to the class that has a minimum euclidian distance from it in terms of the feature vectors. Or alternatively, we can compute&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SrgyS7njIJI/AAAAAAAAAkk/sqCCQCZKlDM/s1600-h/formula.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 302px; height: 43px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SrgyS7njIJI/AAAAAAAAAkk/sqCCQCZKlDM/s400/formula.bmp" alt="" id="BLOGGER_PHOTO_ID_5384108655344033938" border="0" /&gt;&lt;/a&gt;where x is the unknown object's feature vector and m sub j is the mean feature vector of class j.&lt;br /&gt;&lt;br /&gt;The object will then be classified to the larger d&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;d1=x'*m1 - 0.5*m1'*m1;&lt;br /&gt;d2=x'*m2 - 0.5*m2'*m2;&lt;br /&gt;&lt;br /&gt;classify=1*((d1-d2)&lt;0)+1;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The first testing set consists of 3 strawberries (fruit 1) and then three blueberries (fruit 2).&lt;br /&gt;The classification is 100% correct.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SrgyT4K3sWI/AAAAAAAAAk0/-eyQUcOWAyk/s1600-h/ordered.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 332px; height: 137px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SrgyT4K3sWI/AAAAAAAAAk0/-eyQUcOWAyk/s400/ordered.bmp" alt="" id="BLOGGER_PHOTO_ID_5384108671598309730" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;The second testing set consists of alternating strawberries (fruit 1) and blueberries (fruit 2).&lt;br /&gt;The classification is still 100% correct.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SrgyTdU88wI/AAAAAAAAAks/1lSckfTwZR0/s1600-h/alternate.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 238px; height: 139px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SrgyTdU88wI/AAAAAAAAAks/1lSckfTwZR0/s400/alternate.bmp" alt="" id="BLOGGER_PHOTO_ID_5384108664392839938" border="0" /&gt;&lt;/a&gt;Plotting in feature space, we see that...&lt;br /&gt;(Red = fruit1; Green = fruit2; Circles = unknown class features; Star = mean features)&lt;br /&gt;&lt;br /&gt;R vs B&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Srg3Axb0E9I/AAAAAAAAAlU/PNDU0jqO35E/s1600-h/mr_mb.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 242px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Srg3Axb0E9I/AAAAAAAAAlU/PNDU0jqO35E/s320/mr_mb.bmp" alt="" id="BLOGGER_PHOTO_ID_5384113840930952146" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Perimeter vs R&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/Srg3BcwVaII/AAAAAAAAAlc/WSM235TXa2s/s1600-h/perim_mr.bmp"&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/_rIBnkPGB9po/Srg3BcwVaII/AAAAAAAAAlc/WSM235TXa2s/s320/perim_mr.bmp" alt="" id="BLOGGER_PHOTO_ID_5384113852559747202" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Perimeter vs B&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Srg3B9xII_I/AAAAAAAAAlk/HJUtNB3xqUI/s1600-h/perim_mb.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 242px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Srg3B9xII_I/AAAAAAAAAlk/HJUtNB3xqUI/s320/perim_mb.bmp" alt="" id="BLOGGER_PHOTO_ID_5384113861421442034" border="0" /&gt;&lt;/a&gt;The features of the two classes are clearly separable.&lt;br /&gt;&lt;br /&gt;For this activity, I give myself a grade of 10. My classifications are 100% accurate.&lt;br /&gt;&lt;br /&gt;Image from:&lt;br /&gt;&lt;a href="http://img2.allposters.com/images/NIM/KE041.jpg" target="_blank"&gt;http://img2.allposters.com/&lt;wbr&gt;images/NIM/KE041.jpg&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6557682483856522377-1960277485146858502?l=thinktanknicherry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thinktanknicherry.blogspot.com/feeds/1960277485146858502/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/09/a14-pattern-recognition.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/1960277485146858502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/1960277485146858502'/><link rel='alternate' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/09/a14-pattern-recognition.html' title='A14 Pattern Recognition'/><author><name>cherry</name><uri>http://www.blogger.com/profile/01475793529692257483</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/_rIBnkPGB9po/SqvvqIcOm_I/AAAAAAAAAkE/k8aFdZCNIys/s72-c/fruits1.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6557682483856522377.post-2223118744976247571</id><published>2009-08-24T18:54:00.000-07:00</published><updated>2009-09-12T10:18:24.401-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='geometric distortion'/><category scheme='http://www.blogger.com/atom/ns#' term='pin cushion'/><category scheme='http://www.blogger.com/atom/ns#' term='barrel'/><title type='text'>A13 Correcting Geometric Distortion</title><content type='html'>&lt;span style="font-size:85%;"&gt;Geometric distortions may result from the camera lens being spherical. Two common distortions are the barrel and the pin cushion distortions.&lt;br /&gt;&lt;br /&gt;In barrel distortion, the image seems bloated in the middle and pinched at the sides.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SqhWdkqvrCI/AAAAAAAAAfk/xn-TnEbQD-M/s1600-h/barrel4.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SqhWdkqvrCI/AAAAAAAAAfk/xn-TnEbQD-M/s320/barrel4.jpg" alt="" id="BLOGGER_PHOTO_ID_5379644820953213986" border="0" /&gt;&lt;/a&gt;The opposite happens for pin cushion distortion.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SqhWifABXHI/AAAAAAAAAfs/40tPHNBMSQQ/s1600-h/pin3.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SqhWifABXHI/AAAAAAAAAfs/40tPHNBMSQQ/s320/pin3.JPG" alt="" id="BLOGGER_PHOTO_ID_5379644905331186802" border="0" /&gt;&lt;/a&gt;In this activity, we will try to correct pin cushion and barrel distortions.&lt;br /&gt;&lt;br /&gt;First we need an image of a regularly repeating pattern like a grid or checkerboard as reference.&lt;br /&gt;This will help us visualize the distortion that happens across the image.&lt;br /&gt;&lt;br /&gt;Below, we show such a pattern for the barrel distortion&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-size:85%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/Sqhl4AvEfSI/AAAAAAAAAhE/clcSDuVIMkA/s1600-h/barrel1.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 150px; height: 151px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/Sqhl4AvEfSI/AAAAAAAAAhE/clcSDuVIMkA/s320/barrel1.jpg" alt="" id="BLOGGER_PHOTO_ID_5379661767838563618" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;and for the pincushion distortion&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size:85%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SqhuHscsL5I/AAAAAAAAAhM/BHqZistnXVA/s1600-h/pin1.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 307px; height: 292px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SqhuHscsL5I/AAAAAAAAAhM/BHqZistnXVA/s320/pin1.jpg" alt="" id="BLOGGER_PHOTO_ID_5379670833363693458" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;Now, what we need to find is the transformation that will map the distorted image to the ideal image.&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size:85%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SqhddBGLcgI/AAAAAAAAAgU/OGj-OcS4c2k/s1600-h/map.bmp"&gt;&lt;img style="cursor: pointer; width: 320px; height: 129px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SqhddBGLcgI/AAAAAAAAAgU/OGj-OcS4c2k/s320/map.bmp" alt="" id="BLOGGER_PHOTO_ID_5379652507985998338" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;First we look at the transformation of pixel coordinates.&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&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/_rIBnkPGB9po/Sqhf9-RpndI/AAAAAAAAAgs/6q0lXQQb-4U/s1600-h/0.bmp"&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/_rIBnkPGB9po/Sqhf9-RpndI/AAAAAAAAAgs/6q0lXQQb-4U/s320/0.bmp" alt="" id="BLOGGER_PHOTO_ID_5379655273187745234" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;We assume that the coordinates are transformed in both directions simultaneously, so that r and s would be bilinear functions&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SqhfrGtLMqI/AAAAAAAAAgk/scNeTAgJe6Y/s1600-h/1.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 245px; height: 78px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SqhfrGtLMqI/AAAAAAAAAgk/scNeTAgJe6Y/s320/1.bmp" alt="" id="BLOGGER_PHOTO_ID_5379654949033161378" border="0" /&gt;&lt;/a&gt;The distorted coordinates would therefore be given by&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SqhgwikkAxI/AAAAAAAAAg0/z-ABpUBg044/s1600-h/2.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 189px; height: 59px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SqhgwikkAxI/AAAAAAAAAg0/z-ABpUBg044/s320/2.bmp" alt="" id="BLOGGER_PHOTO_ID_5379656141924205330" border="0" /&gt;&lt;/a&gt;To find the eight unknown coefficients c1-c8, we use the 4 vertices of a grid. These coefficients are valid only for points within the gird used and must therefore be generated for each grid in the image.&lt;br /&gt;&lt;br /&gt;Using the four vertices, and rewriting the eight equations in matrix form we have&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SqhjV024nQI/AAAAAAAAAg8/EfqM8C8cfpY/s1600-h/3.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 278px; height: 320px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SqhjV024nQI/AAAAAAAAAg8/EfqM8C8cfpY/s320/3.bmp" alt="" id="BLOGGER_PHOTO_ID_5379658981511306498" border="0" /&gt;&lt;/a&gt;The distorted coordinates are easy to find. In Scilab, we just use the locate() function.&lt;br /&gt;For the barrel distortion image above, the located points are marked with red crosses&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SqhupfNaiQI/AAAAAAAAAhU/0N1rLCywZmw/s1600-h/pos_barrel1.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SqhupfNaiQI/AAAAAAAAAhU/0N1rLCywZmw/s320/pos_barrel1.bmp" alt="" id="BLOGGER_PHOTO_ID_5379671413925513474" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Similarly for the pincushion&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SqhuqAxDHqI/AAAAAAAAAhc/zmyQdZQ23qQ/s1600-h/pos_pin1.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SqhuqAxDHqI/AAAAAAAAAhc/zmyQdZQ23qQ/s320/pos_pin1.bmp" alt="" id="BLOGGER_PHOTO_ID_5379671422933343906" border="0" /&gt;&lt;/a&gt;The ideal coordinates on the other hand are generated from the grid length down and across a grid from the most undistorted portion of the image (optical axis of the camera). In my program, I used&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;br /&gt;////count number of pixels down and across one box&lt;br /&gt;//// choose diagonal points (origin and 1,1)&lt;br /&gt;scf(1); clf();&lt;br /&gt;imshow(im);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;xy=locate(2,1);&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;//// ideal vertices&lt;br /&gt;xoyo=xy(:,1);&lt;br /&gt;xideal=(xoyo(1) + [-cols/2:cols/2]*xratio);&lt;br /&gt;yideal=sort(xoyo(2) + [-rows/2:rows/2]*yratio);&lt;br /&gt;a=ones(1:cols+3);&lt;br /&gt;b=ones(1:rows+3);&lt;br /&gt;xi=a'*xideal;&lt;br /&gt;yi=yideal'*b;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;where xi and yi are matrices that contain the column and row values of the grid vertices respectively. For example xi(1,2) will give the column value of the vertex at topmost row and 2nd to the left column.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="color: rgb(102, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;We now know both the ideal and distorted vertices.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;For the succeeding parts, I will place my discussions inside the code using comments.&lt;br /&gt;(Its rather hard to discuss it step by step since  they are all inside common loops)&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="color: rgb(102, 0, 0);"&gt;&lt;br /&gt;&lt;br /&gt;/// The 2 for loops go through each grid&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;for i=1:rows&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;for j=1:cols&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;   ///Now to compute the 8 coefficients for each grid, I made the following code.&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="color: rgb(0, 102, 0);"&gt;   //// Computation of Coefficients per grid&lt;/span&gt;&lt;br /&gt;T=[xi(i,j) yi(i,j) xi(i,j)*yi(i,j) 1; xi(i+1,j) yi(i+1,j) xi(i+1,j)*yi(i+1,j) 1; xi(i+1,j+1)    yi(i+1,j+1)xi(i+1,j+1)*yi(i+1,j+1) 1; xi(i,j+1) yi(i,j+1) xi(i,j+1)*yi(i,j+1) 1];&lt;br /&gt;Xd=([xd(i,j) xd(i+1,j) xd(i+1,j+1) xd(i,j+1)])';&lt;br /&gt;Yd=([yd(i,j) yd(i+1,j) yd(i+1,j+1) yd(i,j+1)])';&lt;br /&gt;C1_4=inv(T)*Xd;&lt;br /&gt;C5_8=inv(T)*Yd;&lt;br /&gt;c=[C1_4;C5_8];&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;   //// The vertices of the ideal grid are given by&lt;/span&gt; &lt;span style="color: rgb(102, 0, 0);"&gt;&lt;br /&gt;Xi=([xi(i,j) xi(i+1,j) xi(i+1,j+1) xi(i,j+1)])';&lt;/span&gt; &lt;span style="color: rgb(102, 0, 0);"&gt;&lt;br /&gt;Yi=([yi(i,j) yi(i+1,j) yi(i+1,j+1) yi(i,j+1)])';&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;   xir=floor(Xi);&lt;/span&gt; &lt;span style="color: rgb(102, 0, 0);"&gt;yir=floor(Yi);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;     &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;//Now we go through each pixel in the grid.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="color: rgb(0, 102, 0);"&gt;for l=min(yir):max(yir)-1&lt;/span&gt; &lt;span style="color: rgb(102, 0, 0);"&gt;     &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;for m=min(xir):max(xir)-1&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;//Per pixel in the ideal grid the location of that point in the distorted image is given by&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="color: rgb(102, 0, 0);"&gt;xdistort2=c(1)*m + c(2)*l + c(3)*m.*l + c(4);&lt;/span&gt; &lt;span style="color: rgb(102, 0, 0);"&gt;&lt;br /&gt;ydistort2=c(5)*m + c(6)*l + c(7)*m.*l + c(8);&lt;/span&gt; &lt;span style="color: rgb(102, 0, 0);"&gt;&lt;br /&gt;xdr2=floor(xdistort2);&lt;/span&gt; &lt;span style="color: rgb(102, 0, 0);"&gt;&lt;br /&gt;ydr2=floor(ydistort2);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;////// Gray Level Interpolation&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;// ////The final part of the problem is to find the gray level value at the ideal pixel location.&lt;br /&gt;//////This should just be a matter of assigning to the ideal coordinates the pixel value at the corresponding       //////distorted coordinates (calculated using the two equations above).&lt;br /&gt;//////However, the two equations above would not give exact integers all the time and so we need to //////interpolate the graylevel value. The interpolation that will be done here is the bilinear interpolation, //////whereas the gray level value at (x,y) is given by&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center; color: rgb(0, 102, 0);"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SquwUSdrnbI/AAAAAAAAAis/WztUaDD_V64/s1600-h/v.bmp"&gt;&lt;img style="cursor: pointer; width: 200px; height: 28px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SquwUSdrnbI/AAAAAAAAAis/WztUaDD_V64/s200/v.bmp" alt="" id="BLOGGER_PHOTO_ID_5380588042424393138" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt; &lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="color: rgb(0, 102, 0);"&gt;////// a b c d can be obtained from the four nearest pixels of the location rather like the way we calculated the //////unknown coefficients c1-c4.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;          V=[im(ydr2,xdr2); im(ydr2+1,xdr2); im(ydr2,xdr2+1); im(ydr2+1,xdr2+1)];&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;          Tv=[xdr2 ydr2 xdr2*ydr2 1; xdr2 (ydr2+1) xdr2*(ydr2+1) 1; (xdr2+1) ydr2 (xdr2+1)*ydr2 1; (xdr2 +1)  (ydr2 +1) (xdr2 +1)*(ydr2+1) 1];&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;  &lt;br /&gt;abcd=inv(Tv)*V;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;          im2(l,m)=(abcd(1)*xdistort2 +abcd(2)*ydistort2 + abcd(3)*xdistort2.*ydistort2 + abcd(4));&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;end&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;end&lt;/span&gt;  &lt;span style="color: rgb(102, 0, 0);"&gt;&lt;br /&gt;&lt;br /&gt;end&lt;br /&gt;&lt;/span&gt; &lt;span style="color: rgb(102, 0, 0);"&gt;end&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;After correction the barrel distorted image now looks like&lt;/span&gt; (only the center 4 rows and columns)&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SqvAD6ZPHaI/AAAAAAAAAjE/mRuBhybpDAQ/s1600-h/corr_pin1.bmp"&gt;&lt;img style="cursor: pointer; width: 320px; height: 232px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SqvAD6ZPHaI/AAAAAAAAAjE/mRuBhybpDAQ/s320/corr_pin1.bmp" alt="" id="BLOGGER_PHOTO_ID_5380605353271434658" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-size:85%;"&gt;while the pin cushion image looks like&lt;/span&gt; (only the center 4 rows and columns)&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SqvADe1CgwI/AAAAAAAAAi8/IvaWDEYeJl8/s1600-h/corr_barrel1.bmp"&gt;&lt;img style="cursor: pointer; width: 320px; height: 232px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SqvADe1CgwI/AAAAAAAAAi8/IvaWDEYeJl8/s320/corr_barrel1.bmp" alt="" id="BLOGGER_PHOTO_ID_5380605345871856386" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-size:85%;"&gt;I also tried correcting distortions on more complicated images, like the cd rack below&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SqvVTAoHEpI/AAAAAAAAAj0/Q0LiLxcyUq0/s1600-h/barrel7.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 163px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SqvVTAoHEpI/AAAAAAAAAj0/Q0LiLxcyUq0/s200/barrel7.jpg" alt="" id="BLOGGER_PHOTO_ID_5380628702386655890" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;and here is the result&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SqvVTuHReSI/AAAAAAAAAj8/WfhHG0ViSRA/s1600-h/corr_barrel6.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 170px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SqvVTuHReSI/AAAAAAAAAj8/WfhHG0ViSRA/s200/corr_barrel6.bmp" alt="" id="BLOGGER_PHOTO_ID_5380628714596956450" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Alternately, undistorted images can be distorted using the same procedure. We just have to superimpose a distorted pattern over an undistorted image, apply correction to the lines and voila! The image becomes distorted.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;For this activity, I give myself a grade of 10. I was able to implement the correction for the barrel and pincushion distortion. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Images from&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;http://www.astrosurf.com/buil/iris/tutorial19&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Ref&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Activity 13 Manual&lt;/span&gt;&lt;/span&gt;&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/6557682483856522377-2223118744976247571?l=thinktanknicherry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thinktanknicherry.blogspot.com/feeds/2223118744976247571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/08/a13-correcting-geometric-distortion.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/2223118744976247571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/2223118744976247571'/><link rel='alternate' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/08/a13-correcting-geometric-distortion.html' title='A13 Correcting Geometric Distortion'/><author><name>cherry</name><uri>http://www.blogger.com/profile/01475793529692257483</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/_rIBnkPGB9po/SqhWdkqvrCI/AAAAAAAAAfk/xn-TnEbQD-M/s72-c/barrel4.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6557682483856522377.post-2969382494161845684</id><published>2009-08-07T07:35:00.000-07:00</published><updated>2009-08-11T01:17:38.733-07:00</updated><title type='text'>A12 Color Image Segmentation</title><content type='html'>In this activity, we color segment an image using parametric and non parametric segmentation.&lt;br /&gt;&lt;br /&gt;For the non parametric segmentation, we did histogram backprojection wherein based on a color histogram of the ROI a pixel location is given a value equal to its histogram value in chromaticity space.&lt;br /&gt;&lt;br /&gt;The parametric segmentation was done by assuming a gaussian pdf independently along r and g values of the ROI.&lt;br /&gt;&lt;br /&gt;Since we are using 2D histograms, we first check if we are indeed getting the right colors.&lt;br /&gt;Here the cropped portion is blue. Comparing our histogram with the chromaticity diagram below, we can see that the histogram is indeed correct. (I rotated the axis of the chromaticity so as to coincide with the histogram origin whichis at the upperleft corner.)&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SnxV6NLO7JI/AAAAAAAAAck/AMtM9uenvmU/s1600-h/bluehist.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 320px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SnxV6NLO7JI/AAAAAAAAAck/AMtM9uenvmU/s320/bluehist.bmp" alt="" id="BLOGGER_PHOTO_ID_5367259314376338578" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SnxV5z-ylOI/AAAAAAAAAcc/LIf9rvOw6ag/s1600-h/chromaticity.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 255px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SnxV5z-ylOI/AAAAAAAAAcc/LIf9rvOw6ag/s320/chromaticity.bmp" alt="" id="BLOGGER_PHOTO_ID_5367259307613263074" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The results for the two methods are shown below.&lt;br /&gt;&lt;br /&gt;A. Mugs&lt;br /&gt;&lt;br /&gt;The image is&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SnxV5jbv04I/AAAAAAAAAcU/pzdzlNTOYdw/s1600-h/mugs2.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 320px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SnxV5jbv04I/AAAAAAAAAcU/pzdzlNTOYdw/s320/mugs2.jpg" alt="" id="BLOGGER_PHOTO_ID_5367259303171314562" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The cropped ROI is&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SnxXPjLhTmI/AAAAAAAAAdE/YMu8MwqRuF8/s1600-h/mugscrop_b2.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 63px; height: 11px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SnxXPjLhTmI/AAAAAAAAAdE/YMu8MwqRuF8/s320/mugscrop_b2.bmp" alt="" id="BLOGGER_PHOTO_ID_5367260780572003938" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;For the non parametric segmentation, the result is&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SnxW_32zXqI/AAAAAAAAAc8/gCI2hWRuROQ/s1600-h/segmented_mugsb.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 320px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SnxW_32zXqI/AAAAAAAAAc8/gCI2hWRuROQ/s320/segmented_mugsb.bmp" alt="" id="BLOGGER_PHOTO_ID_5367260511244344994" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;while for the parametric segmentation&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SnxW--gPeWI/AAAAAAAAAcs/4km2QTmQCXo/s1600-h/mugblue+hist.bmp"&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/_rIBnkPGB9po/SnxW--gPeWI/AAAAAAAAAcs/4km2QTmQCXo/s320/mugblue+hist.bmp" alt="" id="BLOGGER_PHOTO_ID_5367260495848896866" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SnxW_hQkCOI/AAAAAAAAAc0/ZNiJGNpuopw/s1600-h/mug+blue.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 320px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SnxW_hQkCOI/AAAAAAAAAc0/ZNiJGNpuopw/s320/mug+blue.bmp" alt="" id="BLOGGER_PHOTO_ID_5367260505178376418" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;B. Obama Lantern&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/SnxCXUbHjoI/AAAAAAAAAaE/TxA1lgpevnE/s1600-h/obama.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 293px; height: 320px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/SnxCXUbHjoI/AAAAAAAAAaE/TxA1lgpevnE/s320/obama.jpg" alt="" id="BLOGGER_PHOTO_ID_5367237824305663618" border="0" /&gt;&lt;/a&gt;The portion that I cropped is the light yellow part.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/SnxCjOZEslI/AAAAAAAAAaM/p2z2_a-RKJA/s1600-h/obama_ly.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 22px; height: 16px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/SnxCjOZEslI/AAAAAAAAAaM/p2z2_a-RKJA/s320/obama_ly.bmp" alt="" id="BLOGGER_PHOTO_ID_5367238028844905042" border="0" /&gt;&lt;/a&gt;The result for the nonparametric was&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SnxCjJPSjII/AAAAAAAAAaU/HFn9sBYvHEY/s1600-h/segmented_obama_ly.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 293px; height: 320px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SnxCjJPSjII/AAAAAAAAAaU/HFn9sBYvHEY/s320/segmented_obama_ly.jpg" alt="" id="BLOGGER_PHOTO_ID_5367238027461692546" border="0" /&gt;&lt;/a&gt;For the parametric the pdf and the segmented image are&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SnxDp6s8UWI/AAAAAAAAAac/x0DQ7OIapsE/s1600-h/mugblue+hist.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 242px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SnxDp6s8UWI/AAAAAAAAAac/x0DQ7OIapsE/s320/mugblue+hist.bmp" alt="" id="BLOGGER_PHOTO_ID_5367239243330244962" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SnxGeVPo9UI/AAAAAAAAAbc/iHaVQIPPW90/s1600-h/obama2.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 290px; height: 320px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SnxGeVPo9UI/AAAAAAAAAbc/iHaVQIPPW90/s320/obama2.bmp" alt="" id="BLOGGER_PHOTO_ID_5367242342831551810" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;C. Starry Starry Night&lt;br /&gt;&lt;br /&gt;The image is&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SnxV5crGNcI/AAAAAAAAAcM/tnV3V-8eTyw/s1600-h/starry.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 262px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SnxV5crGNcI/AAAAAAAAAcM/tnV3V-8eTyw/s320/starry.jpg" alt="" id="BLOGGER_PHOTO_ID_5367259301356647874" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;The cropped color is&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SnxGfv5rsGI/AAAAAAAAAb8/6mdBNUCRCPY/s1600-h/starry_y.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 38px; height: 33px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SnxGfv5rsGI/AAAAAAAAAb8/6mdBNUCRCPY/s320/starry_y.bmp" alt="" id="BLOGGER_PHOTO_ID_5367242367167082594" border="0" /&gt;&lt;/a&gt;The non parametric segmentation result is&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SnxGfbTdzBI/AAAAAAAAAb0/e7hhJyFgw3M/s1600-h/segmented_obama_letters.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 262px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SnxGfbTdzBI/AAAAAAAAAb0/e7hhJyFgw3M/s320/segmented_obama_letters.jpg" alt="" id="BLOGGER_PHOTO_ID_5367242361638079506" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The parametric segmentation pdf and result is&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SnxGe9MSX7I/AAAAAAAAAbk/7acCJCXNa-E/s1600-h/starry+hist.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 242px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SnxGe9MSX7I/AAAAAAAAAbk/7acCJCXNa-E/s320/starry+hist.bmp" alt="" id="BLOGGER_PHOTO_ID_5367242353554907058" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SnxV41-yIKI/AAAAAAAAAcE/kWC5tdp0ZGc/s1600-h/starry.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 262px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SnxV41-yIKI/AAAAAAAAAcE/kWC5tdp0ZGc/s320/starry.bmp" alt="" id="BLOGGER_PHOTO_ID_5367259290970235042" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;We can see that the parametric segmentation is a lot stricter than the non-paramertic segmentation. Parametric would work better for when we want to segment shades of colors that are very much alike. For less stricter segmentations use non parametric.&lt;br /&gt;&lt;br /&gt;In this activity, I give myself a grade of 10 because I understood and was able to do everything that was required.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6557682483856522377-2969382494161845684?l=thinktanknicherry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thinktanknicherry.blogspot.com/feeds/2969382494161845684/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thinktanknicherry.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/6557682483856522377/posts/default/2969382494161845684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/2969382494161845684'/><link rel='alternate' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/08/a12-color-image-segmentation.html' title='A12 Color Image Segmentation'/><author><name>cherry</name><uri>http://www.blogger.com/profile/01475793529692257483</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/_rIBnkPGB9po/SnxV6NLO7JI/AAAAAAAAAck/AMtM9uenvmU/s72-c/bluehist.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6557682483856522377.post-6703811286954027307</id><published>2009-08-07T07:21:00.000-07:00</published><updated>2009-09-21T19:48:38.193-07:00</updated><title type='text'>A11 Color Camera Processing</title><content type='html'>White balancing ensures that an object that is white will appear white in an image no matter what the light source is. In an ordinary digital camera, some of the white balance settings would include daylight, cloudy, fluorescent and incandescent.&lt;br /&gt;&lt;br /&gt;In this activity, we investigate the two different white balancing algorithms: White Patch and Gray World.&lt;br /&gt;This is the correctly balanced image.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Snxfm0YYHbI/AAAAAAAAAdk/ig48vs515dY/s1600-h/DSC00067.JPG"&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/_rIBnkPGB9po/Snxfm0YYHbI/AAAAAAAAAdk/ig48vs515dY/s320/DSC00067.JPG" alt="" id="BLOGGER_PHOTO_ID_5367269976419343794" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The image below was taken under fluorescent light sources but was white balanced using incandescent.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/SnxeEmnKf2I/AAAAAAAAAdM/6ywn6qBiyrs/s1600-h/DSC00068.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/SnxeEmnKf2I/AAAAAAAAAdM/6ywn6qBiyrs/s320/DSC00068.JPG" alt="" id="BLOGGER_PHOTO_ID_5367268289096089442" border="0" /&gt;&lt;/a&gt;For this case both algorithms work well.&lt;br /&gt;&lt;div style="text-align: center;"&gt;Gray World&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/_rIBnkPGB9po/SnxfE38TBoI/AAAAAAAAAdc/DMrgt3PhcL4/s1600-h/small-reference.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 250px; height: 188px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SnxfE38TBoI/AAAAAAAAAdc/DMrgt3PhcL4/s320/small-reference.jpg" alt="" id="BLOGGER_PHOTO_ID_5367269393259759234" border="0" /&gt;&lt;/a&gt;White Patch&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SnxfEMDCn1I/AAAAAAAAAdU/AWUzo-xGTEU/s1600-h/small-grayworld.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 250px; height: 188px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SnxfEMDCn1I/AAAAAAAAAdU/AWUzo-xGTEU/s320/small-grayworld.jpg" alt="" id="BLOGGER_PHOTO_ID_5367269381476884306" border="0" /&gt;&lt;/a&gt;For a sample with low variety of colors&lt;br /&gt;&lt;br /&gt;The properly white balanced (fluorescent) image is&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/Snxh9cKwk5I/AAAAAAAAAd0/PsqOP76GiPM/s1600-h/RED2.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 250px; height: 253px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/Snxh9cKwk5I/AAAAAAAAAd0/PsqOP76GiPM/s320/RED2.JPG" alt="" id="BLOGGER_PHOTO_ID_5367272564080022418" border="0" /&gt;&lt;/a&gt;When wrongly balanced using incandescent&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SnxiIdsyq1I/AAAAAAAAAd8/9f4uoSxRIts/s1600-h/red-reference.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 250px; height: 241px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SnxiIdsyq1I/AAAAAAAAAd8/9f4uoSxRIts/s320/red-reference.jpg" alt="" id="BLOGGER_PHOTO_ID_5367272753469762386" border="0" /&gt;&lt;/a&gt;Whitebalancing it again results to&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;Gray World&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/Snxitc7LVPI/AAAAAAAAAeM/QtuyiT1TJXg/s1600-h/red-grayworld.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 250px; height: 241px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/Snxitc7LVPI/AAAAAAAAAeM/QtuyiT1TJXg/s320/red-grayworld.jpg" alt="" id="BLOGGER_PHOTO_ID_5367273388916823282" border="0" /&gt;&lt;/a&gt;White Patch&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SnxitjzwXDI/AAAAAAAAAeU/WuITEOB8e_Q/s1600-h/red-reference.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 250px; height: 241px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SnxitjzwXDI/AAAAAAAAAeU/WuITEOB8e_Q/s320/red-reference.jpg" alt="" id="BLOGGER_PHOTO_ID_5367273390764743730" border="0" /&gt;&lt;/a&gt;We can see that the gray world only works when the gray world assumption holds. That is when there are indeed comparable areas that have reds, greens and blues in the image.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&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/6557682483856522377-6703811286954027307?l=thinktanknicherry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thinktanknicherry.blogspot.com/feeds/6703811286954027307/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/08/a11-color-camera-processing.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/6703811286954027307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/6703811286954027307'/><link rel='alternate' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/08/a11-color-camera-processing.html' title='A11 Color Camera Processing'/><author><name>cherry</name><uri>http://www.blogger.com/profile/01475793529692257483</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/_rIBnkPGB9po/Snxfm0YYHbI/AAAAAAAAAdk/ig48vs515dY/s72-c/DSC00067.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6557682483856522377.post-8822006059106134943</id><published>2009-08-07T07:10:00.000-07:00</published><updated>2009-08-07T11:07:14.953-07:00</updated><title type='text'>A10 Preprocessing Text</title><content type='html'>For activity 10, we were given an image of a receipt.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/Snw2Kg5mfjI/AAAAAAAAAZU/mIMWmD92csE/s1600-h/text.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 257px; height: 320px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/Snw2Kg5mfjI/AAAAAAAAAZU/mIMWmD92csE/s320/text.bmp" alt="" id="BLOGGER_PHOTO_ID_5367224410176912946" border="0" /&gt;&lt;/a&gt;I cropped only a portion of the image.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SnxkdIT28gI/AAAAAAAAAec/ZpzpQ9sKGMU/s1600-h/cropped.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 204px; height: 107px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SnxkdIT28gI/AAAAAAAAAec/ZpzpQ9sKGMU/s320/cropped.bmp" alt="" id="BLOGGER_PHOTO_ID_5367275307528548866" border="0" /&gt;&lt;/a&gt;Its fft is&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SnxkdlIzlmI/AAAAAAAAAek/sXLqehBcO-w/s1600-h/fft1.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 210px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SnxkdlIzlmI/AAAAAAAAAek/sXLqehBcO-w/s320/fft1.bmp" alt="" id="BLOGGER_PHOTO_ID_5367275315266819682" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;We can see that the points corresponding to the lines are slanted. From here we can estimate the angle to be around 3 degrees.&lt;br /&gt;&lt;br /&gt;Rotating the image, we have&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SnxnbHwLwbI/AAAAAAAAAe8/pDGyVeIJ7qs/s1600-h/rotated.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 204px; height: 107px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SnxnbHwLwbI/AAAAAAAAAe8/pDGyVeIJ7qs/s320/rotated.bmp" alt="" id="BLOGGER_PHOTO_ID_5367278571554062770" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;The corresponding fft is now straighter.&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/_rIBnkPGB9po/SnxnlmGzHsI/AAAAAAAAAfM/QqDkhcJIx3Q/s1600-h/fft2.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 204px; height: 107px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SnxnlmGzHsI/AAAAAAAAAfM/QqDkhcJIx3Q/s320/fft2.bmp" alt="" id="BLOGGER_PHOTO_ID_5367278751500672706" border="0" /&gt;&lt;/a&gt;Next we remove the lines by masking out the part of the fft that corresponds to it.&lt;br /&gt;The filter used was&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/Snxr0N901MI/AAAAAAAAAfc/U8U4lJQNO9c/s1600-h/filter6.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 204px; height: 107px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/Snxr0N901MI/AAAAAAAAAfc/U8U4lJQNO9c/s320/filter6.bmp" alt="" id="BLOGGER_PHOTO_ID_5367283400765134018" border="0" /&gt;&lt;/a&gt;and the resulting image is&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SnxrzvBUjnI/AAAAAAAAAfU/3s-XRsrbCTM/s1600-h/nolines.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 174px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SnxrzvBUjnI/AAAAAAAAAfU/3s-XRsrbCTM/s320/nolines.bmp" alt="" id="BLOGGER_PHOTO_ID_5367283392458296946" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6557682483856522377-8822006059106134943?l=thinktanknicherry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thinktanknicherry.blogspot.com/feeds/8822006059106134943/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thinktanknicherry.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/6557682483856522377/posts/default/8822006059106134943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/8822006059106134943'/><link rel='alternate' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/08/a10-preprocessing-text.html' title='A10 Preprocessing Text'/><author><name>cherry</name><uri>http://www.blogger.com/profile/01475793529692257483</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/_rIBnkPGB9po/Snw2Kg5mfjI/AAAAAAAAAZU/mIMWmD92csE/s72-c/text.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6557682483856522377.post-4995338453578904873</id><published>2009-07-29T19:49:00.001-07:00</published><updated>2009-08-11T01:26:08.113-07:00</updated><title type='text'>A9 Binary Operations</title><content type='html'>In this activity, we are tasked to get the best estimate of one "cell". As can be noticed some of these cells are overlapping or incomplete. This task will therefore take all that we have learned so far to get a pretty good estimate of the area.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SnERCIhtf7I/AAAAAAAAAT8/8maTdYr_5bY/s1600-h/Circles001.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 330px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SnERCIhtf7I/AAAAAAAAAT8/8maTdYr_5bY/s400/Circles001.jpg" alt="" id="BLOGGER_PHOTO_ID_5364087359521259442" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;First, we cropped the image into 12 subimages.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/SnERCTjK9JI/AAAAAAAAAUE/sG3nsqGyTCY/s1600-h/cropped.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 266px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/SnERCTjK9JI/AAAAAAAAAUE/sG3nsqGyTCY/s400/cropped.bmp" alt="" id="BLOGGER_PHOTO_ID_5364087362480174226" border="0" /&gt;&lt;/a&gt;Next we used im2bw to threshold the image and separate background from the cells.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SnERClYM-MI/AAAAAAAAAUM/m8IdAOlal-E/s1600-h/bw.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 266px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SnERClYM-MI/AAAAAAAAAUM/m8IdAOlal-E/s400/bw.bmp" alt="" id="BLOGGER_PHOTO_ID_5364087367266007234" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;From the image above, we can see thatsome parts of the background were still included. We remove this noise but still preserve the area of the larger pixels by doing morphological cleaning. This is done by first applying erosion to remove the small dots and then performing dilation to restore the cells into their original sizes. The structuring elements should be large enough to remove the dots but not the cells. The structuring element that I used is&lt;br /&gt;&lt;div style="text-align: center;"&gt;se1=zeros(9,9);&lt;br /&gt;se1(:,4:6)=1;&lt;br /&gt;se1(4:6,:)=1;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/SnwrhQHDWGI/AAAAAAAAAY8/UsrRmutMtwY/s1600-h/opened.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 262px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/SnwrhQHDWGI/AAAAAAAAAY8/UsrRmutMtwY/s400/opened.bmp" alt="" id="BLOGGER_PHOTO_ID_5367212706179012706" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;Next I performed closing on the images by first dilating then eroding the image. The structuring element that I used is a cross three pixels long and 1 pixel thick.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Snwq1eFCPYI/AAAAAAAAAY0/qMQ9VdoZnPs/s1600-h/closed.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 262px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Snwq1eFCPYI/AAAAAAAAAY0/qMQ9VdoZnPs/s400/closed.bmp" alt="" id="BLOGGER_PHOTO_ID_5367211954014403970" border="0" /&gt;&lt;/a&gt;I used bwlabel to name each contiguous blob and did pixel summing for the area. The histogram of the areas is&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;We can see that the spread is very large. Knowing that the very large or very small areas are from the overlapping and incomplete cells respectively, we can safely limit our histogram to the most likely areas which are in this case 400 to 600 pixels&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/Snw1MmgPG2I/AAAAAAAAAZE/m5Pfn4iI838/s1600-h/hist+all.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 210px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/Snw1MmgPG2I/AAAAAAAAAZE/m5Pfn4iI838/s320/hist+all.bmp" alt="" id="BLOGGER_PHOTO_ID_5367223346529246050" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;From here we can get&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/Snw1NdY_wWI/AAAAAAAAAZM/xXESw_DILI0/s1600-h/hist+part.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 210px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/Snw1NdY_wWI/AAAAAAAAAZM/xXESw_DILI0/s320/hist+part.bmp" alt="" id="BLOGGER_PHOTO_ID_5367223361262829922" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;best estimate of area  = 524.90909&lt;br /&gt;standard deviation = 35.852444&lt;br /&gt;&lt;br /&gt;Cropping some single random cells, I found that their areas range from 519 to 525, so my estimate is correct.&lt;br /&gt;It is also possible to remove the overlapping cells, by opening to remove the individual cells and leave just the overlapping cells. If we subtract this to the original binary image, what will be left are just the non-overlapping cells. However I have yet to find the right, structuring element to do this.&lt;br /&gt;&lt;br /&gt;I give myself a grade of 10 because, I was able to get a good estimate of the area and and a standard deviation that is just 6.83% of the mean.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SnERC7XL-rI/AAAAAAAAAUU/MFM_6iDLOok/s1600-h/cleaned.bmp"&gt; &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;References:&lt;br /&gt;[1]http://homepages.inf.ed.ac.uk/rbf/HIPR2/open.htm&lt;br /&gt;[2]http://homepages.inf.ed.ac.uk/rbf/HIPR2/close.htm&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6557682483856522377-4995338453578904873?l=thinktanknicherry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thinktanknicherry.blogspot.com/feeds/4995338453578904873/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/07/a9-binary-operations.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/4995338453578904873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/4995338453578904873'/><link rel='alternate' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/07/a9-binary-operations.html' title='A9 Binary Operations'/><author><name>cherry</name><uri>http://www.blogger.com/profile/01475793529692257483</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/_rIBnkPGB9po/SnERCIhtf7I/AAAAAAAAAT8/8maTdYr_5bY/s72-c/Circles001.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6557682483856522377.post-4575125376844220860</id><published>2009-07-27T17:56:00.000-07:00</published><updated>2009-08-11T01:39:31.710-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='skel'/><category scheme='http://www.blogger.com/atom/ns#' term='erode'/><category scheme='http://www.blogger.com/atom/ns#' term='morphological operations'/><category scheme='http://www.blogger.com/atom/ns#' term='thin'/><category scheme='http://www.blogger.com/atom/ns#' term='dilate'/><title type='text'>A8 Morphological Operations</title><content type='html'>Morphological operations are operations that affect the shape of an image. Two such operations that we could use for binary images are the erode and dilate.&lt;br /&gt;&lt;br /&gt;If A is the image and B is the structuring element then dilation is defined as&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/Sm5QRmQ1yVI/AAAAAAAAAPs/FTkez0HXlvQ/s1600-h/dilation+form.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 270px; height: 44px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/Sm5QRmQ1yVI/AAAAAAAAAPs/FTkez0HXlvQ/s320/dilation+form.JPG" alt="" id="BLOGGER_PHOTO_ID_5363312469504018770" border="0" /&gt;&lt;/a&gt;Dilation involves all z's which are translations of a reflected B that when intersected with A is not an empty set. The result is an expansion or an elongation of A.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm5QR6dSsEI/AAAAAAAAAP0/cCMFWuNJBXs/s1600-h/dilation+pic.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 114px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm5QR6dSsEI/AAAAAAAAAP0/cCMFWuNJBXs/s320/dilation+pic.JPG" alt="" id="BLOGGER_PHOTO_ID_5363312474924953666" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Erosion, on the other hand, is defined as&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/Sm5QSPpyvWI/AAAAAAAAAP8/jYh6_hxNB4o/s1600-h/erosion+form.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 44px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/Sm5QSPpyvWI/AAAAAAAAAP8/jYh6_hxNB4o/s320/erosion+form.JPG" alt="" id="BLOGGER_PHOTO_ID_5363312480614530402" border="0" /&gt;&lt;/a&gt;This operation includes all points z such that B translated by z is still contained in A, The resulting image is the image A reduced by B.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm5QSbLsFgI/AAAAAAAAAQE/JWsSOj4vDFI/s1600-h/erosion+pic.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 105px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm5QSbLsFgI/AAAAAAAAAQE/JWsSOj4vDFI/s320/erosion+pic.JPG" alt="" id="BLOGGER_PHOTO_ID_5363312483709490690" border="0" /&gt;&lt;/a&gt;In this activity, we erode or dilate some common shapes ( square, triangle, circle, hollow square and cross) using 4 different structuring elements. In the images that will follow, the leftmost image is the eroded image, the center image is the original image while the rightmost image is the dilated image.&lt;br /&gt;&lt;br /&gt;Structuring Element 1: 4 X 4 ones&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm5YF_iaxeI/AAAAAAAAAQM/qzDh-_mC2m8/s1600-h/square+a.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm5YF_iaxeI/AAAAAAAAAQM/qzDh-_mC2m8/s320/square+a.bmp" alt="" id="BLOGGER_PHOTO_ID_5363321066223224290" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/Sm5YFzzJ0AI/AAAAAAAAAQU/y5hSJ135d3M/s1600-h/triangle+a.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/Sm5YFzzJ0AI/AAAAAAAAAQU/y5hSJ135d3M/s320/triangle+a.bmp" alt="" id="BLOGGER_PHOTO_ID_5363321063072190466" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm5YGARpk0I/AAAAAAAAAQc/jcSX-MIo1nk/s1600-h/circle+a.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm5YGARpk0I/AAAAAAAAAQc/jcSX-MIo1nk/s320/circle+a.bmp" alt="" id="BLOGGER_PHOTO_ID_5363321066421326658" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/Sm5YGtmosMI/AAAAAAAAAQk/1AinJQe1gIg/s1600-h/square2+a.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/Sm5YGtmosMI/AAAAAAAAAQk/1AinJQe1gIg/s320/square2+a.bmp" alt="" id="BLOGGER_PHOTO_ID_5363321078588944578" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/Sm5YG0elVdI/AAAAAAAAAQs/Tu0Br70_LeA/s1600-h/cross+a.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/Sm5YG0elVdI/AAAAAAAAAQs/Tu0Br70_LeA/s320/cross+a.bmp" alt="" id="BLOGGER_PHOTO_ID_5363321080434218450" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Structuring Element 2: 2 x 4 ones&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/Sm5kmuleKrI/AAAAAAAAAQ0/_ZMEYx_73wo/s1600-h/square+b.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/Sm5kmuleKrI/AAAAAAAAAQ0/_ZMEYx_73wo/s320/square+b.bmp" alt="" id="BLOGGER_PHOTO_ID_5363334822747843250" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm5km1smulI/AAAAAAAAAQ8/iHrKmlgTHGg/s1600-h/triangle+b.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm5km1smulI/AAAAAAAAAQ8/iHrKmlgTHGg/s320/triangle+b.bmp" alt="" id="BLOGGER_PHOTO_ID_5363334824656812626" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/Sm5knJhq3SI/AAAAAAAAARE/MlGt62WJBRs/s1600-h/circle+b.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/Sm5knJhq3SI/AAAAAAAAARE/MlGt62WJBRs/s320/circle+b.bmp" alt="" id="BLOGGER_PHOTO_ID_5363334829979655458" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm5knqvvOdI/AAAAAAAAARM/2IHVJB90LLc/s1600-h/square2+b.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm5knqvvOdI/AAAAAAAAARM/2IHVJB90LLc/s320/square2+b.bmp" alt="" id="BLOGGER_PHOTO_ID_5363334838897031634" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/Sm5koKcmnmI/AAAAAAAAARU/OT7lCcBmN5E/s1600-h/cross+b.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/Sm5koKcmnmI/AAAAAAAAARU/OT7lCcBmN5E/s320/cross+b.bmp" alt="" id="BLOGGER_PHOTO_ID_5363334847406710370" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Structuring Element 3: 4 x 2 ones&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm_5HWB3_VI/AAAAAAAAARc/JadRgW1s1OI/s1600-h/square+c.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm_5HWB3_VI/AAAAAAAAARc/JadRgW1s1OI/s320/square+c.bmp" alt="" id="BLOGGER_PHOTO_ID_5363779585789394258" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm_5IMiAeqI/AAAAAAAAARk/NVCQgZIvqTw/s1600-h/triangle+c.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm_5IMiAeqI/AAAAAAAAARk/NVCQgZIvqTw/s320/triangle+c.bmp" alt="" id="BLOGGER_PHOTO_ID_5363779600419682978" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/Sm_5IdUJduI/AAAAAAAAARs/eU6EqmLiOac/s1600-h/circle+c.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/Sm_5IdUJduI/AAAAAAAAARs/eU6EqmLiOac/s320/circle+c.bmp" alt="" id="BLOGGER_PHOTO_ID_5363779604924954338" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/Sm_5I_UaRII/AAAAAAAAAR0/DEcdjLyet1Y/s1600-h/square2+c.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/Sm_5I_UaRII/AAAAAAAAAR0/DEcdjLyet1Y/s320/square2+c.bmp" alt="" id="BLOGGER_PHOTO_ID_5363779614052861058" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/Sm_5JK02C7I/AAAAAAAAAR8/g0LR2A3qWfg/s1600-h/cross+c.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/Sm_5JK02C7I/AAAAAAAAAR8/g0LR2A3qWfg/s320/cross+c.bmp" alt="" id="BLOGGER_PHOTO_ID_5363779617141689266" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Structuring Element 4: Cross , 5 pixels long and 1 pixel thick&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SnD3cH4N40I/AAAAAAAAASE/mXUEHYZb1c0/s1600-h/square+d.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SnD3cH4N40I/AAAAAAAAASE/mXUEHYZb1c0/s320/square+d.bmp" alt="" id="BLOGGER_PHOTO_ID_5364059218721497922" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SnD3ckxvdyI/AAAAAAAAASM/5TN9IOv9bNs/s1600-h/triangle+d.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SnD3ckxvdyI/AAAAAAAAASM/5TN9IOv9bNs/s320/triangle+d.bmp" alt="" id="BLOGGER_PHOTO_ID_5364059226478966562" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SnD3c7kAwUI/AAAAAAAAASU/oV39NW7xqpo/s1600-h/circle+d.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SnD3c7kAwUI/AAAAAAAAASU/oV39NW7xqpo/s320/circle+d.bmp" alt="" id="BLOGGER_PHOTO_ID_5364059232595394882" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SnD3dFYFhzI/AAAAAAAAASc/h7jzUUJC2IA/s1600-h/square+d.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SnD3dFYFhzI/AAAAAAAAASc/h7jzUUJC2IA/s320/square+d.bmp" alt="" id="BLOGGER_PHOTO_ID_5364059235229730610" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SnD3dR5-v1I/AAAAAAAAASk/eiqlT-pOrQc/s1600-h/cross+d.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SnD3dR5-v1I/AAAAAAAAASk/eiqlT-pOrQc/s320/cross+d.bmp" alt="" id="BLOGGER_PHOTO_ID_5364059238593118034" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Before simulation, I first tried to predict the results of erosion and dilation and they were correct. Here they are...&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SnwQ_YawtXI/AAAAAAAAAYU/ppYz8yGsFFE/s1600-h/DSC00069.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 150px; height: 200px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SnwQ_YawtXI/AAAAAAAAAYU/ppYz8yGsFFE/s200/DSC00069.JPG" alt="" id="BLOGGER_PHOTO_ID_5367183536991286642" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SnwQ_5CETBI/AAAAAAAAAYc/wgsAU-orvCA/s1600-h/DSC00070.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 150px; height: 200px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SnwQ_5CETBI/AAAAAAAAAYc/wgsAU-orvCA/s200/DSC00070.JPG" alt="" id="BLOGGER_PHOTO_ID_5367183545746082834" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I also explored other morphological operations like skel and thin.&lt;br /&gt;&lt;br /&gt;Skel stands for skeletonization. According to the Scilab Help, the skeletons are computed using the euclidian metric and are connected over all scales of simplification. When applied to the previous images, the results are...&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SnD9Ztm9QgI/AAAAAAAAASs/Gk7H5sSnPOg/s1600-h/skel+int+square.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SnD9Ztm9QgI/AAAAAAAAASs/Gk7H5sSnPOg/s320/skel+int+square.bmp" alt="" id="BLOGGER_PHOTO_ID_5364065774379811330" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SnD9aJNlUDI/AAAAAAAAAS0/Py7uPf4qUQc/s1600-h/skel+int+triangle.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SnD9aJNlUDI/AAAAAAAAAS0/Py7uPf4qUQc/s320/skel+int+triangle.bmp" alt="" id="BLOGGER_PHOTO_ID_5364065781789577266" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SnD9af-WTmI/AAAAAAAAAS8/W6RYJm-tHPs/s1600-h/skel+int+circle.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SnD9af-WTmI/AAAAAAAAAS8/W6RYJm-tHPs/s320/skel+int+circle.bmp" alt="" id="BLOGGER_PHOTO_ID_5364065787899694690" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SnD9atUTGGI/AAAAAAAAATE/BzafqOy4THg/s1600-h/skel+int+square2.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SnD9atUTGGI/AAAAAAAAATE/BzafqOy4THg/s320/skel+int+square2.bmp" alt="" id="BLOGGER_PHOTO_ID_5364065791481419874" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SnD9a5dXuQI/AAAAAAAAATM/KhYk_E-G2LM/s1600-h/skel+int+cross.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SnD9a5dXuQI/AAAAAAAAATM/KhYk_E-G2LM/s320/skel+int+cross.bmp" alt="" id="BLOGGER_PHOTO_ID_5364065794740697346" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;The function thin performs border deletion using Zhang Suen technique. According to the Scilab Help, the resulting image is not always connected and is very sensible to noise. Thin works well with thin images, but not so well with thicker images.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SnEINphk-QI/AAAAAAAAATU/uGOYZfMxkww/s1600-h/thin+square.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SnEINphk-QI/AAAAAAAAATU/uGOYZfMxkww/s320/thin+square.bmp" alt="" id="BLOGGER_PHOTO_ID_5364077661752981762" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/SnEIN4TIgzI/AAAAAAAAATc/QMJ3z2Wde5U/s1600-h/thin+triangle.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/SnEIN4TIgzI/AAAAAAAAATc/QMJ3z2Wde5U/s320/thin+triangle.bmp" alt="" id="BLOGGER_PHOTO_ID_5364077665718928178" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SnEIOClK3OI/AAAAAAAAATk/sPyIx6ph0jU/s1600-h/thin+circle.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SnEIOClK3OI/AAAAAAAAATk/sPyIx6ph0jU/s320/thin+circle.bmp" alt="" id="BLOGGER_PHOTO_ID_5364077668478934242" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SnEIOttQYMI/AAAAAAAAATs/tnRiqqAEtck/s1600-h/thin+square2.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SnEIOttQYMI/AAAAAAAAATs/tnRiqqAEtck/s320/thin+square2.bmp" alt="" id="BLOGGER_PHOTO_ID_5364077680055574722" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SnEIO0h_-XI/AAAAAAAAAT0/3N5v3vEjbZw/s1600-h/thin+cross.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 213px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SnEIO0h_-XI/AAAAAAAAAT0/3N5v3vEjbZw/s320/thin+cross.bmp" alt="" id="BLOGGER_PHOTO_ID_5364077681887410546" border="0" /&gt;&lt;/a&gt;I give myself a grade of 10 because I fully understood the activity.&lt;br /&gt;&lt;br /&gt;References&lt;br /&gt;[1] Morphological Operations, Ap 186 Activity 8 Manual&lt;br /&gt;[2] Scilab Help Browser&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6557682483856522377-4575125376844220860?l=thinktanknicherry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thinktanknicherry.blogspot.com/feeds/4575125376844220860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/07/a8-morphological-operations.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/4575125376844220860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/4575125376844220860'/><link rel='alternate' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/07/a8-morphological-operations.html' title='A8 Morphological Operations'/><author><name>cherry</name><uri>http://www.blogger.com/profile/01475793529692257483</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/_rIBnkPGB9po/Sm5QRmQ1yVI/AAAAAAAAAPs/FTkez0HXlvQ/s72-c/dilation+form.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6557682483856522377.post-5331166994253208415</id><published>2009-07-13T17:39:00.000-07:00</published><updated>2009-08-07T04:29:52.423-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='frequency domain'/><category scheme='http://www.blogger.com/atom/ns#' term='convolution'/><category scheme='http://www.blogger.com/atom/ns#' term='filtering'/><category scheme='http://www.blogger.com/atom/ns#' term='image enhancement'/><title type='text'>A7 Enhancement In The Frequency Domain</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 10"&gt;&lt;meta name="Originator" content="Microsoft Word 10"&gt;&lt;link style="font-family: arial;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5Cave%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"&gt;&lt;link style="font-family: arial;" rel="Edit-Time-Data" href="file:///C:%5CDOCUME%7E1%5Cave%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_editdata.mso"&gt;&lt;!--[if !mso]&gt; &lt;style&gt; v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} &lt;/style&gt; &lt;![endif]--&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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:"Lucida Sans Unicode"; 	panose-1:2 11 6 2 3 5 4 2 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-2147476737 14699 0 0 63 0;} @font-face 	{font-family:OpenSymbol; 	mso-font-alt:"Courier New"; 	mso-font-charset:0; 	mso-generic-font-family:auto; 	mso-font-pitch:variable; 	mso-font-signature:-2147483473 268561642 0 0 1 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman";} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;Convolution is the smearing of one function against another so that the output looks a little like both. Mathematically it can be written as&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: center;font-family:arial;" align="center"&gt;&lt;span style="font-size:100%;"&gt;&lt;a style="font-family: arial;" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/Sm3F7d-eQjI/AAAAAAAAAOE/CT2ZBfLGXvc/s1600-h/1.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 38px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/Sm3F7d-eQjI/AAAAAAAAAOE/CT2ZBfLGXvc/s320/1.bmp" alt="" id="BLOGGER_PHOTO_ID_5363160356717740594" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;In Fourier space, however, the convolution becomes a multiplication. That is the FT of a convolution of two functions in space is the product of the two functions’ FTs. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: center;font-family:arial;" align="center"&gt;&lt;span style="font-size:100%;"&gt;FT [ f &lt;/span&gt;&lt;span style="font-size:100%;"&gt;∗&lt;/span&gt;&lt;span style="font-size:100%;"&gt;g ]=FG&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;This is called the convolution theorem. It is this property of the convolution that makes it very convenient to do image enhancements and suppressions in the Fourier domain. We can just create a filter mask to remove or enhance some frequencies, multiply it to the image’s FT and do the inverse transform.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;In this activity we first demonstrate some examples of convolution then use the theorem to enhance images.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;A7A. Convolution Theorem&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;An image of a dot that is one pixel thick can be used to represent a dirac delta.We get the FT of two dots (dirac deltas) symmetric about the and see that it is a sinusoid pattern.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1025" type="#_x0000_t75" style="'width:429.75pt;height:174.75pt'"&gt;  &lt;v:imagedata src="file:///C:\DOCUME~1\ave\LOCALS~1\Temp\msohtml1\01\clip_image003.png" title="2"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;a style="font-family: arial;" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/Sm3F7nluj9I/AAAAAAAAAOM/zpLKFct1YBs/s1600-h/2.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 130px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/Sm3F7nluj9I/AAAAAAAAAOM/zpLKFct1YBs/s320/2.bmp" alt="" id="BLOGGER_PHOTO_ID_5363160359298306002" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;From the formula above, we can solve that the convolution of a dirac delta and a function f(t) results in a replication of f(t) in the location of the dirac delta&lt;/span&gt;&lt;span style="font-size:100%;"&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;A convolution of the two dirac deltas, above and a circle would just result to two circles in the locations of the peaks. From the convolution theorem, it can be predicted that the FT of this would just be a product of an Airy disk and the sinusoid pattern. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: center;font-family:arial;" align="center"&gt;&lt;span style="font-size:100%;"&gt;&lt;a style="font-family: arial;" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm3F7rs0vkI/AAAAAAAAAOU/WFtB0-IdtXQ/s1600-h/3.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 130px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm3F7rs0vkI/AAAAAAAAAOU/WFtB0-IdtXQ/s320/3.bmp" alt="" id="BLOGGER_PHOTO_ID_5363160360401813058" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;As the circle’s radius is reduced, the Airy disk becomes smaller. This can be seen in the images below. The sinusoid pattern however remains unaffected.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: center;font-family:arial;" align="center"&gt;&lt;span style="font-size:100%;"&gt;&lt;a style="font-family: arial;" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm3F78yvQWI/AAAAAAAAAOc/s4jX_iTzW78/s1600-h/4.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 130px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm3F78yvQWI/AAAAAAAAAOc/s4jX_iTzW78/s320/4.bmp" alt="" id="BLOGGER_PHOTO_ID_5363160364990021986" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: center;font-family:arial;" align="center"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;a style="font-family: arial;" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/Sm3F8C1YoHI/AAAAAAAAAOk/WvJ0-WtBKEY/s1600-h/5.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 130px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/Sm3F8C1YoHI/AAAAAAAAAOk/WvJ0-WtBKEY/s320/5.bmp" alt="" id="BLOGGER_PHOTO_ID_5363160366611734642" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm3GtEGi01I/AAAAAAAAAOs/KViQM3vqVUo/s1600-h/6.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 130px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm3GtEGi01I/AAAAAAAAAOs/KViQM3vqVUo/s320/6.bmp" alt="" id="BLOGGER_PHOTO_ID_5363161208765731666" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;We already know from previous activities that the FT of a square is a sync pattern. The FT of the convolution of a square and two dirac deltas would therefore be just a sinc pattern with sinusoid linings. Increasing the square size reduces the size of the sinc pattern. The sinusoid retains its frequency.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1031" type="#_x0000_t75" style="'width:430.5pt;height:174.75pt'"&gt;  &lt;v:imagedata src="file:///C:\DOCUME~1\ave\LOCALS~1\Temp\msohtml1\01\clip_image013.png" title="7"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;br /&gt;&lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm3GtsYktDI/AAAAAAAAAO0/UV-bC4IFa7w/s1600-h/7.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 130px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm3GtsYktDI/AAAAAAAAAO0/UV-bC4IFa7w/s320/7.bmp" alt="" id="BLOGGER_PHOTO_ID_5363161219578770482" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm3GtwOjouI/AAAAAAAAAO8/jWyMBbJ16KI/s1600-h/8.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 130px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm3GtwOjouI/AAAAAAAAAO8/jWyMBbJ16KI/s320/8.bmp" alt="" id="BLOGGER_PHOTO_ID_5363161220610499298" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/Sm3GuDMzB_I/AAAAAAAAAPE/tw4Ym862BNo/s1600-h/9.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 130px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/Sm3GuDMzB_I/AAAAAAAAAPE/tw4Ym862BNo/s320/9.bmp" alt="" id="BLOGGER_PHOTO_ID_5363161225703393266" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;Next the squares are replaced by Gaussians of varying variance. The resulting FT is that of a Gaussian with sinusoid patterns. Like the circle and square pairs the FT pattern becomes smaller as the variance becomes bigger.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: center; font-family: arial;" align="center"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/Sm3GuJu5TNI/AAAAAAAAAPM/X1yT7BlReKI/s1600-h/10.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 130px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/Sm3GuJu5TNI/AAAAAAAAAPM/X1yT7BlReKI/s320/10.bmp" alt="" id="BLOGGER_PHOTO_ID_5363161227457023186" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm3HKaxxZlI/AAAAAAAAAPU/22j56SjRwkg/s1600-h/11.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 130px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm3HKaxxZlI/AAAAAAAAAPU/22j56SjRwkg/s320/11.bmp" alt="" id="BLOGGER_PHOTO_ID_5363161713068828242" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/Sm3HKeXbnzI/AAAAAAAAAPc/TZS4d6pQmlY/s1600-h/12.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 130px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/Sm3HKeXbnzI/AAAAAAAAAPc/TZS4d6pQmlY/s320/12.bmp" alt="" id="BLOGGER_PHOTO_ID_5363161714032090930" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1034" type="#_x0000_t75" style="'width:431.25pt;height:175.5pt'"&gt;  &lt;v:imagedata src="file:///C:\DOCUME~1\ave\LOCALS~1\Temp\msohtml1\01\clip_image019.png" title="10"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1035" type="#_x0000_t75" style="'width:429.75pt;height:174pt'"&gt;  &lt;v:imagedata src="file:///C:\DOCUME~1\ave\LOCALS~1\Temp\msohtml1\01\clip_image021.png" title="11"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1036" type="#_x0000_t75" style="'width:430.5pt;height:174.75pt'"&gt;  &lt;v:imagedata src="file:///C:\DOCUME~1\ave\LOCALS~1\Temp\msohtml1\01\clip_image023.png" title="12"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;Lastly, the values of the Gaussian were inverted as imaged below. Checking its fft, I found out that the values were just the negative of that of the fft of the original Gaussian.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center; font-family: arial;" align="center"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm3HKgqQS8I/AAAAAAAAAPk/Hf_YIm-4Qhc/s1600-h/13.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 288px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Sm3HKgqQS8I/AAAAAAAAAPk/Hf_YIm-4Qhc/s320/13.bmp" alt="" id="BLOGGER_PHOTO_ID_5363161714647911362" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;The program that I used for this part is as follows.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:78%;"&gt;clc;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span  lang="ES" style="font-size:78%;"&gt;x = [-1:0.005:1];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span  lang="ES" style="font-size:78%;"&gt;[X,Y] = meshgrid(x);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span  lang="ES" style="font-size:78%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:78%;"&gt;/////dots&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:78%;"&gt;rad=0.25;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:78%;"&gt;r1 = sqrt((X-0.5).^2 + Y.^2); r2 = sqrt((X+0.5).^2 + Y.^2);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:78%;"&gt;dots = zeros(size(X,1), size(X,2));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:78%;"&gt;dots(find (r1 &lt;=rad )) = 1.0; dots(find (r2 &lt;=rad )) = 1.0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:78%;"&gt;//one pixel dots&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:78%;"&gt;//dots(find(X==0.5 &amp;amp; Y==0))=1;dots(find(X==-0.5 &amp;amp; Y==0))=1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:78%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:78%;"&gt;//////squares&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:78%;"&gt;d=0.25; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:78%;"&gt;square= zeros(size(X,1), size(X,2));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:78%;"&gt;square(find(abs(X-0.5)&lt;=d &amp;amp; abs(Y) &lt;=d))=1.0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:78%;"&gt;square(find(abs(X+0.5)&lt;=d &amp;amp; abs(Y) &lt;=d))=1.0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:78%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:78%;"&gt;/////// gaussian&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:78%;"&gt;sigma=0.005;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:78%;"&gt;r1=sqrt((X-0.5).^2 +Y.^2);r2=sqrt((X+0.5).^2 +Y.^2);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span  lang="ES" style="font-size:78%;"&gt;g1=exp((-(r1).^2)/sigma^2) ;g2=exp((-(r2).^2)/sigma^2);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:78%;"&gt;gaussian = zeros(size(X,1), size(X,2));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:78%;"&gt;gaussian= g1 + g2; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" face="arial" style="text-align: justify;"&gt;&lt;span style="font-size:78%;"&gt;gaussian=gaussian/max(gaussian);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" face="arial" style="text-align: justify;"&gt;&lt;span style="font-size:78%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" face="arial" style="text-align: justify;"&gt;&lt;span style="font-size:78%;"&gt;/////// invert gaussian&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" face="arial" style="text-align: justify;"&gt;&lt;span style="font-size:78%;"&gt;invgaussian=1-gaussian;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" face="arial" style="text-align: justify;"&gt;&lt;span style="font-size:78%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" face="arial" style="text-align: justify;"&gt;&lt;span style="font-size:78%;"&gt;image=square;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: arial;"&gt;&lt;span style="font-size:78%;"&gt;scf(1);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: arial;"&gt;&lt;span style="font-size:78%;"&gt;subplot(1,2,1);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: arial;"&gt;&lt;span style="font-size:78%;"&gt;imshow(image,[]);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: arial;"&gt;&lt;span style="font-size:78%;"&gt;//scf(2);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: arial;"&gt;&lt;span style="font-size:78%;"&gt;subplot(1,2,2);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify; font-family: arial;"&gt;&lt;span style="font-size:78%;"&gt;imshow(fftshift(abs(fft2(image))),[]);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:78%;"&gt;    &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;A7B Fingerprint Ridge Enhancements&lt;br /&gt;&lt;br /&gt;Below is an image of a fingerprint. Notice that some of the ridges are indistinct and that some parts are smudged.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SnuKdO4oILI/AAAAAAAAAWU/LX7VfnT_XRU/s1600-h/14.bmp"&gt;&lt;img style="cursor: pointer; width: 200px; height: 200px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SnuKdO4oILI/AAAAAAAAAWU/LX7VfnT_XRU/s200/14.bmp" alt="" id="BLOGGER_PHOTO_ID_5367035615758524594" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;Our task was to do filtering in the frequency domain such that the smudges are removed and the ridges are enhanced. The fft of the fingerprint is as shown below&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/SnuKdTR0JzI/AAAAAAAAAWc/zIBSSB2SyZE/s1600-h/15.bmp"&gt;&lt;img style="cursor: pointer; width: 200px; height: 200px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/SnuKdTR0JzI/AAAAAAAAAWc/zIBSSB2SyZE/s200/15.bmp" alt="" id="BLOGGER_PHOTO_ID_5367035616937912114" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-size:85%;"&gt;I interpreted the higher frequency areas to be from the ridges while the rest are from the noise.&lt;br /&gt;&lt;br /&gt;For my first set of filters, I thought of using the im2bw() command to threshold the fft image so that only the high frequency areas are imaged. The image below shows the mask, the masked fft and the enhanced fingerprint for 0.2, 0.3 and 0.4 threshholds. We can see that for 0.2 and 0.3 although the ridges are enhanced so are the smudges. Threshold 0.4 clears the smudges but some information are also erased.&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/_rIBnkPGB9po/SnuKeOAS9cI/AAAAAAAAAWk/rHKgz4r-YE8/s1600-h/16.bmp"&gt;&lt;img style="cursor: pointer; width: 199px; height: 200px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SnuKeOAS9cI/AAAAAAAAAWk/rHKgz4r-YE8/s200/16.bmp" alt="" id="BLOGGER_PHOTO_ID_5367035632702125506" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;Next I tried the contrast enhancement and the thresholding of GIMP to create the filters. The firrst two filters did enhance the ridges...&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SnuKeap2CNI/AAAAAAAAAWs/MCIks2OASWE/s1600-h/17.bmp"&gt;&lt;img style="cursor: pointer; width: 200px; height: 134px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SnuKeap2CNI/AAAAAAAAAWs/MCIks2OASWE/s200/17.bmp" alt="" id="BLOGGER_PHOTO_ID_5367035636097616082" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;but my best result was&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/SnuKe9t6KXI/AAAAAAAAAW0/AF2DRFj0ZtI/s1600-h/18.bmp"&gt;&lt;img style="cursor: pointer; width: 200px; height: 66px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/SnuKe9t6KXI/AAAAAAAAAW0/AF2DRFj0ZtI/s200/18.bmp" alt="" id="BLOGGER_PHOTO_ID_5367035645509904754" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-size:85%;"&gt;Lastly, taking an idea from the &lt;/span&gt;first part of activity A, I tried an inverted Gaussian filter.&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://4.bp.blogspot.com/_rIBnkPGB9po/SnuL22_XWuI/AAAAAAAAAW8/dVhdw-BjUl8/s1600-h/19.bmp"&gt;&lt;img style="cursor: pointer; width: 200px; height: 66px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SnuL22_XWuI/AAAAAAAAAW8/dVhdw-BjUl8/s200/19.bmp" alt="" id="BLOGGER_PHOTO_ID_5367037155532561122" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;A7C. Line Removal&lt;br /&gt;The image of the lunar landing below has a series of vertical lines in it.&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/SnwIiDrwTMI/AAAAAAAAAXE/AKcLYynPfk0/s1600-h/hi_res_vertical_lggray.gif"&gt;&lt;img style="cursor: pointer; width: 200px; height: 150px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/SnwIiDrwTMI/AAAAAAAAAXE/AKcLYynPfk0/s200/hi_res_vertical_lggray.gif" alt="" id="BLOGGER_PHOTO_ID_5367174237116189890" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;We know from our previous activities that these lines would correspond to the bright spots aligned horizontaly on the fft.&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SnwIiu-A1LI/AAAAAAAAAXM/zf-wPTPj1j8/s1600-h/fft.bmp"&gt;&lt;img style="cursor: pointer; width: 200px; height: 150px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SnwIiu-A1LI/AAAAAAAAAXM/zf-wPTPj1j8/s200/fft.bmp" alt="" id="BLOGGER_PHOTO_ID_5367174248735495346" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;We therefore use the filter&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SnwIjOcNlgI/AAAAAAAAAXU/3S6ZikAO8ds/s1600-h/filter2.bmp"&gt;&lt;img style="cursor: pointer; width: 200px; height: 150px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SnwIjOcNlgI/AAAAAAAAAXU/3S6ZikAO8ds/s200/filter2.bmp" alt="" id="BLOGGER_PHOTO_ID_5367174257183659522" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;The enhanced image is now free of lines.&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/_rIBnkPGB9po/SnwIjoJRa-I/AAAAAAAAAXk/t9JCDbWT6cc/s1600-h/enhanced2.bmp"&gt;&lt;img style="cursor: pointer; width: 200px; height: 150px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SnwIjoJRa-I/AAAAAAAAAXk/t9JCDbWT6cc/s200/enhanced2.bmp" alt="" id="BLOGGER_PHOTO_ID_5367174264083540962" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-size:85%;"&gt;A7D Removal Of Canvas Weave&lt;br /&gt;&lt;br /&gt;Th&lt;/span&gt;e painting image below has its canvas weave pattern showing through.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SnwO2tpMnlI/AAAAAAAAAXs/5IqjBxWn3H4/s1600-h/canvasweavegray.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 144px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SnwO2tpMnlI/AAAAAAAAAXs/5IqjBxWn3H4/s200/canvasweavegray.JPG" alt="" id="BLOGGER_PHOTO_ID_5367181189046902354" border="0" /&gt;&lt;/a&gt;From previous activities, we know that the cross hatch pattern are just crisscrossing sines and will therefore show up in the fft as pairs of dots.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SnwO3GTikXI/AAAAAAAAAX0/7C3v-BSC4pc/s1600-h/fft.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 144px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SnwO3GTikXI/AAAAAAAAAX0/7C3v-BSC4pc/s200/fft.jpg" alt="" id="BLOGGER_PHOTO_ID_5367181195666952562" border="0" /&gt;&lt;/a&gt;To filter out the dots, we use&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/SnwO3QhTzAI/AAAAAAAAAX8/-SLtl2jyee8/s1600-h/filter3.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 144px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/SnwO3QhTzAI/AAAAAAAAAX8/-SLtl2jyee8/s200/filter3.bmp" alt="" id="BLOGGER_PHOTO_ID_5367181198409059330" border="0" /&gt;&lt;/a&gt;The enhanced image is&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SnwO4hCHDwI/AAAAAAAAAYM/8fwLyqhrkDw/s1600-h/enhanced.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 144px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SnwO4hCHDwI/AAAAAAAAAYM/8fwLyqhrkDw/s200/enhanced.bmp" alt="" id="BLOGGER_PHOTO_ID_5367181220021473026" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;We expect the filtered out pattern to look like the weave when it is inversed fft.&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SnwO4V_dW0I/AAAAAAAAAYE/AsEybYLr_kM/s1600-h/weave.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 144px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SnwO4V_dW0I/AAAAAAAAAYE/AsEybYLr_kM/s200/weave.bmp" alt="" id="BLOGGER_PHOTO_ID_5367181217057561410" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;In this activity, I give myself a grade of ten because I was able to do all that is required.&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&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/6557682483856522377-5331166994253208415?l=thinktanknicherry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thinktanknicherry.blogspot.com/feeds/5331166994253208415/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thinktanknicherry.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/6557682483856522377/posts/default/5331166994253208415'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/5331166994253208415'/><link rel='alternate' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/07/a7-enhancement-in-frequency-domain.html' title='A7 Enhancement In The Frequency Domain'/><author><name>cherry</name><uri>http://www.blogger.com/profile/01475793529692257483</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/_rIBnkPGB9po/Sm3F7d-eQjI/AAAAAAAAAOE/CT2ZBfLGXvc/s72-c/1.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6557682483856522377.post-9021671113239367636</id><published>2009-07-11T22:42:00.000-07:00</published><updated>2009-07-14T22:13:31.767-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FFT'/><category scheme='http://www.blogger.com/atom/ns#' term='2d FT'/><title type='text'>A6 PROPERTIES OF THE 2D TRANSFORM</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 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: arial;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;    &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;In A5 we familiarized ourselves with the 2D transform. In this activity we take a more in depth look at some of the properties of the 2D transform.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;i style=""&gt;A6A Familiarization with FT of Different 2D Patterns&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;b style=""&gt;&lt;i style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;The FT of a 2D image will give us the resulting diffraction pattern for an aperture of the same shape. It is therefore important to familiarize ourselves with the FT of some common 2D patterns.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;i style=""&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;i style=""&gt;Annulus&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;The FT of an annulus looks like the FT of a circle (Airy disk) with some of the fringes missing.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;div style="text-align: center;"&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/Sll6mtsiSgI/AAAAAAAAALk/qc9nbPnKFqk/s1600-h/annulus.bmp"&gt;&lt;img style="cursor: pointer; width: 320px; height: 122px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/Sll6mtsiSgI/AAAAAAAAALk/qc9nbPnKFqk/s320/annulus.bmp" alt="" id="BLOGGER_PHOTO_ID_5357448037253925378" border="0" /&gt;&lt;/a&gt;&lt;br /&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 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: arial;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal"  style="text-align: center;font-family:arial;" align="center"&gt;&lt;span style="font-size:100%;"&gt;Figure 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;div face="arial" style="text-align: justify;"&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 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;i style=""&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;i style=""&gt;Square&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;i style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;Mathematically, the FT of a square are sync functions along the x and y axes. This can be seen below.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;/div&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/Sll6mx_SDuI/AAAAAAAAALs/AeTMs9LxhP4/s1600-h/square.bmp"&gt;&lt;img style="cursor: pointer; width: 320px; height: 124px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/Sll6mx_SDuI/AAAAAAAAALs/AeTMs9LxhP4/s320/square.bmp" alt="" id="BLOGGER_PHOTO_ID_5357448038406295266" border="0" /&gt;&lt;/a&gt;&lt;br /&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 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: arial;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal"  style="text-align: center;font-family:arial;" align="center"&gt;&lt;span style="font-size:100%;"&gt;Figure 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&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="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: arial;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;i style=""&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;i style=""&gt;Square Annulus&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;The FT is similar to that of the square, but with some fringes missing.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: center;"&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/Sll6mx0N8RI/AAAAAAAAAL0/Qwlc2dc5wQE/s1600-h/square+an.bmp"&gt;&lt;img style="cursor: pointer; width: 320px; height: 122px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/Sll6mx0N8RI/AAAAAAAAAL0/Qwlc2dc5wQE/s320/square+an.bmp" alt="" id="BLOGGER_PHOTO_ID_5357448038359888146" border="0" /&gt;&lt;/a&gt;&lt;br /&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 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: arial;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal"  style="text-align: center;font-family:arial;" align="center"&gt;&lt;span style="font-size:100%;"&gt;Figure 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: center;font-family:arial;" align="center"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;i style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="text-align: justify;font-family:arial;" class="MsoNormal"&gt;&lt;span style="font-size:100%;"&gt;&lt;i style=""&gt;Two Slits&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;div face="arial" style="text-align: justify;"&gt;  &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;" class="MsoNormal"&gt;&lt;span style="font-size:100%;"&gt;&lt;i style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: arial;"&gt;  &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;" class="MsoNormal"&gt;&lt;span style="font-size:100%;"&gt;This is actually a simulation of Thompson Young’s Double slit experiment, and our results agree with the experimental results.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/Sll6nJfL_OI/AAAAAAAAAL8/Gkuf-ASsttc/s1600-h/slits.bmp"&gt;&lt;img style="cursor: pointer; width: 320px; height: 123px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/Sll6nJfL_OI/AAAAAAAAAL8/Gkuf-ASsttc/s320/slits.bmp" alt="" id="BLOGGER_PHOTO_ID_5357448044714130658" border="0" /&gt;&lt;/a&gt;&lt;br /&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 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: arial;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal"  style="text-align: center;font-family:arial;" align="center"&gt;&lt;span style="font-size:100%;"&gt;Figure 4&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: center;font-family:arial;" align="center"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;i style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p  style="text-align: justify;font-family:arial;" class="MsoNormal"&gt;&lt;span style="font-size:100%;"&gt;&lt;i style=""&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:arial;" class="MsoNormal"&gt;&lt;span style="font-size:100%;"&gt;&lt;i style=""&gt;Two Dots&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: arial;"&gt;  &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;" class="MsoNormal"&gt;&lt;span style="font-size:100%;"&gt;&lt;i style=""&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; font-family: arial;"&gt;  &lt;/div&gt;&lt;p  style="text-align: justify;font-family:arial;" class="MsoNormal"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="text-align: justify;font-family:arial;" class="MsoNormal"&gt;&lt;span style="font-size:100%;"&gt;The FT looks like that of the circle but with vertical fringes due to destructive interference from the signals coming from the two dots.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style=";font-family:arial;font-size:100%;"  &gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/Sll6nbyHzLI/AAAAAAAAAME/t2BwlKtKgYA/s1600-h/dots.bmp"&gt;&lt;img style="cursor: pointer; width: 320px; height: 122px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/Sll6nbyHzLI/AAAAAAAAAME/t2BwlKtKgYA/s320/dots.bmp" alt="" id="BLOGGER_PHOTO_ID_5357448049625386162" border="0" /&gt;&lt;/a&gt;&lt;br /&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 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: arial;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal"  style="text-align: center;font-family:arial;" align="center"&gt;&lt;span style="font-size:100%;"&gt;Figure 5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal"  style="text-align: center;font-family:arial;" align="center"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;The 2D patterns are generated in Scilab using the following code&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span  lang="ES" style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span  lang="ES" style="font-size:100%;"&gt;/////// 6A&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span  lang="ES" style="font-size:100%;"&gt;x = [-1:0.01:1];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span  lang="ES" style="font-size:100%;"&gt;[X,Y] = meshgrid(x);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span  lang="FI" style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span  lang="FI" style="font-size:100%;"&gt;/////////// annulus&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span  lang="FI" style="font-size:100%;"&gt;r = sqrt(X.^2 + Y.^2);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;annulus = zeros(size(X,1), size(X,2));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;annulus(find (r &lt;=0.3 &amp;amp; r&gt;=0.2)) = 1.0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;////// square&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;square= zeros(size(X,1), size(X,2));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;square(find(abs(X)&lt;=0.4 &amp;amp; abs(Y) &lt;=0.4&lt;span style=""&gt;  &lt;/span&gt;))=1.0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;////// square annulus&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;square2=square;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;square2(find(abs(X)&lt;=0.25 &amp;amp; abs(Y) &lt;=0.25&lt;span style=""&gt;  &lt;/span&gt;))=0.0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;//////slits&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;slits= zeros(size(X,1), size(X,2));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;slits(find(abs(X)&gt;=0.47 &amp;amp; abs(X) &lt;=0.5 ))=1.0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;//////dots&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;r1 = sqrt((X-0.5).^2 + Y.^2); r2 = sqrt((X+0.5).^2 + Y.^2);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;dots = zeros(size(X,1), size(X,2));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;dots(find (r1 &lt;=0.05 )) = 1.0; dots(find (r2 &lt;=0.05 )) = 1.0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;image=dots;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;subplot(1,2,1);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;imshow(image,[]);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify; font-style: italic; color: rgb(102, 102, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;subplot(1,2,2);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="color: rgb(102, 102, 0);"&gt;imshow(fftshift(abs(fft2(image))),[])&lt;/span&gt;;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;div style="text-align: justify; font-family: arial;"&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="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;"&gt;A6B Anamorphic Property of the Fourier Transform&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;The FT of a sinusoid is two peaks located at its positive and negative frequency values. Increasing the frequency therefore makes the peaks farther apart. We can also say that because the spacing between dark and light bands becomes narrower, since the FT is in inverse space, the spacing between the peaks will be wider. This is shown in the images below. The images in the first row are the sinusoids while those below are the FTs.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/Sll94p9nwxI/AAAAAAAAAMM/ypomr-U3Ulk/s1600-h/changing+f.bmp"&gt;&lt;img style="cursor: pointer; width: 306px; height: 177px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/Sll94p9nwxI/AAAAAAAAAMM/ypomr-U3Ulk/s320/changing+f.bmp" alt="" id="BLOGGER_PHOTO_ID_5357451644024374034" border="0" /&gt;&lt;/a&gt;&lt;br /&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 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: arial;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal"  style="text-align: center;font-family:arial;" align="center"&gt;&lt;span style="font-size:100%;"&gt;Figure 6&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: center;font-family:arial;" align="center"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: center;font-family:arial;" align="center"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;Real digital images do not have negative values. Therefore if we want to simulate a digital image, we must add a constant bias to our sinusoids. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style=";font-family:arial;font-size:100%;"  &gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Sll96PmedyI/AAAAAAAAAMU/r2exdWrFGOs/s1600-h/changing+bias.bmp"&gt;&lt;img style="cursor: pointer; width: 320px; height: 180px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Sll96PmedyI/AAAAAAAAAMU/r2exdWrFGOs/s320/changing+bias.bmp" alt="" id="BLOGGER_PHOTO_ID_5357451671307712290" border="0" /&gt;&lt;/a&gt;&lt;br /&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 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: arial;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal"  style="text-align: center;font-family:arial;" align="center"&gt;&lt;span style="font-size:100%;"&gt;Figure 7&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: center;font-family:arial;" align="center"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: center;font-family:arial;" align="center"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;The results of the FTs when bias is added to the sinusoid are shown above. As we can see, no matter what the constant bias, its FT will always be a peak in the origin. So to find the frequency of the sinusoid we just have to ignore the central frequency.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;The same is true when the bias is a sinusoid with very low frequencies. We already demonstrated above that the lower the frequencies, the closer to the origin the peaks will be. The image below is the FT of a sinusoid with frequency = 4 with a sinusoid bias of frequency = 0.25. The peaks of the original sinusoid are unchanged; however, there are now to extra peaks very close to the origin and almost looking like the single peak of the constant bias. Therefore to find the original frequencies we also just ignore the central and “almost” central frequencies.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style=";font-family:arial;font-size:100%;"  &gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/Sll9781-k-I/AAAAAAAAAMc/Tcv-sYh1yTo/s1600-h/adding+sine+bias.bmp"&gt;&lt;img style="cursor: pointer; width: 288px; height: 290px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/Sll9781-k-I/AAAAAAAAAMc/Tcv-sYh1yTo/s320/adding+sine+bias.bmp" alt="" id="BLOGGER_PHOTO_ID_5357451700632196066" border="0" /&gt;&lt;/a&gt;&lt;br /&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 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="font-family: arial;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal"  style="text-align: center;font-family:arial;" align="center"&gt;&lt;span style="font-size:100%;"&gt;Figure 8&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: center;font-family:arial;" align="center"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"  style="text-align: justify;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;In the 2D FT a rotation of the sinusoids results to a rotation in the FTs. This is shown below. The sinusoid is rotated from 0˚ to 45˚ to 90º to 135º. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SlmA3NthBDI/AAAAAAAAAM0/V8E464MMum4/s1600-h/changing+theta.bmp"&gt;&lt;img style="cursor: pointer; width: 320px; height: 159px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SlmA3NthBDI/AAAAAAAAAM0/V8E464MMum4/s320/changing+theta.bmp" alt="" id="BLOGGER_PHOTO_ID_5357454917795644466" border="0" /&gt;&lt;/a&gt;&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="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;Next we created a pattern of sinusoids in x and y using the following formula &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span  lang="ES" style="font-size:100%;"&gt;sine = sin(2*%pi*4*X).*sin(2*%pi*4*Y). &lt;/span&gt;&lt;span style="font-size:100%;"&gt;The resulting pattern and FT are shown below.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;/div&gt;&lt;/div&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/Sll9-vWXXeI/AAAAAAAAAMs/kKztZJiv6gY/s1600-h/product+of+sines.bmp"&gt;&lt;img style="cursor: pointer; width: 320px; height: 161px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/Sll9-vWXXeI/AAAAAAAAAMs/kKztZJiv6gY/s320/product+of+sines.bmp" alt="" id="BLOGGER_PHOTO_ID_5357451748549549538" border="0" /&gt;&lt;/a&gt;&lt;br /&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 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PlaceType"&gt;&lt;/o:smarttagtype&gt;&lt;/span&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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if !mso]&gt;&lt;object classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id="ieooui"&gt;&lt;/object&gt; &lt;style&gt; st1\:*{behavior:url(#ieooui) } &lt;/style&gt; &lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size:100%;"&gt;Figure 10&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;We then added several rotated sinusoids to this pattern and predict the &lt;st1:placetype st="on"&gt;FT.&lt;/st1:placetype&gt; Knowing that the FT has the property of linearity, we can predict that adding the sinusoids from Figure 9 to the sinusoid in Figure 10 will result to just the superposition of their FTs. Taking the actual FTs, we indeeed had correct predictions.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: center;"&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/Sll99HxWitI/AAAAAAAAAMk/3_BNVV9Rrv4/s1600-h/adding+rotated+sines.bmp"&gt;&lt;img style="cursor: pointer; width: 320px; height: 162px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/Sll99HxWitI/AAAAAAAAAMk/3_BNVV9Rrv4/s320/adding+rotated+sines.bmp" alt="" id="BLOGGER_PHOTO_ID_5357451720745454290" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: center;"&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 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"&gt;&lt;link rel="Edit-Time-Data" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_editdata.mso"&gt;&lt;!--[if !mso]&gt; &lt;style&gt; v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} &lt;/style&gt; &lt;![endif]--&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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;/p&gt;&lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size:100%;"&gt;Figure 11&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;Then just for fun, I tried adding all the sinusoids together.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style=";font-family:&amp;quot;;font-size:100%;"  &gt;&lt;!--[if gte vml 1]&gt;&lt;v:shapetype id="_x0000_t75" coordsize="21600,21600" spt="75" preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"&gt;  &lt;v:stroke joinstyle="miter"&gt;  &lt;v:formulas&gt;   &lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;   &lt;v:f eqn="sum @0 1 0"&gt;   &lt;v:f eqn="sum 0 0 @1"&gt;   &lt;v:f eqn="prod @2 1 2"&gt;   &lt;v:f eqn="prod @3 21600 pixelWidth"&gt;   &lt;v:f eqn="prod @3 21600 pixelHeight"&gt;   &lt;v:f eqn="sum @0 0 1"&gt;   &lt;v:f eqn="prod @6 1 2"&gt;   &lt;v:f eqn="prod @7 21600 pixelWidth"&gt;   &lt;v:f eqn="sum @8 21600 0"&gt;   &lt;v:f eqn="prod @7 21600 pixelHeight"&gt;   &lt;v:f eqn="sum @10 21600 0"&gt;  &lt;/v:formulas&gt;  &lt;v:path extrusionok="f" gradientshapeok="t" connecttype="rect"&gt;  &lt;o:lock ext="edit" aspectratio="t"&gt; &lt;/v:shapetype&gt;&lt;v:shape id="_x0000_i1025" type="#_x0000_t75" style="'width:5in;"&gt;  &lt;v:imagedata src="file:///C:\DOCUME~1\VIP\LOCALS~1\Temp\msohtml1\01\clip_image001.png" title="fun"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&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;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;span style="font-size:100%;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/SlmB_fES6wI/AAAAAAAAAM8/Ks4MzlZGUl4/s1600-h/fun.bmp"&gt;&lt;img style="cursor: pointer; width: 320px; height: 162px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/SlmB_fES6wI/AAAAAAAAAM8/Ks4MzlZGUl4/s320/fun.bmp" alt="" id="BLOGGER_PHOTO_ID_5357456159405173506" border="0" /&gt;&lt;/a&gt;&lt;br /&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 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="font-size:100%;"&gt;Figure 12&lt;o:p&gt;&lt;/o:p&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: left;"&gt;In this activity, I understood all that I did so I give myself a grade of 10.&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style="font-size:10;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&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/6557682483856522377-9021671113239367636?l=thinktanknicherry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thinktanknicherry.blogspot.com/feeds/9021671113239367636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/07/a6-properties-of-2d-transform.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/9021671113239367636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/9021671113239367636'/><link rel='alternate' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/07/a6-properties-of-2d-transform.html' title='A6 PROPERTIES OF THE 2D TRANSFORM'/><author><name>cherry</name><uri>http://www.blogger.com/profile/01475793529692257483</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/_rIBnkPGB9po/Sll6mtsiSgI/AAAAAAAAALk/qc9nbPnKFqk/s72-c/annulus.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6557682483856522377.post-9110890570150744491</id><published>2009-07-06T18:00:00.000-07:00</published><updated>2009-07-14T22:23:04.223-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='convolution'/><category scheme='http://www.blogger.com/atom/ns#' term='FFT'/><category scheme='http://www.blogger.com/atom/ns#' term='fourier transform correlation'/><category scheme='http://www.blogger.com/atom/ns#' term='FFT2'/><title type='text'>A5 Fourier Transform Model Of Image Formation</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 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p style="color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;This activity is a demonstration of the many uses of the Fourier Transform.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;We did this part by part and here are my results.&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;5.A FAMILIARIZATION WITH DISCRETE FFT&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align: justify; color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify; color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;The FFT of an image is a transformation into inverse space or spatial frequency.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; color: rgb(0, 102, 0);"&gt;  &lt;/div&gt;&lt;p style="text-align: justify; color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;The function is built into Scilab and here are our results when fft2 is applied to a circle and to the letter A.&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: center; color: rgb(0, 102, 0);" class="MsoNormal"&gt; &lt;span style="font-weight: bold;"&gt;Original Image&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: center; color: rgb(0, 102, 0);"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SlNiIrOstdI/AAAAAAAAAIE/JAHc9XK6xE4/s1600-h/fft2+fft2+circle.bmp"&gt;&lt;img style="cursor: pointer; width: 200px; height: 200px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SlNiIrOstdI/AAAAAAAAAIE/JAHc9XK6xE4/s200/fft2+fft2+circle.bmp" alt="" id="BLOGGER_PHOTO_ID_5355732283056502226" border="0" /&gt;&lt;/a&gt;&lt;span style="text-decoration: underline;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt; &lt;p style="text-align: center; font-weight: bold; color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="text-align: center; color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-weight: bold;"&gt;                                                                          FFT  and                                  zoomed                                Shifted FFT &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="text-align: left; color: rgb(0, 102, 0);"&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SlNiHwOHxKI/AAAAAAAAAHs/ac7fHalVTL4/s1600-h/fft2+circle.bmp"&gt;&lt;img style="cursor: pointer; width: 200px; height: 200px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SlNiHwOHxKI/AAAAAAAAAHs/ac7fHalVTL4/s200/fft2+circle.bmp" alt="" id="BLOGGER_PHOTO_ID_5355732267216389282" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SlNiIeZHpEI/AAAAAAAAAH8/Jr9CM40jAmw/s1600-h/fftshift+fft2+circle+zoom.bmp"&gt;&lt;img style="cursor: pointer; width: 200px; height: 200px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SlNiIeZHpEI/AAAAAAAAAH8/Jr9CM40jAmw/s200/fftshift+fft2+circle+zoom.bmp" alt="" id="BLOGGER_PHOTO_ID_5355732279610549314" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;FFT of FFT&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SlNiIrOstdI/AAAAAAAAAIE/JAHc9XK6xE4/s1600-h/fft2+fft2+circle.bmp"&gt;&lt;img style="cursor: pointer; width: 200px; height: 200px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SlNiIrOstdI/AAAAAAAAAIE/JAHc9XK6xE4/s200/fft2+fft2+circle.bmp" alt="" id="BLOGGER_PHOTO_ID_5355732283056502226" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Original Image&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SlNkCfAXWWI/AAAAAAAAAIM/LQbAFa7qp_I/s1600-h/AA.bmp"&gt;&lt;img style="cursor: pointer; width: 128px; height: 128px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SlNkCfAXWWI/AAAAAAAAAIM/LQbAFa7qp_I/s200/AA.bmp" alt="" id="BLOGGER_PHOTO_ID_5355734375719197026" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;FFT                                  and zoomed                           Shifted FFT  &lt;/span&gt;&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://1.bp.blogspot.com/_rIBnkPGB9po/SlNkC0MwnZI/AAAAAAAAAIU/8ye7Ha28GmI/s1600-h/fft2+A.bmp"&gt;&lt;img style="cursor: pointer; width: 200px; height: 133px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SlNkC0MwnZI/AAAAAAAAAIU/8ye7Ha28GmI/s200/fft2+A.bmp" alt="" id="BLOGGER_PHOTO_ID_5355734381408329106" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SlNlDX72OSI/AAAAAAAAAI0/RaYRmZhIwRQ/s1600-h/fftshift+fft2+A+zoom.bmp"&gt;&lt;img style="cursor: pointer; width: 200px; height: 133px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SlNlDX72OSI/AAAAAAAAAI0/RaYRmZhIwRQ/s200/fftshift+fft2+A+zoom.bmp" alt="" id="BLOGGER_PHOTO_ID_5355735490512697634" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;FFT of FFT&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SlNlDRXfk6I/AAAAAAAAAI8/Z6ykuEjrzAk/s1600-h/fft2+fft2+A.bmp"&gt;&lt;img style="cursor: pointer; width: 287px; height: 187px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SlNlDRXfk6I/AAAAAAAAAI8/Z6ykuEjrzAk/s200/fft2+fft2+A.bmp" alt="" id="BLOGGER_PHOTO_ID_5355735488749605794" border="0" /&gt;&lt;/a&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&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="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;The output of fft2 has the quadrants along the diagonals interchanged; therefore fftshift is needed to realign the quadrants back. As expected the fft of a circle resulted to an Airy disk. Applying fft2 twice just resulted to an inverted copy of the original image.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&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 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;5.B SIMULATION OF AN IMAGING DEVICE&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;The convolution model predicts the image produced when an object is viewed using an imaging sytem. Convolution is the smearing of one function with another such that the resulting function looks a little like both. In Fourier space, the product of the FTs of the image and the imaging system will give us the FT of the resulting image.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style=";font-family:Arial;font-size:100%;"  &gt;To simulate, we used the word “VIP” for our image and a circle to represent the aperture of an imaging device. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;  &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style="text-align: center; color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;div style="text-align: center;"&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;Original Image&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="color: rgb(0, 102, 0);" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SlNlqaX_U5I/AAAAAAAAAJE/Nx3c6jm0zE0/s1600-h/VIP.bmp"&gt;&lt;img style="cursor: pointer; width: 128px; height: 128px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SlNlqaX_U5I/AAAAAAAAAJE/Nx3c6jm0zE0/s200/VIP.bmp" alt="" id="BLOGGER_PHOTO_ID_5355736161182503826" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&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 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="color: rgb(0, 102, 0);" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p style="text-align: justify; color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;We then applied fft2 to the image and fftshift to the aperture since the aperture is already in Fourier plane). The results after convolving are shown below. It was observed that as the diameter of the aperture gets bigger, the image becomes sharper. This is because a larger circle results to a smaller Airy disk.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; color: rgb(0, 102, 0);"&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;Apertures&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;div style="text-align: center; color: rgb(0, 102, 0);"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SlNmhiES9HI/AAAAAAAAAJs/T4J27474438/s1600-h/aperture0.bmp"&gt;&lt;img style="cursor: pointer; width: 128px; height: 128px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SlNmhiES9HI/AAAAAAAAAJs/T4J27474438/s200/aperture0.bmp" alt="" id="BLOGGER_PHOTO_ID_5355737108140192882" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SlNmh2mhGyI/AAAAAAAAAJ0/Edt_nevZ_g4/s1600-h/aperture1.bmp"&gt;&lt;img style="cursor: pointer; width: 128px; height: 128px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SlNmh2mhGyI/AAAAAAAAAJ0/Edt_nevZ_g4/s200/aperture1.bmp" alt="" id="BLOGGER_PHOTO_ID_5355737113652435746" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SlNmiE9GPaI/AAAAAAAAAKE/5QMGx7hPgbo/s1600-h/aperture3.bmp"&gt;&lt;img style="cursor: pointer; width: 128px; height: 128px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SlNmiE9GPaI/AAAAAAAAAKE/5QMGx7hPgbo/s200/aperture3.bmp" alt="" id="BLOGGER_PHOTO_ID_5355737117505240482" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Resulting Images&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a style="color: rgb(0, 102, 0);" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SlNlqhP1BOI/AAAAAAAAAJM/SuDniI70mgo/s1600-h/VIP0.bmp"&gt;&lt;img style="cursor: pointer; width: 200px; height: 133px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SlNlqhP1BOI/AAAAAAAAAJM/SuDniI70mgo/s200/VIP0.bmp" alt="" id="BLOGGER_PHOTO_ID_5355736163027322082" border="0" /&gt;&lt;/a&gt;&lt;a style="color: rgb(0, 102, 0);" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SlNlq95xYtI/AAAAAAAAAJU/vS3xemFb0JQ/s1600-h/VIP1.bmp"&gt;&lt;img style="cursor: pointer; width: 200px; height: 133px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SlNlq95xYtI/AAAAAAAAAJU/vS3xemFb0JQ/s200/VIP1.bmp" alt="" id="BLOGGER_PHOTO_ID_5355736170719437522" border="0" /&gt;&lt;/a&gt;&lt;a style="color: rgb(0, 102, 0);" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SlNlrYL_4mI/AAAAAAAAAJk/IjNpV1FhEF8/s1600-h/VIP3.bmp"&gt;&lt;img style="cursor: pointer; width: 200px; height: 133px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SlNlrYL_4mI/AAAAAAAAAJk/IjNpV1FhEF8/s200/VIP3.bmp" alt="" id="BLOGGER_PHOTO_ID_5355736177775207010" border="0" /&gt;&lt;/a&gt;&lt;br /&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 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="color: rgb(0, 102, 0);" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p style="text-align: justify; color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify; color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;5.C TEMPLATE MATCHING USING CORRELATION&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; color: rgb(0, 102, 0);"&gt;  &lt;/div&gt;&lt;p style="text-align: justify; color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; color: rgb(0, 102, 0);"&gt;  &lt;/div&gt;&lt;p style="text-align: justify; color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify; color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;Correlation measures the degree of similarity between two functions. The correlation value peaks at points where there is an exact match.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; color: rgb(0, 102, 0);"&gt;  &lt;/div&gt;&lt;p style="text-align: justify; color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: justify; color: rgb(0, 102, 0);"&gt;  &lt;/div&gt;&lt;p style="text-align: justify; color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify; color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;For example to find the letter A in the text…&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a style="color: rgb(0, 102, 0);" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SlNtXIi7U8I/AAAAAAAAAK8/Ja8Ujv1cCmk/s1600-h/words.bmp"&gt;&lt;img style="cursor: pointer; width: 128px; height: 128px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SlNtXIi7U8I/AAAAAAAAAK8/Ja8Ujv1cCmk/s200/words.bmp" alt="" id="BLOGGER_PHOTO_ID_5355744626072048578" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&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="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="color: rgb(0, 102, 0);" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p style="color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;…we use the template&lt;/span&gt;&lt;/p&gt;&lt;div style="text-align: center;"&gt;&lt;a style="color: rgb(0, 102, 0);" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SlNtWuDB_NI/AAAAAAAAAK0/H10TerEKMwU/s1600-h/A16.bmp"&gt;&lt;img style="cursor: pointer; width: 128px; height: 128px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SlNtWuDB_NI/AAAAAAAAAK0/H10TerEKMwU/s200/A16.bmp" alt="" id="BLOGGER_PHOTO_ID_5355744618958945490" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&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="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link style="color: rgb(0, 102, 0);" rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p style="color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;We then element per element multiplied the fft of the template and the conjugate of the fft of the text. The image of the inverse fft is&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="text-align: center; color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SlNtXbSDL8I/AAAAAAAAALE/Cq4LQIlX938/s1600-h/correlation1.bmp"&gt;&lt;img style="cursor: pointer; width: 200px; height: 133px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SlNtXbSDL8I/AAAAAAAAALE/Cq4LQIlX938/s200/correlation1.bmp" alt="" id="BLOGGER_PHOTO_ID_5355744631101534146" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 0, 0);" class="MsoNormal"&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 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;/p&gt;&lt;p style="color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;The text is now inverted but we can still check that the bright peaks occur at the locations of the letter A.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: center; color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;5.D EDGE DETECTION USING THE CONVOLUTION INTEGRAL&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;Another application would be edge detection. We can convolve an image with a matrix pattern of an edge using the function imcorrcoef in Scilab.&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(0, 102, 0);" class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;When the edge pattern is horizontal the horizontal edges are emphasized.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(0, 102, 0);"&gt;&lt;/p&gt;&lt;div style="text-align: center; color: rgb(0, 102, 0);"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SlNtXbSDL8I/AAAAAAAAALE/Cq4LQIlX938/s1600-h/correlation1.bmp"&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 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SlNt--kUsJI/AAAAAAAAALM/-hIvnoE3duQ/s1600-h/edge+detect1.bmp"&gt;&lt;img style="cursor: pointer; width: 200px; height: 133px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SlNt--kUsJI/AAAAAAAAALM/-hIvnoE3duQ/s200/edge+detect1.bmp" alt="" id="BLOGGER_PHOTO_ID_5355745310588317842" border="0" /&gt;&lt;/a&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&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="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;Likewise for a vertical edge pattern.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align: center;" class="MsoNormal"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SlNt_NgW5FI/AAAAAAAAALU/bChgYfu1TTs/s1600-h/edge+detect2.bmp"&gt;&lt;img style="cursor: pointer; width: 200px; height: 133px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SlNt_NgW5FI/AAAAAAAAALU/bChgYfu1TTs/s200/edge+detect2.bmp" alt="" id="BLOGGER_PHOTO_ID_5355745314598216786" border="0" /&gt;&lt;/a&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;span style=";font-family:Arial;font-size:12;"  &gt;&lt;span style="font-size:100%;"&gt;Spot pattern gives me the best result&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SlNt_a3jh9I/AAAAAAAAALc/xthf6bLB-vE/s1600-h/edge+detect3.bmp"&gt;&lt;img style="cursor: pointer; width: 200px; height: 133px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SlNt_a3jh9I/AAAAAAAAALc/xthf6bLB-vE/s200/edge+detect3.bmp" alt="" id="BLOGGER_PHOTO_ID_5355745318185174994" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;I give myself a grade of 10 because I was able to do all that was required in this activity.&lt;/div&gt;&lt;/div&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;/div&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/6557682483856522377-9110890570150744491?l=thinktanknicherry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thinktanknicherry.blogspot.com/feeds/9110890570150744491/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/07/a5-fourier-transform-model-of-image.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/9110890570150744491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/9110890570150744491'/><link rel='alternate' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/07/a5-fourier-transform-model-of-image.html' title='A5 Fourier Transform Model Of Image Formation'/><author><name>cherry</name><uri>http://www.blogger.com/profile/01475793529692257483</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/_rIBnkPGB9po/SlNiIrOstdI/AAAAAAAAAIE/JAHc9XK6xE4/s72-c/fft2+fft2+circle.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6557682483856522377.post-5770104455365600569</id><published>2009-07-06T17:51:00.000-07:00</published><updated>2009-07-14T22:34:14.080-07:00</updated><title type='text'>A3.2 Image Types and Background Enhancements</title><content type='html'>This is the second part and last part of Activity 3.&lt;br /&gt;&lt;br /&gt;This is my original scanned image.&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/SlsDBTIc_3I/AAAAAAAAANE/TgvP1HatEIk/s1600-h/che.bmp"&gt;&lt;img style="cursor: pointer; width: 320px; height: 125px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/SlsDBTIc_3I/AAAAAAAAANE/TgvP1HatEIk/s320/che.bmp" alt="" id="BLOGGER_PHOTO_ID_5357879502537817970" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Using the command imfinfo(), I found out about the properties of my original image.&lt;br /&gt;&lt;br /&gt;Size:   345 rows X 887 columns&lt;br /&gt;Indexed Image&lt;br /&gt;     FileName: C:\Documents and Settings\VIP\Desktop\Acads 09-10\186\a3 image types and basic image enhancements\scanned images\che.bmp&lt;br /&gt;     FileSize: 307438&lt;br /&gt;       Format: BMP&lt;br /&gt;        Width: 887&lt;br /&gt;       Height: 345&lt;br /&gt;        Depth: 8&lt;br /&gt;  StorageType: indexed&lt;br /&gt;NumberOfColors: 256&lt;br /&gt;ResolutionUnit: centimeter&lt;br /&gt;  XResolution: 59.060000&lt;br /&gt;  YResolution: 59.060000&lt;br /&gt;&lt;br /&gt;As we can see, the image is already in grayscale (8 bit depth) so there is no need to convert it.&lt;br /&gt;&lt;br /&gt;To find out if my region of interest (ROI) is well separated from its background, we look at the image histogram. This can be done either in Gimp or using the Scilab program&lt;br /&gt;&lt;br /&gt;Path2='C:\Documents and Settings\VIP\Desktop\Acads 09-10\186\a3 image types and basic image enhancements\scanned images\che2.bmp';&lt;br /&gt;I=imread(Path2);&lt;br /&gt;[nr,nc]=size(I);&lt;br /&gt;range=[0:1:255];&lt;br /&gt;hist=[];&lt;br /&gt;&lt;br /&gt;//count histogram&lt;br /&gt;for i=1:256&lt;br /&gt;[x,y]=find(I==(i-1));&lt;br /&gt;hist(i)=length(x);&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;scf(1)&lt;br /&gt;plot(range,hist/(nr*nc));&lt;br /&gt;a=gca(); a.data_bounds = [0,0;255,max(hist/(nr*nc))]; a.tight_limits='on';&lt;br /&gt;&lt;br /&gt;The image below is my ROI (white part) surrounded by the black background. Following it is a plot of the normalized image histogram. As expected, the histogram shows two distinct parts: the low value background and the high value ROI.&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/_rIBnkPGB9po/SlsDBgZeqiI/AAAAAAAAANM/m7ZxR60SdPg/s1600-h/che2.bmp"&gt;&lt;img style="cursor: pointer; width: 320px; height: 152px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SlsDBgZeqiI/AAAAAAAAANM/m7ZxR60SdPg/s320/che2.bmp" alt="" id="BLOGGER_PHOTO_ID_5357879506098891298" border="0" /&gt;&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/_rIBnkPGB9po/SlsDByoag7I/AAAAAAAAANU/d9KXI4uBtHk/s1600-h/hist.bmp"&gt;&lt;img style="cursor: pointer; width: 320px; height: 242px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/SlsDByoag7I/AAAAAAAAANU/d9KXI4uBtHk/s320/hist.bmp" alt="" id="BLOGGER_PHOTO_ID_5357879510993372082" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;To get the area of my ROI, we can use thresholding by converting the image to binary using im2bw().&lt;br /&gt;&lt;br /&gt;We can then get the area using the Green’s theorem just like what we did in A2.&lt;br /&gt;&lt;br /&gt;Agreen= 55037 sq. pixels&lt;br /&gt;&lt;br /&gt;We can also get the area by counting the number of white pixels.&lt;br /&gt;In this case the area = 55058 sq. pixels&lt;br /&gt;&lt;br /&gt;The discrepancy could be attributed to the fact that our second method also counted white pixels that are not part of the ROI. For this case the area calculated using Green’s theorem is the more correct one. In any case, the values that we obtained differ only by a very small amount.&lt;br /&gt;&lt;br /&gt;For this activity, I fully understood the differences between the 4 basic image types. I learned about the different ways to check an image's properties and see its image type. I was also able to do histogram thresholding to separate the background from the ROI. I therefore give myself a grade of 10.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6557682483856522377-5770104455365600569?l=thinktanknicherry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thinktanknicherry.blogspot.com/feeds/5770104455365600569/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/07/a32-image-types-and-background.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/5770104455365600569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/5770104455365600569'/><link rel='alternate' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/07/a32-image-types-and-background.html' title='A3.2 Image Types and Background Enhancements'/><author><name>cherry</name><uri>http://www.blogger.com/profile/01475793529692257483</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/_rIBnkPGB9po/SlsDBTIc_3I/AAAAAAAAANE/TgvP1HatEIk/s72-c/che.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6557682483856522377.post-9054133634557351875</id><published>2009-07-01T18:20:00.000-07:00</published><updated>2009-07-06T18:00:35.952-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='image contrast'/><category scheme='http://www.blogger.com/atom/ns#' term='cdf'/><category scheme='http://www.blogger.com/atom/ns#' term='backprojection'/><category scheme='http://www.blogger.com/atom/ns#' term='pdf'/><category scheme='http://www.blogger.com/atom/ns#' term='image enhancement'/><title type='text'>A4 Enhancement By Histogram Manipulation</title><content type='html'>Just by looking at an image histogram, we will be able to know about the image's contrast, exposure and tonal range and thus be able to know if and what adjustments to make.&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;An image histogram represents the spread of the pixel values of a digital image. For a gray scale image (bit depth = 8bits ) , each pixel can have a brightness value from 0 for black and 255  for white. The histogram is a count of how many pixels are at each brightness value.&lt;br /&gt;&lt;/div&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://2.bp.blogspot.com/_rIBnkPGB9po/SkwQgksZIdI/AAAAAAAAAFM/mcp98fF77dI/s1600-h/plot1.png"&gt;&lt;img style="cursor: pointer; width: 200px; height: 110px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SkwQgksZIdI/AAAAAAAAAFM/mcp98fF77dI/s200/plot1.png" alt="" id="BLOGGER_PHOTO_ID_5353672208828408274" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;http://www.cambridgeincolour.com/tutorials/histograms1.htm&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;When the histogram is normalized by the total number of pixels we have the probability distribution function. From the pdf we can obtain the cumulative distribution function or the cdf.&lt;br /&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;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 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;}  /* List Definitions */  @list l0 	{mso-list-id:1041707593; 	mso-list-type:hybrid; 	mso-list-template-ids:1685870504 2122189658 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l0:level1 	{mso-level-tab-stop:.5in; 	mso-level-number-position:left; 	text-indent:-.25in;} ol 	{margin-bottom:0in;} ul 	{margin-bottom:0in;} --&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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;In this activity, our aim is to improve the contrast of an image by remapping pixel values of the old cdf so that the resulting cdf will have the desired pdf. Step by step this is how it is done.&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;ol style="margin-top: 0in;" start="1" type="1"&gt;&lt;li class="MsoNormal" style="text-align: justify;"&gt;For each pixel value …&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify;"&gt;find the original cdf value.&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify;"&gt;Trace this original cdf value in the desired cdf.&lt;/li&gt;&lt;li class="MsoNormal" style="text-align: justify;"&gt;Replace the original pixel value with the pixel value      that will give the same probability in the desired cdf graph &lt;/li&gt;&lt;/ol&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/_rIBnkPGB9po/SlDDax0IHBI/AAAAAAAAAFU/XlHR5H2TYS4/s1600-h/untitled.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 325px; height: 122px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SlDDax0IHBI/AAAAAAAAAFU/XlHR5H2TYS4/s200/untitled.bmp" alt="" id="BLOGGER_PHOTO_ID_5354994821759507474" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&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="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;Here are some of my results.&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;For a desired uniform distribution pdf the cdf is a straight line.&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: center;"&gt;This is the original image...&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SlDEv4vcPnI/AAAAAAAAAFs/s-KJTrgsN4c/s1600-h/grassy1.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 245px; height: 193px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SlDEv4vcPnI/AAAAAAAAAFs/s-KJTrgsN4c/s320/grassy1.bmp" alt="" id="BLOGGER_PHOTO_ID_5354996283907784306" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: center;"&gt;&lt;span style="font-size:78%;"&gt;http://www.janellegreenwood.com/images/grayscale.jpg&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: center;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align: center;"&gt;and the original PDF...&lt;br /&gt;&lt;/p&gt;  &lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SlDEuCfKzQI/AAAAAAAAAFc/_5zpwXGHFIo/s1600-h/grassy+pdf.bmp"&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/_rIBnkPGB9po/SlDEuCfKzQI/AAAAAAAAAFc/_5zpwXGHFIo/s320/grassy+pdf.bmp" alt="" id="BLOGGER_PHOTO_ID_5354996252164148482" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;and the original cdf.&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SlDEup0LTbI/AAAAAAAAAFk/Uu6N4ubr6HA/s1600-h/grassy+cdf.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 242px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SlDEup0LTbI/AAAAAAAAAFk/Uu6N4ubr6HA/s320/grassy+cdf.bmp" alt="" id="BLOGGER_PHOTO_ID_5354996262721244594" border="0" /&gt;&lt;/a&gt;Notice that most of the pixel values are in the middle tones and that no very bright or very dark values exist. This is a very poor contrast image. However after a remapping of the pixel values...&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;Here is the contrast enhanced image.&lt;br /&gt;&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://1.bp.blogspot.com/_rIBnkPGB9po/SlDEwtD8IQI/AAAAAAAAAF0/ZWdCx7lW9yI/s1600-h/grassy2.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 210px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SlDEwtD8IQI/AAAAAAAAAF0/ZWdCx7lW9yI/s320/grassy2.bmp" alt="" id="BLOGGER_PHOTO_ID_5354996297952403714" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;The image now has whites and blacks instead of just middle grays.&lt;br /&gt;In fact, the pdf shows that the range of pixel values now extend to all the possible levels. A check of the new cdf reveals that it is indeed linear.&lt;br /&gt;&lt;br /&gt;New PDF&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SlDEwtD8IQI/AAAAAAAAAF0/ZWdCx7lW9yI/s1600-h/grassy2.bmp"&gt;&lt;span style="display: block;" id="formatbar_Buttons"&gt;&lt;span class="on" style="display: block;" id="formatbar_JustifyFull" title="Justify Full" onmouseover="ButtonHoverOn(this);" onmouseout="ButtonHoverOff(this);" onmouseup="" onmousedown="CheckFormatting(event);FormatbarButton('richeditorframe', this, 13);ButtonMouseDown(this);"&gt;&lt;img src="http://www.blogger.com/img/blank.gif" alt="Justify Full" class="gl_align_full" border="0" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SlDFRyAMmDI/AAAAAAAAAGE/qlao4ZgLjsM/s1600-h/aaa+new+pdf+grassy.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 242px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SlDFRyAMmDI/AAAAAAAAAGE/qlao4ZgLjsM/s320/aaa+new+pdf+grassy.bmp" alt="" id="BLOGGER_PHOTO_ID_5354996866214565938" border="0" /&gt;&lt;/a&gt;&lt;span style="text-decoration: underline;"&gt;&lt;br /&gt;&lt;/span&gt;New CDF&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="text-decoration: underline;"&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/SlDExxqdoZI/AAAAAAAAAF8/NZAumHGfIDk/s1600-h/aaa+new+cdf.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 242px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/SlDExxqdoZI/AAAAAAAAAF8/NZAumHGfIDk/s320/aaa+new+cdf.bmp" alt="" id="BLOGGER_PHOTO_ID_5354996316367593874" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Here are the results for the other images.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;                  &lt;br /&gt;                        Before                                                                                                                                                and After&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SlDJ-SAxHiI/AAAAAAAAAGM/fVcmXhvrlWU/s1600-h/gallstone1.bmp"&gt;&lt;img style="cursor: pointer; width: 320px; height: 210px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SlDJ-SAxHiI/AAAAAAAAAGM/fVcmXhvrlWU/s320/gallstone1.bmp" alt="" id="BLOGGER_PHOTO_ID_5355002028767649314" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SlDJ_q-4SoI/AAAAAAAAAGU/Nbm9kFsK4xY/s1600-h/gallstone2.bmp"&gt;&lt;img style="cursor: pointer; width: 320px; height: 210px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SlDJ_q-4SoI/AAAAAAAAAGU/Nbm9kFsK4xY/s320/gallstone2.bmp" alt="" id="BLOGGER_PHOTO_ID_5355002052650486402" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:78%;"&gt;http://www.drgdiaz.com/pat/gallstones.shtml&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SlDKAPRDp7I/AAAAAAAAAGc/C5Qc1lITvHM/s1600-h/friends1.bmp"&gt;&lt;img style="cursor: pointer; width: 320px; height: 210px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SlDKAPRDp7I/AAAAAAAAAGc/C5Qc1lITvHM/s320/friends1.bmp" alt="" id="BLOGGER_PHOTO_ID_5355002062390405042" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SlDKAuRoYLI/AAAAAAAAAGk/GEH_i0-yeaI/s1600-h/friends2.bmp"&gt;&lt;img style="cursor: pointer; width: 320px; height: 210px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SlDKAuRoYLI/AAAAAAAAAGk/GEH_i0-yeaI/s320/friends2.bmp" alt="" id="BLOGGER_PHOTO_ID_5355002070714310834" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:78%;"&gt;http://www.american-indian-artwork.com/restoration/grayscale-picture-650.jpg&lt;/span&gt;&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/_rIBnkPGB9po/SlDKBd6Z9dI/AAAAAAAAAGs/Tc6_NQNQQMc/s1600-h/lady1.bmp"&gt;&lt;img style="cursor: pointer; width: 218px; height: 320px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SlDKBd6Z9dI/AAAAAAAAAGs/Tc6_NQNQQMc/s320/lady1.bmp" alt="" id="BLOGGER_PHOTO_ID_5355002083501798866" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SlDMu0jnQCI/AAAAAAAAAHE/JMCZD6C_GBg/s1600-h/lady2.bmp"&gt;&lt;img style="cursor: pointer; width: 218px; height: 320px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SlDMu0jnQCI/AAAAAAAAAHE/JMCZD6C_GBg/s320/lady2.bmp" alt="" id="BLOGGER_PHOTO_ID_5355005061697585186" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:78%;"&gt;http://www.american-indian-artwork.com/restoration/grayscale-photograph.jpg&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Now notice that for some of the enhanced images there are parts that looked rather saturated and noisy. This happens especially for images with a limited range of pixel values because the algorithm forces the image histograms to stretch over the entire range of  pixel values. A solution to this is to remap only on the original histogram range.&lt;br /&gt;&lt;br /&gt;Another way is to find another cdf that suits the image better.&lt;br /&gt;&lt;br /&gt;Using a parabolic function (positive half only) I got a better result for the image of the lady.&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/_rIBnkPGB9po/SlDdWFG_roI/AAAAAAAAAHU/9hCOhVgWHto/s1600-h/lady1.bmp"&gt;&lt;img style="cursor: pointer; width: 218px; height: 320px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SlDdWFG_roI/AAAAAAAAAHU/9hCOhVgWHto/s320/lady1.bmp" alt="" id="BLOGGER_PHOTO_ID_5355023328341896834" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/SlDdWSC3--I/AAAAAAAAAHc/V7jeeFQZEDE/s1600-h/lady2.bmp"&gt;&lt;img style="cursor: pointer; width: 218px; height: 320px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/SlDdWSC3--I/AAAAAAAAAHc/V7jeeFQZEDE/s320/lady2.bmp" alt="" id="BLOGGER_PHOTO_ID_5355023331814276066" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;For this activity, I give myself a grade of 10. I was able to do image enhancement and I fully understood the activity.&lt;br /&gt;&lt;br /&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/6557682483856522377-9054133634557351875?l=thinktanknicherry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thinktanknicherry.blogspot.com/feeds/9054133634557351875/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/07/a4-enhancement-by-histogram.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/9054133634557351875'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/9054133634557351875'/><link rel='alternate' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/07/a4-enhancement-by-histogram.html' title='A4 Enhancement By Histogram Manipulation'/><author><name>cherry</name><uri>http://www.blogger.com/profile/01475793529692257483</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/_rIBnkPGB9po/SkwQgksZIdI/AAAAAAAAAFM/mcp98fF77dI/s72-c/plot1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6557682483856522377.post-9062251799648294878</id><published>2009-06-29T17:57:00.000-07:00</published><updated>2009-06-29T17:59:44.781-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ultrasound images'/><category scheme='http://www.blogger.com/atom/ns#' term='grayscale'/><title type='text'>Link for grayscale images</title><content type='html'>Guys I found a link that contains grayscale ultrasound images.&lt;br /&gt;&lt;br /&gt;http://www.drgdiaz.com/pat/images.shtml&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6557682483856522377-9062251799648294878?l=thinktanknicherry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thinktanknicherry.blogspot.com/feeds/9062251799648294878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/06/link-for-grayscale-images.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/9062251799648294878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/9062251799648294878'/><link rel='alternate' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/06/link-for-grayscale-images.html' title='Link for grayscale images'/><author><name>cherry</name><uri>http://www.blogger.com/profile/01475793529692257483</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-6557682483856522377.post-7020711289315786149</id><published>2009-06-24T19:59:00.000-07:00</published><updated>2009-07-05T08:10:35.389-07:00</updated><title type='text'>A2.2 Area Estimation of Images with Defined Edges</title><content type='html'>Today, we used Green's theorem to estimate the area of the images that we created last tuesday (see A2.1) and compared it with the theoretical area which was obtained from the pixel count.&lt;br /&gt;&lt;br /&gt;Green's theorem relates a double integral to a line integral using this equation:&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/_rIBnkPGB9po/SkLtTJ785GI/AAAAAAAAAEc/ci3ghhfaQ6A/s1600-h/green%27s+theorem.JPG"&gt;&lt;img style="cursor: pointer; width: 200px; height: 49px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SkLtTJ785GI/AAAAAAAAAEc/ci3ghhfaQ6A/s200/green%27s+theorem.JPG" alt="" id="BLOGGER_PHOTO_ID_5351100220610241634" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;img src="file:///C:/DOCUME%7E1/2004-4%7E1/LOCALS%7E1/Temp/moz-screenshot.jpg" alt="" /&gt;where the functions F1, F2 and their derivatives are continuous in the region containing the area that we want to find.&lt;br /&gt;&lt;br /&gt;If we apply the theorem to for these 2 cases (1) F1=0, F2=x and (2) F1=-y, F2=0, we can get  an equation for the area of an enclosed region using&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SkMfqO5-x1I/AAAAAAAAAEs/TcMoYY1LInk/s1600-h/form.JPG"&gt;&lt;img style="cursor: pointer; width: 172px; height: 58px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SkMfqO5-x1I/AAAAAAAAAEs/TcMoYY1LInk/s200/form.JPG" alt="" id="BLOGGER_PHOTO_ID_5351155592662533970" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;In discrete form it becomes&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SkLvFBrIUXI/AAAAAAAAAEk/sqkqvxR6AZI/s1600-h/formula.JPG"&gt;&lt;img style="cursor: pointer; width: 200px; height: 68px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SkLvFBrIUXI/AAAAAAAAAEk/sqkqvxR6AZI/s200/formula.JPG" alt="" id="BLOGGER_PHOTO_ID_5351102176897290610" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;where (xi, yi) are the contour points of the region.&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The program that I used in Scilab is as follows&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(102, 0, 0);font-size:85%;" &gt;close (); clc;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;  &lt;/span&gt;&lt;span style="font-style: italic; color: rgb(102, 0, 0);font-size:85%;" &gt;&lt;br /&gt;&lt;br /&gt;Im=imread('C:\Documents and Settings\2004-49537\Desktop\cherry\a2 images\car.jpg');&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic; color: rgb(102, 0, 0);font-size:85%;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Im_bw= im2bw(Im,0.5);&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(102, 0, 0);font-size:85%;" &gt;[x,y]=follow(Im_bw);&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(102, 0, 0);font-size:85%;" &gt;//////// Close the contour&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic; color: rgb(102, 0, 0);font-size:85%;" &gt;&lt;br /&gt;x(length(x) + 1)=x(1);&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic; color: rgb(102, 0, 0);font-size:85%;" &gt;y(length(y) + 1)=y(1);&lt;/span&gt;&lt;span style="font-size:85%;"&gt;  &lt;/span&gt;&lt;span style="font-style: italic; color: rgb(102, 0, 0);font-size:85%;" &gt;&lt;br /&gt;&lt;br /&gt;//figure()&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(102, 0, 0);font-size:85%;" &gt;plot(x,y);&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(102, 0, 0);font-size:85%;" &gt;//////// Area According to Green's Theorem&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(102, 0, 0);font-size:85%;" &gt;s=length(x);&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic; color: rgb(102, 0, 0);font-size:85%;" &gt;&lt;br /&gt;&lt;br /&gt;Agreen= round(0.5 * (sum(( x(1:(s-1)).*y(2:s) - y(1:(s-1)).*x(2:s)))+s))&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(102, 0, 0);font-size:85%;" &gt;//////Checking&lt;/span&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;span style="font-style: italic; color: rgb(102, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;Acheck1=sum(floor(Im_bw))&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;The added&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; term in the green's area calculation is because the follow command only counts the lower left contour, 0.5 s will make the upper right corner boundary included in the area.&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(102, 0, 0);"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;The table below shows the comparison between the area computed using the Green's theorem and the area computed using pixel count for the images that I posted in A2.1. I also tried this for other more unsual shapes like the ones below and it still worked. In fact this will work for all regions with  well defined edges&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(102, 0, 0);"&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;or those that have no empty spaces in between (See what happens when image is a loop).&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(102, 0, 0);"&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="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIP%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.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: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:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&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" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	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-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} table.MsoTableGrid 	{mso-style-name:"Table Grid"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	border:solid windowtext 1.0pt; 	mso-border-alt:solid windowtext .5pt; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-border-insideh:.5pt solid windowtext; 	mso-border-insidev:.5pt solid windowtext; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;table class="MsoTableGrid" style="border: medium none ; border-collapse: collapse;" border="1" cellpadding="0" cellspacing="0"&gt;  &lt;tbody&gt;&lt;tr style="height: 23.55pt;"&gt;   &lt;td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 122.05pt; height: 23.55pt;" width="163"&gt;&lt;div&gt;   &lt;/div&gt;&lt;p style="text-align: center;" class="MsoNormal"&gt;&lt;b style=""&gt;Image&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 122.05pt; height: 23.55pt;" width="163"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b style=""&gt;Area (Green)&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 122.05pt; height: 23.55pt;" width="163"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b style=""&gt;Area (Pixel Count)&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 23.55pt;"&gt;   &lt;td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 122.05pt; height: 23.55pt;" width="163"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;triangle&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 122.05pt; height: 23.55pt;" width="163"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;11, 685&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 122.05pt; height: 23.55pt;" width="163"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;11, 685&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 23.55pt;"&gt;   &lt;td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 122.05pt; height: 23.55pt;" width="163"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;square&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 122.05pt; height: 23.55pt;" width="163"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;26, 732&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 122.05pt; height: 23.55pt;" width="163"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;26, 732&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 24.85pt;"&gt;   &lt;td color="-moz-use-text-color windowtext windowtext" style="border-style: none solid solid; padding: 0in 5.4pt; width: 122.05pt; height: 24.85pt;" width="163"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;rectangle&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td color="-moz-use-text-color windowtext windowtext -moz-use-text-color" style="border-style: none solid solid none; padding: 0in 5.4pt; width: 122.05pt; height: 24.85pt;" width="163"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;12, 640&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td color="-moz-use-text-color windowtext windowtext -moz-use-text-color" style="border-style: none solid solid none; padding: 0in 5.4pt; width: 122.05pt; height: 24.85pt;" width="163"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;12, 640&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 24.85pt;"&gt;   &lt;td color="-moz-use-text-color windowtext windowtext" style="border-style: none solid solid; padding: 0in 5.4pt; width: 122.05pt; height: 24.85pt;" width="163"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;ellipse&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td color="-moz-use-text-color windowtext windowtext -moz-use-text-color" style="border-style: none solid solid none; padding: 0in 5.4pt; width: 122.05pt; height: 24.85pt;" width="163"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;13, 548&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td color="-moz-use-text-color windowtext windowtext -moz-use-text-color" style="border-style: none solid solid none; padding: 0in 5.4pt; width: 122.05pt; height: 24.85pt;" width="163"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;13, 548&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 24.85pt;"&gt;   &lt;td color="-moz-use-text-color windowtext windowtext" style="border-style: none solid solid; padding: 0in 5.4pt; width: 122.05pt; height: 24.85pt;" width="163"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;circle&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td color="-moz-use-text-color windowtext windowtext -moz-use-text-color" style="border-style: none solid solid none; padding: 0in 5.4pt; width: 122.05pt; height: 24.85pt;" width="163"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;50, 000&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td color="-moz-use-text-color windowtext windowtext -moz-use-text-color" style="border-style: none solid solid none; padding: 0in 5.4pt; width: 122.05pt; height: 24.85pt;" width="163"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;50, 000&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 24.85pt;"&gt;   &lt;td color="-moz-use-text-color windowtext windowtext" style="border-style: none solid solid; padding: 0in 5.4pt; width: 122.05pt; height: 24.85pt;" width="163"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;car&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td color="-moz-use-text-color windowtext windowtext -moz-use-text-color" style="border-style: none solid solid none; padding: 0in 5.4pt; width: 122.05pt; height: 24.85pt;" width="163"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;18, 383&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td color="-moz-use-text-color windowtext windowtext -moz-use-text-color" style="border-style: none solid solid none; padding: 0in 5.4pt; width: 122.05pt; height: 24.85pt;" width="163"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;18, 383&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 24.85pt;"&gt;   &lt;td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 122.05pt; height: 24.85pt;" width="163"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;name&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 122.05pt; height: 24.85pt;" width="163"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;8, 766&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 122.05pt; height: 24.85pt;" width="163"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;8, 766&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt;  &lt;tr style="height: 24.85pt;"&gt;   &lt;td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 122.05pt; height: 24.85pt;" width="163"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="color:red;"&gt;loop&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 122.05pt; height: 24.85pt;" width="163"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="color:red;"&gt;7, 469&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;   &lt;td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 122.05pt; height: 24.85pt;" width="163"&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;span style="color:red;"&gt;4, 952&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;   &lt;/td&gt;  &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&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/_rIBnkPGB9po/SkMpQ1a9NZI/AAAAAAAAAE0/UIyrlT1ntys/s1600-h/car.JPG"&gt;&lt;img style="cursor: pointer; width: 200px; height: 126px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SkMpQ1a9NZI/AAAAAAAAAE0/UIyrlT1ntys/s200/car.JPG" alt="" id="BLOGGER_PHOTO_ID_5351166151441069458" border="0" /&gt;&lt;/a&gt;  &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/SkMpRNTRf7I/AAAAAAAAAE8/uIj3cSW-IBU/s1600-h/cherry.JPG"&gt;&lt;img style="cursor: pointer; width: 200px; height: 126px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/SkMpRNTRf7I/AAAAAAAAAE8/uIj3cSW-IBU/s200/cherry.JPG" alt="" id="BLOGGER_PHOTO_ID_5351166157851295666" border="0" /&gt;  &lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/SkMpRWGc0qI/AAAAAAAAAFE/HE_dYSLMbL0/s1600-h/loop.JPG"&gt;&lt;img style="cursor: pointer; width: 200px; height: 137px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/SkMpRWGc0qI/AAAAAAAAAFE/HE_dYSLMbL0/s200/loop.JPG" alt="" id="BLOGGER_PHOTO_ID_5351166160213430946" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;I give myself a score of 10 because I fully understood and enjoyed the activity.&lt;br /&gt;&lt;span style="color: rgb(102, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Reference: A2 Handout&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Acknowledgement: Thanks to Miguel Sison for making my SIP toolbox work. Thanks also to Jay Samuel Combinido, Jica Monsanto and Miguel Sison for answering my questions about the activity.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic; color: rgb(102, 0, 0);"&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&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/6557682483856522377-7020711289315786149?l=thinktanknicherry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thinktanknicherry.blogspot.com/feeds/7020711289315786149/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/06/a22-area-estimation-of-images-with.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/7020711289315786149'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/7020711289315786149'/><link rel='alternate' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/06/a22-area-estimation-of-images-with.html' title='A2.2 Area Estimation of Images with Defined Edges'/><author><name>cherry</name><uri>http://www.blogger.com/profile/01475793529692257483</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/_rIBnkPGB9po/SkLtTJ785GI/AAAAAAAAAEc/ci3ghhfaQ6A/s72-c/green%27s+theorem.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6557682483856522377.post-2277363987104546697</id><published>2009-06-23T01:33:00.000-07:00</published><updated>2009-06-24T05:44:40.975-07:00</updated><title type='text'>A3.1 The Different Image Types</title><content type='html'>&lt;div style="text-align: left;"&gt;As part of the third activity, we studied about the 4 different image types and looked for sample images for each type.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Binary&lt;/span&gt; images have only 1 bit per pixel and are therefore black  OR white images.&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SkCYFd9BbEI/AAAAAAAAADU/kHxXV2zZi3w/s1600-h/cat1bit.gif"&gt;&lt;img style="cursor: pointer; width: 200px; height: 143px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SkCYFd9BbEI/AAAAAAAAADU/kHxXV2zZi3w/s200/cat1bit.gif" alt="" id="BLOGGER_PHOTO_ID_5350443577023491138" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt; &lt;/div&gt;&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;span style="font-size:78%;"&gt;http://www.planetoftunes.com/dtp/dtp_media/bitdepth/cat1bit.gif &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/SkCh6A_gV9I/AAAAAAAAAEU/ZGIDpKxi0ks/s1600-h/sky1_15Oct_small.jpg"&gt;&lt;img style="cursor: pointer; width: 200px; height: 150px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/SkCh6A_gV9I/AAAAAAAAAEU/ZGIDpKxi0ks/s200/sky1_15Oct_small.jpg" alt="" id="BLOGGER_PHOTO_ID_5350454375386994642" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SkCh58NL_II/AAAAAAAAAEM/lPpuvPU3vC8/s1600-h/BW_1015.bmp"&gt;&lt;img style="cursor: pointer; width: 200px; height: 150px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SkCh58NL_II/AAAAAAAAAEM/lPpuvPU3vC8/s200/BW_1015.bmp" alt="" id="BLOGGER_PHOTO_ID_5350454374102203522" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;http://www.pages.drexel.edu/~brooksdr/DRB_web_page/howto/BW_image/BW_program.htm&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;They should not be confused with &lt;span style="font-weight: bold;"&gt;Grayscale&lt;/span&gt; images which are black AND white images. Grayscale images have 1byte per pixel. This means that each pixel can have can have any value from 0 (black) to 255 (white). Grayscale images are usually used for medical images like the retina ultrasound below.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SkCYFrb183I/AAAAAAAAADc/afqkhDVL4KA/s1600-h/eye+ultrasound_grayscale.jpg"&gt;&lt;img style="cursor: pointer; width: 200px; height: 151px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SkCYFrb183I/AAAAAAAAADc/afqkhDVL4KA/s200/eye+ultrasound_grayscale.jpg" alt="" id="BLOGGER_PHOTO_ID_5350443580642423666" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;http://www.drgdiaz.com/images/eye-rbn.shtml&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;When three grayscale channels, one each for red, green, and blue intensities, are overlaid, a &lt;span style="font-weight: bold;"&gt;Truecolor&lt;/span&gt; image can be produced. Because there are 3 bytes / pixel, Truecolor images can have 256 X 256 X 256 or over 1.6 million possible colors. Images from digital cameras are truecolor images.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_rIBnkPGB9po/SkCYFw15JwI/AAAAAAAAADk/3VVvwiUYPuU/s1600-h/kodim15_truecolor.png"&gt;&lt;img style="cursor: pointer; width: 200px; height: 133px;" src="http://3.bp.blogspot.com/_rIBnkPGB9po/SkCYFw15JwI/AAAAAAAAADk/3VVvwiUYPuU/s200/kodim15_truecolor.png" alt="" id="BLOGGER_PHOTO_ID_5350443582093862658" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:78%;"&gt;http://r0k.us/graphics/kodak/kodim15.html&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;Because truecolor images require greater memory sizes, sometimes an image may be &lt;span style="font-weight: bold;"&gt;Indexed&lt;/span&gt; to save space. An indexed image contains the image itself and its colormap. All the colors in the image will then be represented by a number which is an index in the colormap.&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/_rIBnkPGB9po/SkCYGc8xxZI/AAAAAAAAAD0/lWIfIeg0FqQ/s1600-h/cat_indexed8bit.gif"&gt;&lt;img style="cursor: pointer; width: 156px; height: 156px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SkCYGc8xxZI/AAAAAAAAAD0/lWIfIeg0FqQ/s200/cat_indexed8bit.gif" alt="" id="BLOGGER_PHOTO_ID_5350443593933899154" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SkCYGM3tcFI/AAAAAAAAADs/wgzMBs2_Yio/s1600-h/flower_indexed.gif"&gt;&lt;img style="cursor: pointer; width: 200px; height: 200px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SkCYGM3tcFI/AAAAAAAAADs/wgzMBs2_Yio/s200/flower_indexed.gif" alt="" id="BLOGGER_PHOTO_ID_5350443589617676370" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;http://www.sketchpad.net/basics6.htm&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;http://www.webdesign.org/img_articles/15717/dx-flower-final-other-colors.gif&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: left;"&gt;Reference: Activity 3 Handout&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/6557682483856522377-2277363987104546697?l=thinktanknicherry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thinktanknicherry.blogspot.com/feeds/2277363987104546697/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/06/a31-different-image-types.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/2277363987104546697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/2277363987104546697'/><link rel='alternate' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/06/a31-different-image-types.html' title='A3.1 The Different Image Types'/><author><name>cherry</name><uri>http://www.blogger.com/profile/01475793529692257483</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/_rIBnkPGB9po/SkCYFd9BbEI/AAAAAAAAADU/kHxXV2zZi3w/s72-c/cat1bit.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6557682483856522377.post-2016243385789318163</id><published>2009-06-22T20:21:00.000-07:00</published><updated>2009-06-24T05:43:12.423-07:00</updated><title type='text'>A2.1 Area Estimation of Images with Defined Edges</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SkBMnhWo9gI/AAAAAAAAACs/3cwRj9xSjYo/s1600-h/triangle.JPG"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 200px; height: 200px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SkBMnhWo9gI/AAAAAAAAACs/3cwRj9xSjYo/s200/triangle.JPG" alt="" id="BLOGGER_PHOTO_ID_5350360599168087554" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SkBMnW3hx9I/AAAAAAAAACk/qnj9qmfnV5Y/s1600-h/square.JPG"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 200px; height: 200px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SkBMnW3hx9I/AAAAAAAAACk/qnj9qmfnV5Y/s200/square.JPG" alt="" id="BLOGGER_PHOTO_ID_5350360596353238994" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_rIBnkPGB9po/SkBMnIAx0dI/AAAAAAAAACc/bUjZISk9qU4/s1600-h/rectangle.JPG"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 200px; height: 200px;" src="http://4.bp.blogspot.com/_rIBnkPGB9po/SkBMnIAx0dI/AAAAAAAAACc/bUjZISk9qU4/s200/rectangle.JPG" alt="" id="BLOGGER_PHOTO_ID_5350360592365507026" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_rIBnkPGB9po/SkBMZpaYrKI/AAAAAAAAACU/Xkvrt2VMvIk/s1600-h/ellipse.JPG"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 200px; height: 200px;" src="http://1.bp.blogspot.com/_rIBnkPGB9po/SkBMZpaYrKI/AAAAAAAAACU/Xkvrt2VMvIk/s200/ellipse.JPG" alt="" id="BLOGGER_PHOTO_ID_5350360360813112482" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SkBLxJ4XAvI/AAAAAAAAACM/a63_7HeAfy4/s1600-h/circle.JPG"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 200px; height: 200px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SkBLxJ4XAvI/AAAAAAAAACM/a63_7HeAfy4/s200/circle.JPG" alt="" id="BLOGGER_PHOTO_ID_5350359665154130674" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="text-decoration: underline;"&gt;&lt;br /&gt;&lt;br /&gt;The first part of these activity tasked us to create regular shapes&lt;br /&gt;with analytical sizes.&lt;br /&gt;&lt;br /&gt;Here are the shapes that I created using Paint.&lt;br /&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/6557682483856522377-2016243385789318163?l=thinktanknicherry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thinktanknicherry.blogspot.com/feeds/2016243385789318163/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/06/a3-image-types-and-basic-image.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/2016243385789318163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/2016243385789318163'/><link rel='alternate' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/06/a3-image-types-and-basic-image.html' title='A2.1 Area Estimation of Images with Defined Edges'/><author><name>cherry</name><uri>http://www.blogger.com/profile/01475793529692257483</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/_rIBnkPGB9po/SkBMnhWo9gI/AAAAAAAAACs/3cwRj9xSjYo/s72-c/triangle.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6557682483856522377.post-5229328616138284006</id><published>2009-06-22T17:58:00.000-07:00</published><updated>2009-06-24T05:57:55.645-07:00</updated><title type='text'>A1 DIGITAL SCANNING</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SkBF9fRCVlI/AAAAAAAAABM/PH1PxPFroCo/s1600-h/plot.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 162px; height: 320px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SkBF9fRCVlI/AAAAAAAAABM/PH1PxPFroCo/s320/plot.JPG" alt="" id="BLOGGER_PHOTO_ID_5350353279983441490" border="0" /&gt;&lt;/a&gt;WHAT?&lt;br /&gt;&lt;br /&gt;The aim is to use ratio and proportion to find the numerical values of a digitally scanned hand-drawn plot using the following softwares Paint, MS Excel, and Gimp.&lt;br /&gt;&lt;br /&gt;HOW?&lt;br /&gt;&lt;br /&gt;First I used the Rotate function of GIMP to properly align and crop the plot.&lt;br /&gt;&lt;br /&gt;&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;A1 – DIGITAL SCANNING&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 2.2  (Win32)"&gt;&lt;meta name="AUTHOR" content="VIP"&gt;&lt;meta name="CREATED" content="20090623;5470000"&gt;&lt;meta name="CHANGEDBY" content="VIP"&gt;&lt;meta name="CHANGED" content="20090623;7580000"&gt;&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } 	--&gt; 	&lt;/style&gt; &lt;p style="margin-bottom: 0in;" align="justify"&gt;The plot was then opened in Paint where the pixel locations can easily be found by selecting points using the mouse cursor. Note that in Paint the (0,0) pixel location is at the upper left corner of the image.&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;The plot origin (x0, y0) was located at the pixel point (1, 1173).&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;" align="justify"&gt;Next I computed for the ratio of the physical unit (number of tick marks) and the pixel unit (number of pixels included between tick marks). To minimize the error due to uneven grid lines and the “arbitrariness” of the pixel location (I had to decide where the edge of the grid line should be), I decided to take the average of several measurements.&lt;/p&gt;&lt;p style="margin-bottom: 0in;" align="justify"&gt;&lt;meta equiv="CONTENT-TYPE" content="text/html; charset=utf-8"&gt;&lt;title&gt;A1 – DIGITAL SCANNING&lt;/title&gt;&lt;meta name="GENERATOR" content="OpenOffice.org 2.2  (Win32)"&gt;&lt;meta name="AUTHOR" content="VIP"&gt;&lt;meta name="CREATED" content="20090623;5470000"&gt;&lt;meta name="CHANGEDBY" content="VIP"&gt;&lt;meta name="CHANGED" content="20090623;7580000"&gt;&lt;style type="text/css"&gt; 	&lt;!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } 	--&gt; 	&lt;/style&gt; &lt;/p&gt;&lt;p style="margin-bottom: 0in;" align="justify"&gt;&lt;br /&gt;&lt;/p&gt; &lt;dl&gt;&lt;dd&gt; 	&lt;table style="color: rgb(0, 0, 0);" border="1" cellpadding="7" cellspacing="0" width="100%"&gt; 		&lt;col width="45"&gt; 		&lt;col width="45"&gt; 		&lt;col width="41"&gt; 		&lt;col width="42"&gt; 		&lt;col width="41"&gt; 		&lt;col width="42"&gt; 		&lt;tbody&gt;&lt;tr valign="bottom"&gt; 			&lt;td width="17%" height="2"&gt; 				&lt;p&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;x (phy unit)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="18%"&gt; 				&lt;p&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;y (phy unit)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;x (pixels)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;y (pixels)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;x ratio&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;y ratio&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr valign="bottom"&gt; 			&lt;td width="17%" height="3"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="18%"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;1173&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p&gt; &lt;/p&gt; 			&lt;br /&gt;&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p&gt; &lt;/p&gt; 			&lt;br /&gt;&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr valign="bottom"&gt; 			&lt;td width="17%" height="3"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="18%"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;150&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;1025&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;0.00671&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;0.00676&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr valign="bottom"&gt; 			&lt;td width="17%" height="3"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;2&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="18%"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;2&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;300&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;880&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;0.00669&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;0.00683&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr valign="bottom"&gt; 			&lt;td width="17%" height="3"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;3&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="18%"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;3&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;450&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;732&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;0.00668&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;0.00680&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr valign="bottom"&gt; 			&lt;td width="17%" height="3"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;4&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="18%"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;4&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;595&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;586&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;0.00673&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;0.00681&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 		&lt;tr valign="bottom"&gt; 			&lt;td width="17%" height="2"&gt; 				&lt;p&gt; &lt;/p&gt; 			&lt;br /&gt;&lt;/td&gt; 			&lt;td width="18%"&gt; 				&lt;p&gt; &lt;/p&gt; 			&lt;br /&gt;&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p&gt; &lt;/p&gt; 			&lt;br /&gt;&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;average&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;0.00670&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 			&lt;td width="16%"&gt; 				&lt;p align="right"&gt;&lt;span style="font-family:Arial,sans-serif;"&gt;&lt;span style="font-size:85%;"&gt;&lt;b&gt;0.00680&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; 			&lt;/td&gt; 		&lt;/tr&gt; 	&lt;/tbody&gt;&lt;/table&gt; &lt;/dd&gt;&lt;/dl&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;&lt;/p&gt;&lt;br /&gt;I can now compute the physical value of any point in the graph using the following formulas:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;x_phy = (x_pixel-1)*x_ratio + x_phy_origin&lt;br /&gt;&lt;br /&gt;y_phy=20*(1173 - y_pixel)*y_ratio + y_phy_origin&lt;br /&gt;&lt;br /&gt;In this case the physical origin is at (0 days,80 grams). In the plot a y tick mark corresponds to increments of 20 grams, therefore the second equation has a 20 factor.&lt;br /&gt;&lt;br /&gt;DID IT WORK?&lt;br /&gt;&lt;br /&gt;The plot below shows the reconstructed plot (yellow) superimposed with the scanned plot.&lt;br /&gt;The reconstructed plot follows the scanned plot very closely except in some portions of the grid lines.&lt;br /&gt;An exact match is not really expected because the original graph is hand-drawn and is therefore has some misalignments and uneven lines.&lt;br /&gt;I give myself a score of 8 because although I had a good reconstruction of the plot, I was absent during the activity and I submitted my work late. (Bigay ko po excuse letter ko sa class. =)  )&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SkBF9fRCVlI/AAAAAAAAABM/PH1PxPFroCo/s1600-h/plot.JPG"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_rIBnkPGB9po/SkBFnstVMuI/AAAAAAAAABE/O7aABhJDxQY/s1600-h/recon.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 278px; height: 320px;" src="http://2.bp.blogspot.com/_rIBnkPGB9po/SkBFnstVMuI/AAAAAAAAABE/O7aABhJDxQY/s320/recon.JPG" alt="" id="BLOGGER_PHOTO_ID_5350352905634656994" border="0" /&gt;&lt;/a&gt;Acknowledgement:&lt;br /&gt;Thanks to Ms. Kaye Vergel for helping me post my blog and to Dr. Gay Jane Perez for giving us the scanned copies of our plots.&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;The graph that I used was copied from the a 1923 book, Practical Chemistry 8th ed by Philip Hawk printed by P. Blakinston Son &amp;amp; Co, Philadelphia, USA.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6557682483856522377-5229328616138284006?l=thinktanknicherry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thinktanknicherry.blogspot.com/feeds/5229328616138284006/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/06/a1-digital-scanning.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/5229328616138284006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6557682483856522377/posts/default/5229328616138284006'/><link rel='alternate' type='text/html' href='http://thinktanknicherry.blogspot.com/2009/06/a1-digital-scanning.html' title='A1 DIGITAL SCANNING'/><author><name>cherry</name><uri>http://www.blogger.com/profile/01475793529692257483</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/_rIBnkPGB9po/SkBF9fRCVlI/AAAAAAAAABM/PH1PxPFroCo/s72-c/plot.JPG' height='72' width='72'/><thr:total>1</thr:total></entry></feed>
