{"id":2382,"date":"2009-02-20T15:00:47","date_gmt":"2009-02-20T15:00:47","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/2009\/02\/20\/streamlining-a-manual-image-processing-workflow\/"},"modified":"2018-06-18T14:26:00","modified_gmt":"2018-06-18T18:26:00","slug":"streamlining-a-manual-image-processing-workflow","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2009\/02\/20\/streamlining-a-manual-image-processing-workflow\/","title":{"rendered":"Streamlining a manual image-processing workflow."},"content":{"rendered":"<div class=\"alert alert-info\"> <span class=\"alert_icon icon-alert-info-reverse\"><\/span><p class=\"alert_heading\"><strong>Note<\/strong><\/p><p>The file submission referenced in this post is no longer available on File Exchange.<\/p><\/div>\r\n<div xmlns:mwsh=\"https:\/\/www.mathworks.com\/namespace\/mcode\/v1\/syntaxhighlight.dtd\" class=\"content\">\r\n   <introduction><\/introduction>\r\n   <p><a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/911\">Brett<\/a>'s pick this week comes to us from fellow MathWorker <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/22528\">Sam Roberts<\/a>. Sam is quite proficient with our tools, and has posted several very useful demos --primarily for solving typical problems\r\n      in the life sciences. His tutorial and code on \"Quantitative High-Throughput Gene Expression Imaging\" gives a great introduction to how one might solve a real-world problem once, then leverage that work to batch process the\r\n      next hundred (or thousand, or hundred thousand) images.\r\n   <\/p>\r\n   <p>Specifically, this demo describes an approach to solving a problem in immunofluorescent histochemistry. He initially reads\r\n      in an image of the embryo of a fruit fly, which has been stained with different antibody-tagged fluorophores that bind selectively\r\n      to different gene products. The dyes stain specific proteins blue, red, or green:\r\n   <\/p>\r\n\r\n<p>Sam then demonstrates how to explore the individual color planes of this RGB image (to detect the differential staining),\r\n      and how to automatically rotate the embryo to have its major axis be horizontal. He shows us how to segment and filter the\r\n      image, and how to extract profiles of gene expression along the axis of the embryo.\r\n   <\/p>\r\n\r\n<p>Next, Sam describes how one might focus on the portion of these data that are most informative, and how to fit smoothed splines\r\n      to the profiles.\r\n   <\/p>\r\n\r\n<p>As if that weren't enough, Sam demonstrates how one might scale the problem up to work on a cluster using the <a href=\"https:\/\/www.mathworks.com\/products\/distriben\/\">MATLAB Distributed Computing Server<\/a>.\r\n   <\/p>\r\n   <p>Finally, to cap things off, Sam has captured and described all of this great functionality in an html document that really shows off the impressive publishing capabilities that are built into MATLAB, and he describes how one can use the <a href=\"https:\/\/www.mathworks.com\/products\/ML_reportgenerator\/\">MATLAB Report Generator<\/a> to create more intricate custom reports on the results.\r\n   <\/p>\r\n   <p>This is a great demo for someone who wants to understand how to solve--and automate--real-life problems in image processing\r\n      using MATLAB tools.\r\n   <\/p>\r\n   <p>Comments?<\/p><script language=\"JavaScript\">\r\n<!--\r\n\r\n    function grabCode_88382d9abcb646bd9d5263461812f487() {\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='88382d9abcb646bd9d5263461812f487 ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' 88382d9abcb646bd9d5263461812f487';\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 = 'Brett Shoelson';\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_88382d9abcb646bd9d5263461812f487()\"><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.7<br><\/p>\r\n<\/div>\r\n<!--\r\n88382d9abcb646bd9d5263461812f487 ##### SOURCE BEGIN #####\r\n%% Streamlining a manual image-processing workflow.\r\n\r\n%%\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/911 Brett>'s\r\n% pick this week comes to us from fellow MathWorker\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/22528 Sam Roberts>.\r\n% Sam is quite proficient with our tools, and has posted several very useful demos\r\n% REPLACE_WITH_DASH_DASHprimarily for solving typical problems in the life sciences.\r\n% His tutorial and code on\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/13684 \"Quantitative High-Throughput Gene Expression Imaging\">\r\n% gives a great introduction to how one might solve a real-world problem once,\r\n% then leverage that work to batch process the next hundred (or thousand, or\r\n% hundred thousand) images.\r\n\r\n%%\r\n% Specifically, this demo describes an approach to solving a problem in\r\n% immunofluorescent histochemistry. He initially reads in an\r\n% image of the embryo of a fruit fly, which has been stained with different\r\n% antibody-tagged fluorophores that bind selectively to different\r\n% gene products. The dyes stain specific proteins blue, red, or\r\n% green:\r\nimshow('flyex_potw_01.png')\r\n%%\r\n% Sam then demonstrates how to explore the individual color planes\r\n% of this RGB image (to detect the differential staining), and how\r\n% to automatically rotate the embryo to have its major axis be\r\n% horizontal. He shows us how to segment and filter the image,\r\n% and how to extract profiles of gene expression along the axis\r\n% of the embryo.\r\nimshow('flyex_potw_02.png')\r\n%%\r\n% Next, Sam describes how one might focus on the portion of these\r\n% data that are most informative, and how to \r\n% fit smoothed splines to the profiles. \r\nimshow('flyex_potw_03.png')\r\n%%\r\n% As if that weren't enough, Sam demonstrates how one might scale\r\n% the problem up to work on a cluster using the\r\n% <https:\/\/www.mathworks.com\/products\/distriben\/ MATLAB\r\n% Distributed Computing Server>.\r\n\r\n%%\r\n% Finally, to cap things off, Sam has captured and described all of this great\r\n% functionality in an <https:\/\/www.mathworks.com\/matlabcentral\/fx_files\/13684\/1\/content\/html\/flyexdemo.html html document> that really shows off the\r\n% impressive <https:\/\/www.mathworks.com\/help\/releases\/R2008b\/techdoc\/index.html?\/access\/helpdesk\/help\/releases\/R2008b\/techdoc\/matlab_env\/briymz8-1.html&https:\/\/www.mathworks.com\/cgi-bin\/texis\/webinator\/search\/ publishing capabilities>   \r\n% that are built into MATLAB, and he describes how one can use the\r\n% <https:\/\/www.mathworks.com\/products\/ML_reportgenerator\/ MATLAB Report Generator> \r\n% to create more intricate custom reports on the results.\r\n\r\n%%\r\n% This is a great demo for someone who wants to understand how to \r\n% solveREPLACE_WITH_DASH_DASHand automateREPLACE_WITH_DASH_DASHreal-life problems in image processing using\r\n% MATLAB tools.\r\n\r\n%%\r\n% Comments? \r\n##### SOURCE END ##### 88382d9abcb646bd9d5263461812f487\r\n-->","protected":false},"excerpt":{"rendered":"<p> NoteThe file submission referenced in this post is no longer available on File Exchange.\r\n\r\n   \r\n   Brett's pick this week comes to us from fellow MathWorker Sam Roberts. Sam is quite proficient... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2009\/02\/20\/streamlining-a-manual-image-processing-workflow\/\">read more >><\/a><\/p>","protected":false},"author":34,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2382"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/users\/34"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=2382"}],"version-history":[{"count":5,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2382\/revisions"}],"predecessor-version":[{"id":9878,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2382\/revisions\/9878"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=2382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=2382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=2382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}