<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-7876000474578747950</atom:id><lastBuildDate>Sat, 21 Sep 2024 11:51:52 +0000</lastBuildDate><category>image processing</category><category>fourier transform</category><category>binary</category><category>convolution</category><category>correlation</category><category>digital scanning</category><category>edge detection</category><category>grayscale</category><category>histogram</category><category>indexed</category><category>template matching</category><category>truecolor</category><title>CINDY 186</title><description>Applied Physics One-Eight-Six&#xa;Digital Image Processing Class&#xa;National Institute of Physics&#xa;University of the Philippines&#xa;Diliman, Quezon City</description><link>http://ccesporlas-ap186.blogspot.com/</link><managingEditor>noreply@blogger.com (Anonymous)</managingEditor><generator>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7876000474578747950.post-8822877380781260085</guid><pubDate>Mon, 05 Oct 2009 12:55:00 +0000</pubDate><atom:updated>2009-10-12T15:30:49.661-07:00</atom:updated><title>Activity 18 | Noise Models and Basic Image Restoration</title><description>Image restoration is a basic image processing application where an image that has been degraded or damaged is being recovered. To recover the image, the degradation must be known and thus can be used in restoring the image.&lt;br /&gt;&lt;br /&gt;A common source of degradation is the presence of noise in the image. Noise can hide useful information in an image. It is acquired mostly during image acquisition and transmission. Noise is composed of random values that follows a distribution which is expressed by a Probability Density Function of PDF. Figure 1 shows the respective PDFs of the different noise types to be used in this activity.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8AMsk3l-xG_isNWxMNAoO1uj2PHadajnvA0K86eSBzwXSsiU1C12jRD6ucymrGBKx4-LdhK27u8FpAk93QRnhEeW-ZvVlWGXJe84spEW3WDs6O3G6Jcr2_VQLeny8_gjQOXOGcYgGEyI/s1600-h/noise.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 317px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8AMsk3l-xG_isNWxMNAoO1uj2PHadajnvA0K86eSBzwXSsiU1C12jRD6ucymrGBKx4-LdhK27u8FpAk93QRnhEeW-ZvVlWGXJe84spEW3WDs6O3G6Jcr2_VQLeny8_gjQOXOGcYgGEyI/s400/noise.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391795886929851458&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 1. PDFs of different noise types.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;In this activity we implement basic image restoration of noisy images using different filters. We use a test pattern shown by Figure 3 along with its PDF and then add noise to the image which will be used as the image to be restored. In restoring the noisy images,  four different types of filtering, shown by Figure 2. are investigated for each type of noise.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikGaEBwBZGJp7CQdK1alTjKdUt7cnkgn0YE6-ae0U_lWUREQ_WfJyUQqYJ_j0eBc__lbMRBsEHOBeYpFMN-98108HMTV9_aB5zh9bAat8obwj25-8oI9LbvhhIAWmEqkP8JuH9lCrFfaM/s1600-h/filter.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 385px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikGaEBwBZGJp7CQdK1alTjKdUt7cnkgn0YE6-ae0U_lWUREQ_WfJyUQqYJ_j0eBc__lbMRBsEHOBeYpFMN-98108HMTV9_aB5zh9bAat8obwj25-8oI9LbvhhIAWmEqkP8JuH9lCrFfaM/s400/filter.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391797992901106658&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 2. Types of filtering used.&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHlhYAPOp5Ur3FFokqyn81DeaJVTiUU3onWW6fR_sa44GkSTX_e8nl5ZvznH0iQyhnxISQvYdEmPj7vDTCUF5fDM_9OlbGzgAYp1-8AqR6BkVeanen8YZ4h3pAc5PrTmclQL3r5iTtd0M/s1600-h/test.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 174px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHlhYAPOp5Ur3FFokqyn81DeaJVTiUU3onWW6fR_sa44GkSTX_e8nl5ZvznH0iQyhnxISQvYdEmPj7vDTCUF5fDM_9OlbGzgAYp1-8AqR6BkVeanen8YZ4h3pAc5PrTmclQL3r5iTtd0M/s400/test.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391800435670254930&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 3. Test image and its PDF.&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;It can be seen that each peak in the PDF of the original test image has spread into the shape of the distribution  added noise of the such that the three gray levels are almost coinciding with each other. This is the degradation that is done when adding noise. The same goes for the other distributions. The PDFs of the restored images simply shows how the filters restore the image which is by filtering out the unwanted gray values by thus thinning the fattened distribution for each peak gray value.&lt;br /&gt;&lt;br /&gt;Figure 4 shows the noisy image for the added Gaussian noise with mean = 0.5 and standard deviation = 0.8. The resulting restored images using the five filters were almost the same achieving the three distinct gray value peaks which is close enough to the original.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifa7kgfyMHzrsBZslavEN_YfeOoOaIhrhFfS_QNQtXyLPpvGWpyI1f8AjHyt5Wqxa371dZqpyvRXq1fxY3tp7m7zFQ9Ircf4ayH9KV6O7xaR1P66qUHOopm0aB-P8gJjMmhf0bIVuN1aM/s1600-h/gaussian.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 308px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifa7kgfyMHzrsBZslavEN_YfeOoOaIhrhFfS_QNQtXyLPpvGWpyI1f8AjHyt5Wqxa371dZqpyvRXq1fxY3tp7m7zFQ9Ircf4ayH9KV6O7xaR1P66qUHOopm0aB-P8gJjMmhf0bIVuN1aM/s400/gaussian.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391813780262430450&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 4. Image with gaussian noise and restored images.&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;Figure 5 shows the noisy image for the Rayleigh Distribution. From the PDFs of the restored images, it can be said that the restored images using the arithmetic and geometric mean filter were much better than the other filters.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2IUvfxz4ib4gE4UGA3HM3Y0jeUla1vaJyuNrR5xryLWCXs3glk0vMwoKtmYQpqZuUyaRfM5JigG8t4bApxiq7qKMAMRTvnqZeHJ8kfpDH2psymeBs_zEyQkHLlXMBveCkREQj7ouxpAo/s1600-h/rayleigh.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 308px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2IUvfxz4ib4gE4UGA3HM3Y0jeUla1vaJyuNrR5xryLWCXs3glk0vMwoKtmYQpqZuUyaRfM5JigG8t4bApxiq7qKMAMRTvnqZeHJ8kfpDH2psymeBs_zEyQkHLlXMBveCkREQj7ouxpAo/s400/rayleigh.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391815837776279826&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 5. Image with rayleigh noise and restored images.&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;For the image with Gamma Noise shown in Figure 6, all the filters produced almost the same restored images except for the +Q Contraharmonic filter where the spread of the gray values is still visible.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVf6A56kY7UyXYMSehkKjOv-C6NBtXIUNNJ6iYItmEpXUTLlKdOceiGlXp2ccugfnkU2AnUIZciO2tzRPbUxyV25XpdJ6d9FDQnpf227dfadyEFcom9HXD2JEBHLEXazVqLHr6V4IXpBo/s1600-h/gamma.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 308px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVf6A56kY7UyXYMSehkKjOv-C6NBtXIUNNJ6iYItmEpXUTLlKdOceiGlXp2ccugfnkU2AnUIZciO2tzRPbUxyV25XpdJ6d9FDQnpf227dfadyEFcom9HXD2JEBHLEXazVqLHr6V4IXpBo/s400/gamma.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391816191014026594&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 6. Image with gamma noise and restored images.&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;The test image added with Exponential Noise is shown in Figure 7 and the restored image using the +Q Contraharmonic is clearly not a good result which is obvious from the image itself. Looking at the PDF for this restored image shows that the peaks were just shifted and broadened thus resulting to the noisy image.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipdNA9UfkbdMaHtQR4LM0qjQZWigx4HE5buNKu327PUGgykPqa26qNOIdQSVJMEAMITfvFDPiuJl-jIbGqovb_yQYybsOJVRhDBrcdJDojM814cEaznhl2JJjk5Q4DO27sgpORPzF6p8Y/s1600-h/exponential.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 308px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipdNA9UfkbdMaHtQR4LM0qjQZWigx4HE5buNKu327PUGgykPqa26qNOIdQSVJMEAMITfvFDPiuJl-jIbGqovb_yQYybsOJVRhDBrcdJDojM814cEaznhl2JJjk5Q4DO27sgpORPzF6p8Y/s400/exponential.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391816708863127890&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 7. Image with exponential noise and restored images.&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;Uniform Noise added image shown in Figure 8 shows great degradation due to the shape of the distribution itself where the is no defined peak value. Here, the arithmetic mean filter seems to have produced the best results although the peak gray values are shifted resulting to a lighter gray value for the area that is supposed to be black.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzcbMAUoAuEWPcYDUPueJpy43ZgjFJlp6568GlXt3bUtc6ryDmA_pwHX69r1okbw8r_c4nnDlbav7Ooyv0QwFDMbC9hVclrejL6L-W4ldIfWDWaHa4jlkgw0XbV06_N7fHTh2s2wthvrk/s1600-h/uniform.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 308px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzcbMAUoAuEWPcYDUPueJpy43ZgjFJlp6568GlXt3bUtc6ryDmA_pwHX69r1okbw8r_c4nnDlbav7Ooyv0QwFDMbC9hVclrejL6L-W4ldIfWDWaHa4jlkgw0XbV06_N7fHTh2s2wthvrk/s400/uniform.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391817126042430290&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 8. Image with uniform noise and restored images.&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;For the Salt and Pepper Noise it can be seen that the arithmetic mean filter just blurs the salt and pepper noise thus smoothening it out. It can also be noted that the +Q contraharmonic filter filters out the pepper noise while the geometric, harmonic and -Q contraharmonic filters can filter out the salt noise.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiX2J8TqwPm4qxlr8wGaAO-JuAmcTf079-LV9lPwTPMLrouj07QdaTR_4QJTDpTR-Qd4GDkH-O5bgcl4cUWqhXJjwd5DMOs5BDCMvYxi3War5HDvyKTlHRFsofvw2CDTAEUMtBMwFGXGzU/s1600-h/impulse.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 308px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiX2J8TqwPm4qxlr8wGaAO-JuAmcTf079-LV9lPwTPMLrouj07QdaTR_4QJTDpTR-Qd4GDkH-O5bgcl4cUWqhXJjwd5DMOs5BDCMvYxi3War5HDvyKTlHRFsofvw2CDTAEUMtBMwFGXGzU/s400/impulse.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391828204891248338&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 9. Image with impulse or salt and pepper noise and restored images.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;The arithmetic mean filter basically blurs the image to smooth out the noise. The noise models and image restoration filters are also applied to a grayscale image which was used in a previous activity. The following series of images show the image with the different added noise types and the corresponding restored images using the five filters.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6x0SWHUp5hKPka5-Ahyt3CUyP5ZMnq_4un8hVd9wOx7kdnTdIvzB40T2EkijvR40oLR5XW7MlQcdkGtTnCAhWqHzOgSI06tcBmViXidEagzUM2HLsdUi8jrNX3ui-V-PiSQzY75cBs7I/s1600-h/g.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 175px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6x0SWHUp5hKPka5-Ahyt3CUyP5ZMnq_4un8hVd9wOx7kdnTdIvzB40T2EkijvR40oLR5XW7MlQcdkGtTnCAhWqHzOgSI06tcBmViXidEagzUM2HLsdUi8jrNX3ui-V-PiSQzY75cBs7I/s400/g.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391844432030205762&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwQEsYz8jpFv7co0aM8GR5_aiNXWnOdsTWEz2jhDrVroV1UwEVl7-2LhB3QaVGcXzKB_Al-2cUJ3yRvHTp1gRndzCaFn8hv5Br0FmrNQ3e8OpZDegriTecqRpGpzPH3pk4DtStN73bFCw/s1600-h/gaussian.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 308px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwQEsYz8jpFv7co0aM8GR5_aiNXWnOdsTWEz2jhDrVroV1UwEVl7-2LhB3QaVGcXzKB_Al-2cUJ3yRvHTp1gRndzCaFn8hv5Br0FmrNQ3e8OpZDegriTecqRpGpzPH3pk4DtStN73bFCw/s400/gaussian.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391832877800224050&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6znt1Q2OejTYLeyCdC_tAj5TWjm8Eo-JjounxwK07gvH5kmHhv5B2bEr7an5PTV-_H2mMutQep8WvtlQTENQ7DxClUwvEKkU8PQERHjd_FGid5HSGH5NhOadAyzJlH9omn2gw6_J1m60/s1600-h/rayleigh.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 308px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6znt1Q2OejTYLeyCdC_tAj5TWjm8Eo-JjounxwK07gvH5kmHhv5B2bEr7an5PTV-_H2mMutQep8WvtlQTENQ7DxClUwvEKkU8PQERHjd_FGid5HSGH5NhOadAyzJlH9omn2gw6_J1m60/s400/rayleigh.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391824223521602770&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhu5TSx4CeCu56au16-tzdUSLB7s7NXEk3wfUKTPccC534sxJb2_D9wGb96hBdRQZiUzOBpAWcBai_EaDylU5eFs0tBVvxj3qnz7qPqIfKS4ATAhoaPX8pycxNpNB1i5tRZ1hjP4KgwdTQ/s1600-h/gamma.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 308px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhu5TSx4CeCu56au16-tzdUSLB7s7NXEk3wfUKTPccC534sxJb2_D9wGb96hBdRQZiUzOBpAWcBai_EaDylU5eFs0tBVvxj3qnz7qPqIfKS4ATAhoaPX8pycxNpNB1i5tRZ1hjP4KgwdTQ/s400/gamma.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391835130544524226&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiq8wfsb9Ip6sGPTyxVA0-xGDV3BpkWUYb3q2w1-jVsgoJ80GiaOPvDCQMVOp7L6SrE-s8jFocE05kEKgRnOKwE5Exp-T5PAO3IgdX8yP84KJSiu0dwl61wX4q7tKS2JSDpYpXTHa8q4Q4/s1600-h/exponential.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 308px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiq8wfsb9Ip6sGPTyxVA0-xGDV3BpkWUYb3q2w1-jVsgoJ80GiaOPvDCQMVOp7L6SrE-s8jFocE05kEKgRnOKwE5Exp-T5PAO3IgdX8yP84KJSiu0dwl61wX4q7tKS2JSDpYpXTHa8q4Q4/s400/exponential.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391838727451050882&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmppfxTtr2T8_VPPDBNzLMUuKs8w3KpifVEsNOi6suW5321U-68-PtFb0mf9PNKFB0wZmz7X_80k5sq64j4EDQ4z1TmeAHvr62dPpnpDbK9oV8gJfB_yGjh_dR-wdxMar1fU5M6iu8nBw/s1600-h/uniform.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 308px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmppfxTtr2T8_VPPDBNzLMUuKs8w3KpifVEsNOi6suW5321U-68-PtFb0mf9PNKFB0wZmz7X_80k5sq64j4EDQ4z1TmeAHvr62dPpnpDbK9oV8gJfB_yGjh_dR-wdxMar1fU5M6iu8nBw/s400/uniform.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391841114250578898&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOeWRe9J_aU80OhvXFwxHzff7l8PZOEJpnqm5DWe6ZcxbreOO-XQ86FgbizTOn82jZP6tmXrNE08GrApf55GMyJGYeBe2mgMafzWG3YHnr4HmEls2GWOD4iq3q5qm6SPo74o1vXcdXHTw/s1600-h/impulse.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 308px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOeWRe9J_aU80OhvXFwxHzff7l8PZOEJpnqm5DWe6ZcxbreOO-XQ86FgbizTOn82jZP6tmXrNE08GrApf55GMyJGYeBe2mgMafzWG3YHnr4HmEls2GWOD4iq3q5qm6SPo74o1vXcdXHTw/s400/impulse.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391843618885110082&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOeWRe9J_aU80OhvXFwxHzff7l8PZOEJpnqm5DWe6ZcxbreOO-XQ86FgbizTOn82jZP6tmXrNE08GrApf55GMyJGYeBe2mgMafzWG3YHnr4HmEls2GWOD4iq3q5qm6SPo74o1vXcdXHTw/s1600-h/impulse.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 308px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOeWRe9J_aU80OhvXFwxHzff7l8PZOEJpnqm5DWe6ZcxbreOO-XQ86FgbizTOn82jZP6tmXrNE08GrApf55GMyJGYeBe2mgMafzWG3YHnr4HmEls2GWOD4iq3q5qm6SPo74o1vXcdXHTw/s400/impulse.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391843618885110082&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;I give myself a grade of 10 for this activity.&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&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://ccesporlas-ap186.blogspot.com/2009/10/activity-18-noise-models-and-basic.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8AMsk3l-xG_isNWxMNAoO1uj2PHadajnvA0K86eSBzwXSsiU1C12jRD6ucymrGBKx4-LdhK27u8FpAk93QRnhEeW-ZvVlWGXJe84spEW3WDs6O3G6Jcr2_VQLeny8_gjQOXOGcYgGEyI/s72-c/noise.jpg" height="72" width="72"/><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7876000474578747950.post-6509628811646504473</guid><pubDate>Thu, 10 Sep 2009 01:58:00 +0000</pubDate><atom:updated>2009-10-12T11:52:10.928-07:00</atom:updated><title>Activity 17 | Photometric Stereo</title><description>Light when shone upon an object gives us an idea on the reflectance of that object that can be used in obtaining information about the object like color. The information stored in an objects reflectance due to  a light source is used in many image processing methods which we have explored in the previous activities. Aside from the information that we have been using, we can also obtain the profile or the structure of the object by using images of the object with different light source positions and reconstruct the 3D structure of that object. This is what we call Photometric Stereo.&lt;br /&gt;&lt;br /&gt;When light illuminates an object it produces shadows and color gradients all throughout the illuminated surface. And by getting images of the object at different light source locations, we obtain intensity profile of the whole illuminated surface. Different light sources also affect the intensity profile of the captured image of an object. Figure 1 shows the basic idea of Photometric Stereo where the angle in which light hits the surface of the object affects the captured intensity given by Equation 1 for a light source at infinity for that point P.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjl8cB_lmMSwRR_zZu1YLMusitKLHzFVFqDq75jDq7BmnEA8JSAzNrGW3EPyawbfulotVswqXdoLXWV08vmifpfRytroR6LE7Jd0yekZd4K77lt1YZON7RNYN2dkiHJ78vGU-d0SaHPrjs/s1600-h/photostereo.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 307px; height: 128px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjl8cB_lmMSwRR_zZu1YLMusitKLHzFVFqDq75jDq7BmnEA8JSAzNrGW3EPyawbfulotVswqXdoLXWV08vmifpfRytroR6LE7Jd0yekZd4K77lt1YZON7RNYN2dkiHJ78vGU-d0SaHPrjs/s400/photostereo.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391778226689925458&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 1. Photometric Stereo.&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;img src=&quot;file:///C:/Users/Cindy/AppData/Local/Temp/moz-screenshot.png&quot; alt=&quot;&quot; /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVSOpWFZdeW1PQb81OR4qAT7R8I-XfVxpUrDclBHtuHmhU6pln5cvDDBDcChl3hwku4mxffwivqUufm5_854TfM6qM-Xql5FhSseL4Mtpz2eVkIalV2Aj6jouc0W803nWcqrAvbGTGAfA/s1600-h/eq1.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 289px; height: 43px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVSOpWFZdeW1PQb81OR4qAT7R8I-XfVxpUrDclBHtuHmhU6pln5cvDDBDcChl3hwku4mxffwivqUufm5_854TfM6qM-Xql5FhSseL4Mtpz2eVkIalV2Aj6jouc0W803nWcqrAvbGTGAfA/s400/eq1.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391780113615725890&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Equation 1. Intensity at point P(x,y).&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;In this activity, we use four images of an object taken with different light source positions and use it to reconstruct the 3D structure of the illuminated area, as shown by Figure 2.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHFfTOPwORPOrwjjtwNY-_j7q_-BURRx6LgyqJGsHLPnMmzkOJdRXDRS74Rq8inks3cDG-c1gT1-56-507cYKhzpdpXoyYf5oUQeLx3eUS-24xZqyRMAct6JMZsDKquhMzZwbvf0T9918/s1600-h/I1.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 128px; height: 128px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHFfTOPwORPOrwjjtwNY-_j7q_-BURRx6LgyqJGsHLPnMmzkOJdRXDRS74Rq8inks3cDG-c1gT1-56-507cYKhzpdpXoyYf5oUQeLx3eUS-24xZqyRMAct6JMZsDKquhMzZwbvf0T9918/s320/I1.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391782407939420242&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjtsufw4rK6aakSr2eQLIPQyulocaPxtJdKeBQnpEw-b0e3JbTD7ndnc-KndjYqDLiF2DOhje1P-9TWlgqD9pEoxrcE-vPUVskv87MyUAS_TRbVkwBdvpXdjOSku91ZcllXzQM_ktV7g/s1600-h/I2.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 128px; height: 128px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjtsufw4rK6aakSr2eQLIPQyulocaPxtJdKeBQnpEw-b0e3JbTD7ndnc-KndjYqDLiF2DOhje1P-9TWlgqD9pEoxrcE-vPUVskv87MyUAS_TRbVkwBdvpXdjOSku91ZcllXzQM_ktV7g/s320/I2.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391782517690641730&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7yCKMlS3Nir74SDr5zotrNx0QJaLz7r0-v08bv2zmS5vLc9BSI8caj018azH2-1VzJe-oI4BeqB-Y2BUMh4acUnblqEfaTb-HVksAoO14N8RGkyGPxbIiDaIRw7XjoC6ZTUA2VkYC0b4/s1600-h/I3.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 128px; height: 128px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7yCKMlS3Nir74SDr5zotrNx0QJaLz7r0-v08bv2zmS5vLc9BSI8caj018azH2-1VzJe-oI4BeqB-Y2BUMh4acUnblqEfaTb-HVksAoO14N8RGkyGPxbIiDaIRw7XjoC6ZTUA2VkYC0b4/s320/I3.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391782668635376642&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLP5o6sXOx6lRfTYbxeRj50LZtPE-0BXqzIKgYSc-oCwoTa8vNhm59EPrmYf_wiXzhQx4VGuPp6Gmo2js-XHnw2dTZsh96uEnoH6YjfNiF42XkECT3srAksnQe9yiaXAhoiqwGt2SEPY4/s1600-h/I4.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 128px; height: 128px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLP5o6sXOx6lRfTYbxeRj50LZtPE-0BXqzIKgYSc-oCwoTa8vNhm59EPrmYf_wiXzhQx4VGuPp6Gmo2js-XHnw2dTZsh96uEnoH6YjfNiF42XkECT3srAksnQe9yiaXAhoiqwGt2SEPY4/s320/I4.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391782772325976210&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 2. Images of object at different light source positions.&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;To calculate for the surface normal of the object we need to get the far away point source locations given by &lt;b&gt;V&lt;/b&gt; which was already provided, and the intensity I which is simply the images . The equations needed for calculating the surface normal is shown in Figure 2.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS_1yTtcnfZZB0mCb5434IEJdNKlMsZ8lgF552P89CQBMvVISgfJUFLlA8aNZOc56nEMxsrVzaZcaXTPC4JOy7K9JgVz7FSTT6lmjsGM8G6N5eSKNhH54bgcFpEEDPbzfvJwdQmntULaU/s1600-h/eq2.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 220px; height: 254px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS_1yTtcnfZZB0mCb5434IEJdNKlMsZ8lgF552P89CQBMvVISgfJUFLlA8aNZOc56nEMxsrVzaZcaXTPC4JOy7K9JgVz7FSTT6lmjsGM8G6N5eSKNhH54bgcFpEEDPbzfvJwdQmntULaU/s400/eq2.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391784962405607618&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 3. Equations needed for solving the surface normal.&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;After getting the surface normal, we can now compute for the surface elevation of the object at point (u,v) which is given by z = f(u,v) as shown in the equation below.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoW0Mdqm6za6Sx_Jp5-X5SkKAIomN_bdjZKMGXoBTh9xa2530TnS0DG5RPN9KNWLeKVwcj9B2GbcsnMea2j6Grwo6oO2Wc1HHMI2bq8YXJVlz-qeYTJXKjd0MFhtxPwyt_lOUJKjp54d4/s1600-h/eq3.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 334px; height: 132px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoW0Mdqm6za6Sx_Jp5-X5SkKAIomN_bdjZKMGXoBTh9xa2530TnS0DG5RPN9KNWLeKVwcj9B2GbcsnMea2j6Grwo6oO2Wc1HHMI2bq8YXJVlz-qeYTJXKjd0MFhtxPwyt_lOUJKjp54d4/s400/eq3.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391786593174164850&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Figure 4. Surface elevation at point (u,v).&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;The resulting reconstructed 3D surface is shown below in Figure 5. We can see that the reconstructed surface is not smooth having jagged peaks and grooves. Also there is a concave  dip at the areas where a transition in the intensity is located by comparing it to the four object images shown previously. All in all, the semi-spherical shape obtained matches the expected structure of the object from the images. I give myself a grade of  9 in this activity due to the roughness of the reconstructed surface.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Ot1uNPVXfmfUItaoomXWTUACT6fUMd1AEDQ08RM_U8hVeWO-yqfQVQ6MiNBTz41X87xoOJr2gdOXxCkSNoXWFy-QBdJC0GOQbQGsDEpgzqm8bPHtOdrc60cdI4aR83hpZksUlQBQ9Bo/s1600-h/recon.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 277px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Ot1uNPVXfmfUItaoomXWTUACT6fUMd1AEDQ08RM_U8hVeWO-yqfQVQ6MiNBTz41X87xoOJr2gdOXxCkSNoXWFy-QBdJC0GOQbQGsDEpgzqm8bPHtOdrc60cdI4aR83hpZksUlQBQ9Bo/s400/recon.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391787338332709090&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 5. Reconstructed 3D surface of object.&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&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://ccesporlas-ap186.blogspot.com/2009/09/activity-17-photometric-stereo.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjl8cB_lmMSwRR_zZu1YLMusitKLHzFVFqDq75jDq7BmnEA8JSAzNrGW3EPyawbfulotVswqXdoLXWV08vmifpfRytroR6LE7Jd0yekZd4K77lt1YZON7RNYN2dkiHJ78vGU-d0SaHPrjs/s72-c/photostereo.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7876000474578747950.post-5245141894358385886</guid><pubDate>Thu, 10 Sep 2009 01:54:00 +0000</pubDate><atom:updated>2009-10-12T10:46:54.389-07:00</atom:updated><title>Activity 16 | Neural Networks</title><description>We have already investigated and implemented two methods for object classification using object features which are Minimum Euclidean Distance and Linear Discriminant Analysis. Another method that can be used for object classification is Neural Networks. This method imitates the way the human brain process information like a network of neurons thus the name Neural Networks.&lt;br /&gt;&lt;br /&gt;The human brain manages information by forming paths for that certain information and thus &#39;learns&#39; the information unlike LDA and the Minimum Distance which relies heavily on the features of the object. Examples and iterations develops or trains the network thus speeds up recognition. The framework of a Neural Network is shown below.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4Z6II4BjtZTexNp-wo_ijlC5gMpRoFhhhqhjWgb_EnT_9yvS9v7J0U1ifudlb7hJbyjDuxIKVPuxetMg5jpUMB9jLgN86FkCTs_O5SlcintcuzBNvTBR4r-GwPyJH00D8JbCwjyUPlSE/s1600-h/NN.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 320px; height: 258px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4Z6II4BjtZTexNp-wo_ijlC5gMpRoFhhhqhjWgb_EnT_9yvS9v7J0U1ifudlb7hJbyjDuxIKVPuxetMg5jpUMB9jLgN86FkCTs_O5SlcintcuzBNvTBR4r-GwPyJH00D8JbCwjyUPlSE/s320/NN.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391766570816648946&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 1. Neural Network Framework&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;A Neural Network is composed of three layers which are the input layer, hidden layer, and the output layer. The number of inputs in the input layer is determined by the number of features while the hidden layer can be composed of any desired number of nodes. The input receives the data/signals/features which in turn is forwarded to the hidden layer which acts on the inputs and finally passes the results to the output layer.&lt;br /&gt;&lt;br /&gt;In this activity we feed the obtained features of our objects to a neural network composed of 3 input nodes that represent the 3 features used namely, area, perimeter and RGB sum. There are also 3 hidden nodes, and an output node. The learning rate used is 0.5 and the number of iterations is 1000.&lt;br /&gt;&lt;br /&gt;To train the Neural Network we first entered into the network the training set and then followed by the test set. Figure 2 below shows the results obtained from the Neural Network. To implement this method, the code used by the previous AP186 class, made by Mr. Jeric Tugaff, was utilized. The classification showed 100% accuracy. Changing the order of the objects is also an interesting direction that can be took which might challenge the accuracy of the method since the Neural Network is not trained enough for recognition. I give myself a 10 for this activity.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQbHjATnt7yZlvgMJok0sZq7ed9ZiiuhWWeLOhufevEoqRsAWM9_OHYxFniIq5Lt_zHPv_Im3DwzoOJpA0RexR6g61qFYKeerJneD8-yeXHGiplk5p4DJVLxqM_XKc9p7uCpogM1BM2Q8/s1600-h/A16.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 323px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQbHjATnt7yZlvgMJok0sZq7ed9ZiiuhWWeLOhufevEoqRsAWM9_OHYxFniIq5Lt_zHPv_Im3DwzoOJpA0RexR6g61qFYKeerJneD8-yeXHGiplk5p4DJVLxqM_XKc9p7uCpogM1BM2Q8/s400/A16.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391770029121152402&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 2. Resulting classification obtained using Neural Networks.&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://ccesporlas-ap186.blogspot.com/2009/09/activity-16-neural-networks.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4Z6II4BjtZTexNp-wo_ijlC5gMpRoFhhhqhjWgb_EnT_9yvS9v7J0U1ifudlb7hJbyjDuxIKVPuxetMg5jpUMB9jLgN86FkCTs_O5SlcintcuzBNvTBR4r-GwPyJH00D8JbCwjyUPlSE/s72-c/NN.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7876000474578747950.post-7607491061421552032</guid><pubDate>Thu, 10 Sep 2009 01:53:00 +0000</pubDate><atom:updated>2009-10-12T10:09:35.544-07:00</atom:updated><title>Activity 15 | Probabilistic Classification</title><description>Previously we have performed object classification by using the Minimum Euclidean Distance of the obtained features of the train and test objects. Another method for classifying objects is the Linear Discriminant Analysis or LDA. This method simply uses the probability that an object belongs to a certain group which depends on the features of that specific object and the mean feature vector for that certain group. This also depends on the number of samples present in a group. The highest probability that an object belongs to a group automatically classifies that object into that group. This is called Bayes Rule. LDA uses this rule but starts by assuming the distribution of each group which a multivariate Normal Distribution and that all groups share the same covariance matrix. The probability that an object belongs to a group is given by,&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://people.revoledu.com/kardi/tutorial/LDA/Image/Numerical%20Example_clip_image002_1001.gif&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 215px; height: 27px;&quot; src=&quot;http://people.revoledu.com/kardi/tutorial/LDA/Image/Numerical%20Example_clip_image002_1001.gif&quot; alt=&quot;&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;where, &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://people.revoledu.com/kardi/tutorial/LDA/Image/Numerical%20Example_clip_image030.gif&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 17px; height: 24px;&quot; src=&quot;http://people.revoledu.com/kardi/tutorial/LDA/Image/Numerical%20Example_clip_image030.gif&quot; alt=&quot;&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; is the mean of features for group &lt;span style=&quot;font-style: italic;&quot;&gt;i&lt;/span&gt;, &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://people.revoledu.com/kardi/tutorial/LDA/Image/Numerical%20Example_clip_image014.gif&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 19px; height: 24px;&quot; src=&quot;http://people.revoledu.com/kardi/tutorial/LDA/Image/Numerical%20Example_clip_image014.gif&quot; alt=&quot;&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; is the feature data of object/row k in &lt;span style=&quot;font-weight: bold;&quot;&gt;x&lt;/span&gt; which is the matrix containing the features data, C is the pooled within group covariance matrix, and &lt;span style=&quot;font-style: italic;&quot;&gt;p&lt;/span&gt; is the prior probability vector for object &lt;span style=&quot;font-style: italic;&quot;&gt;i&lt;/span&gt;. Simply, object &lt;span style=&quot;font-style: italic;&quot;&gt;k&lt;/span&gt; is assigned to group  with highest &lt;span style=&quot;font-style: italic;&quot;&gt;f&lt;/span&gt;. The results for the data collected from last activity is shown below.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJ8sYqxbr-PYqrSAJtao_R8IAiQB7cawjz8SWDAD0WWIZyNMlSG5w4tfhYvQQVmeKtlZCF2fOAAl3Rr0xWG5j2OZTrbaEcOG2qhlClAQswYbyabjiGRg-0Rj7xtV3Yb2GnTY8faIs-WaI/s1600-h/A15.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 294px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJ8sYqxbr-PYqrSAJtao_R8IAiQB7cawjz8SWDAD0WWIZyNMlSG5w4tfhYvQQVmeKtlZCF2fOAAl3Rr0xWG5j2OZTrbaEcOG2qhlClAQswYbyabjiGRg-0Rj7xtV3Yb2GnTY8faIs-WaI/s400/A15.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391760454224084594&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;The yellow highlighted areas are the maximum f values. The test objects were also jumbled to show that the method works no matter what the order of test objects is. It can be seen that there is a 100% accuracy in the classification of the objects. I give myself a grade of 10 for this activity for successfully implementing LDA and getting a 100% accurate object classification.&lt;br /&gt;&lt;br /&gt;References: Kardi Teknomo&#39;s Page - Discriminant Analysis Tutorial http://people.revoledu.com/kardi/tutorial/LDA/index.html&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://ccesporlas-ap186.blogspot.com/2009/09/activity-15-probabilistic.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJ8sYqxbr-PYqrSAJtao_R8IAiQB7cawjz8SWDAD0WWIZyNMlSG5w4tfhYvQQVmeKtlZCF2fOAAl3Rr0xWG5j2OZTrbaEcOG2qhlClAQswYbyabjiGRg-0Rj7xtV3Yb2GnTY8faIs-WaI/s72-c/A15.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7876000474578747950.post-7193111754058501621</guid><pubDate>Thu, 27 Aug 2009 01:08:00 +0000</pubDate><atom:updated>2009-10-12T09:35:13.662-07:00</atom:updated><title>Activity 14 | Pattern Recognition</title><description>Sorting or classifying objects using visual information depends on the features of the objects. The human brain can draw, process and manipulate these features from a previous encounter to identify objects. This ability is being implemented in computer vision although it is not on the same level as the human brain.&lt;br /&gt;&lt;br /&gt;In this activity, we implemented pattern recognition using images of different groups of objects and obtained sets of features to describe the objects and to use for recognizing new sets of objects. The groups of objects I used in this activity are 10 coins, 10 fasteners, and 10 leaves as shown by Figures 1-3. The features that were obtained are the area, perimeter and the sum of the RGB values of the object images.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlinObZg98HZHJAGgfr18AoGIPIXL_x-_yL7UXuqFo9WsDdQkIuKCscr-XZxa8CoAPqfFpe-qs-6eENMF9ku-4OHxNyhVRMbwgM13Kpd5_ns6BLRM76x4bHhkeJhzVvjSEcoqYAJNCHOA/s1600-h/p1.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 200px; height: 82px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlinObZg98HZHJAGgfr18AoGIPIXL_x-_yL7UXuqFo9WsDdQkIuKCscr-XZxa8CoAPqfFpe-qs-6eENMF9ku-4OHxNyhVRMbwgM13Kpd5_ns6BLRM76x4bHhkeJhzVvjSEcoqYAJNCHOA/s200/p1.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391750247268869090&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 1. Object group 1: coins.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyflnq0Eyuwe8aV5kLX0ePM3OYN4F-webOvjB1Wg5lh8ND2NcGH8iY3G-2u8t-7qZH4W5ioDbJubhP1Ze4ivlHeNjEs4oO5s8iMxnI4PBudpYi2m9bdGKsxDpoSN8-iXsSx1-_hKW_Yh4/s1600-h/p2.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 169px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyflnq0Eyuwe8aV5kLX0ePM3OYN4F-webOvjB1Wg5lh8ND2NcGH8iY3G-2u8t-7qZH4W5ioDbJubhP1Ze4ivlHeNjEs4oO5s8iMxnI4PBudpYi2m9bdGKsxDpoSN8-iXsSx1-_hKW_Yh4/s200/p2.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391750856399674882&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 2. Object group 2: fasteners.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6ZG5HECkDC4yhYqY_WhEYzXLVRlg0GDJAjzLejBV9Bmv-YTdY9eetrEWInoS_LKzw9QmXJZNmje4ELNuCPO66vc5f1xCVeeJ10z_P4d1n6TJn4jCmrcnB6cv4U9ZQ4mOfWVxRNCv8hjI/s1600-h/p3.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 200px; height: 142px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6ZG5HECkDC4yhYqY_WhEYzXLVRlg0GDJAjzLejBV9Bmv-YTdY9eetrEWInoS_LKzw9QmXJZNmje4ELNuCPO66vc5f1xCVeeJ10z_P4d1n6TJn4jCmrcnB6cv4U9ZQ4mOfWVxRNCv8hjI/s200/p3.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391751158973092658&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 3. Object group 3: leaves.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;The first five objects of each group is used as the training set or the first set of examples where we get the basis for pattern recognition. The last five objects of each group is used as the testing set or the prediction set which will be used for testing the basis features. The same features was obtained for the test set and will be used for predicting which group of objects it belongs.&lt;br /&gt;&lt;br /&gt;The features were obtained using basic image processing techniques such as segmentation by thresholding then counting of the number of pixels of the segmented image to get the area. The perimeter was obtained by getting the length of the contour of the segmented image while the RGB sum is simply the sum of the RGB values of the object image. The basis for pattern recognition is the mean of the features of the five sample objects for each group.&lt;br /&gt;&lt;br /&gt;An object is classified into a group by computing the Minimum Distance of its features with respect to the basis vector or the mean feature vector. The test object is then classified into the group with the smallest feature distance. The figures below show the test objects and the Euclidean Distance for each feature. The highlighted areas represent the group with the minimum distance and thus the group where the test object is classified.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirxYYIcuTQ1J5WZTSt5hG0j4UWseQLTeHfG7rl34vI25LYF2KIiW4aExwXzDAs4UHSy8r-5wrgGlSTukpSXlGin4CDjgww0GFV5GWVFHVAJNbEii9kdl6-47CtiIFDRqW7ik0eRNHYGzM/s1600-h/coin.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 385px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirxYYIcuTQ1J5WZTSt5hG0j4UWseQLTeHfG7rl34vI25LYF2KIiW4aExwXzDAs4UHSy8r-5wrgGlSTukpSXlGin4CDjgww0GFV5GWVFHVAJNbEii9kdl6-47CtiIFDRqW7ik0eRNHYGzM/s400/coin.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391751464711013282&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 4. Euclidean Distances for test objects composed of coins.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDte2qEpstTNEcuohm13PNBIGqMZlhU814nEOlh0-ttTRjwT-4670FXVSCMa6huMlrtFRfpp69LbuWlCB2QsoY6rPkAZpOwZpVrN5hYVYpWFQduuAkPjvG1Wyg1-zGHypMM3mhmwdD0r0/s1600-h/fastener.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 383px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDte2qEpstTNEcuohm13PNBIGqMZlhU814nEOlh0-ttTRjwT-4670FXVSCMa6huMlrtFRfpp69LbuWlCB2QsoY6rPkAZpOwZpVrN5hYVYpWFQduuAkPjvG1Wyg1-zGHypMM3mhmwdD0r0/s400/fastener.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391752046198412898&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 5. Euclidean Distances for test objects composed of fasteners.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheqyNPCpW73XuiRpvHZQ4ald9V1MUPfumP5H79Xhq1Fl0L0hs9ZMkQV2qjqwCxtz3-HaX4lId8MM72HL05MFr2NeChgjgUS6BGCCVJZvEPUQ91mNcHX8Fx87iHzOfdaZypdz7j3uiVs-k/s1600-h/leaf.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 385px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheqyNPCpW73XuiRpvHZQ4ald9V1MUPfumP5H79Xhq1Fl0L0hs9ZMkQV2qjqwCxtz3-HaX4lId8MM72HL05MFr2NeChgjgUS6BGCCVJZvEPUQ91mNcHX8Fx87iHzOfdaZypdz7j3uiVs-k/s400/leaf.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5391752402239801618&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 6. Euclidean Distances for test objects composed of leaves.&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;All in all the accuracy of the pattern recognition is 100%. I give myself a grade of 10 for this activity for the successful implementation of the Minimum Euclidean Distance for object classification.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;</description><link>http://ccesporlas-ap186.blogspot.com/2009/08/a14-pattern-recognition.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlinObZg98HZHJAGgfr18AoGIPIXL_x-_yL7UXuqFo9WsDdQkIuKCscr-XZxa8CoAPqfFpe-qs-6eENMF9ku-4OHxNyhVRMbwgM13Kpd5_ns6BLRM76x4bHhkeJhzVvjSEcoqYAJNCHOA/s72-c/p1.JPG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7876000474578747950.post-2552790339736374433</guid><pubDate>Thu, 06 Aug 2009 07:44:00 +0000</pubDate><atom:updated>2009-08-10T10:40:23.583-07:00</atom:updated><title>Activity 12 | Color Image Segmentation</title><description>It is a common problem in image processing when the region of interest is more than a problem of separating it from a background, or an application of threshold especially when the image involves a great variety of colors. In this activity the region of interest is isolated from the image by image segmentation using color in such a way that different brightness levels are not a problem by converting the RGB color space of the image to the Normalized Chromaticity Coordinates or NCC which is shown in Figure 1.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgn99mOJXJ0jSQM6Ji7XRrB2flVEW4xCqYzAuL6IkfQ0RY6Uafi6dkw6usZqYvboT2Amuh5q4WvLlKrcxV_pD5FlKlfntfwltUloNiOz5OAJlVH93J3GIhQzZSkK5aAtpsGSgxE3P0J5jE/s1600-h/NCC.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 162px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgn99mOJXJ0jSQM6Ji7XRrB2flVEW4xCqYzAuL6IkfQ0RY6Uafi6dkw6usZqYvboT2Amuh5q4WvLlKrcxV_pD5FlKlfntfwltUloNiOz5OAJlVH93J3GIhQzZSkK5aAtpsGSgxE3P0J5jE/s200/NCC.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5368387818239620866&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 1. Normalized Chromaticity Coordinates&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Image segmentation can be done in two ways. First is the parametric segmentation and second is non-parametric segmentation. Parametric segmentation involves the use of image patches of the color of the ROI and its histogram. The ROI can be isolated by doing histogram backprojection to the image using the histogram of the patch of the ROI. Figure 2 shows the original image used for this activity while Figure 3 shows the patches used and the resulting image after applying histogram backprojection to the image using the histogram of the color patch.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYc85hhw06VY4FKmjyxqy9-wrPV7ZZrybyUiNM7sW8lfgFsTPXBv3yMuVWOZXyP3nAlESS6mTy5ULFyVf7AGAj0Kz9j9Madp6kL5DbW-js3AZ6eVnnULmU4MJ0PC4hhCE4R28WpPS3V9s/s1600-h/hibiscus.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 320px; height: 234px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYc85hhw06VY4FKmjyxqy9-wrPV7ZZrybyUiNM7sW8lfgFsTPXBv3yMuVWOZXyP3nAlESS6mTy5ULFyVf7AGAj0Kz9j9Madp6kL5DbW-js3AZ6eVnnULmU4MJ0PC4hhCE4R28WpPS3V9s/s320/hibiscus.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5368390868804172898&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 2. Original image. Hibiscus.&lt;/div&gt;</description><link>http://ccesporlas-ap186.blogspot.com/2009/08/activity-12-color-image-segmentation.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgn99mOJXJ0jSQM6Ji7XRrB2flVEW4xCqYzAuL6IkfQ0RY6Uafi6dkw6usZqYvboT2Amuh5q4WvLlKrcxV_pD5FlKlfntfwltUloNiOz5OAJlVH93J3GIhQzZSkK5aAtpsGSgxE3P0J5jE/s72-c/NCC.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7876000474578747950.post-4676927078677214137</guid><pubDate>Thu, 06 Aug 2009 07:43:00 +0000</pubDate><atom:updated>2009-08-07T06:53:59.238-07:00</atom:updated><title>Activity 11 | Color Camera Processing</title><description>One of the major factors used in judging the quality of digital cameras is its ability to capture colors satisfactorily. Most cameras nowadays give a set of options on the lighting conditions for capturing digital images. These set of options is often called White Balance Setting that gives a set of white balancing constants needed for different conditions.&lt;br /&gt;&lt;br /&gt;In this activity, the digital camera of a Sony Ericsson phone was used to take pictures of objects using the different White Balancing Options which are bulb, cloudy, daylight, and fluorescent. Figure 1 below shows the images captured.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFxl0ZvUL2oG-i0cDfsqHJLCrAIPOIXf9cBXeGBOR6sho1WjlL0tUmalnr4YPHNyFmDYS7gCIlKbsrXreP66OZnjRN5YbcKuwl-h6C1OKLr4th24uZplCeqksGq6UZHdjPZad1dGsWcqw/s1600-h/im_bulb.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 133px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFxl0ZvUL2oG-i0cDfsqHJLCrAIPOIXf9cBXeGBOR6sho1WjlL0tUmalnr4YPHNyFmDYS7gCIlKbsrXreP66OZnjRN5YbcKuwl-h6C1OKLr4th24uZplCeqksGq6UZHdjPZad1dGsWcqw/s320/im_bulb.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367156910830856434&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhk1lFsIjqu6N-3TQpmRNV2bdKrc3jto2d4ulVv-NxKUz422RkCIv7iEAjUrI5MQF5mvOnBXQAiRT6CoeNkwUuHb2Aux7SvUU2w-dwqC5rakW3Qltnt39hnFlmh7dXX2AGLU2H0PFBYhBY/s1600-h/gr_bulb.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 133px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhk1lFsIjqu6N-3TQpmRNV2bdKrc3jto2d4ulVv-NxKUz422RkCIv7iEAjUrI5MQF5mvOnBXQAiRT6CoeNkwUuHb2Aux7SvUU2w-dwqC5rakW3Qltnt39hnFlmh7dXX2AGLU2H0PFBYhBY/s320/gr_bulb.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367157066668419106&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzBR63InCnRf7ilMYmq5xVCbyXwjo-xRSQPB2uNorkibxrSn0L2Vu4LwyCRAQFy6DxfLRcE4aE0r3vHYNMBqdDrTb2VBn4yJiDhonLyZT_pAx-H7IesoTd_FrQQMp4pfKO-KjBeF5n8wI/s1600-h/im_cloudy.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 133px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzBR63InCnRf7ilMYmq5xVCbyXwjo-xRSQPB2uNorkibxrSn0L2Vu4LwyCRAQFy6DxfLRcE4aE0r3vHYNMBqdDrTb2VBn4yJiDhonLyZT_pAx-H7IesoTd_FrQQMp4pfKO-KjBeF5n8wI/s320/im_cloudy.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367157183167740578&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpVKY1Pp-eDM_MceIKi7ysp4ZO7Azxnl0O71-78xzBXVrB62AxsNIdvXsDD_hJxc5A8f_jTw45BkGxNqPoP1rdH76ldTQ91Iwt5wTxu25pM81Le_XopUdxNp0e_NZxU5KFV2SJi-e3Pr4/s1600-h/gr_cloudy.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 133px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpVKY1Pp-eDM_MceIKi7ysp4ZO7Azxnl0O71-78xzBXVrB62AxsNIdvXsDD_hJxc5A8f_jTw45BkGxNqPoP1rdH76ldTQ91Iwt5wTxu25pM81Le_XopUdxNp0e_NZxU5KFV2SJi-e3Pr4/s320/gr_cloudy.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367158158422667058&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwNWsYvJaEYjG84Zdo2zgxui_RZrWPqzm4jkCHmB5rlofVX0naJFinuv3oUY_zHLGCOeREwsVBn1adI2jRhxcGj6gEUoMNdqDKqYu2gvao05Ht692EpySnO5K3X2bvefwzi-vTgVq_8is/s1600-h/im_daylight.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 133px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwNWsYvJaEYjG84Zdo2zgxui_RZrWPqzm4jkCHmB5rlofVX0naJFinuv3oUY_zHLGCOeREwsVBn1adI2jRhxcGj6gEUoMNdqDKqYu2gvao05Ht692EpySnO5K3X2bvefwzi-vTgVq_8is/s320/im_daylight.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367158590396996658&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWKAmiyv3zAG9lVqvq4L6KLOwTHTyBD7i7JWuFBIKNxKPhImXN-akvGg29btySeRo1rqIPoLsSVzj2TegHOt6ipUJLtaMMdmmVlpTj97XkUyOfl6Jy4ckpvx3_8l2tATROY94Toz2LroI/s1600-h/gr_daylight.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 133px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWKAmiyv3zAG9lVqvq4L6KLOwTHTyBD7i7JWuFBIKNxKPhImXN-akvGg29btySeRo1rqIPoLsSVzj2TegHOt6ipUJLtaMMdmmVlpTj97XkUyOfl6Jy4ckpvx3_8l2tATROY94Toz2LroI/s320/gr_daylight.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367158679939412418&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7xz58cDdkYflIBekrOO9xTpNahf_mmudBdSyxMLtKs6mJ8KYYJewpvKytzof5NWHgz8qnqxrh1z5eE3YkW5W_hq733B140VeZn05JX3JoCjPg95pZ2SvvcnvpyF6H3vXOH3A05a_7sHU/s1600-h/im_fluorescent.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 133px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7xz58cDdkYflIBekrOO9xTpNahf_mmudBdSyxMLtKs6mJ8KYYJewpvKytzof5NWHgz8qnqxrh1z5eE3YkW5W_hq733B140VeZn05JX3JoCjPg95pZ2SvvcnvpyF6H3vXOH3A05a_7sHU/s320/im_fluorescent.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367159235868320914&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyAkeaBeWEvBQOQhCuUfh5sL8OmiTlZ3k_VjO2cjo-ZneUGtzSE-vB0jzA1FT6uIaUAPUcqGaLI_wvmPZ-I1WuaCcv2y-faxojH-w3mxn4jwHt1SuSbRXhMTm7P4wzXei1lP3vj4SkxbI/s1600-h/gr_fluorescent.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 133px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyAkeaBeWEvBQOQhCuUfh5sL8OmiTlZ3k_VjO2cjo-ZneUGtzSE-vB0jzA1FT6uIaUAPUcqGaLI_wvmPZ-I1WuaCcv2y-faxojH-w3mxn4jwHt1SuSbRXhMTm7P4wzXei1lP3vj4SkxbI/s320/gr_fluorescent.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367159136079599218&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 1. Different white balancing settings for differently colored objects (left) and objects of the same hue (right) like objects that have the color green. The white balancing settings are (top to bottom) bulb, cloudy, daylight, and fluorescent.&lt;/div&gt;&lt;br /&gt;From the images obtained, it is observed that the bulb and fluorescent settings produced bluish images although the bulb setting images are more bluish and the fluorescent setting images are dimmer, while the cloudy setting produced images with slightly yellowish images and the daylight setting produced brighter colors and less yellowish images than the cloudy setting.&lt;br /&gt;&lt;br /&gt;Now we apply two different White Balancing algorithms to these images namely the White Patch Algorithm and the Gray World Algorithm. The White Patch Algorithm is done by dividing the RGB channels of the original image by the RGB value of the white patch in the original image. Figure 2 shows the white patches used for each image in Figure 1 respectively and Figure 3 shows the resulting images after the White Patch Algorithm.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxUZt_gKOq-8qk3442cBz8gf4y_ulb1g9cCnfjj7eXNTo-8pVoRztQ0sX5Q4Sy4aV7XxKYSa6XJal8Bmes9ml_GDITkMPoehLwv3fHR-3KYNEHCxFWrhS6uvkma9A-SsbwKjS3mey_Iv0/s1600-h/imb_w.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 15px; height: 15px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxUZt_gKOq-8qk3442cBz8gf4y_ulb1g9cCnfjj7eXNTo-8pVoRztQ0sX5Q4Sy4aV7XxKYSa6XJal8Bmes9ml_GDITkMPoehLwv3fHR-3KYNEHCxFWrhS6uvkma9A-SsbwKjS3mey_Iv0/s400/imb_w.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367195380584334418&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjj0qgzKdEm3fiMg13A5MKjSLRfJsXV5tYSXJf5ikhVBKYWUJBg9Z1SJMjfSwPlIQmYImuBcIua32uOQLCj1-6zYBgqVUxQrFO9aOsyQSNkHZQilt3i0pv94wVnl9Pp_rneVN7MWnXM0R4/s1600-h/grb_w.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 15px; height: 15px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjj0qgzKdEm3fiMg13A5MKjSLRfJsXV5tYSXJf5ikhVBKYWUJBg9Z1SJMjfSwPlIQmYImuBcIua32uOQLCj1-6zYBgqVUxQrFO9aOsyQSNkHZQilt3i0pv94wVnl9Pp_rneVN7MWnXM0R4/s400/grb_w.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367195517962307330&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTVJEFdkE_4mAYGOd6cBSLh25x_RzTpHKl8afsWYI7RGw8dL7a90kXkyfC2k1IKdYKaSWSCSPafWHKWSGyGg2A3HFPFvDfF0m53jHW8i-31m-JUhS5VG1_yeRMb0hcc9CDxM_IaGoUlXQ/s1600-h/imc_w.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 15px; height: 15px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTVJEFdkE_4mAYGOd6cBSLh25x_RzTpHKl8afsWYI7RGw8dL7a90kXkyfC2k1IKdYKaSWSCSPafWHKWSGyGg2A3HFPFvDfF0m53jHW8i-31m-JUhS5VG1_yeRMb0hcc9CDxM_IaGoUlXQ/s400/imc_w.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367195628506231938&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3nmqF4zo5XazViGB01jomEZNFqNiaZx7RPZhW8KCPWHMmM-NOFbzLGvOxff8-utGl773DKEZVnVFG_ClQ2nV7yldDzXQBZiVCdtvzp2j2Q9gH-3fajBAxau1ITxGKgv0OHysD1RYRARI/s1600-h/grc_w.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 15px; height: 15px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3nmqF4zo5XazViGB01jomEZNFqNiaZx7RPZhW8KCPWHMmM-NOFbzLGvOxff8-utGl773DKEZVnVFG_ClQ2nV7yldDzXQBZiVCdtvzp2j2Q9gH-3fajBAxau1ITxGKgv0OHysD1RYRARI/s400/grc_w.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367195744382251890&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRKaaX7HvjaHMqjTfjF5n4R9nh8FyU0NjTnGFI-fbMp1l9z5G3uPFmjYsXdjL9giyokcKUf297PrwSeImQd6Nb5Wd8KPhkLqbFu8l1kq0Kch_S6-Tl5sE57k1I8fzNPwmu0go4ihCexDM/s1600-h/imd_w.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 15px; height: 15px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRKaaX7HvjaHMqjTfjF5n4R9nh8FyU0NjTnGFI-fbMp1l9z5G3uPFmjYsXdjL9giyokcKUf297PrwSeImQd6Nb5Wd8KPhkLqbFu8l1kq0Kch_S6-Tl5sE57k1I8fzNPwmu0go4ihCexDM/s400/imd_w.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367195845871264562&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhP7WYBPaXjyoR_zYTmO74cyUMvCManr6C4nyDeKPl_m_z-A8hmUOh959bIfTO46ppPVi-XFjxvJ7pWMlKDu111VoO6bnQU7i7_C8kwung9ya-_TtigftuMsK4aujBEcCXKuLOycr4QhLk/s1600-h/grd_w.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 15px; height: 15px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhP7WYBPaXjyoR_zYTmO74cyUMvCManr6C4nyDeKPl_m_z-A8hmUOh959bIfTO46ppPVi-XFjxvJ7pWMlKDu111VoO6bnQU7i7_C8kwung9ya-_TtigftuMsK4aujBEcCXKuLOycr4QhLk/s400/grd_w.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367195937030883538&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJLex9SmPuw-jRqvh8FOhmmKNY3FtbQx9qXn5skKY9d7Pvp2qTPj2s4_zjI2jZhsNqOdMgZdPQI2wyy_J-OOOCEQuowxRsBo4sIP3p7B0chOSb6tX3-84hFQYCJxic2-pmlcS-gYxQg9M/s1600-h/imf_w.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 15px; height: 15px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJLex9SmPuw-jRqvh8FOhmmKNY3FtbQx9qXn5skKY9d7Pvp2qTPj2s4_zjI2jZhsNqOdMgZdPQI2wyy_J-OOOCEQuowxRsBo4sIP3p7B0chOSb6tX3-84hFQYCJxic2-pmlcS-gYxQg9M/s400/imf_w.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367196076142486978&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEEHMawIXVOYer9GUTA7GHyH1dMvc3SQGTIMvQ4EhRhRcyaAV1cjB9axQoBhtVw15_z5oy4L8-CByFeOm0XRy_ryOkV-NqPr7MuUW9oiYCnWgHHaxVmcnxDoXhQsv9Mn1VOSuk685Xxog/s1600-h/grf_w.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 15px; height: 15px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEEHMawIXVOYer9GUTA7GHyH1dMvc3SQGTIMvQ4EhRhRcyaAV1cjB9axQoBhtVw15_z5oy4L8-CByFeOm0XRy_ryOkV-NqPr7MuUW9oiYCnWgHHaxVmcnxDoXhQsv9Mn1VOSuk685Xxog/s400/grf_w.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367196172042061746&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 2. White patches used for White Patch Algorithm for the respective images in Figure 1.&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCDQ3rKxh-NoWODOy9Y2AG3u2qp1ZnL_MVunIXyo-H33dNMyga7vHzTKdMwZsonW5Im-kbbWayzywnn_NoSeaCVEayNUS1nMLPyi8wPZ3PURm8wn_WM7RAOT5_LPZhoAo97tNnjuPaZ2A/s1600-h/imb_wpa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 133px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCDQ3rKxh-NoWODOy9Y2AG3u2qp1ZnL_MVunIXyo-H33dNMyga7vHzTKdMwZsonW5Im-kbbWayzywnn_NoSeaCVEayNUS1nMLPyi8wPZ3PURm8wn_WM7RAOT5_LPZhoAo97tNnjuPaZ2A/s320/imb_wpa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367197386121547410&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_KYYoXX-vYMEOnSfbkBz-GFxk21v8IVmvcUbFPDOXp8mgPf3tuqqeYkHZRkw98VoumCm66zTww1H7oDOiMF7dmXNcsh4IQ-Rqtva0sqRRerQ7_jejFrIdUN0Rvy6hSd_Q-UNLYbVzX5c/s1600-h/grb_wpa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 133px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_KYYoXX-vYMEOnSfbkBz-GFxk21v8IVmvcUbFPDOXp8mgPf3tuqqeYkHZRkw98VoumCm66zTww1H7oDOiMF7dmXNcsh4IQ-Rqtva0sqRRerQ7_jejFrIdUN0Rvy6hSd_Q-UNLYbVzX5c/s320/grb_wpa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367197674767677426&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWHFrlY_4cTK2wsrgbt7v3wKCR4qOQSdTDYoTB5SMjEBHx6Ymo36FFXp5y3j13x67Ra1azyMfKJT0foAnYxAlZWig8EAZiDH5npXfrvNoycM7PVEybZFKQbHi9MX5Bh6GuILZoT5_mvIs/s1600-h/imc_wpa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 133px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWHFrlY_4cTK2wsrgbt7v3wKCR4qOQSdTDYoTB5SMjEBHx6Ymo36FFXp5y3j13x67Ra1azyMfKJT0foAnYxAlZWig8EAZiDH5npXfrvNoycM7PVEybZFKQbHi9MX5Bh6GuILZoT5_mvIs/s320/imc_wpa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367198003057667778&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqV7dq2U-XzwgnZSK3wc7YiZfrGnmzlBFDYwd5h9nWdAucEyHVnOqFRdWB-fHRUocRR8-cZjugmlfPF-OXXvPLm41vMHzfjCv4OFhdhBsPy4Ex3zVj-BxrWThbfIuMWjAsmF_MZmSObuE/s1600-h/grc_wpa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 133px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqV7dq2U-XzwgnZSK3wc7YiZfrGnmzlBFDYwd5h9nWdAucEyHVnOqFRdWB-fHRUocRR8-cZjugmlfPF-OXXvPLm41vMHzfjCv4OFhdhBsPy4Ex3zVj-BxrWThbfIuMWjAsmF_MZmSObuE/s320/grc_wpa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367198096837138082&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjydrX6QOvAaxu3Nd0sdaabb2AbbBYeRAeAgrc6BPMi8H_d97lY8K8ihcyW7aR5oGsa2MFcRs-Hba-QTN_Ci_kApj3igkAs7fkLEAtYzEIKBRyz46I7_DbSzDa6DyTiOPbvNoTrH9QT5ow/s1600-h/imd_wpa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 133px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjydrX6QOvAaxu3Nd0sdaabb2AbbBYeRAeAgrc6BPMi8H_d97lY8K8ihcyW7aR5oGsa2MFcRs-Hba-QTN_Ci_kApj3igkAs7fkLEAtYzEIKBRyz46I7_DbSzDa6DyTiOPbvNoTrH9QT5ow/s320/imd_wpa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367198206869627906&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOUgTWFLNZQs6M8SKh_Xt3BJYweIrux4QQ5b5vEvNVWoQTaTbToiI_a85XB8BXHOQ8EWpCqG7rtkEAp42N32blkdJWvLAPeOccF62ZmPR8sVQ-TbrB6TgKmDUZbRJXhec1p6OriYwpXKQ/s1600-h/grd_wpa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 133px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOUgTWFLNZQs6M8SKh_Xt3BJYweIrux4QQ5b5vEvNVWoQTaTbToiI_a85XB8BXHOQ8EWpCqG7rtkEAp42N32blkdJWvLAPeOccF62ZmPR8sVQ-TbrB6TgKmDUZbRJXhec1p6OriYwpXKQ/s320/grd_wpa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367198358974550610&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKdmuX45FIIpKZ_waehtXlThU7VtAJSMs0BGxgqt75p3hNx7dmx3KMeL58VzljK-LKSLyU_sbZ0s-heQamRQkejSEhuJ1CrPqDAN4mvIvxTnv1e45v43vOa1cIhhCwaSLisuTETuKBMRc/s1600-h/imf_wpa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 133px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKdmuX45FIIpKZ_waehtXlThU7VtAJSMs0BGxgqt75p3hNx7dmx3KMeL58VzljK-LKSLyU_sbZ0s-heQamRQkejSEhuJ1CrPqDAN4mvIvxTnv1e45v43vOa1cIhhCwaSLisuTETuKBMRc/s320/imf_wpa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367198475943381138&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhO_jvT2KaYuXt2sj547dGAFkomX_dTcsF9nDwMtE1p3oFriDqbsmX4dMayRObj6qLvBM57GAPeaIRGaC2tfOUMIbVy6CD5g5sD-Hu8GX9b2ZvXSgTfq_C9txWyZzfdDFxjJKokBs5_4JE/s1600-h/grf_wpa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 133px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhO_jvT2KaYuXt2sj547dGAFkomX_dTcsF9nDwMtE1p3oFriDqbsmX4dMayRObj6qLvBM57GAPeaIRGaC2tfOUMIbVy6CD5g5sD-Hu8GX9b2ZvXSgTfq_C9txWyZzfdDFxjJKokBs5_4JE/s320/grf_wpa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367198574366927218&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 3. White Balanced images using White Patch Algorithm.&lt;/div&gt;&lt;br /&gt;As observed from the first row of images in Figure 3 it seemed that the white balancing went wrong. By examining the RGB channels (see Figure 4) of the original image of one of the wrongly white balanced images we see that there are areas in the image where the R values are very small and this includes the white patch used for the White Patch Algorithm. Performing the balancing on the red channel will result to very high values for the areas having high red values and very low values for the areas with very low red values thus resulting to the first row of images in Figure 3. It can also be noted that these images were captured with the White Balance setting turned to &#39;Bulb&#39; which may be the source of error for the resulting image.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijawy0KWfN3DP_8buqgfMHO1cHsbwb1q7mIk0Tl5Xv8zVw65jczHr1m_gAHOCklLpnSJX7wdp4N9LcMU86D2ZcWytloZ5TXInagl2SUT-kUtbvx4wWeTdOvQTjmrKVAVuzuDSA7yVjYyI/s1600-h/imb_r.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijawy0KWfN3DP_8buqgfMHO1cHsbwb1q7mIk0Tl5Xv8zVw65jczHr1m_gAHOCklLpnSJX7wdp4N9LcMU86D2ZcWytloZ5TXInagl2SUT-kUtbvx4wWeTdOvQTjmrKVAVuzuDSA7yVjYyI/s320/imb_r.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367203664647901362&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGrzhl2jiCJ63j_0WRSdzH4ulHf-ze39vqf3ObQHKhE0P2Apzqn7fhIfI99SXeKhBrSfTngmMMuEVMMH8-pNna2NpVqm5eoRKizXUu8eFeoMtSWJd1NHgqK54RGuwHdMU2q6jmppa0O5c/s1600-h/imb_g.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGrzhl2jiCJ63j_0WRSdzH4ulHf-ze39vqf3ObQHKhE0P2Apzqn7fhIfI99SXeKhBrSfTngmMMuEVMMH8-pNna2NpVqm5eoRKizXUu8eFeoMtSWJd1NHgqK54RGuwHdMU2q6jmppa0O5c/s320/imb_g.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367203835613220034&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-dq_MmGaVRWMrWAYyPnAt_8F_6Hihnplf0cf3Sllhpfhz_oi9KHPX0X1dEJx-fIVtFAwBkZbHKDqyA5lxL6miGYJQlu6M44shVNcBAtVMwUJA14BkaKYrNnJozvXdJL4Y0fPhrbAY_jc/s1600-h/imb_b.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-dq_MmGaVRWMrWAYyPnAt_8F_6Hihnplf0cf3Sllhpfhz_oi9KHPX0X1dEJx-fIVtFAwBkZbHKDqyA5lxL6miGYJQlu6M44shVNcBAtVMwUJA14BkaKYrNnJozvXdJL4Y0fPhrbAY_jc/s320/imb_b.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367204583553562450&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3sz6P3UDlwZGJt25yXi7j4hRRDjymGojK7THqZ-9qy9JcJmrGHUZ4NoS_V7ZbWq8wPpS8eBwsA8TACTM_MTybgpSR4V73BxJV1xchVDmq0Ti42vPEjUwFSUiqAmckfvjPygGrKSV6J1U/s1600-h/grb_r.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3sz6P3UDlwZGJt25yXi7j4hRRDjymGojK7THqZ-9qy9JcJmrGHUZ4NoS_V7ZbWq8wPpS8eBwsA8TACTM_MTybgpSR4V73BxJV1xchVDmq0Ti42vPEjUwFSUiqAmckfvjPygGrKSV6J1U/s200/grb_r.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367219190616082498&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9Yjv_mnosw-pQrWx5-xPn6aLdqAVyK2Hjn89KtFWulYvKkm8vmqqwFUG9Jq628-1O1J-fITUism3HJ2xFcCEdXK7_D32J5VtHEYn3T9OgwnF7BqZJS0EGNqDwJkfRTLCf9xAAJfqySvs/s1600-h/grb_g.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9Yjv_mnosw-pQrWx5-xPn6aLdqAVyK2Hjn89KtFWulYvKkm8vmqqwFUG9Jq628-1O1J-fITUism3HJ2xFcCEdXK7_D32J5VtHEYn3T9OgwnF7BqZJS0EGNqDwJkfRTLCf9xAAJfqySvs/s200/grb_g.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367219297964500818&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgveLbfOgO8T7IC7kbim-dvOcZx3QzrDFBLOcFDi4ngUlVMZXzyXfGrK7PXQRpWUj5PNCtrJLN-EWhWBl7Ec8C2lnoR7Zt22nBPITdlU0X_eoymGTNh15HP8qtSybTuI5QUSgNNaSF-rSg/s1600-h/grb_b.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgveLbfOgO8T7IC7kbim-dvOcZx3QzrDFBLOcFDi4ngUlVMZXzyXfGrK7PXQRpWUj5PNCtrJLN-EWhWBl7Ec8C2lnoR7Zt22nBPITdlU0X_eoymGTNh15HP8qtSybTuI5QUSgNNaSF-rSg/s200/grb_b.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367219395769088898&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 4. Respective R, G, and B channels of the original image for the resulting image (first row) in Figure 3.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Now we examine the second white balancing algorithm which is the Gray World Algorithm. In this algorithm the balancing constant is based on all the respective RGB values of the image and not just a white patch in the image. Figure 5 shows the resulting white balanced images of the original images in Figure 1.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjz-nr4CTxFVLw7ctDHsDVFFoOzeR0jHMu6Bq57SQfau6t6PhA8F6t6FsfDHoQh8m0eVaKqGCGHQFO2si-By69YrqbME_BtBDIYAIc-R1noD5xNsOKqAdM9WrF5WUHxaPEm-tXnjkjEJJY/s1600-h/imb_gwa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 133px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjz-nr4CTxFVLw7ctDHsDVFFoOzeR0jHMu6Bq57SQfau6t6PhA8F6t6FsfDHoQh8m0eVaKqGCGHQFO2si-By69YrqbME_BtBDIYAIc-R1noD5xNsOKqAdM9WrF5WUHxaPEm-tXnjkjEJJY/s320/imb_gwa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367210702754174178&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzViGe39BLEQy4MKBMYd-n9i7gFtqCBKgV-PqTC35F4G2jMrppjxTavypAdcr3472IZ1tJ_z9iFgbBGcYYrUQagKQD1QzV7LW8M1dHrHNEXldY9bnzeTF3-FMbVSUIjuwnIChLm55o3ok/s1600-h/grb_gwa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 133px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzViGe39BLEQy4MKBMYd-n9i7gFtqCBKgV-PqTC35F4G2jMrppjxTavypAdcr3472IZ1tJ_z9iFgbBGcYYrUQagKQD1QzV7LW8M1dHrHNEXldY9bnzeTF3-FMbVSUIjuwnIChLm55o3ok/s320/grb_gwa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367210942943611570&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAWPLCJx4dEgGoaUiCxRSCDmK5zejb59uQ6WOYvKq2VJigWKzKj1umSGuPxrb19JBhYpKp2l3aF8lPQCv_4GKx0AKWqc1uCyR_ISyNbz2EeFMt5Fum8gzvJGPIMQgN-Bj2eC_Cxv4pZdU/s1600-h/imc_gwa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 133px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAWPLCJx4dEgGoaUiCxRSCDmK5zejb59uQ6WOYvKq2VJigWKzKj1umSGuPxrb19JBhYpKp2l3aF8lPQCv_4GKx0AKWqc1uCyR_ISyNbz2EeFMt5Fum8gzvJGPIMQgN-Bj2eC_Cxv4pZdU/s320/imc_gwa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367211039959289538&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-D6gLOzDphvFc1FpJKC32S10NfqwdtJclF5a3q7m1MZBKP0YTqJOPod7i5AZC0cNcb7zrm9Q0SYWzqOjvWZNXolS8k3newVe-SCdAfFjhkhuid-oG4ONVqsCgv3210h-MCAgGPAdckO8/s1600-h/grc_gwa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 133px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-D6gLOzDphvFc1FpJKC32S10NfqwdtJclF5a3q7m1MZBKP0YTqJOPod7i5AZC0cNcb7zrm9Q0SYWzqOjvWZNXolS8k3newVe-SCdAfFjhkhuid-oG4ONVqsCgv3210h-MCAgGPAdckO8/s320/grc_gwa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367211131607331442&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivuAwSiObSNGy2S8-2zZY-aSJUUUz1uuM93W9R_WZCfl9dT83dYbdYXm3A5epWUui9imxeRcgwknjXCbI1xFy61zgiY8-E8ueLhFAP-Oaj2LEa2dK-BJgawcSc_DvJwgNCOLp4heFnirE/s1600-h/imd_gwa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 133px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivuAwSiObSNGy2S8-2zZY-aSJUUUz1uuM93W9R_WZCfl9dT83dYbdYXm3A5epWUui9imxeRcgwknjXCbI1xFy61zgiY8-E8ueLhFAP-Oaj2LEa2dK-BJgawcSc_DvJwgNCOLp4heFnirE/s320/imd_gwa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367211247366528962&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNa5sbbQ3WDgCfeaPS4-ei6joxGv1MzR6rW07IY8r-bB0l2TK7ReZIk2Z2f0jvs1eKRy9MpCC6D4eL38zs9qRaXAroNk8_ZPiHSqgb24mz6iCh30XSGCffHmycsNwpbljKiT2GQ5mT56g/s1600-h/grd_gwa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 133px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNa5sbbQ3WDgCfeaPS4-ei6joxGv1MzR6rW07IY8r-bB0l2TK7ReZIk2Z2f0jvs1eKRy9MpCC6D4eL38zs9qRaXAroNk8_ZPiHSqgb24mz6iCh30XSGCffHmycsNwpbljKiT2GQ5mT56g/s320/grd_gwa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367211370571229698&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDWBiPVQPC10WvYXALOsAQvXpJHhhydFyscYx3ITt13FaNDhUQ6phNxlaK6uIRrGoRgrdjsZcwny5kk1iIaUxZ-JGDSlTmSZmn4aA9nGxA3sJGohR5vNtcRv4KHXNnl9qKFLrOoyNzaTU/s1600-h/imf_gwa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 133px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDWBiPVQPC10WvYXALOsAQvXpJHhhydFyscYx3ITt13FaNDhUQ6phNxlaK6uIRrGoRgrdjsZcwny5kk1iIaUxZ-JGDSlTmSZmn4aA9nGxA3sJGohR5vNtcRv4KHXNnl9qKFLrOoyNzaTU/s320/imf_gwa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367211483715096162&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8psYGLxskfnvwQRXFXULw60gqSfL4ZkVTYN7GoWuHNT2FDc5vK44ELKqWQwPExMISqNn5CVhDquOTgGWYhErMV8AhyphenhyphenugFB1ELpWvJqsnujDdhBnvhIR459q61KRe6KwClViVSqQN9YIk/s1600-h/grf_gwa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 133px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8psYGLxskfnvwQRXFXULw60gqSfL4ZkVTYN7GoWuHNT2FDc5vK44ELKqWQwPExMISqNn5CVhDquOTgGWYhErMV8AhyphenhyphenugFB1ELpWvJqsnujDdhBnvhIR459q61KRe6KwClViVSqQN9YIk/s320/grf_gwa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367211574270052834&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 5. White Balanced images using White Patch Algorithm.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Summary of Images&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFxl0ZvUL2oG-i0cDfsqHJLCrAIPOIXf9cBXeGBOR6sho1WjlL0tUmalnr4YPHNyFmDYS7gCIlKbsrXreP66OZnjRN5YbcKuwl-h6C1OKLr4th24uZplCeqksGq6UZHdjPZad1dGsWcqw/s1600-h/im_bulb.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFxl0ZvUL2oG-i0cDfsqHJLCrAIPOIXf9cBXeGBOR6sho1WjlL0tUmalnr4YPHNyFmDYS7gCIlKbsrXreP66OZnjRN5YbcKuwl-h6C1OKLr4th24uZplCeqksGq6UZHdjPZad1dGsWcqw/s320/im_bulb.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367156910830856434&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCDQ3rKxh-NoWODOy9Y2AG3u2qp1ZnL_MVunIXyo-H33dNMyga7vHzTKdMwZsonW5Im-kbbWayzywnn_NoSeaCVEayNUS1nMLPyi8wPZ3PURm8wn_WM7RAOT5_LPZhoAo97tNnjuPaZ2A/s1600-h/imb_wpa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCDQ3rKxh-NoWODOy9Y2AG3u2qp1ZnL_MVunIXyo-H33dNMyga7vHzTKdMwZsonW5Im-kbbWayzywnn_NoSeaCVEayNUS1nMLPyi8wPZ3PURm8wn_WM7RAOT5_LPZhoAo97tNnjuPaZ2A/s320/imb_wpa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367197386121547410&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjz-nr4CTxFVLw7ctDHsDVFFoOzeR0jHMu6Bq57SQfau6t6PhA8F6t6FsfDHoQh8m0eVaKqGCGHQFO2si-By69YrqbME_BtBDIYAIc-R1noD5xNsOKqAdM9WrF5WUHxaPEm-tXnjkjEJJY/s1600-h/imb_gwa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjz-nr4CTxFVLw7ctDHsDVFFoOzeR0jHMu6Bq57SQfau6t6PhA8F6t6FsfDHoQh8m0eVaKqGCGHQFO2si-By69YrqbME_BtBDIYAIc-R1noD5xNsOKqAdM9WrF5WUHxaPEm-tXnjkjEJJY/s320/imb_gwa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367210702754174178&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzBR63InCnRf7ilMYmq5xVCbyXwjo-xRSQPB2uNorkibxrSn0L2Vu4LwyCRAQFy6DxfLRcE4aE0r3vHYNMBqdDrTb2VBn4yJiDhonLyZT_pAx-H7IesoTd_FrQQMp4pfKO-KjBeF5n8wI/s1600-h/im_cloudy.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzBR63InCnRf7ilMYmq5xVCbyXwjo-xRSQPB2uNorkibxrSn0L2Vu4LwyCRAQFy6DxfLRcE4aE0r3vHYNMBqdDrTb2VBn4yJiDhonLyZT_pAx-H7IesoTd_FrQQMp4pfKO-KjBeF5n8wI/s320/im_cloudy.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367157183167740578&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWHFrlY_4cTK2wsrgbt7v3wKCR4qOQSdTDYoTB5SMjEBHx6Ymo36FFXp5y3j13x67Ra1azyMfKJT0foAnYxAlZWig8EAZiDH5npXfrvNoycM7PVEybZFKQbHi9MX5Bh6GuILZoT5_mvIs/s1600-h/imc_wpa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWHFrlY_4cTK2wsrgbt7v3wKCR4qOQSdTDYoTB5SMjEBHx6Ymo36FFXp5y3j13x67Ra1azyMfKJT0foAnYxAlZWig8EAZiDH5npXfrvNoycM7PVEybZFKQbHi9MX5Bh6GuILZoT5_mvIs/s320/imc_wpa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367198003057667778&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAWPLCJx4dEgGoaUiCxRSCDmK5zejb59uQ6WOYvKq2VJigWKzKj1umSGuPxrb19JBhYpKp2l3aF8lPQCv_4GKx0AKWqc1uCyR_ISyNbz2EeFMt5Fum8gzvJGPIMQgN-Bj2eC_Cxv4pZdU/s1600-h/imc_gwa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAWPLCJx4dEgGoaUiCxRSCDmK5zejb59uQ6WOYvKq2VJigWKzKj1umSGuPxrb19JBhYpKp2l3aF8lPQCv_4GKx0AKWqc1uCyR_ISyNbz2EeFMt5Fum8gzvJGPIMQgN-Bj2eC_Cxv4pZdU/s320/imc_gwa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367211039959289538&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwNWsYvJaEYjG84Zdo2zgxui_RZrWPqzm4jkCHmB5rlofVX0naJFinuv3oUY_zHLGCOeREwsVBn1adI2jRhxcGj6gEUoMNdqDKqYu2gvao05Ht692EpySnO5K3X2bvefwzi-vTgVq_8is/s1600-h/im_daylight.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwNWsYvJaEYjG84Zdo2zgxui_RZrWPqzm4jkCHmB5rlofVX0naJFinuv3oUY_zHLGCOeREwsVBn1adI2jRhxcGj6gEUoMNdqDKqYu2gvao05Ht692EpySnO5K3X2bvefwzi-vTgVq_8is/s320/im_daylight.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367158590396996658&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjydrX6QOvAaxu3Nd0sdaabb2AbbBYeRAeAgrc6BPMi8H_d97lY8K8ihcyW7aR5oGsa2MFcRs-Hba-QTN_Ci_kApj3igkAs7fkLEAtYzEIKBRyz46I7_DbSzDa6DyTiOPbvNoTrH9QT5ow/s1600-h/imd_wpa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjydrX6QOvAaxu3Nd0sdaabb2AbbBYeRAeAgrc6BPMi8H_d97lY8K8ihcyW7aR5oGsa2MFcRs-Hba-QTN_Ci_kApj3igkAs7fkLEAtYzEIKBRyz46I7_DbSzDa6DyTiOPbvNoTrH9QT5ow/s320/imd_wpa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367198206869627906&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivuAwSiObSNGy2S8-2zZY-aSJUUUz1uuM93W9R_WZCfl9dT83dYbdYXm3A5epWUui9imxeRcgwknjXCbI1xFy61zgiY8-E8ueLhFAP-Oaj2LEa2dK-BJgawcSc_DvJwgNCOLp4heFnirE/s1600-h/imd_gwa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivuAwSiObSNGy2S8-2zZY-aSJUUUz1uuM93W9R_WZCfl9dT83dYbdYXm3A5epWUui9imxeRcgwknjXCbI1xFy61zgiY8-E8ueLhFAP-Oaj2LEa2dK-BJgawcSc_DvJwgNCOLp4heFnirE/s320/imd_gwa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367211247366528962&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7xz58cDdkYflIBekrOO9xTpNahf_mmudBdSyxMLtKs6mJ8KYYJewpvKytzof5NWHgz8qnqxrh1z5eE3YkW5W_hq733B140VeZn05JX3JoCjPg95pZ2SvvcnvpyF6H3vXOH3A05a_7sHU/s1600-h/im_fluorescent.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7xz58cDdkYflIBekrOO9xTpNahf_mmudBdSyxMLtKs6mJ8KYYJewpvKytzof5NWHgz8qnqxrh1z5eE3YkW5W_hq733B140VeZn05JX3JoCjPg95pZ2SvvcnvpyF6H3vXOH3A05a_7sHU/s320/im_fluorescent.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367159235868320914&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKdmuX45FIIpKZ_waehtXlThU7VtAJSMs0BGxgqt75p3hNx7dmx3KMeL58VzljK-LKSLyU_sbZ0s-heQamRQkejSEhuJ1CrPqDAN4mvIvxTnv1e45v43vOa1cIhhCwaSLisuTETuKBMRc/s1600-h/imf_wpa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKdmuX45FIIpKZ_waehtXlThU7VtAJSMs0BGxgqt75p3hNx7dmx3KMeL58VzljK-LKSLyU_sbZ0s-heQamRQkejSEhuJ1CrPqDAN4mvIvxTnv1e45v43vOa1cIhhCwaSLisuTETuKBMRc/s320/imf_wpa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367198475943381138&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDWBiPVQPC10WvYXALOsAQvXpJHhhydFyscYx3ITt13FaNDhUQ6phNxlaK6uIRrGoRgrdjsZcwny5kk1iIaUxZ-JGDSlTmSZmn4aA9nGxA3sJGohR5vNtcRv4KHXNnl9qKFLrOoyNzaTU/s1600-h/imf_gwa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDWBiPVQPC10WvYXALOsAQvXpJHhhydFyscYx3ITt13FaNDhUQ6phNxlaK6uIRrGoRgrdjsZcwny5kk1iIaUxZ-JGDSlTmSZmn4aA9nGxA3sJGohR5vNtcRv4KHXNnl9qKFLrOoyNzaTU/s320/imf_gwa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367211483715096162&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhk1lFsIjqu6N-3TQpmRNV2bdKrc3jto2d4ulVv-NxKUz422RkCIv7iEAjUrI5MQF5mvOnBXQAiRT6CoeNkwUuHb2Aux7SvUU2w-dwqC5rakW3Qltnt39hnFlmh7dXX2AGLU2H0PFBYhBY/s1600-h/gr_bulb.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhk1lFsIjqu6N-3TQpmRNV2bdKrc3jto2d4ulVv-NxKUz422RkCIv7iEAjUrI5MQF5mvOnBXQAiRT6CoeNkwUuHb2Aux7SvUU2w-dwqC5rakW3Qltnt39hnFlmh7dXX2AGLU2H0PFBYhBY/s320/gr_bulb.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367157066668419106&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_KYYoXX-vYMEOnSfbkBz-GFxk21v8IVmvcUbFPDOXp8mgPf3tuqqeYkHZRkw98VoumCm66zTww1H7oDOiMF7dmXNcsh4IQ-Rqtva0sqRRerQ7_jejFrIdUN0Rvy6hSd_Q-UNLYbVzX5c/s1600-h/grb_wpa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_KYYoXX-vYMEOnSfbkBz-GFxk21v8IVmvcUbFPDOXp8mgPf3tuqqeYkHZRkw98VoumCm66zTww1H7oDOiMF7dmXNcsh4IQ-Rqtva0sqRRerQ7_jejFrIdUN0Rvy6hSd_Q-UNLYbVzX5c/s320/grb_wpa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367197674767677426&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzViGe39BLEQy4MKBMYd-n9i7gFtqCBKgV-PqTC35F4G2jMrppjxTavypAdcr3472IZ1tJ_z9iFgbBGcYYrUQagKQD1QzV7LW8M1dHrHNEXldY9bnzeTF3-FMbVSUIjuwnIChLm55o3ok/s1600-h/grb_gwa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzViGe39BLEQy4MKBMYd-n9i7gFtqCBKgV-PqTC35F4G2jMrppjxTavypAdcr3472IZ1tJ_z9iFgbBGcYYrUQagKQD1QzV7LW8M1dHrHNEXldY9bnzeTF3-FMbVSUIjuwnIChLm55o3ok/s320/grb_gwa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367210942943611570&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpVKY1Pp-eDM_MceIKi7ysp4ZO7Azxnl0O71-78xzBXVrB62AxsNIdvXsDD_hJxc5A8f_jTw45BkGxNqPoP1rdH76ldTQ91Iwt5wTxu25pM81Le_XopUdxNp0e_NZxU5KFV2SJi-e3Pr4/s1600-h/gr_cloudy.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpVKY1Pp-eDM_MceIKi7ysp4ZO7Azxnl0O71-78xzBXVrB62AxsNIdvXsDD_hJxc5A8f_jTw45BkGxNqPoP1rdH76ldTQ91Iwt5wTxu25pM81Le_XopUdxNp0e_NZxU5KFV2SJi-e3Pr4/s320/gr_cloudy.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367158158422667058&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqV7dq2U-XzwgnZSK3wc7YiZfrGnmzlBFDYwd5h9nWdAucEyHVnOqFRdWB-fHRUocRR8-cZjugmlfPF-OXXvPLm41vMHzfjCv4OFhdhBsPy4Ex3zVj-BxrWThbfIuMWjAsmF_MZmSObuE/s1600-h/grc_wpa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqV7dq2U-XzwgnZSK3wc7YiZfrGnmzlBFDYwd5h9nWdAucEyHVnOqFRdWB-fHRUocRR8-cZjugmlfPF-OXXvPLm41vMHzfjCv4OFhdhBsPy4Ex3zVj-BxrWThbfIuMWjAsmF_MZmSObuE/s320/grc_wpa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367198096837138082&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-D6gLOzDphvFc1FpJKC32S10NfqwdtJclF5a3q7m1MZBKP0YTqJOPod7i5AZC0cNcb7zrm9Q0SYWzqOjvWZNXolS8k3newVe-SCdAfFjhkhuid-oG4ONVqsCgv3210h-MCAgGPAdckO8/s1600-h/grc_gwa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-D6gLOzDphvFc1FpJKC32S10NfqwdtJclF5a3q7m1MZBKP0YTqJOPod7i5AZC0cNcb7zrm9Q0SYWzqOjvWZNXolS8k3newVe-SCdAfFjhkhuid-oG4ONVqsCgv3210h-MCAgGPAdckO8/s320/grc_gwa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367211131607331442&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWKAmiyv3zAG9lVqvq4L6KLOwTHTyBD7i7JWuFBIKNxKPhImXN-akvGg29btySeRo1rqIPoLsSVzj2TegHOt6ipUJLtaMMdmmVlpTj97XkUyOfl6Jy4ckpvx3_8l2tATROY94Toz2LroI/s1600-h/gr_daylight.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWKAmiyv3zAG9lVqvq4L6KLOwTHTyBD7i7JWuFBIKNxKPhImXN-akvGg29btySeRo1rqIPoLsSVzj2TegHOt6ipUJLtaMMdmmVlpTj97XkUyOfl6Jy4ckpvx3_8l2tATROY94Toz2LroI/s320/gr_daylight.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367158679939412418&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOUgTWFLNZQs6M8SKh_Xt3BJYweIrux4QQ5b5vEvNVWoQTaTbToiI_a85XB8BXHOQ8EWpCqG7rtkEAp42N32blkdJWvLAPeOccF62ZmPR8sVQ-TbrB6TgKmDUZbRJXhec1p6OriYwpXKQ/s1600-h/grd_wpa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOUgTWFLNZQs6M8SKh_Xt3BJYweIrux4QQ5b5vEvNVWoQTaTbToiI_a85XB8BXHOQ8EWpCqG7rtkEAp42N32blkdJWvLAPeOccF62ZmPR8sVQ-TbrB6TgKmDUZbRJXhec1p6OriYwpXKQ/s320/grd_wpa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367198358974550610&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNa5sbbQ3WDgCfeaPS4-ei6joxGv1MzR6rW07IY8r-bB0l2TK7ReZIk2Z2f0jvs1eKRy9MpCC6D4eL38zs9qRaXAroNk8_ZPiHSqgb24mz6iCh30XSGCffHmycsNwpbljKiT2GQ5mT56g/s1600-h/grd_gwa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNa5sbbQ3WDgCfeaPS4-ei6joxGv1MzR6rW07IY8r-bB0l2TK7ReZIk2Z2f0jvs1eKRy9MpCC6D4eL38zs9qRaXAroNk8_ZPiHSqgb24mz6iCh30XSGCffHmycsNwpbljKiT2GQ5mT56g/s320/grd_gwa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367211370571229698&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyAkeaBeWEvBQOQhCuUfh5sL8OmiTlZ3k_VjO2cjo-ZneUGtzSE-vB0jzA1FT6uIaUAPUcqGaLI_wvmPZ-I1WuaCcv2y-faxojH-w3mxn4jwHt1SuSbRXhMTm7P4wzXei1lP3vj4SkxbI/s1600-h/gr_fluorescent.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyAkeaBeWEvBQOQhCuUfh5sL8OmiTlZ3k_VjO2cjo-ZneUGtzSE-vB0jzA1FT6uIaUAPUcqGaLI_wvmPZ-I1WuaCcv2y-faxojH-w3mxn4jwHt1SuSbRXhMTm7P4wzXei1lP3vj4SkxbI/s320/gr_fluorescent.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367159136079599218&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhO_jvT2KaYuXt2sj547dGAFkomX_dTcsF9nDwMtE1p3oFriDqbsmX4dMayRObj6qLvBM57GAPeaIRGaC2tfOUMIbVy6CD5g5sD-Hu8GX9b2ZvXSgTfq_C9txWyZzfdDFxjJKokBs5_4JE/s1600-h/grf_wpa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhO_jvT2KaYuXt2sj547dGAFkomX_dTcsF9nDwMtE1p3oFriDqbsmX4dMayRObj6qLvBM57GAPeaIRGaC2tfOUMIbVy6CD5g5sD-Hu8GX9b2ZvXSgTfq_C9txWyZzfdDFxjJKokBs5_4JE/s320/grf_wpa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367198574366927218&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8psYGLxskfnvwQRXFXULw60gqSfL4ZkVTYN7GoWuHNT2FDc5vK44ELKqWQwPExMISqNn5CVhDquOTgGWYhErMV8AhyphenhyphenugFB1ELpWvJqsnujDdhBnvhIR459q61KRe6KwClViVSqQN9YIk/s1600-h/grf_gwa.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 123px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8psYGLxskfnvwQRXFXULw60gqSfL4ZkVTYN7GoWuHNT2FDc5vK44ELKqWQwPExMISqNn5CVhDquOTgGWYhErMV8AhyphenhyphenugFB1ELpWvJqsnujDdhBnvhIR459q61KRe6KwClViVSqQN9YIk/s320/grf_gwa.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367211574270052834&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;From the obtained white balanced images, we can see that the White Patch Algorithm gives better results but has a disadvantage when the RGB values of the original image has extreme values that could be very low or very high for particular areas. The Gray World Algorithm did not give a good white balancing result because it depends on the most dominant color on the image although extreme RGB values is not a problem with it.&lt;br /&gt;&lt;br /&gt;I give myself a 9 for this activity since I was able to implement correctly the two white balancing algorithms and was able to identify possible sources of error, although I was not able to adjust the unsatisfactory results obtained for the images with &#39;Bulb&#39; white balance setting.&lt;br /&gt;&lt;br /&gt;I thank Kaye Vergel for lending me her Sony Ericsson phone with digital camera, Gilbert Gubatan for the red umbrella, Cherry Palomero for the pink clear folder and yellow hand fan, Luis Buno for the blue logbook, Shamandura Cabato for modeling her green shirt, Winsome Rara for the green eyeglass case, Jica Monsanto for the green box and the white piece of paper, NIP for the green floor paint and green colored chalk, and lastly Miguel Sison for the comments and recommendations on the unsatisfatory results for the white balancing of the images with &#39;Bulb&#39; white balance setting.</description><link>http://ccesporlas-ap186.blogspot.com/2009/08/activity-11-color-camera-processing.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFxl0ZvUL2oG-i0cDfsqHJLCrAIPOIXf9cBXeGBOR6sho1WjlL0tUmalnr4YPHNyFmDYS7gCIlKbsrXreP66OZnjRN5YbcKuwl-h6C1OKLr4th24uZplCeqksGq6UZHdjPZad1dGsWcqw/s72-c/im_bulb.JPG" height="72" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7876000474578747950.post-3730744479636686276</guid><pubDate>Thu, 06 Aug 2009 07:42:00 +0000</pubDate><atom:updated>2009-08-06T00:43:11.644-07:00</atom:updated><title>Activity 10 | Preprocessing Text</title><description></description><link>http://ccesporlas-ap186.blogspot.com/2009/08/activity-10-preprocessing-text.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7876000474578747950.post-4999231595173037689</guid><pubDate>Thu, 06 Aug 2009 07:41:00 +0000</pubDate><atom:updated>2009-08-06T00:42:00.595-07:00</atom:updated><title>Activity 9 | Binary Operations</title><description></description><link>http://ccesporlas-ap186.blogspot.com/2009/08/activity-9-binary-operations.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7876000474578747950.post-4114008108146467903</guid><pubDate>Tue, 21 Jul 2009 01:28:00 +0000</pubDate><atom:updated>2015-12-04T00:22:30.573-08:00</atom:updated><title>Activity 8 | Morphological Operations</title><description>Morphological operations simply refers to operating on the structure of something and these operations can be thought of like operations on sets like &#39;union&#39;, &#39;intersection&#39;, &#39;complement&#39; and many others. An example of operations is the XOR which is union minus intersection and [NOT(A)] AND B which is the intersection of &#39;complement of A&#39; and &#39;B&#39;.&lt;br /&gt;
&lt;br /&gt;
In this activity morphological operations like &#39;dilate&#39; and &#39;erode&#39; are implemented on 5 images namely a square, triangle, circle, a hollow square and a cross. Four structuring elements are used in the dilation and erosion of these images and these are a 4x4 square, 2x4 and 4x2 rectangles, and a 5x5 cross with a width=1. Figure 1 shows the structuring elements while Figure 2 shows the original image (column 1) and the respective resulting images for the dilation of the original with the order the same as the order of the structuring elements in Figure 1 while Figure 3 shows the results for erosion.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTfK-k1po-yXjI0vUkoFFwph6eAoM7vVQtjSl2zLCC29RWU9bt4yL60f07o7wVyotYLXphhNFjnp75WaTo_ceYXI_hAGHFopNkrKvbhUTNsWB7fCLCQxDW-PzUwS71qrddzS2V4VjBnE8/s1600-h/se1.jpg&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5367224340586423522&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTfK-k1po-yXjI0vUkoFFwph6eAoM7vVQtjSl2zLCC29RWU9bt4yL60f07o7wVyotYLXphhNFjnp75WaTo_ceYXI_hAGHFopNkrKvbhUTNsWB7fCLCQxDW-PzUwS71qrddzS2V4VjBnE8/s200/se1.jpg&quot; style=&quot;cursor: pointer; height: 90px; width: 90px;&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEis16ETotP53AVvn0aiNGEpZEUh_sNP3rBAeGd6-y8Dkwbr6UT0FX7ckWoLMSy5EkOYMq6xIIfmY7_ZrI4MKT9NTJ8Eha4GbcZf_meDRJrUf6tZ2tpO506XPxktiu04NAoo9lwc8kzMJYM/s1600-h/se2.jpg&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5367224494819113218&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEis16ETotP53AVvn0aiNGEpZEUh_sNP3rBAeGd6-y8Dkwbr6UT0FX7ckWoLMSy5EkOYMq6xIIfmY7_ZrI4MKT9NTJ8Eha4GbcZf_meDRJrUf6tZ2tpO506XPxktiu04NAoo9lwc8kzMJYM/s200/se2.jpg&quot; style=&quot;cursor: pointer; height: 90px; width: 90px;&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFtTKi-pey9aJd98Buo8XUNKv3xRtqSmlk-1UzYTFy4qZHiBD0oNl1ZF9ds5aa7uGehu2e5ixYetzX3hJlWutEagdO9UmEZq-OFEOsiyTx6QMHJkYzNZyAsTyiD_eF4GIlOi0OCuIyjEs/s1600-h/se3.jpg&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5367224591110078738&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFtTKi-pey9aJd98Buo8XUNKv3xRtqSmlk-1UzYTFy4qZHiBD0oNl1ZF9ds5aa7uGehu2e5ixYetzX3hJlWutEagdO9UmEZq-OFEOsiyTx6QMHJkYzNZyAsTyiD_eF4GIlOi0OCuIyjEs/s200/se3.jpg&quot; style=&quot;cursor: pointer; height: 90px; width: 90px;&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYGpLi6aryYMqDC5f3ucQn5MMl-REqemQ3t9BD-gbMKaUP-Wy1INc9kuov5r34-s7dRm-pZ-c_xFhijFSuz4FJlil80HfWpVbSW_bdCPGIaWO0Fd7F_xuqtPk7v-tShPFDLLMAb0mNbLo/s1600-h/se4.jpg&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5367224696022179458&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYGpLi6aryYMqDC5f3ucQn5MMl-REqemQ3t9BD-gbMKaUP-Wy1INc9kuov5r34-s7dRm-pZ-c_xFhijFSuz4FJlil80HfWpVbSW_bdCPGIaWO0Fd7F_xuqtPk7v-tShPFDLLMAb0mNbLo/s200/se4.jpg&quot; style=&quot;cursor: pointer; height: 90px; width: 90px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
Figure 1. Structuring elements.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcmjDUf3yRpykqB_SKXOkJ9OwWRjEnJy1Cmbc3Zof3T1DieA7tqk3_kWQfZ4lZsjIpUW0FT2S_mettxWZAO67bpQwotiSMqPpPy2DXCEuIEB-PRIlnYdKsXUgkZsjhFymYDKSOHgap8to/s1600-h/dilate.jpg&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5367228558241402738&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcmjDUf3yRpykqB_SKXOkJ9OwWRjEnJy1Cmbc3Zof3T1DieA7tqk3_kWQfZ4lZsjIpUW0FT2S_mettxWZAO67bpQwotiSMqPpPy2DXCEuIEB-PRIlnYdKsXUgkZsjhFymYDKSOHgap8to/s400/dilate.jpg&quot; style=&quot;cursor: hand; cursor: pointer; height: 323px; width: 315px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
Figure 2. Resulting images after dilation.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOJoTJGdw87DA3RdDy3K9vRfjM_KeJ3hf0FAYgIdkGtXdxfWtt3bUDVYhLVrSL1vY-IKUo8Zo9bUtL_lRRuLCwyu32hsJTJhwTDdxFjP6dRkEvmDEU3HbN9G7YnuO7u01FqyWHF8SPUDY/s1600-h/erode.jpg&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5367228918071221826&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOJoTJGdw87DA3RdDy3K9vRfjM_KeJ3hf0FAYgIdkGtXdxfWtt3bUDVYhLVrSL1vY-IKUo8Zo9bUtL_lRRuLCwyu32hsJTJhwTDdxFjP6dRkEvmDEU3HbN9G7YnuO7u01FqyWHF8SPUDY/s400/erode.jpg&quot; style=&quot;cursor: hand; cursor: pointer; height: 323px; width: 314px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
Figure 2. Resulting images after erosion.&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Before erosion a dilation was applied to the images by simulating the predicted resulting images. The shape of the predicted images are the same as the simulations. Only the dimensions of the resulting images were a bit different than the simulated ones but were close estimations. An simple example is for the 50x50 square when dilated with the 4x4 square. The predictions made resulted to a 54x54 square but the simulations gave a 53x53 square. This error is due to the assumption that the center and the axes used for the operations did occupy pixels.&lt;br /&gt;
&lt;br /&gt;
I give myself a grade of 9 for this activity for the successful predictions of the shape of the resulting dilated and eroded imaged and for the good estimation of the dimensions.</description><link>http://ccesporlas-ap186.blogspot.com/2009/07/activity-8-morphological-operations.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTfK-k1po-yXjI0vUkoFFwph6eAoM7vVQtjSl2zLCC29RWU9bt4yL60f07o7wVyotYLXphhNFjnp75WaTo_ceYXI_hAGHFopNkrKvbhUTNsWB7fCLCQxDW-PzUwS71qrddzS2V4VjBnE8/s72-c/se1.jpg" height="72" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7876000474578747950.post-1405997094031060891</guid><pubDate>Tue, 21 Jul 2009 01:26:00 +0000</pubDate><atom:updated>2009-08-07T15:12:57.249-07:00</atom:updated><title>Activity 7 | Enhancement in the Frequency Domain</title><description>The Fourier Transform properties had been familiarized already in the previous activities. With this knowledge we use it to enhance images not by changing the image itself but its Fourier Transform. Now we examine the FTs of different patterns such as two dots with increasing radius where the smallest dots are two separate pixels as shown in Figure 1.&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;The FT of the two pixels is a series of lines that looks like a sinusoid. We can remember from previous activities that the FT of a sinusoid are two small dots along the axis of propagation of the sinusoid. Taking the FT of the two separate pixels is like doing the inverse FT of the FT of a sinusoid. The FTs of the two small circles on the other hand is like the product of the FT of the two pixels and a circle like that from Activity 5, and it is observed that increasing the size of the spots decreases the size of the resulting FT.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmjkRfy2b4NfDOoxw7hH8yqL8ya_rU7LHnkyUigFtKtFReXY-CnfTf411fLQ0Gvw19vvUj3YOTe1nRt5EzU5qCZIJH3LUPiFtcsaoMPQZGtvpWvmQWOldjTVmdpgBQoiX9OSWJcXL34RI/s1600-h/pixel.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmjkRfy2b4NfDOoxw7hH8yqL8ya_rU7LHnkyUigFtKtFReXY-CnfTf411fLQ0Gvw19vvUj3YOTe1nRt5EzU5qCZIJH3LUPiFtcsaoMPQZGtvpWvmQWOldjTVmdpgBQoiX9OSWJcXL34RI/s200/pixel.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367293139074830690&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggWyVINfnem5i7Kq46x3RbBJ_78q1mmlUZn_5BKLNKkeo-tk7NB29UjlLH8ev1nwYwsFGlB2kqIGh66x5gCjo8vAv6oFi4E-dqbQfc_ZiHRuPhcMHkhPPrxMcls6-0ul6udqDm7DS-Ze0/s1600-h/circles0.05.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggWyVINfnem5i7Kq46x3RbBJ_78q1mmlUZn_5BKLNKkeo-tk7NB29UjlLH8ev1nwYwsFGlB2kqIGh66x5gCjo8vAv6oFi4E-dqbQfc_ZiHRuPhcMHkhPPrxMcls6-0ul6udqDm7DS-Ze0/s200/circles0.05.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367293631287359538&quot; border=&quot;0&quot; /&gt; &lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWuHwvUfIc4IO7ggpXW2d4t4q2xwYsrwG9L3h0tHDO7ZxCbLWqCWoXLCMzAYni1rhNw9Rg6q-jvl3L6e6HZc4wZua2hkxFGB1R7Sf9Cd7-Lptz7oa0AL77N9HDbb_bZe6G53TDjSO0D-w/s1600-h/circles0.25.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWuHwvUfIc4IO7ggpXW2d4t4q2xwYsrwG9L3h0tHDO7ZxCbLWqCWoXLCMzAYni1rhNw9Rg6q-jvl3L6e6HZc4wZua2hkxFGB1R7Sf9Cd7-Lptz7oa0AL77N9HDbb_bZe6G53TDjSO0D-w/s200/circles0.25.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367293714574807762&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbkAzF6bCLBQea8gvVqREjZnveD975rEfHMJ6RHmaSBtEBEHjsdbLp_oxxjXDxoT_cQ4b5DokHJZjnsTTj9mlRXOHSShJhdIX7clOq_d4Q8ZIfuAhS5bnwtl6uGR7FdTwOMlwsvdmGz4M/s1600-h/pixelFTmod.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbkAzF6bCLBQea8gvVqREjZnveD975rEfHMJ6RHmaSBtEBEHjsdbLp_oxxjXDxoT_cQ4b5DokHJZjnsTTj9mlRXOHSShJhdIX7clOq_d4Q8ZIfuAhS5bnwtl6uGR7FdTwOMlwsvdmGz4M/s200/pixelFTmod.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367294008051163602&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGSS1HUF_VAmilDUr54vsX6y3Fu3WgmCJqyBG-_IS3j7GFrDJV2EyVgW9PodiN5aOXKj3bqKxqxGdqi0tPKFvhzfDNA_0yUu1ma0L-SaYTdC82pw3NwwQ9iJSgwrWTOIRR34q5haauCjs/s1600-h/circles0.05FTmod.png&quot;&gt; &lt;img style=&quot;cursor: pointer; width: 101px; height: 101px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGSS1HUF_VAmilDUr54vsX6y3Fu3WgmCJqyBG-_IS3j7GFrDJV2EyVgW9PodiN5aOXKj3bqKxqxGdqi0tPKFvhzfDNA_0yUu1ma0L-SaYTdC82pw3NwwQ9iJSgwrWTOIRR34q5haauCjs/s200/circles0.05FTmod.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367300891043530866&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDk2G7UVcZRUwiDX58xpOzSFluGOBygXCxLPiQH0ynDceGmL-Vz7JpQJB5Z_yhYxFsUFCAJFpruUzw_ODEskV270h1RW2eM5Q0D-HGcw6eNFKGl6QOi_8tYlN6ajo1PrahLudtOJiUFXs/s1600-h/circles0.25FTmod.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDk2G7UVcZRUwiDX58xpOzSFluGOBygXCxLPiQH0ynDceGmL-Vz7JpQJB5Z_yhYxFsUFCAJFpruUzw_ODEskV270h1RW2eM5Q0D-HGcw6eNFKGl6QOi_8tYlN6ajo1PrahLudtOJiUFXs/s200/circles0.25FTmod.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367294203130947746&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 1. Two dots with increasing radius and their respective FTs.&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;We know that a pixel is square in shape. If we enlarge these squares the FT will change from that of a sinusoid pattern to like that of the two small circles only instead of the product of the FT two dots and a circle, the patterns looks like the product of two dots and a scquare. Increasing the size of the squares also decreases the size of the FT pattern just like in Figure 1. The images for the squares and their FTs are shown in Figure 2.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmjkRfy2b4NfDOoxw7hH8yqL8ya_rU7LHnkyUigFtKtFReXY-CnfTf411fLQ0Gvw19vvUj3YOTe1nRt5EzU5qCZIJH3LUPiFtcsaoMPQZGtvpWvmQWOldjTVmdpgBQoiX9OSWJcXL34RI/s1600-h/pixel.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmjkRfy2b4NfDOoxw7hH8yqL8ya_rU7LHnkyUigFtKtFReXY-CnfTf411fLQ0Gvw19vvUj3YOTe1nRt5EzU5qCZIJH3LUPiFtcsaoMPQZGtvpWvmQWOldjTVmdpgBQoiX9OSWJcXL34RI/s200/pixel.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367293139074830690&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkH7eurIMl3WEPP1E8GC9OB4AqUpmG9kzjqVEJjTy5SDorUixrKVWpFB14-2YnJxKmJaI3o0txKpsGpej1gA1KKN_1ix2y26ljFW2sG3nsFXxSLwXwogstUVfsXbvqooaVv75uWA6lqE0/s1600-h/squares5.png&quot;&gt; &lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkH7eurIMl3WEPP1E8GC9OB4AqUpmG9kzjqVEJjTy5SDorUixrKVWpFB14-2YnJxKmJaI3o0txKpsGpej1gA1KKN_1ix2y26ljFW2sG3nsFXxSLwXwogstUVfsXbvqooaVv75uWA6lqE0/s200/squares5.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367299122508691314&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFO52tmGYktxAALhFuVUBC3BOP4THGwA_PmMnJ_6Knw8LocJJlEc3qBpnETP-XN4n2jl_-kXQL4Bds_-IBe-kf6VOucaQC54kKXBX2zQ7ouj4Of3v-ANXNXcoNlIYuHmJ6aeLxs7CMwII/s1600-h/squares17.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFO52tmGYktxAALhFuVUBC3BOP4THGwA_PmMnJ_6Knw8LocJJlEc3qBpnETP-XN4n2jl_-kXQL4Bds_-IBe-kf6VOucaQC54kKXBX2zQ7ouj4Of3v-ANXNXcoNlIYuHmJ6aeLxs7CMwII/s200/squares17.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367299239830369890&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbkAzF6bCLBQea8gvVqREjZnveD975rEfHMJ6RHmaSBtEBEHjsdbLp_oxxjXDxoT_cQ4b5DokHJZjnsTTj9mlRXOHSShJhdIX7clOq_d4Q8ZIfuAhS5bnwtl6uGR7FdTwOMlwsvdmGz4M/s1600-h/pixelFTmod.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbkAzF6bCLBQea8gvVqREjZnveD975rEfHMJ6RHmaSBtEBEHjsdbLp_oxxjXDxoT_cQ4b5DokHJZjnsTTj9mlRXOHSShJhdIX7clOq_d4Q8ZIfuAhS5bnwtl6uGR7FdTwOMlwsvdmGz4M/s200/pixelFTmod.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367294008051163602&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://3.bp.blogspot.com/_1f27WnlN4es/Snx1i1G1puI/AAAAAAAAEBQ/ss_UrsALOFA/s1600-h/circles0.05FTmod.png&quot;&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3gjj4UdY7BgRx_ayTmz6lsvBiInET-mnAkWbzkv2_EltCzFbHR00nEc7zi3o-BC5db7BnymkEZq7VQ85mYQbYiZVJ5Gtehq_nD4ZcNSMtwzZRIQwUiuyzNSO_KlfIScX6x-0YivcUI_A/s1600-h/squares5FTmod.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3gjj4UdY7BgRx_ayTmz6lsvBiInET-mnAkWbzkv2_EltCzFbHR00nEc7zi3o-BC5db7BnymkEZq7VQ85mYQbYiZVJ5Gtehq_nD4ZcNSMtwzZRIQwUiuyzNSO_KlfIScX6x-0YivcUI_A/s200/squares5FTmod.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367299342374558306&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiq0wFNGrzItoQgWNdsjhXe5_fVdyqbpC94b-vnIGJmIrHTCOTaxYeraBtuqVXDAL5mB-GjcEWXgQm6plcP3jjRfMO_oqHpuUbNWXM8vyqABP70bL4v8ECG3ecyVr6x5iIjfld5XB-Pw4Y/s1600-h/squares17FTmod.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiq0wFNGrzItoQgWNdsjhXe5_fVdyqbpC94b-vnIGJmIrHTCOTaxYeraBtuqVXDAL5mB-GjcEWXgQm6plcP3jjRfMO_oqHpuUbNWXM8vyqABP70bL4v8ECG3ecyVr6x5iIjfld5XB-Pw4Y/s200/squares17FTmod.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367299455650771266&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 2. Two squares with increasing size and their respective FTs.&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Now Figure 3 shows the two gaussian of varying variance and their FT while Figure 4 shows the Gaussian dots and the inverted counterparts and the real and imaginary parts of their FTs. It may not be visible but there is a small faint set of vertical lines shaped in a circle centered at the bright spot.&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmjkRfy2b4NfDOoxw7hH8yqL8ya_rU7LHnkyUigFtKtFReXY-CnfTf411fLQ0Gvw19vvUj3YOTe1nRt5EzU5qCZIJH3LUPiFtcsaoMPQZGtvpWvmQWOldjTVmdpgBQoiX9OSWJcXL34RI/s1600-h/pixel.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmjkRfy2b4NfDOoxw7hH8yqL8ya_rU7LHnkyUigFtKtFReXY-CnfTf411fLQ0Gvw19vvUj3YOTe1nRt5EzU5qCZIJH3LUPiFtcsaoMPQZGtvpWvmQWOldjTVmdpgBQoiX9OSWJcXL34RI/s200/pixel.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367293139074830690&quot; border=&quot;0&quot; /&gt; &lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbpdjC1ZFhMltc3Q0YhgMZJl0LYxE2WYpMTIys02H1HAwWqG0vLjYsw3LuUmb1HhoPC0WvgWcDYDPzQ-HwPkodf-ygROiY_dtUEU5SqTdvwopASghnRlniAzyNhJvmOahP-3p4bL0mZ_Y/s1600-h/gauss0.05.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 101px; height: 101px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbpdjC1ZFhMltc3Q0YhgMZJl0LYxE2WYpMTIys02H1HAwWqG0vLjYsw3LuUmb1HhoPC0WvgWcDYDPzQ-HwPkodf-ygROiY_dtUEU5SqTdvwopASghnRlniAzyNhJvmOahP-3p4bL0mZ_Y/s200/gauss0.05.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367302485898360450&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1wsohk6rxwqwEaaiRRLSPYJSu6dBtKrSAITxxfEwTakxPyHLwsvc-509j5-nMlChKvV6bYVqOVowjCIyd98AokvblOxQhWeY2V1Q8tf38K4gOenax3w4lIt7rqBUD_7so56EPbHytt3M/s1600-h/gauss0.25.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 101px; height: 101px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1wsohk6rxwqwEaaiRRLSPYJSu6dBtKrSAITxxfEwTakxPyHLwsvc-509j5-nMlChKvV6bYVqOVowjCIyd98AokvblOxQhWeY2V1Q8tf38K4gOenax3w4lIt7rqBUD_7so56EPbHytt3M/s200/gauss0.25.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367305071943589282&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbkAzF6bCLBQea8gvVqREjZnveD975rEfHMJ6RHmaSBtEBEHjsdbLp_oxxjXDxoT_cQ4b5DokHJZjnsTTj9mlRXOHSShJhdIX7clOq_d4Q8ZIfuAhS5bnwtl6uGR7FdTwOMlwsvdmGz4M/s1600-h/pixelFTmod.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbkAzF6bCLBQea8gvVqREjZnveD975rEfHMJ6RHmaSBtEBEHjsdbLp_oxxjXDxoT_cQ4b5DokHJZjnsTTj9mlRXOHSShJhdIX7clOq_d4Q8ZIfuAhS5bnwtl6uGR7FdTwOMlwsvdmGz4M/s200/pixelFTmod.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367294008051163602&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhY2JcI0wJz7wvanp0IeqmarX223NU642NlIaZnFizAoYUPgiQSzUD0o2dHHc4ei6NzsmfTN65lUzfnhUYQ_4tXBDWM7jxe6e1-N2HHO1Atr92-V5Ui5rW0DvQwQEyvTe_snJ2sJpn8Z2c/s1600-h/gauss0.05_FTmod.png&quot;&gt; &lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhY2JcI0wJz7wvanp0IeqmarX223NU642NlIaZnFizAoYUPgiQSzUD0o2dHHc4ei6NzsmfTN65lUzfnhUYQ_4tXBDWM7jxe6e1-N2HHO1Atr92-V5Ui5rW0DvQwQEyvTe_snJ2sJpn8Z2c/s200/gauss0.05_FTmod.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367305372097503250&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDrIlvEu68_6iMvebY4Uy9gt4aOM8V_TOerCeVQPo1cKpa13qD29AldcYE5GJTgDYh3hRiLohZy2t27_7NsJRsiDodWjbKLCnagIwGQuU3btgbT-5BOtYoUX1AujnPgXTA-UiwAVYYExE/s1600-h/gauss0.25_FTmod.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDrIlvEu68_6iMvebY4Uy9gt4aOM8V_TOerCeVQPo1cKpa13qD29AldcYE5GJTgDYh3hRiLohZy2t27_7NsJRsiDodWjbKLCnagIwGQuU3btgbT-5BOtYoUX1AujnPgXTA-UiwAVYYExE/s200/gauss0.25_FTmod.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367304473029304898&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 3. Two Gaussians with increasing variance and their respective FTs.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbpdjC1ZFhMltc3Q0YhgMZJl0LYxE2WYpMTIys02H1HAwWqG0vLjYsw3LuUmb1HhoPC0WvgWcDYDPzQ-HwPkodf-ygROiY_dtUEU5SqTdvwopASghnRlniAzyNhJvmOahP-3p4bL0mZ_Y/s1600-h/gauss0.05.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 90px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbpdjC1ZFhMltc3Q0YhgMZJl0LYxE2WYpMTIys02H1HAwWqG0vLjYsw3LuUmb1HhoPC0WvgWcDYDPzQ-HwPkodf-ygROiY_dtUEU5SqTdvwopASghnRlniAzyNhJvmOahP-3p4bL0mZ_Y/s200/gauss0.05.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367302485898360450&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1wsohk6rxwqwEaaiRRLSPYJSu6dBtKrSAITxxfEwTakxPyHLwsvc-509j5-nMlChKvV6bYVqOVowjCIyd98AokvblOxQhWeY2V1Q8tf38K4gOenax3w4lIt7rqBUD_7so56EPbHytt3M/s1600-h/gauss0.25.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 90px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1wsohk6rxwqwEaaiRRLSPYJSu6dBtKrSAITxxfEwTakxPyHLwsvc-509j5-nMlChKvV6bYVqOVowjCIyd98AokvblOxQhWeY2V1Q8tf38K4gOenax3w4lIt7rqBUD_7so56EPbHytt3M/s200/gauss0.25.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367305071943589282&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZY2KS8tRXY3LELv-ZaxmB5RSweox6nXbo1W8vdjmh_MQdXNvccXsXeQufKefXOPMjFS5-3on7AMwuuGgjTtYNqhGYrnih4ETfurv0tuEMLHPb22BCglr_PES1rwkjtTG5i7ryj2yCCWs/s1600-h/invgauss0.05.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 90px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZY2KS8tRXY3LELv-ZaxmB5RSweox6nXbo1W8vdjmh_MQdXNvccXsXeQufKefXOPMjFS5-3on7AMwuuGgjTtYNqhGYrnih4ETfurv0tuEMLHPb22BCglr_PES1rwkjtTG5i7ryj2yCCWs/s200/invgauss0.05.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367307955432268386&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6IQX0xscz_98DhrvtjyqmqmoeREdHak_pO1CDk7h2dqaK8_l3u9TaQQmKAa3VEWauFwLPW9OVHromRq497Koo6N8VIggDno3TASuKF8zES5tGuQCw7SfWYc7lKmowGqTr5uld-Wh578M/s1600-h/invgauss0.25.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 90px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6IQX0xscz_98DhrvtjyqmqmoeREdHak_pO1CDk7h2dqaK8_l3u9TaQQmKAa3VEWauFwLPW9OVHromRq497Koo6N8VIggDno3TASuKF8zES5tGuQCw7SfWYc7lKmowGqTr5uld-Wh578M/s200/invgauss0.25.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367308037712825394&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhY2JcI0wJz7wvanp0IeqmarX223NU642NlIaZnFizAoYUPgiQSzUD0o2dHHc4ei6NzsmfTN65lUzfnhUYQ_4tXBDWM7jxe6e1-N2HHO1Atr92-V5Ui5rW0DvQwQEyvTe_snJ2sJpn8Z2c/s1600-h/gauss0.05_FTmod.png&quot;&gt; &lt;img style=&quot;cursor: pointer; width: 90px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhY2JcI0wJz7wvanp0IeqmarX223NU642NlIaZnFizAoYUPgiQSzUD0o2dHHc4ei6NzsmfTN65lUzfnhUYQ_4tXBDWM7jxe6e1-N2HHO1Atr92-V5Ui5rW0DvQwQEyvTe_snJ2sJpn8Z2c/s200/gauss0.05_FTmod.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367305372097503250&quot; border=&quot;0&quot; /&gt; &lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDrIlvEu68_6iMvebY4Uy9gt4aOM8V_TOerCeVQPo1cKpa13qD29AldcYE5GJTgDYh3hRiLohZy2t27_7NsJRsiDodWjbKLCnagIwGQuU3btgbT-5BOtYoUX1AujnPgXTA-UiwAVYYExE/s1600-h/gauss0.25_FTmod.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 90px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDrIlvEu68_6iMvebY4Uy9gt4aOM8V_TOerCeVQPo1cKpa13qD29AldcYE5GJTgDYh3hRiLohZy2t27_7NsJRsiDodWjbKLCnagIwGQuU3btgbT-5BOtYoUX1AujnPgXTA-UiwAVYYExE/s200/gauss0.25_FTmod.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367304473029304898&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh53rev40RN1YrIXrv6WbWWPcirHiCARc69DEfPvFCUPA5wsneKc8H8D5naZwP267RUxV5GdQagw6rspPQkz2CaJRurECZ0ccGu_0IzU_s-UMqcUPuZ1eKnDIuSp-QONDGKSuu-IVdDtQU/s1600-h/invgauss0.05_FTre.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 90px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh53rev40RN1YrIXrv6WbWWPcirHiCARc69DEfPvFCUPA5wsneKc8H8D5naZwP267RUxV5GdQagw6rspPQkz2CaJRurECZ0ccGu_0IzU_s-UMqcUPuZ1eKnDIuSp-QONDGKSuu-IVdDtQU/s200/invgauss0.05_FTre.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367314927325261826&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4sXYe9emsA9DobmBdcfGn-BhC2LBivWyYVYSkg8zMW5BGNdYF77X8kKTxlw7rdnRwcMGfUQ5UqhC6lx_e0XnV_FTcki6YIRYFddIIs45UeWo34ZHBnVv3tsrj6UEN8fUuC111vQ9qqGI/s1600-h/invgauss0.25_FTre.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 90px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4sXYe9emsA9DobmBdcfGn-BhC2LBivWyYVYSkg8zMW5BGNdYF77X8kKTxlw7rdnRwcMGfUQ5UqhC6lx_e0XnV_FTcki6YIRYFddIIs45UeWo34ZHBnVv3tsrj6UEN8fUuC111vQ9qqGI/s200/invgauss0.25_FTre.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367315838027613426&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH-l5LMrHaMAm7DlX5rDSFXy95L-SIDxFx4sEb45WvKULmhPqUVuzcQV3TApHZkboiHDhDdYSOBb631nN6lTbooaaK2aEXU8cQU5NmQg2OFHwQZ9Hkvc8Wccrax2od8TkWDSltN0MvxHo/s1600-h/gauss0.05_im.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 90px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH-l5LMrHaMAm7DlX5rDSFXy95L-SIDxFx4sEb45WvKULmhPqUVuzcQV3TApHZkboiHDhDdYSOBb631nN6lTbooaaK2aEXU8cQU5NmQg2OFHwQZ9Hkvc8Wccrax2od8TkWDSltN0MvxHo/s200/gauss0.05_im.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367310674534779474&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH-l5LMrHaMAm7DlX5rDSFXy95L-SIDxFx4sEb45WvKULmhPqUVuzcQV3TApHZkboiHDhDdYSOBb631nN6lTbooaaK2aEXU8cQU5NmQg2OFHwQZ9Hkvc8Wccrax2od8TkWDSltN0MvxHo/s1600-h/gauss0.05_im.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 90px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH-l5LMrHaMAm7DlX5rDSFXy95L-SIDxFx4sEb45WvKULmhPqUVuzcQV3TApHZkboiHDhDdYSOBb631nN6lTbooaaK2aEXU8cQU5NmQg2OFHwQZ9Hkvc8Wccrax2od8TkWDSltN0MvxHo/s200/gauss0.05_im.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367310674534779474&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH-l5LMrHaMAm7DlX5rDSFXy95L-SIDxFx4sEb45WvKULmhPqUVuzcQV3TApHZkboiHDhDdYSOBb631nN6lTbooaaK2aEXU8cQU5NmQg2OFHwQZ9Hkvc8Wccrax2od8TkWDSltN0MvxHo/s1600-h/gauss0.05_im.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 90px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH-l5LMrHaMAm7DlX5rDSFXy95L-SIDxFx4sEb45WvKULmhPqUVuzcQV3TApHZkboiHDhDdYSOBb631nN6lTbooaaK2aEXU8cQU5NmQg2OFHwQZ9Hkvc8Wccrax2od8TkWDSltN0MvxHo/s200/gauss0.05_im.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367310674534779474&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH-l5LMrHaMAm7DlX5rDSFXy95L-SIDxFx4sEb45WvKULmhPqUVuzcQV3TApHZkboiHDhDdYSOBb631nN6lTbooaaK2aEXU8cQU5NmQg2OFHwQZ9Hkvc8Wccrax2od8TkWDSltN0MvxHo/s1600-h/gauss0.05_im.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 90px; height: 90px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH-l5LMrHaMAm7DlX5rDSFXy95L-SIDxFx4sEb45WvKULmhPqUVuzcQV3TApHZkboiHDhDdYSOBb631nN6lTbooaaK2aEXU8cQU5NmQg2OFHwQZ9Hkvc8Wccrax2od8TkWDSltN0MvxHo/s200/gauss0.05_im.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367310674534779474&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 4. Two Gaussians with increasing variance and their respective FTs&#39; real (middle row) and imaginary (last row) parts.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Using the concepts above we apply them in enhancing images in the frequency domain. We perform enhancement on three images namely a fingerprint for ridge enhancement, lunar landing scanned pictures for line removal, and a digital painting for canvas weave modeling and removal.&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;RIDGE ENHANCEMENT - Fingerprint&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwBM5woqkn-aEbYRu33R9JPj3HCmHO3azM9wVdFDcLNL5E_fA680Pnu3uasnulLimq6IgwIDHb4dJx239sj_uhCJ-to_GbqIiM89bDZCY8MZq0nPAcsYPbeZ_s3da7PzCzBCOnOkiY74k/s1600-h/f.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 200px; height: 157px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwBM5woqkn-aEbYRu33R9JPj3HCmHO3azM9wVdFDcLNL5E_fA680Pnu3uasnulLimq6IgwIDHb4dJx239sj_uhCJ-to_GbqIiM89bDZCY8MZq0nPAcsYPbeZ_s3da7PzCzBCOnOkiY74k/s320/f.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367346642395419842&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlGPQEjBxLslpqMcQcm5BhrKmnH_icBoIQWES7lLVaxR4AeDecDg7AX2GqsVmGBQyKZ8CnPPcZ6sAYeLuCCadJpB7x27FeqS6g9n7dXCPHN8lxnPuOtpAj5RnxwyX_LtaGxbMO8yfViIw/s1600-h/f_FT.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 200px; height: 157px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlGPQEjBxLslpqMcQcm5BhrKmnH_icBoIQWES7lLVaxR4AeDecDg7AX2GqsVmGBQyKZ8CnPPcZ6sAYeLuCCadJpB7x27FeqS6g9n7dXCPHN8lxnPuOtpAj5RnxwyX_LtaGxbMO8yfViIw/s320/f_FT.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367346993663793282&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 5. To be enhanced fingerprint image and its FT.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Enhancing this fingerprint such that the ridges are defined is the main goal for this part of the activity. Looking at the FT of the fingerprint we can see areas that are the brightest and could possibly be the FT pattern for the ridges. Basing from the FT we then create a mask to obtain the ridges of the fingerprint alone.&lt;br /&gt;&lt;br /&gt;Mask 1: Thresholding&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;LINE REMOVAL - Lunar landing scanned pictures&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;  &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMTmCwW-9velVinAsLxzmHLKfpYK1UHTBZPMcrrMSi51mxLG0TMFRR9Rc-XpAbTXWTWLZaQO3UNZDQ3bigaMYopNnAvYxLzp6E787T9plgzN9-2VwfPRrPhn0zQrUPVGnmyWQJdbdPWrc/s1600-h/hi_res_vertical_lg.gif&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 200px; height: 120px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMTmCwW-9velVinAsLxzmHLKfpYK1UHTBZPMcrrMSi51mxLG0TMFRR9Rc-XpAbTXWTWLZaQO3UNZDQ3bigaMYopNnAvYxLzp6E787T9plgzN9-2VwfPRrPhn0zQrUPVGnmyWQJdbdPWrc/s320/hi_res_vertical_lg.gif&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367348108397771490&quot; border=&quot;0&quot; /&gt; &lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-rtwWsq2bdEt9nfEHCH6c3dwJC5UrGYfR1a-gXhwmEXuoWkZV3O3kGo86UD6VfJ2vDXCqjdWyJzNv3lpm8qAI8-UyiG1bC_a8-nZ2f6cqvA6LmaRX1GhbquAQA1xiQ4cjoYx6XrB1pNg/s1600-h/l_FT.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 200px; height: 120px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-rtwWsq2bdEt9nfEHCH6c3dwJC5UrGYfR1a-gXhwmEXuoWkZV3O3kGo86UD6VfJ2vDXCqjdWyJzNv3lpm8qAI8-UyiG1bC_a8-nZ2f6cqvA6LmaRX1GhbquAQA1xiQ4cjoYx6XrB1pNg/s320/l_FT.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367346398524186050&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 5. To be enhanced fingerprint image and its FT.&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;CANVAS WEAVE MODELING and REMOVAL - painting&lt;/div&gt;</description><link>http://ccesporlas-ap186.blogspot.com/2009/07/activity-7-enhancement-in-frequency.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmjkRfy2b4NfDOoxw7hH8yqL8ya_rU7LHnkyUigFtKtFReXY-CnfTf411fLQ0Gvw19vvUj3YOTe1nRt5EzU5qCZIJH3LUPiFtcsaoMPQZGtvpWvmQWOldjTVmdpgBQoiX9OSWJcXL34RI/s72-c/pixel.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7876000474578747950.post-3684899601793913776</guid><pubDate>Thu, 09 Jul 2009 23:44:00 +0000</pubDate><atom:updated>2009-08-07T11:25:09.998-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">fourier transform</category><category domain="http://www.blogger.com/atom/ns#">image processing</category><title>Activity 6 | Properties of the 2D Fourier Transform</title><description>Previously in Activity 5, we applied image processing techniques involving the Fourier Transform such as edge detection and template matching using convolution and correlation. Now we investigate further the properties of the 2D Fourier Transform. The properties to investigate are that the Fourier Transform expresses any signal or image into a superposition of sinusoids and that the rotation of the sinusoids result to the rotation of the Fourier Transform.&lt;sup&gt;[1]&lt;/sup&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;Before anything else let us familiarize the Fourier Transforms of some 2D patterns (left) namely a square, an annulus or donut, a square annulus, two slits, and two dots along the x-axis that are symmetric about the center which are shown below together with their corresponding FTs (right) shown in Figure 1.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAkJR9666SvFj-FrSvKbMBRtfOdprBSNWIDKbH6LniiDM8eXqe50eCGUJZ7Hfy5zOVdpdNXUdjBtSp4JXCjMaDvD7LjhXeKu7PerxN9zHJnQmJgGG2dUre2pnOAQu0cbh6PpX2qJKHLys/s1600-h/square.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAkJR9666SvFj-FrSvKbMBRtfOdprBSNWIDKbH6LniiDM8eXqe50eCGUJZ7Hfy5zOVdpdNXUdjBtSp4JXCjMaDvD7LjhXeKu7PerxN9zHJnQmJgGG2dUre2pnOAQu0cbh6PpX2qJKHLys/s320/square.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5358262622684566914&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhofJrrkkDAPZ_hEiv8lnw6juYIAlVkGwauHelKy_4AfhYI8cNmgLD9qbZEiZiByHtT68gbfssen8w8ZV6kvrAkxqItMBFjS_gaUIsLEDFJt4nxbONGtnTydDjTARKWMwzTJgy5xQZUHl4/s1600-h/square_FTmod.png&quot;&gt; &lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhofJrrkkDAPZ_hEiv8lnw6juYIAlVkGwauHelKy_4AfhYI8cNmgLD9qbZEiZiByHtT68gbfssen8w8ZV6kvrAkxqItMBFjS_gaUIsLEDFJt4nxbONGtnTydDjTARKWMwzTJgy5xQZUHl4/s320/square_FTmod.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5358263071213004882&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgu8xnra4mUsOvMkjVtIMC96xx3zTGCxL59wi1ubXqok1bfM_gJiERJJBVmzEOUBuLuux2EAqv1NGnv5SDLjqS_nCVMMv7PRJXwJIl6zpcHW3d1ehc4dVSn1gTRmKXAD8Y3083s-iQq42k/s1600-h/donut.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgu8xnra4mUsOvMkjVtIMC96xx3zTGCxL59wi1ubXqok1bfM_gJiERJJBVmzEOUBuLuux2EAqv1NGnv5SDLjqS_nCVMMv7PRJXwJIl6zpcHW3d1ehc4dVSn1gTRmKXAD8Y3083s-iQq42k/s320/donut.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5358263817702512210&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIKHCABZaJos14YCvC2R0vhU-A4Y684tsZB9s5SnqtXpgKqkgEwIqMrHmSrVcBR2_llzLhOfBRFB4ruf_HojNeRy4jNJ24gkY4zjRH8MY5USuupCZFUgKXCOhdGem_Zl3iQ-V0HMug3co/s1600-h/donut_FTmod.png&quot;&gt; &lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIKHCABZaJos14YCvC2R0vhU-A4Y684tsZB9s5SnqtXpgKqkgEwIqMrHmSrVcBR2_llzLhOfBRFB4ruf_HojNeRy4jNJ24gkY4zjRH8MY5USuupCZFUgKXCOhdGem_Zl3iQ-V0HMug3co/s320/donut_FTmod.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5358263939300328530&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIYz8nSi6FSFzWsD6t3GR2vXNw6dCp_it-KMmj7RECYbmg26ZOVbnuJ3EGP5j9cFqizyOoZEJxvZ8f5o7a4SIvSd_7zIi39EeFuGzAKSOAnVjOyZB5hCMkh4MAYK1i5lsZGd6i5wQQITM/s1600-h/squann.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIYz8nSi6FSFzWsD6t3GR2vXNw6dCp_it-KMmj7RECYbmg26ZOVbnuJ3EGP5j9cFqizyOoZEJxvZ8f5o7a4SIvSd_7zIi39EeFuGzAKSOAnVjOyZB5hCMkh4MAYK1i5lsZGd6i5wQQITM/s320/squann.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5358264948399510882&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuarUkvQddK8KXBVio48BDqIyAjuWrM_k8lbg8c6jZgFUv6Kp-idTdaFarnk6slnTlJvStlxuzX9KNodWkX5XrUI2_bdetK2vz_5YyY6LG8MRBP7md45Qc3iczUS4eeZicf_VXqSP9i5g/s1600-h/squann_FTmod.png&quot;&gt; &lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuarUkvQddK8KXBVio48BDqIyAjuWrM_k8lbg8c6jZgFUv6Kp-idTdaFarnk6slnTlJvStlxuzX9KNodWkX5XrUI2_bdetK2vz_5YyY6LG8MRBP7md45Qc3iczUS4eeZicf_VXqSP9i5g/s320/squann_FTmod.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5358265589899674370&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_CcPIk1eXRcU4av_kermaUJ-41EdT89yKhaIi-uK35jq4rWvrXKktUmCuCO-QDmf_FyFeMVe0-demVHFiZAWiJxskIAvL-IajqzjqYwhVdRMoBFnNBsORT8CP6bZ1RJvsqey7BZXirAw/s1600-h/slit.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_CcPIk1eXRcU4av_kermaUJ-41EdT89yKhaIi-uK35jq4rWvrXKktUmCuCO-QDmf_FyFeMVe0-demVHFiZAWiJxskIAvL-IajqzjqYwhVdRMoBFnNBsORT8CP6bZ1RJvsqey7BZXirAw/s320/slit.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5358266299034561970&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtwLMjAOQQCmaCMB_S5aMSuEnTphruhxQ6Xp_WBywHFOglRAO6_dDqM6PvA1JfYaCvY0lj-4LQB_x7XxaWB5eiT-aG-YWu0l-J7CXI7pwrvJvcZQRoBuXBLBPT7zooWBwBTyIVkJNQadI/s1600-h/slit_FTmod.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtwLMjAOQQCmaCMB_S5aMSuEnTphruhxQ6Xp_WBywHFOglRAO6_dDqM6PvA1JfYaCvY0lj-4LQB_x7XxaWB5eiT-aG-YWu0l-J7CXI7pwrvJvcZQRoBuXBLBPT7zooWBwBTyIVkJNQadI/s320/slit_FTmod.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5358267012108975762&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXVHfa6WEqcFhOajAfLlaT8QvIu4s4nL-ylwIWFZx-9RlQrm24zsUH2MiQfdyDIRB9mU83sLZzNrgs9UV7_TJF6AfRRFxMN7ifO0na2HXSV0ERXEnJBoExxK8VfjSdA9Gg_Tdl_kH4avI/s1600-h/dot.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXVHfa6WEqcFhOajAfLlaT8QvIu4s4nL-ylwIWFZx-9RlQrm24zsUH2MiQfdyDIRB9mU83sLZzNrgs9UV7_TJF6AfRRFxMN7ifO0na2HXSV0ERXEnJBoExxK8VfjSdA9Gg_Tdl_kH4avI/s320/dot.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5358267258484361586&quot; border=&quot;0&quot; /&gt; &lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPhM8Mtx5zbCPEhKznAAW99_kcFse3kAF9pLmnDGszshkKkzUoA__Wb0YhdZMf3ufNjaLP3RrvrYUrO6ck69Puz3mSqXLvDyG7TSnfnQXvoSy97HvIcp3C2_KU-qBdqCu0EEo41sy0iH0/s1600-h/dot_FTmod.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPhM8Mtx5zbCPEhKznAAW99_kcFse3kAF9pLmnDGszshkKkzUoA__Wb0YhdZMf3ufNjaLP3RrvrYUrO6ck69Puz3mSqXLvDyG7TSnfnQXvoSy97HvIcp3C2_KU-qBdqCu0EEo41sy0iH0/s200/dot_FTmod.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367261889426927810&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://4.bp.blogspot.com/_1f27WnlN4es/SlxmHLY9UbI/AAAAAAAADus/gU9i9GDdles/s1600-h/dot_FTmod.png&quot;&gt; &lt;/a&gt;&lt;/div&gt; &lt;center&gt;Figure 1. 2D patterns and their corresponding Fourier Transforms.&lt;/center&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Now we investigate the anamorphic property of the Fourier Transform through the investigation of the superposition and rotation of sinusoids and their FTS in relation to the FT of different 2D patterns.&lt;br /&gt;&lt;br /&gt;We create a 100x100 sinusoid with frequency &lt;span style=&quot;font-style: italic;&quot;&gt;f&lt;/span&gt; = (1, 4, 16) and get the modulus of its Fourier Transform. The images in Figure 2 show the produced 2D sinusoids (upper row) and their corresponding FTs (lower row) with increasing frequency values from left to right. The Fourier Transform of a 2D sinusoid results to an image with a peak at the frequency (+&lt;span style=&quot;font-style: italic;&quot;&gt;f&lt;/span&gt; or -&lt;span style=&quot;font-style: italic;&quot;&gt;f&lt;/span&gt;) of the said sinusoid thus we see two points along the axis of the sinusoid and symmetric from the center which is &lt;span style=&quot;font-style: italic;&quot;&gt;f&lt;/span&gt; = 0. As the frequency increases, the distances between the two points increases as expected. Code is taken from the AP186 Activity 6 sheet.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;nx = 100; ny = 100;&lt;br /&gt;x = linspace(-1,1,nx);&lt;br /&gt;y = linspace(-1,1,ny);&lt;br /&gt;[X,Y] = ndgrid(x,y);&lt;br /&gt;f = 1;     //frequency&lt;br /&gt;z = sin(2*%pi*f*X);&lt;br /&gt;imshow(z, []);&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFhpgihpVFHWYmvLXHoXF0Wg_XSMNNDbsog1RB-WIB25JQh29Mh3tD2wGsvJfSBEpckAEECvJ8BAupC0_nrwlgm-Ew50Pt0JUls4vjcV27XmY4Lla4iMsNqi2jye7xXLqY0VbJeBUAsuI/s1600-h/2Dsinf1_FT.png&quot;&gt; &lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1eJA0WzgOmikyZdzz__nzjAQyXF3N8ovUjIxDI1onoaCq58OZHoTQoCRSQDCJPYHqnkCOjtbHk4hoKi2ocEEGJc_4dgG02I4ff7T3If7sq-7bJG01ZVKotmzQUpKHk6ETExNSQzm041c/s1600-h/2Dsinf1.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1eJA0WzgOmikyZdzz__nzjAQyXF3N8ovUjIxDI1onoaCq58OZHoTQoCRSQDCJPYHqnkCOjtbHk4hoKi2ocEEGJc_4dgG02I4ff7T3If7sq-7bJG01ZVKotmzQUpKHk6ETExNSQzm041c/s200/2Dsinf1.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367262964298080786&quot; border=&quot;0&quot; /&gt; &lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJZfiAPu0PqTFoqTm4R1QTNtuOdI-l79UqLFqQJ2xRGYKsV24xFZCWCTd4HuBDsEEV1iNQwYTLyxz7JGMR5Oetk78Oar1B9f1JxX9ddErzdQyJu2x-4yVHE92_jXrZ3pqrAL3XmG-nbG8/s1600-h/2Dsinf4.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJZfiAPu0PqTFoqTm4R1QTNtuOdI-l79UqLFqQJ2xRGYKsV24xFZCWCTd4HuBDsEEV1iNQwYTLyxz7JGMR5Oetk78Oar1B9f1JxX9ddErzdQyJu2x-4yVHE92_jXrZ3pqrAL3XmG-nbG8/s200/2Dsinf4.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367263944736199170&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1eJA0WzgOmikyZdzz__nzjAQyXF3N8ovUjIxDI1onoaCq58OZHoTQoCRSQDCJPYHqnkCOjtbHk4hoKi2ocEEGJc_4dgG02I4ff7T3If7sq-7bJG01ZVKotmzQUpKHk6ETExNSQzm041c/s1600-h/2Dsinf1.jpg&quot;&gt; &lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho3QJIEjyFqFDOdAxmQdVOIGjiLuuC_B3snGtg16oPg4xige1V-fDrnYaXs2CDZJeaMfSD2WonMdcmgZaYp1DzGpIDfCUDTf79KGs5fZPk3sGdFyVwcYxGd1h0zt6hFfPGPrn8oS0NE5o/s1600-h/2Dsinf16.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho3QJIEjyFqFDOdAxmQdVOIGjiLuuC_B3snGtg16oPg4xige1V-fDrnYaXs2CDZJeaMfSD2WonMdcmgZaYp1DzGpIDfCUDTf79KGs5fZPk3sGdFyVwcYxGd1h0zt6hFfPGPrn8oS0NE5o/s200/2Dsinf16.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367266419754116610&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFhpgihpVFHWYmvLXHoXF0Wg_XSMNNDbsog1RB-WIB25JQh29Mh3tD2wGsvJfSBEpckAEECvJ8BAupC0_nrwlgm-Ew50Pt0JUls4vjcV27XmY4Lla4iMsNqi2jye7xXLqY0VbJeBUAsuI/s1600-h/2Dsinf1_FT.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFhpgihpVFHWYmvLXHoXF0Wg_XSMNNDbsog1RB-WIB25JQh29Mh3tD2wGsvJfSBEpckAEECvJ8BAupC0_nrwlgm-Ew50Pt0JUls4vjcV27XmY4Lla4iMsNqi2jye7xXLqY0VbJeBUAsuI/s320/2Dsinf1_FT.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5358305021102413186&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOM7og0mdM9llrhOwh42nr2y00EF6Ipp_265s3qjrP9RSyxLPtIQLz9JX32Oj_7DZCjqZ2KsudACQLCvwc-WNwzDnrlTQTAtEb9XtQQRdQ2I7BtWN_ynTwSzLBomwB-5YgBzi9-eajr1U/s1600-h/2Dsinf4_FT.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOM7og0mdM9llrhOwh42nr2y00EF6Ipp_265s3qjrP9RSyxLPtIQLz9JX32Oj_7DZCjqZ2KsudACQLCvwc-WNwzDnrlTQTAtEb9XtQQRdQ2I7BtWN_ynTwSzLBomwB-5YgBzi9-eajr1U/s320/2Dsinf4_FT.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5358306379592219698&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAn43yU7Lc4dDm1PeIltthRb9RHreL1FSmIHET7BWe-sbeaeEgKcVFuDB8CXas_Vp5lR7IvKtjS5RCw8zlTx9Xu5ISMxbkIAbqiN0daEmYud2Mr4EYxjzJ1mfG0leKSDDiV0weUq0GqsM/s1600-h/2Dsinf16_FT.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAn43yU7Lc4dDm1PeIltthRb9RHreL1FSmIHET7BWe-sbeaeEgKcVFuDB8CXas_Vp5lR7IvKtjS5RCw8zlTx9Xu5ISMxbkIAbqiN0daEmYud2Mr4EYxjzJ1mfG0leKSDDiV0weUq0GqsM/s320/2Dsinf16_FT.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5358307172932816850&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 2. 2D sinusoids with frequencies f = 1, 4, and 16 and their corresponding FTs.&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAn43yU7Lc4dDm1PeIltthRb9RHreL1FSmIHET7BWe-sbeaeEgKcVFuDB8CXas_Vp5lR7IvKtjS5RCw8zlTx9Xu5ISMxbkIAbqiN0daEmYud2Mr4EYxjzJ1mfG0leKSDDiV0weUq0GqsM/s1600-h/2Dsinf16_FT.png&quot;&gt; &lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi48bAFN6w2RLGZ2YTfdRNZQvvZ6ZN5TuaLLu7dcIo0wi2ttC8wGaZHxotB65TIYyZJpqe_9atOU8Hjw17RZoWSFVmQ8XwWQ31RDx70c3r7EKvRgesrHCjOutSJ7evSkm1uAEa7hUonHoE/s1600-h/2Dsinf16bias_FT.png&quot;&gt; &lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Figure 3 shows how the Fourier Transform of the resulting sinusoids would look like if a constant bias (upper row) or another sinusoid of low frequency (lower row) is added to the original sinusoids shown in Figure 2. The frequency order is the same as in Figure 2.&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigzGR5A87y-YLhwATPCEPbwbRrWYj0OTst88Tgu1A_fCORwMgSzqcBhj9KgQ5h1OxUU1Ew8WPA221RcvrWyix31ZlYHwwTgFEYN6f5XAOINGGYxbImrwkrmU-CRq1q0zmdK1EI9FRCqW8/s1600-h/2Dsinf1bias_FT.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigzGR5A87y-YLhwATPCEPbwbRrWYj0OTst88Tgu1A_fCORwMgSzqcBhj9KgQ5h1OxUU1Ew8WPA221RcvrWyix31ZlYHwwTgFEYN6f5XAOINGGYxbImrwkrmU-CRq1q0zmdK1EI9FRCqW8/s200/2Dsinf1bias_FT.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5358319463874438914&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfKsybg0aFRokPhSiSjQIUMad-j9dmFQ8JmXaTweG0oyEcE5lm_JK6BXwdY8gZ-AstqIELlYtMXYGlfEMJy5O1xw5IsSask8KxJAfg0xP5zQ9ojzRpfbknlzY5WJURPTuaZZYB4KCbaGs/s1600-h/2Dsinf4bias_FT.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfKsybg0aFRokPhSiSjQIUMad-j9dmFQ8JmXaTweG0oyEcE5lm_JK6BXwdY8gZ-AstqIELlYtMXYGlfEMJy5O1xw5IsSask8KxJAfg0xP5zQ9ojzRpfbknlzY5WJURPTuaZZYB4KCbaGs/s200/2Dsinf4bias_FT.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5358321633362082738&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3Mv0los5xcT9gXATx5MMhd86hCUmkbH45t6L8-AM7FS-tcoYrvUyC2MEe-bkgcAB8Ty7b3hV1ZQRB9NBbC8C18tfTO84lnj3HTGlZXQuZNeJzgouJFcCSbe4i29Xxvhkm64DlN_KcGCk/s1600-h/2Dsinf16bias_FT.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3Mv0los5xcT9gXATx5MMhd86hCUmkbH45t6L8-AM7FS-tcoYrvUyC2MEe-bkgcAB8Ty7b3hV1ZQRB9NBbC8C18tfTO84lnj3HTGlZXQuZNeJzgouJFcCSbe4i29Xxvhkm64DlN_KcGCk/s200/2Dsinf16bias_FT.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5358322477698062738&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWcbtBYHcfN7tzCKqvN-Zrm4mNyvx_e-T9n6BCVMmBvUhkPwfLyv0CgmHPQEbQnJY4HiMun9y_HfbuKZLl5EIABleiQHN5xSYKpbn0PQoNbYo-W7Hpma0-tnvxIBHTy-NkudprXl4oC_s/s1600-h/2Dsinf1add_FT.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWcbtBYHcfN7tzCKqvN-Zrm4mNyvx_e-T9n6BCVMmBvUhkPwfLyv0CgmHPQEbQnJY4HiMun9y_HfbuKZLl5EIABleiQHN5xSYKpbn0PQoNbYo-W7Hpma0-tnvxIBHTy-NkudprXl4oC_s/s200/2Dsinf1add_FT.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5358322843918429538&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEib0tETkVoOLA12yjGteq58hE4wjTGEQwlLuZHBJ4pnWduOqFykamOKYmz9_zsjTbLsYfkyaJ-ZsewcKv9gSdBLHpyqr3w8_Tpcz7a03gpBSFZWsALnQqn_WXVYiGjS8umWALqB6a6M26s/s1600-h/2Dsinf4add_FT.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEib0tETkVoOLA12yjGteq58hE4wjTGEQwlLuZHBJ4pnWduOqFykamOKYmz9_zsjTbLsYfkyaJ-ZsewcKv9gSdBLHpyqr3w8_Tpcz7a03gpBSFZWsALnQqn_WXVYiGjS8umWALqB6a6M26s/s200/2Dsinf4add_FT.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5358322976716434146&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEji-4gr3cJ82Db5krw084VNGHzYKzY6Lj5tLZ_AiG_-iK_oyg8BvD6WNX7t4fsmDJC48hEtOEtGbuZwq-SJbU-YktCaoCbeZSoxlPoJz4xj8oN5HEhPPZkzXjdOE5mds4jd3nsCE5t_xfM/s1600-h/2Dsinf16add_FT.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEji-4gr3cJ82Db5krw084VNGHzYKzY6Lj5tLZ_AiG_-iK_oyg8BvD6WNX7t4fsmDJC48hEtOEtGbuZwq-SJbU-YktCaoCbeZSoxlPoJz4xj8oN5HEhPPZkzXjdOE5mds4jd3nsCE5t_xfM/s200/2Dsinf16add_FT.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5358326729863496018&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 3. Fourier Transform of a sinusoid with a constant bias (upper row) or with an added low frequency sinusoid (lower row.)&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;Adding a constant bias to the original sinusoids resulted to the addition of a peak (which is the bias) at &lt;span style=&quot;font-style: italic;&quot;&gt;f&lt;span style=&quot;font-style: italic;&quot;&gt; &lt;/span&gt;&lt;/span&gt;= 0 to the respective Fourier Transforms of the sinusoids. If another sinusoid is added to a sinusoid the FT will show the frequencies of the two sinusoids like if a sinusoid with f=4 is added with a sinusoid with f=1 then their FT will show a peak at f=4 and f=1.&lt;br /&gt;&lt;br /&gt;Rotating the sinusoids will also rotate their FTs as shown in Figure 4 for theta = 30, 45, and 60. Then we combine these rotated sinusoids to make patterns.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBll2Y_URYJdPPxHLJKCrEXgFHQRUn2ZrNCIyf2reK5T2oU2awr72Mwopus8kuHZKNFTI01It-KmZHI93zqrrntmQEcOG8x_zeBDoLG3jNB_XSw-PAuMjcwrEPp1elMXqH7yTcO_mlI-Y/s1600-h/2Dsinf4_30.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBll2Y_URYJdPPxHLJKCrEXgFHQRUn2ZrNCIyf2reK5T2oU2awr72Mwopus8kuHZKNFTI01It-KmZHI93zqrrntmQEcOG8x_zeBDoLG3jNB_XSw-PAuMjcwrEPp1elMXqH7yTcO_mlI-Y/s200/2Dsinf4_30.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367270475625280562&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSTuV3-b9z7MgQ-hk5y950iXgf7COmSsN9szX_dL-bhXTorKtT1OsJc4WdYFxsJtQKrsSI16ywWgWFfan5Nec5Nc2BNJilAMY_iEL9incOSjm-RSJEEBgIGiaVQnd43dPGwihELWlAUw/s1600-h/2Dsinf4_45.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJSTuV3-b9z7MgQ-hk5y950iXgf7COmSsN9szX_dL-bhXTorKtT1OsJc4WdYFxsJtQKrsSI16ywWgWFfan5Nec5Nc2BNJilAMY_iEL9incOSjm-RSJEEBgIGiaVQnd43dPGwihELWlAUw/s200/2Dsinf4_45.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367270573589723378&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_MF1fpxPi-i7V2qktLcgZx6bHAZA4jQXaE3NY135gYIOr3WHcolkcdsSxUPGFY9d2ozWlw3k5S9h-28yIgHOmQ71o5VJvyjTgHY316hueg3xAtOU4QFZwVXJZYayULCDd2H6BhR0Zrg0/s1600-h/2Dsinf4_60.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_MF1fpxPi-i7V2qktLcgZx6bHAZA4jQXaE3NY135gYIOr3WHcolkcdsSxUPGFY9d2ozWlw3k5S9h-28yIgHOmQ71o5VJvyjTgHY316hueg3xAtOU4QFZwVXJZYayULCDd2H6BhR0Zrg0/s200/2Dsinf4_60.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367270697413806514&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhdCV7l39ZRb2cd6S0I_akQijiJtas-TahW5ay_D-aU3GEbi1azCtO23Q3aXk1IByIrd4X9iKEwgwSl94Iu0yNS1ulZhDUI0YtjyrraLZa3KaSmsY53bO1lGCJqlKsHZnar8DonjjPp1k/s1600-h/2Dsinf4_30FT.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhdCV7l39ZRb2cd6S0I_akQijiJtas-TahW5ay_D-aU3GEbi1azCtO23Q3aXk1IByIrd4X9iKEwgwSl94Iu0yNS1ulZhDUI0YtjyrraLZa3KaSmsY53bO1lGCJqlKsHZnar8DonjjPp1k/s200/2Dsinf4_30FT.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367270901544320898&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDLKBpUCANChqJS8hbQY1_iUJu-eQjd14KkBg-VWb1m62o0KzvB7Fh5BSYus4PzmAOnTrxfIsglDuEcVc4G-yuC4javhJdGBGdwF67GjB7Z32EsNrs66BBp8DBaTVP8RdcbqmiNSUEUG0/s1600-h/2Dsinf4_45FT.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDLKBpUCANChqJS8hbQY1_iUJu-eQjd14KkBg-VWb1m62o0KzvB7Fh5BSYus4PzmAOnTrxfIsglDuEcVc4G-yuC4javhJdGBGdwF67GjB7Z32EsNrs66BBp8DBaTVP8RdcbqmiNSUEUG0/s200/2Dsinf4_45FT.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367270993667777858&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgf_yn8II5kjvFms07zPgL4ZdM1bo1hbScl3PABKy0CQxeSnM0qYIZfIM4YrfZFjjPOrsL3-QJVI4rMw0Z7Ju03npL6UyU1Jdqg0M4muSehrAPmiiFHdY63XA_y7kmKCa5m17xgGBmVo/s1600-h/2Dsinf4_60FT.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSgf_yn8II5kjvFms07zPgL4ZdM1bo1hbScl3PABKy0CQxeSnM0qYIZfIM4YrfZFjjPOrsL3-QJVI4rMw0Z7Ju03npL6UyU1Jdqg0M4muSehrAPmiiFHdY63XA_y7kmKCa5m17xgGBmVo/s200/2Dsinf4_60FT.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367271107280115794&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 4. Rotated sinusoids (upper row)  with f = 4 and the FTs (lower row) at theta = 0, 45, and 60 degrees respectively.&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Now if we combine a sinusoid running in the x direction with another running in the y direction by addition or multiplication we get patterns as shown by Figure 5 below. Their FTs are just the superposition of their individual FTs. The code that generated these combinations are the following:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;z_sum = sin(2*%pi*4*X) + sin(2*%pi*4*Y);&lt;br /&gt;z_prod = sin(2*%pi*4*X) * sin(2*%pi*4*Y);&lt;br /&gt;z_prod2 = sin(2*%pi*4*X). * sin(2*%pi*4*Y);&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwS59Cr39eVD-yxkPKtXphoYEqpAuQJ0rHc8aZ_Z88UaTeNbElf_KFFjHbT7DA9UnLXVQJDTeZs_k3TyanjIiJTjrT0u8XkNjpq9moXKWJeZyHI4Y-5-HyyjXq8QKU7ZAKoVJL27K32mw/s1600-h/sum_hv.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwS59Cr39eVD-yxkPKtXphoYEqpAuQJ0rHc8aZ_Z88UaTeNbElf_KFFjHbT7DA9UnLXVQJDTeZs_k3TyanjIiJTjrT0u8XkNjpq9moXKWJeZyHI4Y-5-HyyjXq8QKU7ZAKoVJL27K32mw/s200/sum_hv.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367282353237966802&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHz4SCuvMN4tBtv5gxPtUcRiSq3HaT9k_c4bYs32Sh0AHGKnxrTtrm8Z3MfTEObP0sogXG9BKvdq03jR-XZUx6suFQQ8Ke_YxmQ0UbspuG5xwNBtNhf61hnUspRurKlPtFeQAescGcl5I/s1600-h/sum_hv_FT.png&quot;&gt; &lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHz4SCuvMN4tBtv5gxPtUcRiSq3HaT9k_c4bYs32Sh0AHGKnxrTtrm8Z3MfTEObP0sogXG9BKvdq03jR-XZUx6suFQQ8Ke_YxmQ0UbspuG5xwNBtNhf61hnUspRurKlPtFeQAescGcl5I/s200/sum_hv_FT.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367282506132588802&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMkVPVbO3HAG40ET8SZarcPQ-3BOzzltFlleU0lrkTnANy21ouzuOPFe9TBWJc6UoZ_feIJ-9o0Kjk0GyrjNxiuiQZxvB812ab-uRTZepQM3NeqAlszuNfzCy5Dl-TRCgA3wVwdVveuhA/s1600-h/prod_hv.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMkVPVbO3HAG40ET8SZarcPQ-3BOzzltFlleU0lrkTnANy21ouzuOPFe9TBWJc6UoZ_feIJ-9o0Kjk0GyrjNxiuiQZxvB812ab-uRTZepQM3NeqAlszuNfzCy5Dl-TRCgA3wVwdVveuhA/s200/prod_hv.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367282650826145218&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicUbDyMWcJ3q09V9FDmpmUhq3Aw-KocdvThstz32AIs4IdlhYsnT5REWanHOp8qEmljn-RfPPziZUklbZgv1JszSmU6PmpXf2l8pe0rWzrLBhTolxeKNtiH1AXL_Av0lnGu-uvql8n33s/s1600-h/prod_hvFT.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicUbDyMWcJ3q09V9FDmpmUhq3Aw-KocdvThstz32AIs4IdlhYsnT5REWanHOp8qEmljn-RfPPziZUklbZgv1JszSmU6PmpXf2l8pe0rWzrLBhTolxeKNtiH1AXL_Av0lnGu-uvql8n33s/s200/prod_hvFT.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367282787540638818&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPws8VT40bs5EfPaqEjrG9-gjgVenqHFfBslCXGmMKVrf39TemlIB9wn85dJ4Xe9CF-5oWBO86EK3GIo0a8BrFVujV2Rik8rmUi_KjYlt83XSjwhGkEHHG1rueqPEYgV6U6d08jN9sJE0/s1600-h/prod2_hv.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPws8VT40bs5EfPaqEjrG9-gjgVenqHFfBslCXGmMKVrf39TemlIB9wn85dJ4Xe9CF-5oWBO86EK3GIo0a8BrFVujV2Rik8rmUi_KjYlt83XSjwhGkEHHG1rueqPEYgV6U6d08jN9sJE0/s200/prod2_hv.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367283441184277234&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtpnLoFManCP9SwaWERb72hS8G6BiFjYLi3wH8vgm457CsqsWfeHV2f0vgUkxn8w6VX3RJL2wz0zBurw-AYmte4tIXP7-Yr5-hGDCtP0folR8QvWE06O8UN0YjdAe4HFAcn0nQh5ZSLgQ/s1600-h/prod2_hv_FT.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtpnLoFManCP9SwaWERb72hS8G6BiFjYLi3wH8vgm457CsqsWfeHV2f0vgUkxn8w6VX3RJL2wz0zBurw-AYmte4tIXP7-Yr5-hGDCtP0folR8QvWE06O8UN0YjdAe4HFAcn0nQh5ZSLgQ/s200/prod2_hv_FT.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367284008861780786&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 5. Combinations of a vertical and horizontal sinusoid using the equations shown above and their FTs.&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;If we add series of arbitrary rotated sinusoids to the patterns in Figure 5 we get patterns that looks like twisted checkered patterns as shown in Figure 6 below. The FTs of the patterns below is the same as the predicted results except for the matrix multiplication (middle row) where its FT is the same as the original pattern. It can be observed that the pattern itself has little deviation from the original pattern. As for the addition and the element by element multiplication, their FTs is the same as predicted which will be again, a superposition of the FTs of the original pattern and the added rotated patterns. If the added rotated sinusoids have rotations that scan from 0 t0 90 degrees in small increments then we expect a circle to form in the FT of that image which is partially shown by the FTs for the addition and the element by element multiplication.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHY5tsoJ0wNTSiGrHe9LbGTLScV5d4sIL6202Nermjre2j1hJ_nU3V0ZW7VTmj-R5UHNb9gSqj7u6wwpYTLsu-8ClN_d9v_Go1A7aqpKP77Glta-I3wht29o9y44y0ShNBUATDLsx-TXg/s1600-h/sum_hv_rot.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHY5tsoJ0wNTSiGrHe9LbGTLScV5d4sIL6202Nermjre2j1hJ_nU3V0ZW7VTmj-R5UHNb9gSqj7u6wwpYTLsu-8ClN_d9v_Go1A7aqpKP77Glta-I3wht29o9y44y0ShNBUATDLsx-TXg/s200/sum_hv_rot.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367286137368604498&quot; border=&quot;0&quot; /&gt; &lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi248TMv8P0BL_BsLKl_410wRQXYWXG_8IlrcGTldk-46Dn0O65svtRnpNf6B4KwU0LEVoICGLvXANfah9WbbBEON6tzz1Ckb1cbRFNjGWY5KGUfaz35-3pQwSd02204M7yXXhHhoQQY7E/s1600-h/sum_hv_rotFT.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi248TMv8P0BL_BsLKl_410wRQXYWXG_8IlrcGTldk-46Dn0O65svtRnpNf6B4KwU0LEVoICGLvXANfah9WbbBEON6tzz1Ckb1cbRFNjGWY5KGUfaz35-3pQwSd02204M7yXXhHhoQQY7E/s200/sum_hv_rotFT.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367286636205601426&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHbhZVFEsjK3Gb2MrMZPNMgLwrc65lI2cJ58nmEgZcKSrk2IiAPWib85RudYCyUNEMIbQvDUIiGq2Z83EV35zExmm93oInnfRTBSbT1obLCle20ub8ESf2W8msPcbOj2hinGhrC4fd5as/s1600-h/prod_hv_rot.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHbhZVFEsjK3Gb2MrMZPNMgLwrc65lI2cJ58nmEgZcKSrk2IiAPWib85RudYCyUNEMIbQvDUIiGq2Z83EV35zExmm93oInnfRTBSbT1obLCle20ub8ESf2W8msPcbOj2hinGhrC4fd5as/s200/prod_hv_rot.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367286829999885506&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS2FUqxKckFtF13-Mmbv8HfLqcbVHoG07_GbLUDUiUBo8pDpWYdNZgA_HKUvwOyzyXIPMG59Sq6DvtjKkVad4sf1qPvFyLvVm_ZnjfhyQX0dBlD-9LLJkE0dDrL2tKp9yjKTseXsHu6wU/s1600-h/prod_hvFT.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS2FUqxKckFtF13-Mmbv8HfLqcbVHoG07_GbLUDUiUBo8pDpWYdNZgA_HKUvwOyzyXIPMG59Sq6DvtjKkVad4sf1qPvFyLvVm_ZnjfhyQX0dBlD-9LLJkE0dDrL2tKp9yjKTseXsHu6wU/s200/prod_hvFT.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367287029612952834&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipyCFICZDV_yhoO9OLdxmNwuq82omfyArfObON3Lnb-morH74iM_9za3C4FkF8QfF40QLvzCeaDcC6yYpYc2wBOwhdqqgqJ851zHuWO1lhrhf_fpKqNLfbqngIngJWrxNXJKocTs7ZBmY/s1600-h/prod2_hv_rot.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipyCFICZDV_yhoO9OLdxmNwuq82omfyArfObON3Lnb-morH74iM_9za3C4FkF8QfF40QLvzCeaDcC6yYpYc2wBOwhdqqgqJ851zHuWO1lhrhf_fpKqNLfbqngIngJWrxNXJKocTs7ZBmY/s200/prod2_hv_rot.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367287136940724802&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgl42u_kWexN7PieUP8wTlSHAtQE2Sdnef_L7RwB5oi5AkxXw9dXLIL-7TJ0EqHuHZoLbKnmhYfLGJnDd72CiS5J0rDayUoBwXWnRHdFqKjw2kr-qUhyp8jWXvO29uV-JUxzRgbMkDWZHU/s1600-h/prod2_hv_rotFT.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgl42u_kWexN7PieUP8wTlSHAtQE2Sdnef_L7RwB5oi5AkxXw9dXLIL-7TJ0EqHuHZoLbKnmhYfLGJnDd72CiS5J0rDayUoBwXWnRHdFqKjw2kr-qUhyp8jWXvO29uV-JUxzRgbMkDWZHU/s200/prod2_hv_rotFT.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367287260985630706&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 6. Combinations of a vertical and horizontal sinusoids added with arbitrary rotated sinusoids and their corresponding FTs.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;I give myself a 10 for this activity since the FTs produced were correct and they matched what was expected.&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://ccesporlas-ap186.blogspot.com/2009/07/activity-6-properties-of-2d-fourier.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAkJR9666SvFj-FrSvKbMBRtfOdprBSNWIDKbH6LniiDM8eXqe50eCGUJZ7Hfy5zOVdpdNXUdjBtSp4JXCjMaDvD7LjhXeKu7PerxN9zHJnQmJgGG2dUre2pnOAQu0cbh6PpX2qJKHLys/s72-c/square.png" height="72" width="72"/><thr:total>4</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7876000474578747950.post-3494762435302724806</guid><pubDate>Tue, 07 Jul 2009 10:31:00 +0000</pubDate><atom:updated>2009-07-08T14:02:01.340-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">convolution</category><category domain="http://www.blogger.com/atom/ns#">correlation</category><category domain="http://www.blogger.com/atom/ns#">edge detection</category><category domain="http://www.blogger.com/atom/ns#">fourier transform</category><category domain="http://www.blogger.com/atom/ns#">image processing</category><category domain="http://www.blogger.com/atom/ns#">template matching</category><title>Activity 5 | Fourier Transform Model of Image Formation</title><description>&lt;div style=&quot;text-align: justify;&quot;&gt;The Fourier Transform is one of the basic transforms used in imaging and is implemented in a fast and efficient way by the Fast Fourier Transform or FFT which is also mainly used in signal processing. The FFT is available in many signal and image processing software like the one used in this activity which is Scilab. The fft2() function in Scilab performs the Fast Fourier Transform for any two-dimensional signal or for this activity, images. Analyzing and processing images is explored using the the Fast Fourier Transform, convolution used in edge detection and correlation used in template matching.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;5A - Familiarization with Discrete FFT&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In the first part of the activity we get to familiarize the built-in function fft2() by applying it to a 128x128 image of a white circle on black background and the letter A that is constructed using Paint. Then we apply fftshift() to get the Fourier Transform of the image. The Fourier Transforms obtained agree with the analytical Fourier Transform of a circle which is an airy disk that becomes a airy point when the circle is large while for the letter A, it is like the Fourier Transform of a triangle that has three lines crossing each other at the center.&lt;br /&gt;&lt;br /&gt;If we take the FFT of the resulting FFT of the images we get the intensity image or the original image that is inverted as shown by the last row of images. What is expected after getting the Fourier transform of the Fourier transform of the original image is the original image itself but inverted since an fftshift() is applied after the first FFT.&lt;table&gt;&lt;br /&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Original&lt;br /&gt;image&lt;/td&gt;&lt;td&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi11Nh-M1smKeenn_hMhyn_FK7-ZrvL8HvFRNQndNI0NJXSffHLgv34QL1X_9sxC9QVAssSLpy-LZX6RfjlLniqCKpl9GULH_AGT3ZYRfXLtzkAeCMJs4Tlt_paq53PbmS_71hpIk2TMak/s1600-h/circle.png&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 128px; height: 128px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi11Nh-M1smKeenn_hMhyn_FK7-ZrvL8HvFRNQndNI0NJXSffHLgv34QL1X_9sxC9QVAssSLpy-LZX6RfjlLniqCKpl9GULH_AGT3ZYRfXLtzkAeCMJs4Tlt_paq53PbmS_71hpIk2TMak/s320/circle.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5356099968443263410&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhz2dt34UPV36v5Z3oUJMSVJ19e0fQ1KheYUOUEH0GM97m8fP-7GchglHCgCBnRvpJ9GuZEYNZzlLoQgTyDfbxjlAwCBZXI9BPctkw8DPcVCoBauL-L76Wtdra-5yCL9YeErkqCY7LsCic/s1600-h/A_128x128.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 127px; height: 128px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhz2dt34UPV36v5Z3oUJMSVJ19e0fQ1KheYUOUEH0GM97m8fP-7GchglHCgCBnRvpJ9GuZEYNZzlLoQgTyDfbxjlAwCBZXI9BPctkw8DPcVCoBauL-L76Wtdra-5yCL9YeErkqCY7LsCic/s320/A_128x128.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5356093615311672690&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;td&gt;FFT of&lt;br /&gt;image&lt;/td&gt;&lt;td&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhIEZ_tlh_6cb6xy2OvUdu03XlM6W1Eliy9Xl96RZSJI024FbsMeY-fY3BNdfjkkC4MB0kSpElg6sdJ7stBE8-UVePXZAEllRnNi7kUvfrtzze7I5YVmG-FEiBr6LwOxcnnNUR4iTHtqA/s1600-h/circle_6a3.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 128px; height: 128px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhIEZ_tlh_6cb6xy2OvUdu03XlM6W1Eliy9Xl96RZSJI024FbsMeY-fY3BNdfjkkC4MB0kSpElg6sdJ7stBE8-UVePXZAEllRnNi7kUvfrtzze7I5YVmG-FEiBr6LwOxcnnNUR4iTHtqA/s320/circle_6a3.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5355811666865344210&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjt6o0Zo1HjaKkMvkbbjaQUqMXsiZr320xGElMWUjPiwOZSGAvKah1HMPdqcYdXLN8FaUJRRtvxYCYMtglppKWhNDgHcbsC_l4BfZcVcY0ewAhPDtMJDNwe2ilgdlhhfIRJRT1794AJIk8/s1600-h/A_6a3.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 128px; height: 128px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjt6o0Zo1HjaKkMvkbbjaQUqMXsiZr320xGElMWUjPiwOZSGAvKah1HMPdqcYdXLN8FaUJRRtvxYCYMtglppKWhNDgHcbsC_l4BfZcVcY0ewAhPDtMJDNwe2ilgdlhhfIRJRT1794AJIk8/s320/A_6a3.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5355812891865545458&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;td&gt;Shifted&lt;br /&gt;FFT image&lt;/td&gt;&lt;td&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhStpYxg0rjNiBGsi-QocaYw8pcWEA8Aasoa1WqHwj33PtN_XENmn3Y3RfCT3wMIKz1Rn68tOw0kKQBmeplY1gssApwjFe-_O63dFWTUE11BSmDp-VDJej7eXsRaGOEtbRs6bDEG9eFhug/s1600-h/circle_6a4.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 128px; height: 128px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhStpYxg0rjNiBGsi-QocaYw8pcWEA8Aasoa1WqHwj33PtN_XENmn3Y3RfCT3wMIKz1Rn68tOw0kKQBmeplY1gssApwjFe-_O63dFWTUE11BSmDp-VDJej7eXsRaGOEtbRs6bDEG9eFhug/s320/circle_6a4.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5355810207425029042&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkmFpdasfATPu8E0mem2M9vULc04GGZjFCF-HXuiV3XEYtbiWE4Z0yO8evG82M7QQQUCN6F4XzfZ4-HPpjyWfT1WXtGy_lKtTwqhX3YTAr11bdu4unAVnRe5EK1LukvMwsQcJWC1DF6o8/s1600-h/A_6a4.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 128px; height: 128px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkmFpdasfATPu8E0mem2M9vULc04GGZjFCF-HXuiV3XEYtbiWE4Z0yO8evG82M7QQQUCN6F4XzfZ4-HPpjyWfT1WXtGy_lKtTwqhX3YTAr11bdu4unAVnRe5EK1LukvMwsQcJWC1DF6o8/s320/A_6a4.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5355814082466216258&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;td&gt;FFT of&lt;br /&gt;FFT of&lt;br /&gt;image&lt;/td&gt;&lt;td&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEid99BC-NqAo0mluWwDN8yju1nbs6GtXnkBOVuQCFEBxqPVdLhOsJqpY7dNKao5dK5Rm_73hcnJnKxxR5Jk-BooZU121jyGys1BLnEfotFeRZaioMSrYmq_2pBiqXAUdexs5YEVyTxQ-3o/s1600-h/circle_6a5.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 128px; height: 128px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEid99BC-NqAo0mluWwDN8yju1nbs6GtXnkBOVuQCFEBxqPVdLhOsJqpY7dNKao5dK5Rm_73hcnJnKxxR5Jk-BooZU121jyGys1BLnEfotFeRZaioMSrYmq_2pBiqXAUdexs5YEVyTxQ-3o/s320/circle_6a5.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5356102159920959106&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrCdzYwkYpjXHA16lBugXlteqkvdWRbZGDihfbkeVzJCQlwCyne9ylEbJNK_6Zyb2m1D2pogAZawcwKW-Av5yw4Enxu-NnZectId_rikG4lm_8E6HtkGsfcWMrBxgINEief5EYsQdjWYU/s1600-h/A_6a5.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 128px; height: 128px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrCdzYwkYpjXHA16lBugXlteqkvdWRbZGDihfbkeVzJCQlwCyne9ylEbJNK_6Zyb2m1D2pogAZawcwKW-Av5yw4Enxu-NnZectId_rikG4lm_8E6HtkGsfcWMrBxgINEief5EYsQdjWYU/s320/A_6a5.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5356096671769468450&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;5B - Simulation of an Imaging Device&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In this activity we simulate an imaging device - the lens - by using FFT and convolution where a function is operated on another function to get a new function. The object is a 128x128 image of the letters VIP in Arial which will serve as the first function and the aperture of the lens is a 128x128 image of a circle and its transfer function will be the second function. The convolution of these two functions will give the image produced by this system. The Fourier Transform is the lens in this system such that by doing a convolution between the Fourier Transforms of the object and the aperture you get the produced image of the system. Below are the images used and produced in this activity.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfF96WAKj8xVNUpCJanOkD5av8uKkxzlopkhcPwoSG7ZQ9tb99pwHQ2mA81ggfxqlje3KK_0nEUBy3fTxM7pC7QVDij_L67Zzo2nAHhwBNDHoVfxrZJc3q8wPaiHRRe8cd8onGr1WZ0E8/s1600-h/activity5b.png&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 311px; height: 320px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfF96WAKj8xVNUpCJanOkD5av8uKkxzlopkhcPwoSG7ZQ9tb99pwHQ2mA81ggfxqlje3KK_0nEUBy3fTxM7pC7QVDij_L67Zzo2nAHhwBNDHoVfxrZJc3q8wPaiHRRe8cd8onGr1WZ0E8/s320/activity5b.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5356152898803741490&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Different sizes of aperture are used as shown by the different sizes of circle images. It can be seen that as the aperture size becomes larger, the produced image becomes clearer and more defined. This agrees with the fact that small, finite apertures can&#39;t get or capture all light coming from the object thus a blurring is observed in the resulting image.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;5C - Template Matching Using Correlation&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Another method used in signal and image processing is correlation that is similar to convolution such that it is also related to the complex conjugation of the Fourier Transforms of the desired signals. Correlation measures the degree of similarity between two signals thus making it useful for checking patterns like for this activity where an image containing a phrase is correlated with another image containing the letter A. This letter A will be the template or the pattern.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhw8M6FMjDw7Cgxc0XpAJxFZMAXS8l8axSn4Qm4kQtoo_nRfVHCRoCgt8lLslwNbXRHL-iNVBtGEFm2Ly6yuNJCghgWrWB006Ck7BFfVNkeG4mVMf6ev2s9UjaWWIDaYgmbhlw8OS8V4zU/s1600-h/act5c.png&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 120px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhw8M6FMjDw7Cgxc0XpAJxFZMAXS8l8axSn4Qm4kQtoo_nRfVHCRoCgt8lLslwNbXRHL-iNVBtGEFm2Ly6yuNJCghgWrWB006Ck7BFfVNkeG4mVMf6ev2s9UjaWWIDaYgmbhlw8OS8V4zU/s320/act5c.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5356169072088240146&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;The resulting image after the correlation shows the highest values, with black=0 and white=1, are at areas where the letter A can be found.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;5D - Edge Detection Using the Convolution Integral&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Edge detection is also like template matching only a pattern is used and that pattern is convolved with the VIP image using the built-in function imcorrcoef() in Scilab SIP Toolbox. Below are the resulting images using different patterns such as vertical, horizontal, diagonal, back diagonal, and spot pattern.&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_7ZOIZm43c6EaUTE_AuM3YFLOTY-3_u2c0kINUuZ8YspHil8i2ke1VC6I-1M98R6S-qOdqKMCzpwKhixgzDUOJFJt3hAufpyGBE1YKTc-SxgtJcCPeuUh0nHvW3Rps7CPLlp3iae2424/s1600-h/activity5d.png&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 146px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_7ZOIZm43c6EaUTE_AuM3YFLOTY-3_u2c0kINUuZ8YspHil8i2ke1VC6I-1M98R6S-qOdqKMCzpwKhixgzDUOJFJt3hAufpyGBE1YKTc-SxgtJcCPeuUh0nHvW3Rps7CPLlp3iae2424/s400/activity5d.png&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5356194157279842402&quot; /&gt;&lt;/a&gt;&lt;br /&gt;The images at the right side show the areas that are highly similar to the respective pattern. Say for example for the vertical and horizontal patterns, in the resulting image, the most pronounced areas are the edges that are vertical and horizontal respectively. The horizontal and vertical lines especially in the letters I and P are gone respectively for the vertical and horizontal pattern. Lastly, among the five patterns used, the spot pattern is the one that gave the best edge detection since it does not suggest any specific direction and it is like tracing the edge pixels of the letters V, I, and P.&lt;br /&gt;&lt;br /&gt;I&#39;d like to give myself a grade of 10 for this activity because it was fairly easy since the codes are already given but I give myself a grade of 9 for this activity because I did not finish the blog on time. Also I had a hard time exporting quality images from my results since I did not know anything about the command imwrite() but I thank Mr. Miguel Sison for mentioning it so I was able to apply it to the last part of the activity. It is a lot easier and the image quality is better.&lt;br /&gt;&lt;br /&gt;Reference - UPNIP - AP186 - Activity Sheet 5 - Fourier Transform of Image Model.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</description><link>http://ccesporlas-ap186.blogspot.com/2009/07/activity-5-fourier-transform-of-image.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi11Nh-M1smKeenn_hMhyn_FK7-ZrvL8HvFRNQndNI0NJXSffHLgv34QL1X_9sxC9QVAssSLpy-LZX6RfjlLniqCKpl9GULH_AGT3ZYRfXLtzkAeCMJs4Tlt_paq53PbmS_71hpIk2TMak/s72-c/circle.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7876000474578747950.post-8760010027095174710</guid><pubDate>Tue, 07 Jul 2009 00:49:00 +0000</pubDate><atom:updated>2009-08-07T09:21:04.316-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">histogram</category><category domain="http://www.blogger.com/atom/ns#">image processing</category><title>Activity 4 | Histogram Backprojection</title><description>Images are comprised of pixels with values that represent a certain color. Getting the histogram of these pixel values give us information on the spread of the image&#39;s color from say black &#39;0&#39; to white &#39;1&#39; like grayscale images. In the previous activity, the histogram of a grayscale image was used to enhance the image by thresholding such that the desired region is well separated from the background.&lt;br /&gt;&lt;br /&gt;In this activity, image enhancement is once again performed by tweaking the cumulative distribution function or the normalized histogram of a grayscale image into functions like the linear, parabolic, and logarithmic functions. Let us examine the PDF and CDF of a sample grayscale image as shown in Figure 1.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxKDyYodkbuBSr_Jn0JU6e9yUH4EjUjx4TcsqSRExf7SWxrlA5PrrLlN1qjlxD63L_rgouLsjo8DIrTjvfp-CWnW2jR0lP3ni_g6lNEQJ7dKrguRe4Aczqku7Sh301H4x_GaXhUjCx_8I/s1600-h/g4.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 200px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxKDyYodkbuBSr_Jn0JU6e9yUH4EjUjx4TcsqSRExf7SWxrlA5PrrLlN1qjlxD63L_rgouLsjo8DIrTjvfp-CWnW2jR0lP3ni_g6lNEQJ7dKrguRe4Aczqku7Sh301H4x_GaXhUjCx_8I/s400/g4.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367233716394253458&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuvGExT7a068GhcxykCtD63a5XB1xao5f5AVgGnItk4HfXML85N6ascbyZJqqJPb0vIIvaxSncRc7Zdi-Wwj7JEgLDGE8VmpLdoJ11C2wJK-j69dZ5iO-PlyO9nx2ZiOj3C7JZzps3JME/s1600-h/g4_PDF.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 300px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuvGExT7a068GhcxykCtD63a5XB1xao5f5AVgGnItk4HfXML85N6ascbyZJqqJPb0vIIvaxSncRc7Zdi-Wwj7JEgLDGE8VmpLdoJ11C2wJK-j69dZ5iO-PlyO9nx2ZiOj3C7JZzps3JME/s400/g4_PDF.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367234014169036898&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBlOV_SwNtbESEzbB3NfMgpFgJmFle0DiHwm6YOn24qE4Fw28gJcc5ZzmtZCvVGDxqUuRO2GorXNSf5ZbSF5j6UawuEyTjCUgsKowBs9k50KAziZ44IGMw-T5yUBnMhmeU3GtV3aHBqao/s1600-h/g4_CDF.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 300px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBlOV_SwNtbESEzbB3NfMgpFgJmFle0DiHwm6YOn24qE4Fw28gJcc5ZzmtZCvVGDxqUuRO2GorXNSf5ZbSF5j6UawuEyTjCUgsKowBs9k50KAziZ44IGMw-T5yUBnMhmeU3GtV3aHBqao/s400/g4_CDF.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367234716407372514&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 1. Original image with PDF and CDF respectively.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Performing histogram backprojection on the image using a linear CDF shown in Figure 2, we get a new image, its PDF and CDF as shown in Figure 3. From the image, PDF and CDF of the new image we can see the presence of higher values making the image brighter and more even.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0hKj8Qnti02FghZGNsQdPOj2rxiR4d5v92HzxbIc1J7Mo5QloJ4Uq3us03KQzzcgJmHDXhGHTXXI0ZugghYOLJs9FRT2XKtW4PT1RVIjQo7RzvTHRW2SO036GZ5fwZChv9iI58CmYH7c/s1600-h/linCDF.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 300px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0hKj8Qnti02FghZGNsQdPOj2rxiR4d5v92HzxbIc1J7Mo5QloJ4Uq3us03KQzzcgJmHDXhGHTXXI0ZugghYOLJs9FRT2XKtW4PT1RVIjQo7RzvTHRW2SO036GZ5fwZChv9iI58CmYH7c/s400/linCDF.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367236022267448370&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 2. Linear CDF.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinynt4z4jXfXiexPpTzaeeMf9aw8c2S_mhrQefkyyjkvy-NMHQJjI_da0O-LLsyVJ8HZkHWVfI_C9cjg5DVsKSgaHwJT6Z3Ifk8XtclHyBb95bNyR1SPjOl1uFYcBwUp0De5C5csEySDk/s1600-h/g4lin.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 200px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinynt4z4jXfXiexPpTzaeeMf9aw8c2S_mhrQefkyyjkvy-NMHQJjI_da0O-LLsyVJ8HZkHWVfI_C9cjg5DVsKSgaHwJT6Z3Ifk8XtclHyBb95bNyR1SPjOl1uFYcBwUp0De5C5csEySDk/s400/g4lin.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367236965924929042&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjz_SpgLP3QLVt0hLD9c5IkSINr4ZutVWzFwC7Mjyv-jq8TuqK7RV_GciDqHJHjJBG0LXLeawZBMo1b2sx_peG8Ukj2pefd2MPEciMwHAGZKSpjkTP0XiMG4cei74jaZU-_h6aDTYv6a1s/s1600-h/g4lin_PDF.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 300px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjz_SpgLP3QLVt0hLD9c5IkSINr4ZutVWzFwC7Mjyv-jq8TuqK7RV_GciDqHJHjJBG0LXLeawZBMo1b2sx_peG8Ukj2pefd2MPEciMwHAGZKSpjkTP0XiMG4cei74jaZU-_h6aDTYv6a1s/s400/g4lin_PDF.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367237128535062402&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsXNCX-SahEeUkMvy6ZDwcCTr-xDnqVX1ZZsqr8SWjzEjgQZbWzOj3XpsBM4ENB-saHMCs1hJ1TPYx_uvM_I9LRwU_G5EEckrHKcUMhnLPyzObZBUZM_VIMaHGYL3u1Fd38-WAGN4HHRg/s1600-h/g4lin_CDF.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 300px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsXNCX-SahEeUkMvy6ZDwcCTr-xDnqVX1ZZsqr8SWjzEjgQZbWzOj3XpsBM4ENB-saHMCs1hJ1TPYx_uvM_I9LRwU_G5EEckrHKcUMhnLPyzObZBUZM_VIMaHGYL3u1Fd38-WAGN4HHRg/s400/g4lin_CDF.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367237338081396674&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 3. New image with PDF and linear CDF.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Performing histogram backprojection on the image using a parabolic CDF shown in Figure 4, we get another new image, its PDF and CDF as shown in Figure 5. Because of the shape of the parabolic CDF, the majority of the pixels have high values thus producing an image with the very bright areas that are not needed as seen in the new x-ray image making it saturated.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgokM4H0-_pPpEo9wouddZNP711HhiY6p8wFMiIuN91eQODcUlExSilPktKv3jMA-UFUth2RkAwLoCC46li2byHak27TjyFT2AT1BPzMdg0H4LCGbCshshS_raAyavhXKqHaMFaBhtZpwc/s1600-h/parCDF.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 300px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgokM4H0-_pPpEo9wouddZNP711HhiY6p8wFMiIuN91eQODcUlExSilPktKv3jMA-UFUth2RkAwLoCC46li2byHak27TjyFT2AT1BPzMdg0H4LCGbCshshS_raAyavhXKqHaMFaBhtZpwc/s400/parCDF.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367238731340730850&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 4. Parabolic CDF.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlxjP0tEc15IzSeftaB64WXTr9PaLLKRtblgKoiC-14lyYSLNZxmxsbaNMZlSD03e5tr0absRHYzxc6ax7g6WRM21hs3C_6SZI41mnjuj7fnhRgnSeWwt49jTCu0rEnBjNRwYyHQ5cnCk/s1600-h/g4par.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 200px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlxjP0tEc15IzSeftaB64WXTr9PaLLKRtblgKoiC-14lyYSLNZxmxsbaNMZlSD03e5tr0absRHYzxc6ax7g6WRM21hs3C_6SZI41mnjuj7fnhRgnSeWwt49jTCu0rEnBjNRwYyHQ5cnCk/s400/g4par.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367239043553173218&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcu5oAufAagP_CKvfCzeXD8y1JoBllzC_mv9IfZd3B-gB4XfWFtqPC9nvnE-CdHbPxlXRifrKkXdfp8z5M9BsNb0qwzy5Y7Iym-acjA2koyIX2eV2y6z2nFJFTga-kDoWNJ6Lr7M4rNIk/s1600-h/g4par_PDF.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 300px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcu5oAufAagP_CKvfCzeXD8y1JoBllzC_mv9IfZd3B-gB4XfWFtqPC9nvnE-CdHbPxlXRifrKkXdfp8z5M9BsNb0qwzy5Y7Iym-acjA2koyIX2eV2y6z2nFJFTga-kDoWNJ6Lr7M4rNIk/s400/g4par_PDF.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367239376558978114&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0fErAI-gfhGZktiDEgfqCqXN4V8Ovy4cffUoyxLEbNJXqJigPCDL32ln7SPDiZt5Z32wVQXdC85ryOfDK9sPfhK3gIZlVpLQnIJtw5yH8TIHiiQYn_nlfqipLFP6rnVC0a52Dsn3fIf0/s1600-h/g4par_CDF.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 300px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0fErAI-gfhGZktiDEgfqCqXN4V8Ovy4cffUoyxLEbNJXqJigPCDL32ln7SPDiZt5Z32wVQXdC85ryOfDK9sPfhK3gIZlVpLQnIJtw5yH8TIHiiQYn_nlfqipLFP6rnVC0a52Dsn3fIf0/s400/g4par_CDF.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367239499346207122&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 5. New image with PDF and parabolic CDF.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Now the human eye has a nonlinear response, specifically a logarithmic response so using a logarithmic CDF shown in Figure 6, we get a new image, its PDF and CDF as shown in Figure 7. Because of the logarithmic trend, the resulting image has high contrast than the linear CDF. The logarithmic response is repeated on another image as shown in Figure 8.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjP_bTpMt-aHMOYAIqi4AAPihtG3kwyOZhxKekknOslw2qK5xdEB75aHXsQzq8BGEMCkBWQ4_6CZmxIRAHKBmvFmvE4PyPz2onOGD5LQLHEMPv7A-XjpOSApPzeip0_YqrGmWHNNCRG0Ks/s1600-h/logCDF.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 300px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjP_bTpMt-aHMOYAIqi4AAPihtG3kwyOZhxKekknOslw2qK5xdEB75aHXsQzq8BGEMCkBWQ4_6CZmxIRAHKBmvFmvE4PyPz2onOGD5LQLHEMPv7A-XjpOSApPzeip0_YqrGmWHNNCRG0Ks/s400/logCDF.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367242513514188626&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 6. Logarithmic CDF.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjd-T53gooJi1EPkY5W50wfcpNwTV-X8zkCNa7jqGOTgltJ2fGK7cOAQMLp9Ue_KHVAZedrB0oxMNFwmwuaszmiG6Q-qfW0GFsZxxthM0AEe61p8YOcERR7I6JvX5_Le02luABM-te0isE/s1600-h/g4log.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 200px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjd-T53gooJi1EPkY5W50wfcpNwTV-X8zkCNa7jqGOTgltJ2fGK7cOAQMLp9Ue_KHVAZedrB0oxMNFwmwuaszmiG6Q-qfW0GFsZxxthM0AEe61p8YOcERR7I6JvX5_Le02luABM-te0isE/s400/g4log.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367253181606912050&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 7. Using a logarithmic CDF.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhe4gi17L59KvHsN7DPWoQZPh9paC-V5s_s9TJFGoiuXTkZuGzzRZ2I5TA1fOF3Ar_qOmosAwPknrRZezRSP8dZ118pxcnT0yi1K024hAO90nq4mH9o61cAcN3rub06auGt4kAZ8uppsRk/s1600-h/g2.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 200px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhe4gi17L59KvHsN7DPWoQZPh9paC-V5s_s9TJFGoiuXTkZuGzzRZ2I5TA1fOF3Ar_qOmosAwPknrRZezRSP8dZ118pxcnT0yi1K024hAO90nq4mH9o61cAcN3rub06auGt4kAZ8uppsRk/s400/g2.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367253348387558434&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2DYroso4JqFMHYsvKdAhqmEqPgCEh5UtNYjwRSwq3CsdEkh-H0RhDjsjzTBm2JqpBJ-1G5Xj5YVhkzwbndeff7zKx_SP3h7cX_s_fCG4Y11y4DCh2edCaeMISdvZwn5xtPrH0JUwwZqo/s1600-h/g2log.jpg&quot;&gt; &lt;img style=&quot;cursor: pointer; width: 200px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2DYroso4JqFMHYsvKdAhqmEqPgCEh5UtNYjwRSwq3CsdEkh-H0RhDjsjzTBm2JqpBJ-1G5Xj5YVhkzwbndeff7zKx_SP3h7cX_s_fCG4Y11y4DCh2edCaeMISdvZwn5xtPrH0JUwwZqo/s400/g2log.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367253988149503538&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdJQgwg48dBFE24I8XkdMy-b61fbCeco3sVDqPZb-oXHmn0kfqRYiPloAZF6rjr0LVuQNtthIO8xtxpY1Sjs0lE83MHAqw5QlLkKBrnf0vOpJSnnv7bmovJS5BwlLYjhGQeFefdGuEe_c/s1600-h/g1.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 200px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdJQgwg48dBFE24I8XkdMy-b61fbCeco3sVDqPZb-oXHmn0kfqRYiPloAZF6rjr0LVuQNtthIO8xtxpY1Sjs0lE83MHAqw5QlLkKBrnf0vOpJSnnv7bmovJS5BwlLYjhGQeFefdGuEe_c/s400/g1.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367257089299218674&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ4Ns5JJyNyJKK7QYrB1gi18Z5aZ-hyqDRgRuQS8qf2F2rQZvRmxsRv_mhMvF6sDqi07Ilp9hDghJvJkDsB4ckUf3MuCnReF_pjwwtVHUepy8XACK9ZneusrKTmhoDkd7PM_jCHhl8wBc/s1600-h/g1log.jpg&quot;&gt; &lt;img style=&quot;cursor: pointer; width: 200px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ4Ns5JJyNyJKK7QYrB1gi18Z5aZ-hyqDRgRuQS8qf2F2rQZvRmxsRv_mhMvF6sDqi07Ilp9hDghJvJkDsB4ckUf3MuCnReF_pjwwtVHUepy8XACK9ZneusrKTmhoDkd7PM_jCHhl8wBc/s400/g1log.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367257308120400098&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLemV8rUA2gLHbOQ9mN4PeuzvM34QsDlM09cjzU-4Pw6D8A-z6khPimhD4GlQ-aoxM2XgHgKaPuRBa49KsVwCki4AViXJUWOf0I5QWdmZXnDM2lW5pmab10Um8zgvWGUuPTr6Ky_Ft1v0/s1600-h/g3.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 200px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLemV8rUA2gLHbOQ9mN4PeuzvM34QsDlM09cjzU-4Pw6D8A-z6khPimhD4GlQ-aoxM2XgHgKaPuRBa49KsVwCki4AViXJUWOf0I5QWdmZXnDM2lW5pmab10Um8zgvWGUuPTr6Ky_Ft1v0/s400/g3.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367257191551215874&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5rM3BZqARkhN2qJhlW4yg4DVAo5V0THJBpU1jYGhcRZ5qZxrrHkUsPxGtRQ16KkNEtADTZJZUA5Fst7p9xyuxApAM7M10HpIb5JYnbBPO_4RXUUCfSkZdP-2EjfJQuo8HSSEfA_iMLMY/s1600-h/g4log.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 200px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5rM3BZqARkhN2qJhlW4yg4DVAo5V0THJBpU1jYGhcRZ5qZxrrHkUsPxGtRQ16KkNEtADTZJZUA5Fst7p9xyuxApAM7M10HpIb5JYnbBPO_4RXUUCfSkZdP-2EjfJQuo8HSSEfA_iMLMY/s400/g4log.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5367257448372085666&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 8. Simulation of human eye response using a logarithmic CDF with original image (left) and new image (right) using logarithmic CDF.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;I give myself a grade of 9 for this activity since I was able to do the histogram back projection using different CDFs and was able to produce the PDFs and CDFs of the new images correctly.</description><link>http://ccesporlas-ap186.blogspot.com/2009/07/activity-4-histogram-backprojection.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxKDyYodkbuBSr_Jn0JU6e9yUH4EjUjx4TcsqSRExf7SWxrlA5PrrLlN1qjlxD63L_rgouLsjo8DIrTjvfp-CWnW2jR0lP3ni_g6lNEQJ7dKrguRe4Aczqku7Sh301H4x_GaXhUjCx_8I/s72-c/g4.png" height="72" width="72"/><thr:total>4</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7876000474578747950.post-6975865128436342319</guid><pubDate>Sun, 05 Jul 2009 18:23:00 +0000</pubDate><atom:updated>2009-08-06T04:20:23.699-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">binary</category><category domain="http://www.blogger.com/atom/ns#">grayscale</category><category domain="http://www.blogger.com/atom/ns#">image processing</category><category domain="http://www.blogger.com/atom/ns#">indexed</category><category domain="http://www.blogger.com/atom/ns#">truecolor</category><title>Activity 3 | Image Types and Basic Image Enhancement</title><description>Digitized images have four types. We can obtain sample images for each type by searching over the internet. The following four images obtained from the internet (Figure 1-4) show an example for each image type together with their properties obtained using the SIP Toolbox function &lt;a href=&quot;http://siptoolbox.sourceforge.net/doc/sip-0.2.0-reference/imfinfo.html&quot;&gt;&lt;i&gt;imfinfo()&lt;/i&gt;&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;BINARY IMAGE&lt;/span&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcbRZgRUlurCiFEXCHQOCZKL0t-5zu0Yori6s2MepRieZHppaP7dSmecToQ6q3zoPRs0V-Sv77j4s8xkv-VwIH_V6naOdDpuAu0CtrWzYk3QvA69Ui2R6_SZY2U1Ud8L2nuGsG4h8EbqM/s1600-h/binary.gif&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 240px; height: 240px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcbRZgRUlurCiFEXCHQOCZKL0t-5zu0Yori6s2MepRieZHppaP7dSmecToQ6q3zoPRs0V-Sv77j4s8xkv-VwIH_V6naOdDpuAu0CtrWzYk3QvA69Ui2R6_SZY2U1Ud8L2nuGsG4h8EbqM/s400/binary.gif&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5358775267985943442&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;File Source :  http://www.fmwconcepts.com/imagemagick/morphology/images/logo2_fuzz15_mask_binary_open_1.gif&lt;br /&gt;Format: GIF | Size : 951 | Width: 240 | Height: 240&lt;br /&gt;Depth: 8 //bits per pixel&lt;br /&gt;Storage Type: Indexed&lt;br /&gt;Number of Colors: 2&lt;br /&gt;Resolution Unit: centimeter&lt;br /&gt;X&amp;amp;Y Resolution: 0&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;GRAYSCALE IMAGE&lt;/span&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMNYEIG8BYa3D8g7hUXaz9jHEO_i-wdkDEV-Ccj3bRAHnNefINMrKS3oJFqRuE76eN9BluGAmvm3lRlRsmsjs9r28zLgI-2jtOmKY35qmG6J8_lsumpI3mitnyrcoMKNGqWe0IpRczkjs/s1600-h/grayscale.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 282px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMNYEIG8BYa3D8g7hUXaz9jHEO_i-wdkDEV-Ccj3bRAHnNefINMrKS3oJFqRuE76eN9BluGAmvm3lRlRsmsjs9r28zLgI-2jtOmKY35qmG6J8_lsumpI3mitnyrcoMKNGqWe0IpRczkjs/s400/grayscale.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5358776561886049362&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;File Source :  http://mangs.multiply.com/photos/album/13/hellsing_volume_1_chapter_3#3&lt;br /&gt;Format: JPEG | Size : 52017 | Width: 352 | Height: 499&lt;br /&gt;Depth: 8 //bits per pixel&lt;br /&gt;Storage Type: Indexed&lt;br /&gt;Number of Colors: 256&lt;br /&gt;Resolution Unit: inch&lt;br /&gt;X&amp;amp;Y Resolution: 0&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;TRUECOLOR IMAGE&lt;/span&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzXZN3RgRZW1ktP5BUNqH_Tfp-UWh56Dn9LfgUpg7gnK14mZcMtdHqP6XcrQmYNeu6oz8S5BVfYOUztaIavRgPrpHjVNuEHnEcS-RjxKyu5vQ5gtWmqrZfwRc1EHivCuBZpPZq5x58i1Y/s1600-h/truecolor.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 280px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzXZN3RgRZW1ktP5BUNqH_Tfp-UWh56Dn9LfgUpg7gnK14mZcMtdHqP6XcrQmYNeu6oz8S5BVfYOUztaIavRgPrpHjVNuEHnEcS-RjxKyu5vQ5gtWmqrZfwRc1EHivCuBZpPZq5x58i1Y/s400/truecolor.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5358777390588677650&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;File Source :  http://www.dcercado.tk&lt;br /&gt;Format: JPEG | Size : 38668 | Width: 500 | Height: 350&lt;br /&gt;Depth: 8 //bits per pixel&lt;br /&gt;Storage Type: Truecolor&lt;br /&gt;Number of Colors: 0&lt;br /&gt;Resolution Unit: inch&lt;br /&gt;X&amp;amp;Y Resolution: 0&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;INDEXED IMAGE&lt;/span&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9fyLATngxDlu2XoilPHOypD8Bx694FDrSvW3hNjrlLHpNldbqiDRE3XduJn2RZvGNJtTGTOu4AHvwDjwL5OiwPF9uRLMiXN0-MUruGZbeQBMKazObAhtFi2455kAipZWW2QFAhhfDFmc/s1600-h/indexed.gif&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 100px; height: 100px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9fyLATngxDlu2XoilPHOypD8Bx694FDrSvW3hNjrlLHpNldbqiDRE3XduJn2RZvGNJtTGTOu4AHvwDjwL5OiwPF9uRLMiXN0-MUruGZbeQBMKazObAhtFi2455kAipZWW2QFAhhfDFmc/s400/indexed.gif&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5358782280269554082&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;File Source :  http://mangs.multiply.com/photos/album/37/album_covers#21&lt;br /&gt;Format: GIF | Size : 7550 | Width: 100 | Height: 100&lt;br /&gt;Depth: 8 //bits per pixel&lt;br /&gt;Storage Type: Indexed&lt;br /&gt;Number of Colors: 256&lt;br /&gt;Resolution Unit: centimeter&lt;br /&gt;X&amp;amp;Y Resolution: 0&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Now knowing the four basic image types let us do some basic image enhancement of a grayscale image by thresholding to separate the background from the Region Of Interest or ROI. To do this we need to know the grayscale distribution which can help in knowing the gray values of the ROI and obtain it by thresholding.&lt;br /&gt;&lt;br /&gt;Figures 4 and 5 shows the scanned images to be used for basic image enhancement and below them are their image properties again using &lt;a href=&quot;http://siptoolbox.sourceforge.net/doc/sip-0.2.0-reference/imfinfo.html&quot;&gt;&lt;i&gt;imfinfo()&lt;/i&gt;&lt;/a&gt;. Similar properties of both images are, Format: BMP, Depth: 8bits/pixel, Storage Type: Indexed, No. of Colors: 256, Resolution Unit: centimeter, and X&amp;amp;Y Resolution: - 1.718D+09.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiG0yv79dKOGIhK5hYXCqUgtJqKJRHxQYjZ2PcafKbpvEoUIQL3xI5I-lDhk2FGUMZrZ4ksQz8oraERDm1ra0CqbgQKLUo_-k_7sT4Aya0aJdzvBPGn0cUp1U3HOK1u0597xda9oMPCEoo/s1600-h/heart_gray.bmp&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 320px; height: 189px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiG0yv79dKOGIhK5hYXCqUgtJqKJRHxQYjZ2PcafKbpvEoUIQL3xI5I-lDhk2FGUMZrZ4ksQz8oraERDm1ra0CqbgQKLUo_-k_7sT4Aya0aJdzvBPGn0cUp1U3HOK1u0597xda9oMPCEoo/s320/heart_gray.bmp&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5366770676361878242&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 4. &lt;b&gt;HEART&lt;/b&gt; | Size : 82174 | Width: 370 | Height: 218&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwb4FiqIHt1FkOtRKbWbvTrStaQ-ZBfNtdNUxGX7LFzVKvfrqZVKBuOM5Z4ojzBNqGH9-8hfzjlh0fFmppghaNIYDBdv7VjlzEGIp1Hf33gCDd_umA0su6LtXGLOwRMZxj14QRqpaumF8/s1600-h/batman.bmp&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 320px; height: 188px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwb4FiqIHt1FkOtRKbWbvTrStaQ-ZBfNtdNUxGX7LFzVKvfrqZVKBuOM5Z4ojzBNqGH9-8hfzjlh0fFmppghaNIYDBdv7VjlzEGIp1Hf33gCDd_umA0su6LtXGLOwRMZxj14QRqpaumF8/s320/batman.bmp&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5366774027915872642&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 5. &lt;b&gt;BATMAN&lt;/b&gt; | Size : 78610 | Width: 363 | Height: 213&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;From the grayscale images we can get the histogram of the gray values by using the Scilab Statistics function &lt;a href=&quot;http://www.scilab.org/product/man/tabul.html&quot;&gt;&lt;i&gt;tabul()&lt;/i&gt;&lt;/a&gt; which returns a matrix of the pixel values and the corresponding frequency of each value in an image. To get the Probability Density Function of PDF of the image we normalize the histogram by the total number of pixels in the image. Figures 6 and 7 shows the corresponding PDFs for HEART and BATMAN.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimMGO5Ag88qFB_vV4AYVk3iBN7Tfe2_I0wVtQrm71p1ewz255W6GXIUPRntgVFNmqv7aaxzA25PGVZeuj1C4XOSdw4ByQvHEJjs9pH5zGRfHVvq8tCCUET8_P6Tv2fVAVlHcjBStPWTUY/s1600-h/heart_hist.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 302px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimMGO5Ag88qFB_vV4AYVk3iBN7Tfe2_I0wVtQrm71p1ewz255W6GXIUPRntgVFNmqv7aaxzA25PGVZeuj1C4XOSdw4ByQvHEJjs9pH5zGRfHVvq8tCCUET8_P6Tv2fVAVlHcjBStPWTUY/s400/heart_hist.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5366788164077079810&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 6. &lt;b&gt;HEART PDF&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzvxyy1cLCdDPWd2BvOjH5R4eF-li-R-b7ApNQdNotYARLABrgG1U5TsD3EcIsDjNyDttL9dAR8TBovE6_tcr2IpWlKhOCQ70VO-ElbLGTgdtcgqRebKp2Bd5yEiV4LkbF5m0z4xcD0jw/s1600-h/batman_hist.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 302px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzvxyy1cLCdDPWd2BvOjH5R4eF-li-R-b7ApNQdNotYARLABrgG1U5TsD3EcIsDjNyDttL9dAR8TBovE6_tcr2IpWlKhOCQ70VO-ElbLGTgdtcgqRebKp2Bd5yEiV4LkbF5m0z4xcD0jw/s400/batman_hist.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5366790303708963042&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 7. &lt;b&gt;BATMAN PDF&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The PDFs shows clearly the pixel values of the background and the ROI. Based from both histograms we can decide what threshold value to use to get the ROI and compute its area just like what was done previously in Activity 2. The threshold value used for both images is 0.5 but the threshold value for both images can be anything between the pixel values between the two distinct peaks that has a frequency value of zero. Anything in this range separates the pixel values for the background and the ROI. Figures 8 and 9 show the corresponding black and white images for HEART and BATMAN.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzlgJ1G6t0hmDoJYjlQ7-hGxprIu2gVTN9wbXSDdFQHJGmFO4Z3s1N65dWJ2UCRnjV9r1ZtDxhhLdSKvHjc7T_XapBE4_kgYbrviu0zKNA4okm3BTPUGlLB-wR11q3d7DwKeNucqwFSQI/s1600-h/heart_thresh.bmp&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 279px; height: 165px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzlgJ1G6t0hmDoJYjlQ7-hGxprIu2gVTN9wbXSDdFQHJGmFO4Z3s1N65dWJ2UCRnjV9r1ZtDxhhLdSKvHjc7T_XapBE4_kgYbrviu0zKNA4okm3BTPUGlLB-wR11q3d7DwKeNucqwFSQI/s320/heart_thresh.bmp&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5366801346811487026&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 8. &lt;b&gt;HEART with threshold at 0.5&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjj62lfCvM4aX4BYj8dG8_MnNhiPFg_AVwyegTOpQGeMAWJn6LFk9tN1y2xOw4X-FaZQ93lwA1LHuNaSezN2xqes3tbtfU9hvbVl5Bb8WD-FdKN26XpvwjjUAMRt87P7RZeZHC6mgSrBX8/s1600-h/batman_thresh.bmp&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 274px; height: 160px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjj62lfCvM4aX4BYj8dG8_MnNhiPFg_AVwyegTOpQGeMAWJn6LFk9tN1y2xOw4X-FaZQ93lwA1LHuNaSezN2xqes3tbtfU9hvbVl5Bb8WD-FdKN26XpvwjjUAMRt87P7RZeZHC6mgSrBX8/s320/batman_thresh.bmp&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5366801474592373698&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 9. &lt;b&gt;BATMAN with threshold at 0.5&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Now let us apply what we have learned from Activity 2 and compute the area of the ROI for each of our images. Figure 10 shows the obtained contour of the ROI. The computed area of the ROI using Green&#39;s Theorem in pixels for HEART is 8418px while for BATMAN is 12552.5px. But summing up the number of pixels with values equal to 1 the total area in pixels for HEART is 8598px and for BATMAN, 12885px. The physical area can be computed since the images were taken along with a ruler beside them. By computing the physical area of one pixel, we could estimate the physical area of the ROI. Using GIMP we observed that 1mm covers 3px and thus we can estimate the physical area of the ROI. A summary on the area measurements is provided below the ROI contours.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNZmJIu8cPYoeWJZl26XUZvl-Vec62tiCLhgTE0v0nl2O2Xj9_n_wuOx87qD_oNRtBSFjaOZE7J2A62hDRc6SlehfKZlbM0GTrPrh-7OgcwhM2cuBWRl3eafueKGYG79X05bKX7Aq3oeE/s1600-h/heart_contour.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 200px; height: 151px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNZmJIu8cPYoeWJZl26XUZvl-Vec62tiCLhgTE0v0nl2O2Xj9_n_wuOx87qD_oNRtBSFjaOZE7J2A62hDRc6SlehfKZlbM0GTrPrh-7OgcwhM2cuBWRl3eafueKGYG79X05bKX7Aq3oeE/s200/heart_contour.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5366797994502179698&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfVMoZFK4EmkgB0iTD_TJUVPBE2vy6E_QEi2OIE3wUSuCtif7vPhft6Jfwr1rkJBXWAER91OiDxIT874Uxp-8kwptw2IWsqlViUjyQJiOOfkFvIpEVRi1JQ_SLSOeXK_sEzgCfaooIAdU/s1600-h/batman.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 200px; height: 151px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfVMoZFK4EmkgB0iTD_TJUVPBE2vy6E_QEi2OIE3wUSuCtif7vPhft6Jfwr1rkJBXWAER91OiDxIT874Uxp-8kwptw2IWsqlViUjyQJiOOfkFvIpEVRi1JQ_SLSOeXK_sEzgCfaooIAdU/s200/batman.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5366798145884776162&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Figure 10. HEART and BATMAN contours.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;HEART | Green&#39;s: 8418px &gt; 935.33mm&lt;sup&gt;2&lt;/sup&gt; | PxCount: 8598px &gt; 955.33mm&lt;sup&gt;2&lt;/sup&gt;&lt;br /&gt;BATMAN | Green&#39;s: 12552.5px &gt; 1394.72mm&lt;sup&gt;2&lt;/sup&gt; | PxCount: 12885px &gt; 1431.66mm&lt;sup&gt;2&lt;/sup&gt;&lt;br /&gt;&lt;br /&gt;From the obtained area measurements there is a great difference observed. Possible sources of error are the contour used as mentioned in Activity 2, the thresholding and the estimation of the area of 1 pixel. Still I give myself a 9 or a 10 for this activity since I have fully understood the concepts used and was able to get estimated area measurements of scanned images of irregularly shaped ROIs.&lt;br /&gt;&lt;br /&gt;I thank &lt;a href=&quot;http://jaysamuel-ap186.blogspot.com/&quot;&gt;Jay Samuel Combinido&lt;/a&gt;, &lt;a href=&quot;http://jicamonsanto-ap186.blogspot.com/&quot;&gt;Jica Monsanto&lt;/a&gt; and &lt;a href=&quot;http://ap186-msison.blogspot.com/&quot;&gt;Miguel Sison&lt;/a&gt; for providing the scanned images that I used in this activity. I also thank &lt;a href=&quot;http://jicamonsanto-ap186.blogspot.com/&quot;&gt;Jica Monsanto&lt;/a&gt; for referring me to the function &lt;a href=&quot;http://www.scilab.org/product/man/tabul.html&quot;&gt;&lt;i&gt;tabul()&lt;/i&gt;&lt;/a&gt; in getting the histogram of the gray values for the scanned images.</description><link>http://ccesporlas-ap186.blogspot.com/2009/07/activity-3-image-types-and-basic-image.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcbRZgRUlurCiFEXCHQOCZKL0t-5zu0Yori6s2MepRieZHppaP7dSmecToQ6q3zoPRs0V-Sv77j4s8xkv-VwIH_V6naOdDpuAu0CtrWzYk3QvA69Ui2R6_SZY2U1Ud8L2nuGsG4h8EbqM/s72-c/binary.gif" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7876000474578747950.post-2214173347806814304</guid><pubDate>Thu, 02 Jul 2009 01:07:00 +0000</pubDate><atom:updated>2009-07-04T12:48:15.056-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">image processing</category><title>Activity 2 |  Area Estimation for Images with Defined Edges</title><description>&lt;div style=&quot;text-align: justify;&quot;&gt;Computing the areas of images is a very important tool in different technologies nowadays. Here in this activity the area of a binary image is computed by using &lt;a href=&quot;http://mathworld.wolfram.com/GreensTheorem.html&quot;&gt;Green&#39;s Theorem&lt;/a&gt; on computing the area of an image by using the contour of the image. From the activity manual itself, using &lt;a href=&quot;http://mathworld.wolfram.com/GreensTheorem.html&quot;&gt;Green&#39;s Theorem&lt;/a&gt; is getting the &#39;Area from edge.&#39;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;a href=&quot;http://mathworld.wolfram.com/GreensTheorem.html&quot;&gt;Green&#39;s Theorem&lt;/a&gt; &lt;sup&gt;[1]&lt;/sup&gt; relates a double integral to a line integral as shown by the following equation where F1 and F2 are continuous functions with continuous partial derivatives  that encloses the desired region or image.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuk8UFXAv09qZekSH-Tu2g5gKLw0hwPFFL4Xwk54gWORPo9Sl5JKEiPOXUhKKLkDNMcM8VuFq7XUENxqc-rrlhHs-0dswB77urTrfojOW59m01KmFzGkQNJ8c9FSORAagbdrHb_f7s4Dk/s1600-h/eq1.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 58px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuk8UFXAv09qZekSH-Tu2g5gKLw0hwPFFL4Xwk54gWORPo9Sl5JKEiPOXUhKKLkDNMcM8VuFq7XUENxqc-rrlhHs-0dswB77urTrfojOW59m01KmFzGkQNJ8c9FSORAagbdrHb_f7s4Dk/s320/eq1.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5353896486230009202&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;This equation is then reduced into a simple summation that uses the contour of the desired region or image and is given by the next equation.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoQTnq_QSo_vnMvAlCCE7Bi8FrDU8iaNdTjO0wmDSijgXr25tULL11SAGI6DX9fPTKxo6RLblmtp8uTz6sOqI6qbnqJjPA9t3ZQ1TzBVChwG0qTd9hJ0V6RyadYuAt616PRwGGVYD7Lbk/s1600-h/eq2.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 253px; height: 76px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoQTnq_QSo_vnMvAlCCE7Bi8FrDU8iaNdTjO0wmDSijgXr25tULL11SAGI6DX9fPTKxo6RLblmtp8uTz6sOqI6qbnqJjPA9t3ZQ1TzBVChwG0qTd9hJ0V6RyadYuAt616PRwGGVYD7Lbk/s320/eq2.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5354687464046953250&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;Below is generated and used code in this activity using &lt;a href=&quot;http://www.scilab.org/&quot;&gt;Scilab&lt;/a&gt;. The procedure on what and how it is done is also shown here.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;1. Load image.&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;rect = imread(&#39;C:\Users\Cindy\Documents\physics\ap186\A2\rectangle.jpg&#39;);&lt;br /&gt;//circle = imread(&#39;C:\Users\Cindy\Documents\physics\ap186\A2\circle.jpg&#39;);&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;2. Convert Image from RGB to binary format using the &lt;a href=&quot;http://siptoolbox.sourceforge.net/&quot;&gt;SIP Toolbox&lt;/a&gt; function &lt;a href=&quot;http://siptoolbox.sourceforge.net/doc/sip-0.2.0-reference/im2bw.html&quot;&gt;im2bw&lt;/a&gt;. Two binary images are used in this activity where one is an image of a rectangle and another is the image of a circle. Both images are created using Paint. Their analytical area is computed from the pixel dimensions given by Paint.&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;bw = im2bw(rect, 0.5);&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;3. Get the contour of the image using the &lt;a href=&quot;http://siptoolbox.sourceforge.net/&quot;&gt;SIP Toolbox&lt;/a&gt; function &lt;a href=&quot;http://siptoolbox.sourceforge.net/doc/sip-0.2.0-reference/follow.html&quot;&gt;follow&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;[x,y] = follow(bw);&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;4. Implement &lt;a href=&quot;http://mathworld.wolfram.com/GreensTheorem.html&quot;&gt;GREEN&#39;S THEOREM&lt;/a&gt; using the contour obtained.&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;len = length(x); //length of contour array&lt;br /&gt;Aa=51012; //analytical area for rectangle&lt;br /&gt;//Aa=53820; //analytical area for circle&lt;br /&gt;Ac=0; //computed area&lt;br /&gt;&lt;br /&gt;for i=1:len-1&lt;br /&gt;a = (x(i)*y(i+1)) - (x(i+1)*y(i));&lt;br /&gt;Ac = Ac+a;&lt;br /&gt;end&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;5. But since the generated contour is not closed as shown in #3, we add the first value of the contour to close it to a loop.&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;a = (x(len)*y(1)) - (x(1)*y(len));&lt;br /&gt;Ac = (Ac+a)/2&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;6. Check if the contour fits the original image by superimposing the contour on the original image.&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;imshow(rect)&lt;br /&gt;plot(x,y)&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;7. COMPUTE PERCENT ERROR&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;perr = (abs(Aa - Ac)/Aa)*100&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;The results for each image is shown below. The analytical and computed area using &lt;a href=&quot;http://mathworld.wolfram.com/GreensTheorem.html&quot;&gt;Green&#39;s Theorem&lt;/a&gt; is given below each image.&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq0bshH_utr6d2QMteFbE-LXVtut5mzkLq-tbljcViGLbYAD1mUgXhiAcNgMk5VZ2u1aHidOmWVBTiXKUmvaR68m1nFmvAGQaZFztyjxyzQDZ04xoiFHQqmymmVX8Kp6zNhuEhGw1VqF0/s1600-h/rect.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 320px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq0bshH_utr6d2QMteFbE-LXVtut5mzkLq-tbljcViGLbYAD1mUgXhiAcNgMk5VZ2u1aHidOmWVBTiXKUmvaR68m1nFmvAGQaZFztyjxyzQDZ04xoiFHQqmymmVX8Kp6zNhuEhGw1VqF0/s320/rect.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5354662525581010530&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;div style=&quot;text-align: center;&quot;&gt;Image 1: Rectangle&lt;br /&gt;Analytical Area: 51012 px&lt;br /&gt;Computed Area : 49220 px&lt;br /&gt;Percent Error:  3.51%&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibmTw9r57u9rTU7Su_uJHpcPKwudxaVDWF4cE_IGLqdZrW4WK3FcIrGve0HJyf2bDAbloCVuPxlzI2Ptdeda2dn6VYvR7VY7pXRuKa352sAYp9l1RQGG1QYG8Dau83P39mz84FQ5kS1Uo/s1600-h/circ.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 320px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibmTw9r57u9rTU7Su_uJHpcPKwudxaVDWF4cE_IGLqdZrW4WK3FcIrGve0HJyf2bDAbloCVuPxlzI2Ptdeda2dn6VYvR7VY7pXRuKa352sAYp9l1RQGG1QYG8Dau83P39mz84FQ5kS1Uo/s320/circ.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5354674481830264674&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;Image 2: Circle&lt;br /&gt;Analytical Area: 47143.52 px&lt;br /&gt;Computed Area : 45575 px&lt;br /&gt;Percent Error: 3.33%&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Based on the results obtained, we can say that the method used gave a good  approximation in computing the area of a region in an image. One possible source of error is the contour used which was generated by a built-in function of the &lt;a href=&quot;http://siptoolbox.sourceforge.net/&quot;&gt;SIP Toolbox&lt;/a&gt;. As seen from the superimposed images, the contour does not exactly fit the outline of the polygon leaving out spaces that should be included in the area.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;I give myself a grade of 9 for this activity since the computed area is a close approximation of the analytically obtained area of the image as shown also by the small percent error. It is obvious enough that a major source of error is the contour used in the computation.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;I thank Ms. Kaye Vergel for helping me on the basic functions of the &lt;a href=&quot;http://siptoolbox.sourceforge.net/&quot;&gt;SIP Toolbox&lt;/a&gt; such as the help function, &lt;a href=&quot;http://siptoolbox.sourceforge.net/doc/sip-0.2.0-reference/imread.html&quot;&gt;imread&lt;/a&gt;, &lt;a href=&quot;http://siptoolbox.sourceforge.net/doc/sip-0.2.0-reference/follow.html&quot;&gt;follow&lt;/a&gt;, &lt;a href=&quot;http://siptoolbox.sourceforge.net/doc/sip-0.2.0-reference/im2bw.html&quot;&gt;im2bw&lt;/a&gt;. :D :D :D Thank you also for pointing me to the &lt;a href=&quot;http://siptoolbox.sourceforge.net/doc/sip-0.2.0-reference/sip-ref-toc.html&quot;&gt;SIP Functions Reference&lt;/a&gt;.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Reference:&lt;br /&gt;[1] UPNIP - AP186 - Activity Sheet 2 - Area Estimation for Images with Defined Edges.</description><link>http://ccesporlas-ap186.blogspot.com/2009/07/activity2-area-estimation-for-images.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuk8UFXAv09qZekSH-Tu2g5gKLw0hwPFFL4Xwk54gWORPo9Sl5JKEiPOXUhKKLkDNMcM8VuFq7XUENxqc-rrlhHs-0dswB77urTrfojOW59m01KmFzGkQNJ8c9FSORAagbdrHb_f7s4Dk/s72-c/eq1.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7876000474578747950.post-4423482636737480358</guid><pubDate>Thu, 18 Jun 2009 02:29:00 +0000</pubDate><atom:updated>2009-07-02T08:28:17.488-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">digital scanning</category><category domain="http://www.blogger.com/atom/ns#">image processing</category><title>Activity 1 | Digital Scanning</title><description>&lt;div style=&quot;text-align: justify;&quot;&gt;Knowing  the numerical values of a hand-drawn plot is a very tedious job when done manually. But with the help of technology and a bit of knowledge about image properties and a spreadsheet application, we can easily determine the numerical values of a hand-drawn plot.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;To do this, the hand-drawn plot is digitally scanned (see Figure1 below) and the scanned image is used to obtain the  image positions (in pixels) of desired points in the graph using Paint. The recorded positions are then plotted using OpenOffice.org Calc, but since the origin or the pixel position (0,0) is located at the top-left for images, the y-axis values are subtracted from the height of the image (in pixels) to change the origin position from top-left to lower-left in order to produce a plot similar to the image. Figure 2 shows the plot produced using OpenOffice.org Calc.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyI_XK2y9L6ZQbBxBz2ZODtXRvj2dgwDxOsUt1WeJhXs1zzFqzAF-7XaTZvO-UxY_q5cZYwIt0CgbWXsWIN_peiThE38h_uGWxeiiSMkwJEZGigHJu1cZMV7DdQTgx8GoOpUGo9hNVer4/s1600-h/cindycindy.png&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 235px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyI_XK2y9L6ZQbBxBz2ZODtXRvj2dgwDxOsUt1WeJhXs1zzFqzAF-7XaTZvO-UxY_q5cZYwIt0CgbWXsWIN_peiThE38h_uGWxeiiSMkwJEZGigHJu1cZMV7DdQTgx8GoOpUGo9hNVer4/s320/cindycindy.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5348504830025996930&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;Figure1. Digitally scanned image of hand-drawn plot.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;The x and y pixel values picked from the plot image obtained using Paint is shown below in Table1 while the corrected position values are shown in Table2.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsv6tUtpsqiZcGECET5wP4vkC-90lEIUwCxKovAngZPjJkIMayh2_JJDtcpsqLTb79vsWwpkxmoibIwI3dGd2wJ_IDncc_9GVKNvvwcMa-eKWEgSzUp4DOyCCSzOUpnq_J4FriS_h_b9k/s1600-h/plotted.png&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 212px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsv6tUtpsqiZcGECET5wP4vkC-90lEIUwCxKovAngZPjJkIMayh2_JJDtcpsqLTb79vsWwpkxmoibIwI3dGd2wJ_IDncc_9GVKNvvwcMa-eKWEgSzUp4DOyCCSzOUpnq_J4FriS_h_b9k/s320/plotted.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5348506789244446338&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;Figure2. Produced plot from .&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;To make sure that the original hand-drawn plot was reproduced digitally, the  plotted values are superimposed on the scanned plot image by making the plot image into a background of the chart produced in OpenOffice.org Calc. Figure3 shows the digitally-scanned plot with the original plot image.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxGFVUVwchWyKxuNr6Q6T8tFRKF57qTb7ExknBwvDEF6K8Q1rgayUrciTXPieDbo-NodBP5h5EO1WPCM1YSQX-c95JF-cZaj_W07mBm3lwmCyrE0y8WQ21BWtPCuRYoG08Wf3WXAzdlFU/s1600-h/newplot.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 212px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxGFVUVwchWyKxuNr6Q6T8tFRKF57qTb7ExknBwvDEF6K8Q1rgayUrciTXPieDbo-NodBP5h5EO1WPCM1YSQX-c95JF-cZaj_W07mBm3lwmCyrE0y8WQ21BWtPCuRYoG08Wf3WXAzdlFU/s320/newplot.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5353146958423099970&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;Figure3. Produced digitally-scanned plot superimposed on the original plot image.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;By superimposing the produced digitally-scanned plot with the original plot image we can check if the plot is reproduced successfully by digital scanning. As seen from Figure3, it can be seen that the plot is successfully reproduced meaning the values obtained by digital scanning are good approximations of the values picked from the original plot.&lt;br /&gt;&lt;br /&gt;I give myself a grade of 9 for this activity since the digitally-scanned plot produced approximately coincides with the original plot.&lt;br /&gt;&lt;br /&gt;I thank Mr. Gilbert Gubatan for pointing me to an image editor for rotating and cropping the desired plot from a scanned image of a page of a book. The computer I used in the classroom did not have any image editors except paint which does not have the features I need to get an upright and exact image of the plot.&lt;br /&gt;&lt;br /&gt;I thank Mr. Rafael Santos for sharing how to superimpose the digitally-scanned plot on the original plot image by making the original plot image a background of the produced digitally-scanned plot using OpenOffice Calc.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</description><link>http://ccesporlas-ap186.blogspot.com/2009/06/digital-scanning.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyI_XK2y9L6ZQbBxBz2ZODtXRvj2dgwDxOsUt1WeJhXs1zzFqzAF-7XaTZvO-UxY_q5cZYwIt0CgbWXsWIN_peiThE38h_uGWxeiiSMkwJEZGigHJu1cZMV7DdQTgx8GoOpUGo9hNVer4/s72-c/cindycindy.png" height="72" width="72"/><thr:total>0</thr:total></item></channel></rss>