{"id":991,"date":"2014-01-27T15:00:39","date_gmt":"2014-01-27T06:00:39","guid":{"rendered":"http:\/\/www.lookingatnothing.com\/?p=991"},"modified":"2014-01-27T15:23:47","modified_gmt":"2014-01-27T06:23:47","slug":"new-live-fourier-transform-code","status":"publish","type":"post","link":"https:\/\/lookingatnothing.com\/index.php\/archives\/991","title":{"rendered":"New Live Fourier Transform code"},"content":{"rendered":"<p><em>More\u00a0about this next week, but <a href=\"http:\/\/ingobressler.net\">Ingo<\/a> has kindly provided a Windows executable version of one of the latest development builds of the Monte Carlo code (with GUI). While I have not yet had the chance to test it (being on a mac myself), please go ahead and get it <a href=\"https:\/\/bitbucket.org\/pkwasniew\/mcsas\/downloads\/McSASGui-0.0.10.7z\">from here<\/a>!<\/em><\/p>\n<p>Some of you may have seen the <a href=\"http:\/\/www.youtube.com\/watch?v=ym42jYPM34Y\">Live Fourier Transform <\/a>video that was made a while ago. I am happy to tell you that there is now a new, better version out of that program (still rather small and straightforward, though).<!--more--><\/p>\n<p>The idea behind this demonstration program is to show the camera image and the (intensity component of) the Fourier transform alongside. This Fourier transform does to the camera image, what X-rays do to matter:\u00a0When X-rays interact with matter, they create an interference pattern which is related to the Fourier transform of the electron density structure in the matter.<\/p>\n<p>So with this program, I can show you what X-ray scattering and diffraction looks like for a variety of structures. I have been using the previous version in many of my presentations, where the change of pace and the little show appears to be appreciated by the audience.<\/p>\n<p>The new version uses a much friendlier and faster back-end (<a href=\"http:\/\/opencv.org\">OpenCV<\/a>) for capturing and displaying the images. Furthermore, it uses command-line arguments which can be used to adapt most of the internal parameters to suit your camera and\/or needs, and it even works in colour (pointless but fun)!<\/p>\n<figure id=\"attachment_1005\" aria-describedby=\"caption-attachment-1005\" style=\"width: 300px\" class=\"wp-caption alignright\"><a href=\"http:\/\/www.lookingatnothing.com\/wp-content\/uploads\/2014\/01\/liveFT2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1005\" alt=\"A screenshot from the Live Fourier Transform program\" src=\"http:\/\/www.lookingatnothing.com\/wp-content\/uploads\/2014\/01\/liveFT2-300x139.png\" width=\"300\" height=\"139\" srcset=\"https:\/\/lookingatnothing.com\/wp-content\/uploads\/2014\/01\/liveFT2-300x139.png 300w, https:\/\/lookingatnothing.com\/wp-content\/uploads\/2014\/01\/liveFT2-1024x474.png 1024w, https:\/\/lookingatnothing.com\/wp-content\/uploads\/2014\/01\/liveFT2-150x69.png 150w, https:\/\/lookingatnothing.com\/wp-content\/uploads\/2014\/01\/liveFT2.png 1601w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1005\" class=\"wp-caption-text\">A screenshot from the Live Fourier Transform program<\/figcaption><\/figure>\n<p>I tried compiling it so I could pass around a mac os x application instead of requiring the installation of a python environment (<a href=\"https:\/\/www.enthought.com\/products\/canopy\/\">Enthought&#8217;s <\/a>the easier one to install) and the OpenCV package (available through the Canopy package manager). Unfortunately, I could not compile it successfully in time for this post due to problems with compiling under the Enthought environment.<\/p>\n<p>The source is available <a href=\"https:\/\/bitbucket.org\/toQDuj\/liveft\">on a Git DVCSS<\/a>, so community improvements are possible and welcomed!<\/p>\n<p>The new video has just been uploaded. I skimped a bit on the video correction and visuals, but I hope it is enjoyable nonetheless:<br \/>\n<iframe loading=\"lazy\" src=\"\/\/www.youtube-nocookie.com\/embed\/aiKrrGR57aI?rel=0\" height=\"315\" width=\"560\" allowfullscreen=\"\" frameborder=\"0\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>More\u00a0about this next week, but Ingo has kindly provided a Windows executable version of one of the latest development builds of the Monte Carlo code <a class=\"mh-excerpt-more\" href=\"https:\/\/lookingatnothing.com\/index.php\/archives\/991\" title=\"New Live Fourier Transform code\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":1005,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1,55,53],"tags":[],"class_list":["post-991","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","category-preteach","category-software-2"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/lookingatnothing.com\/wp-content\/uploads\/2014\/01\/liveFT2.png","jetpack_shortlink":"https:\/\/wp.me\/p1gZ2v-fZ","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/posts\/991","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/comments?post=991"}],"version-history":[{"count":8,"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/posts\/991\/revisions"}],"predecessor-version":[{"id":1007,"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/posts\/991\/revisions\/1007"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/media\/1005"}],"wp:attachment":[{"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/media?parent=991"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/categories?post=991"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/tags?post=991"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}