{"id":178,"date":"2009-03-31T19:38:04","date_gmt":"2009-03-31T19:38:04","guid":{"rendered":"https:\/\/blogs.mathworks.com\/loren\/2009\/03\/31\/technique-for-visual-image-comparison\/"},"modified":"2009-05-13T18:53:25","modified_gmt":"2009-05-13T18:53:25","slug":"technique-for-visual-image-comparison","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/loren\/2009\/03\/31\/technique-for-visual-image-comparison\/","title":{"rendered":"Technique for Visual Image Comparison"},"content":{"rendered":"<div xmlns:mwsh=\"https:\/\/www.mathworks.com\/namespace\/mcode\/v1\/syntaxhighlight.dtd\" class=\"content\">\r\n   <introduction>\r\n      <p>Recently <a href=\"https:\/\/blogs.mathworks.com\/steve\/\">Steve<\/a> wrote an interesting post entitled <a href=\"https:\/\/blogs.mathworks.com\/steve\/2009\/02\/18\/image-overlay-using-transparency\/\">Image Overlay Transparency<\/a> that I found quite interesting.\r\n      <\/p>\r\n   <\/introduction>\r\n   <h3>Contents<\/h3>\r\n   <div>\r\n      <ul>\r\n         <li><a href=\"#1\">The Idea<\/a><\/li>\r\n         <li><a href=\"#2\">Other Techniques?<\/a><\/li>\r\n      <\/ul>\r\n   <\/div>\r\n   <h3>The Idea<a name=\"1\"><\/a><\/h3>\r\n   <p>The idea is to plot one image on top of the other, exposing pieces of the buried image by making parts of the top image transparent.\r\n       Here's a teaser for you to look at.\r\n   <\/p>\r\n   <p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/steve\/2009\/transparency_example_02.jpg\"> <\/p>\r\n   <h3>Other Techniques?<a name=\"2\"><\/a><\/h3>\r\n   <p>Do you have some other techniques for visual image comparison that you find helpful?  Post them <a href=\"https:\/\/blogs.mathworks.com\/loren\/?p=178#respond\">here<\/a>.\r\n   <\/p><script language=\"JavaScript\">\r\n<!--\r\n\r\n    function grabCode_bd409495810c4828a090b94f2d932ac3() {\r\n        \/\/ Remember the title so we can use it in the new page\r\n        title = document.title;\r\n\r\n        \/\/ Break up these strings so that their presence\r\n        \/\/ in the Javascript doesn't mess up the search for\r\n        \/\/ the MATLAB code.\r\n        t1='bd409495810c4828a090b94f2d932ac3 ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' bd409495810c4828a090b94f2d932ac3';\r\n    \r\n        b=document.getElementsByTagName('body')[0];\r\n        i1=b.innerHTML.indexOf(t1)+t1.length;\r\n        i2=b.innerHTML.indexOf(t2);\r\n \r\n        code_string = b.innerHTML.substring(i1, i2);\r\n        code_string = code_string.replace(\/REPLACE_WITH_DASH_DASH\/g,'--');\r\n\r\n        \/\/ Use \/x3C\/g instead of the less-than character to avoid errors \r\n        \/\/ in the XML parser.\r\n        \/\/ Use '\\x26#60;' instead of '<' so that the XML parser\r\n        \/\/ doesn't go ahead and substitute the less-than character. \r\n        code_string = code_string.replace(\/\\x3C\/g, '\\x26#60;');\r\n\r\n        author = 'Loren Shure';\r\n        copyright = 'Copyright 2009 The MathWorks, Inc.';\r\n\r\n        w = window.open();\r\n        d = w.document;\r\n        d.write('<pre>\\n');\r\n        d.write(code_string);\r\n\r\n        \/\/ Add author and copyright lines at the bottom if specified.\r\n        if ((author.length > 0) || (copyright.length > 0)) {\r\n            d.writeln('');\r\n            d.writeln('%%');\r\n            if (author.length > 0) {\r\n                d.writeln('% _' + author + '_');\r\n            }\r\n            if (copyright.length > 0) {\r\n                d.writeln('% _' + copyright + '_');\r\n            }\r\n        }\r\n\r\n        d.write('<\/pre>\\n');\r\n      \r\n      d.title = title + ' (MATLAB code)';\r\n      d.close();\r\n      }   \r\n      \r\n-->\r\n<\/script><p style=\"text-align: right; font-size: xx-small; font-weight:lighter;   font-style: italic; color: gray\"><br><a href=\"javascript:grabCode_bd409495810c4828a090b94f2d932ac3()\"><span style=\"font-size: x-small;        font-style: italic;\">Get \r\n            the MATLAB code \r\n            <noscript>(requires JavaScript)<\/noscript><\/span><\/a><br><br>\r\n      Published with MATLAB&reg; 7.8<br><\/p>\r\n<\/div>\r\n<!--\r\nbd409495810c4828a090b94f2d932ac3 ##### SOURCE BEGIN #####\r\n%% Technique for Visual Image Comparison\r\n% Recently <https:\/\/blogs.mathworks.com\/steve\/ Steve> wrote an interesting\r\n% post entitled\r\n% <https:\/\/blogs.mathworks.com\/steve\/2009\/02\/18\/image-overlay-using-transparency\/ Image Overlay Transparency>\r\n% that I found quite interesting.\r\n%% The Idea\r\n% The idea is to plot one image on top of the other, exposing pieces of the\r\n% buried image by making parts of the top image transparent.  Here's a\r\n% teaser for you to look at.\r\n%\r\n% <<https:\/\/blogs.mathworks.com\/images\/steve\/2009\/transparency_example_02.jpg>>\r\n%% Other Techniques?\r\n% Do you have some other techniques for visual image comparison that you\r\n% find helpful?  Post them <https:\/\/blogs.mathworks.com\/loren\/?p=178#respond here>.\r\n##### SOURCE END ##### bd409495810c4828a090b94f2d932ac3\r\n-->","protected":false},"excerpt":{"rendered":"<p>\r\n   \r\n      Recently Steve wrote an interesting post entitled Image Overlay Transparency that I found quite interesting.\r\n      \r\n   \r\n   Contents\r\n   \r\n      \r\n    ... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/loren\/2009\/03\/31\/technique-for-visual-image-comparison\/\">read more >><\/a><\/p>","protected":false},"author":39,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[27,13],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts\/178"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/users\/39"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/comments?post=178"}],"version-history":[{"count":0,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/posts\/178\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/media?parent=178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/categories?post=178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/loren\/wp-json\/wp\/v2\/tags?post=178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}