{"id":502,"date":"2011-12-10T09:08:53","date_gmt":"2011-12-10T00:08:53","guid":{"rendered":"http:\/\/www.lookingatnothing.com\/?p=502"},"modified":"2012-06-08T12:12:20","modified_gmt":"2012-06-08T03:12:20","slug":"detail-preserving-2d-binning-part-1-the-appetizer","status":"publish","type":"post","link":"https:\/\/lookingatnothing.com\/index.php\/archives\/502","title":{"rendered":"Detail-preserving 2D binning, part 1: the appetizer"},"content":{"rendered":"<p>(Sorry about the hiatus, there&#8217;s been a period filled with that noblest of Japanese traditions: paperwork!)<\/p>\n<p>If you want to do fitting of a 2D image, you want to preserve the information in the entire image. 2D fitting is quite computationally intensive, so you still want to reduce the number of pixels in your images. Methods I have seen published, are occasionally quite poor at preserving detail, but I&#8217;ve played with a type of binning (quite similar to the mathematical concept of k-d trees) that does preserve this: Behold the coolness in the following plots, which are different zoom levels of the same scattering pattern. On the vertical axis is the azimuthal angle, on the horizontal axis q (in reciprocal meters). An explanation will follow in the near future, but you&#8217;re welcome to write to me for the scoop.<\/p>\n<p><a href=\"http:\/\/www.lookingatnothing.com\/wp-content\/uploads\/2011\/12\/verycool_zoomout.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-503\" title=\"2D binning - entire scattering pattern\" src=\"http:\/\/www.lookingatnothing.com\/wp-content\/uploads\/2011\/12\/verycool_zoomout-1024x691.png\" alt=\"\" width=\"515\" height=\"347\" srcset=\"https:\/\/lookingatnothing.com\/wp-content\/uploads\/2011\/12\/verycool_zoomout-1024x691.png 1024w, https:\/\/lookingatnothing.com\/wp-content\/uploads\/2011\/12\/verycool_zoomout-300x202.png 300w, https:\/\/lookingatnothing.com\/wp-content\/uploads\/2011\/12\/verycool_zoomout-140x94.png 140w, https:\/\/lookingatnothing.com\/wp-content\/uploads\/2011\/12\/verycool_zoomout.png 1070w\" sizes=\"auto, (max-width: 515px) 100vw, 515px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.lookingatnothing.com\/wp-content\/uploads\/2011\/12\/verycool_halfzoom2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-506\" title=\"2D binning - zoomed in\" src=\"http:\/\/www.lookingatnothing.com\/wp-content\/uploads\/2011\/12\/verycool_halfzoom2-1024x691.png\" alt=\"\" width=\"515\" height=\"347\" srcset=\"https:\/\/lookingatnothing.com\/wp-content\/uploads\/2011\/12\/verycool_halfzoom2-1024x691.png 1024w, https:\/\/lookingatnothing.com\/wp-content\/uploads\/2011\/12\/verycool_halfzoom2-300x202.png 300w, https:\/\/lookingatnothing.com\/wp-content\/uploads\/2011\/12\/verycool_halfzoom2-140x94.png 140w\" sizes=\"auto, (max-width: 515px) 100vw, 515px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.lookingatnothing.com\/wp-content\/uploads\/2011\/12\/verycool.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-507\" title=\"2D binning - closeup\" src=\"http:\/\/www.lookingatnothing.com\/wp-content\/uploads\/2011\/12\/verycool-1024x691.png\" alt=\"\" width=\"515\" height=\"347\" srcset=\"https:\/\/lookingatnothing.com\/wp-content\/uploads\/2011\/12\/verycool-1024x691.png 1024w, https:\/\/lookingatnothing.com\/wp-content\/uploads\/2011\/12\/verycool-300x202.png 300w, https:\/\/lookingatnothing.com\/wp-content\/uploads\/2011\/12\/verycool-140x94.png 140w, https:\/\/lookingatnothing.com\/wp-content\/uploads\/2011\/12\/verycool.png 1070w\" sizes=\"auto, (max-width: 515px) 100vw, 515px\" \/><\/a><\/p>\n<p>Pretty cool, huh! And since the errors of the intensity of each bin are known, fitting is not affected by the differences in area!<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>(Sorry about the hiatus, there&#8217;s been a period filled with that noblest of Japanese traditions: paperwork!) If you want to do fitting of a 2D <a class=\"mh-excerpt-more\" href=\"https:\/\/lookingatnothing.com\/index.php\/archives\/502\" title=\"Detail-preserving 2D binning, part 1: the appetizer\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":507,"comment_status":"open","ping_status":"open","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":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1,85,53],"tags":[124,123,115,31,121],"class_list":["post-502","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","category-looking-into-something","category-software-2","tag-anisotropy","tag-binning","tag-data-processing","tag-software","tag-theory"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/lookingatnothing.com\/wp-content\/uploads\/2011\/12\/verycool.png","jetpack_shortlink":"https:\/\/wp.me\/p1gZ2v-86","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/posts\/502","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=502"}],"version-history":[{"count":2,"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/posts\/502\/revisions"}],"predecessor-version":[{"id":587,"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/posts\/502\/revisions\/587"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/media\/507"}],"wp:attachment":[{"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/media?parent=502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/categories?post=502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/tags?post=502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}