{"id":3073,"date":"2014-04-22T15:55:36","date_gmt":"2014-04-22T19:55:36","guid":{"rendered":"http:\/\/pages.vassar.edu\/magnes\/?p=3073"},"modified":"2014-04-25T21:11:57","modified_gmt":"2014-04-26T01:11:57","slug":"preliminary-results-c-elegans-diffraction-pattern-modeling","status":"publish","type":"post","link":"https:\/\/pages.vassar.edu\/magnes\/2014\/04\/22\/preliminary-results-c-elegans-diffraction-pattern-modeling\/","title":{"rendered":"Preliminary Results: C. elegans Diffraction Pattern Modeling"},"content":{"rendered":"<p>Staying true (so far) to my tentative project timeline, I acquired images of the C. elegans in various shapes, I have done quite a bit of research on Fourier Transforms and Fraunhofer Diffraction, and so far I have successfully transformed one image into the corresponding diffraction pattern.<\/p>\n<p>&nbsp;<\/p>\n<p>IMAGE 1<\/p>\n<p><a href=\"http:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/sampleworm11.png\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-3487 alignleft\" alt=\"sampleworm1\" src=\"http:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/sampleworm11.png\" width=\"142\" height=\"104\" \/><\/a>I took this image and used <a href=\"http:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/Screen-Shot-2014-04-21-at-5.16.08-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-3076 alignright\" alt=\"Screen Shot 2014-04-21 at 5.16.08 PM\" src=\"http:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/Screen-Shot-2014-04-21-at-5.16.08-PM-300x216.png\" width=\"240\" height=\"173\" srcset=\"https:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/Screen-Shot-2014-04-21-at-5.16.08-PM-300x216.png 300w, https:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/Screen-Shot-2014-04-21-at-5.16.08-PM.png 389w\" sizes=\"auto, (max-width: 240px) 100vw, 240px\" \/><\/a>mathematica to sharpen it &#8211;&gt; setting it to grayscale and brighten it &#8211;&gt; collect dimensional information &#8211;&gt; apply a Fourier Transform, yielding (after some similar image manipulation):<\/p>\n<p>This is a great diffraction pattern, but I had issues with the poor resolution and general image quality. To remedy this, I proceeded with images taken with a higher-resolution camera.<\/p>\n<p>(full file for image 1:\u00a0<a href=\"https:\/\/drive.google.com\/file\/d\/0B1bzuY7CLSjcTUt6OGxVM3NOWWc\/edit?usp=sharing\">book 1<\/a>\u00a0)<\/p>\n<p>IMAGE 2<\/p>\n<p><a href=\"http:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/3975815904_e33a49b65b_z.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-3077 alignleft\" alt=\"3975815904_e33a49b65b_z\" src=\"http:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/3975815904_e33a49b65b_z-300x224.jpg\" width=\"300\" height=\"224\" srcset=\"https:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/3975815904_e33a49b65b_z-300x224.jpg 300w, https:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/3975815904_e33a49b65b_z-624x466.jpg 624w, https:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/3975815904_e33a49b65b_z.jpg 640w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><span style=\"line-height: 1.714285714;font-size: 1rem\">This beautiful image needed some manipulation, similar to image 1: I converted it to grayscale &#8211;&gt; brightened it significantly (to make it a more definite shape, and to get rid of the &#8220;holes&#8221; in the luminescing nematode) \u00a0&#8211;&gt; collected image dimensions and data &#8211;&gt; applied the FT. Unfortunately, I ran into a problem.<\/span><\/p>\n<p><span style=\"line-height: 1.714285714;font-size: 1rem\">The produced image:<\/span><\/p>\n<p><span style=\"line-height: 1.714285714;font-size: 1rem\"><a href=\"http:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/Screen-Shot-2014-04-21-at-5.31.56-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3079 alignright\" alt=\"Screen Shot 2014-04-21 at 5.31.56 PM\" src=\"http:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/Screen-Shot-2014-04-21-at-5.31.56-PM-300x225.png\" width=\"240\" height=\"180\" srcset=\"https:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/Screen-Shot-2014-04-21-at-5.31.56-PM-300x225.png 300w, https:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/Screen-Shot-2014-04-21-at-5.31.56-PM.png 422w\" sizes=\"auto, (max-width: 240px) 100vw, 240px\" \/><\/a><\/span><\/p>\n<p>Obviously this is quite different than the first diffraction image.<\/p>\n<p>I had a few hypotheses:<\/p>\n<p>1. The image was saved as a .jpg, but the same image was produced when I tried again with a .png version of the image.<\/p>\n<p>2. The computer is phase- shifting the image so that instead of the origin lying in the center of the product, it is splitting the right side from the left side and lining them up in the wrong order. How can I rearrange and correct the phase shift in the output?<\/p>\n<p>An analogy to the second hypothesis:<\/p>\n<p><a href=\"http:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/Screen-Shot-2014-04-21-at-5.45.39-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-3083 alignleft\" alt=\"Screen Shot 2014-04-21 at 5.45.39 PM\" src=\"http:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/Screen-Shot-2014-04-21-at-5.45.39-PM-300x185.png\" width=\"270\" height=\"167\" srcset=\"https:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/Screen-Shot-2014-04-21-at-5.45.39-PM-300x185.png 300w, https:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/Screen-Shot-2014-04-21-at-5.45.39-PM.png 412w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/Screen-Shot-2014-04-21-at-5.45.53-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-3084 alignright\" alt=\"Screen Shot 2014-04-21 at 5.45.53 PM\" src=\"http:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/Screen-Shot-2014-04-21-at-5.45.53-PM-300x200.png\" width=\"243\" height=\"162\" srcset=\"https:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/Screen-Shot-2014-04-21-at-5.45.53-PM-300x200.png 300w, https:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/Screen-Shot-2014-04-21-at-5.45.53-PM.png 391w\" sizes=\"auto, (max-width: 243px) 100vw, 243px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&#8212;&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>It is as if, instead of centering the origin in the center of the produced diffraction pattern, the computer is putting the &#8220;origin&#8221; in a different place, and splitting the image, similar to the parabola I produced above.<\/p>\n<p>My solution is a little underhanded. I divided the image into four equal rectangles, and manually rearranged them to produce what I knew was the true image:<a href=\"http:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/Screen-Shot-2014-04-22-at-7.52.00-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-3233 alignleft\" alt=\"Screen Shot 2014-04-22 at 7.52.00 PM\" src=\"http:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/Screen-Shot-2014-04-22-at-7.52.00-PM-300x222.png\" width=\"300\" height=\"222\" srcset=\"https:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/Screen-Shot-2014-04-22-at-7.52.00-PM-300x222.png 300w, https:\/\/pages.vassar.edu\/magnes\/files\/2014\/04\/Screen-Shot-2014-04-22-at-7.52.00-PM.png 477w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>(full file for image 2:\u00a0<a href=\"https:\/\/drive.google.com\/file\/d\/0B1bzuY7CLSjcTkM4VUIzWHdHeXc\/edit?usp=sharing\">book 2a<\/a>\u00a0\u00a0<a href=\"https:\/\/drive.google.com\/file\/d\/0B1bzuY7CLSjcYVZKZnpDU3k1Rms\/edit?usp=sharing\">book 2b<\/a>\u00a0)<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>Reflection:<\/p>\n<p>It is important to keep this process grounded: how is this relevant to Electromagnetism? The answer is that this entire process is only viable because of the laws of electromagnetism. I am analyzing the images by taking their Fourier Transforms. The diffraction pattern is the FT of the function that describes the electric field strength across the aperture of diffraction. In other words, I am applying an operation (the FT) to the image, which is a direct indication of the electric field strength across the aperture (the microscope slide) to mathematically find the diffraction pattern produced by the specific electric field array created by the shape of the worm.<\/p>\n<p>Specifically, the diffraction pattern here is the Fraunhofer Diffraction pattern, or \u201cfar-field\u201d diffraction, which occurs when the distances between the screen, aperture, and light source are appropriately far $L&gt;&gt;\\frac{b^{2}}{\\lambda}$. Diffraction effects are an outcome of the type of light wave.<\/p>\n<p>It is also essential to realize what information is lost in the computation of these diffraction patterns. I am taking a real image, applying a FT to it, squaring the absolute value of the result, and arriving in a complex space. This process loses the phase information of the light, and as a result, it is possible to go from the image to the diffraction pattern, but impossible to find the image from the FT diffraction image.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Staying true (so far) to my tentative project timeline, I acquired images of the C. elegans in various shapes, I have done quite a bit of research on Fourier Transforms and Fraunhofer Diffraction, and so far I have successfully transformed one image into the corresponding diffraction pattern. &nbsp; IMAGE 1 I took this image and [&hellip;]<\/p>\n","protected":false},"author":2785,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4101,54198,54062,188,54190],"tags":[],"class_list":["post-3073","post","type-post","status-publish","format-standard","hentry","category-advanced-em","category-diffraction","category-liliana","category-mathematica","category-spring-2014"],"_links":{"self":[{"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/posts\/3073","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/users\/2785"}],"replies":[{"embeddable":true,"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/comments?post=3073"}],"version-history":[{"count":19,"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/posts\/3073\/revisions"}],"predecessor-version":[{"id":3488,"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/posts\/3073\/revisions\/3488"}],"wp:attachment":[{"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/media?parent=3073"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/categories?post=3073"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pages.vassar.edu\/magnes\/wp-json\/wp\/v2\/tags?post=3073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}