{"id":16550,"date":"2023-06-13T10:43:09","date_gmt":"2023-06-13T14:43:09","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/?p=16550"},"modified":"2023-06-13T10:43:09","modified_gmt":"2023-06-13T14:43:09","slug":"mcmatlab-a-monte-carlo-simulation-for-photon-transport-in-3d-voxel-space","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2023\/06\/13\/mcmatlab-a-monte-carlo-simulation-for-photon-transport-in-3d-voxel-space\/","title":{"rendered":"MCmatlab: A Monte Carlo simulation for photon transport in 3D voxel space"},"content":{"rendered":"<div class = rtcContent><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Today, I am inviting <\/span><a href = \"https:\/\/www.mathworks.com\/matlabcentral\/profile\/authors\/15789264\"><span>Temo<\/span><\/a><span>, who is from the academic discipline marketing team, and he looks after the physics discipline. He will share his Pick from the field of optics.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span><\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>This week's Pick is <\/span><a href = \"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/124380-mcmatlab\"><span>MCmatlab<\/span><\/a><span> developed by <\/span><a href = \"https:\/\/www.mathworks.com\/matlabcentral\/profile\/authors\/5399624\"><span>DrDonik<\/span><\/a><span> from University of Bern and Dr. Anders Kragh Hansen from Technical University of Denmark.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Light and optics\u2019 role in medical diagnostics and treatments cannot be overstated. A broadly applicable equation modeling the propagation of light within biological tissue is called the Radiative Transfer Equation (RTE). The RTE is commonly solved with Monte Carlo techniques, starting from modeling the paths of photons traveling through the tissue as a random walk. Monte Carlo simulations statistically sample the step size of the random walk and angular deflection per scattering event, yielding, after averaging over many photons\u2019 paths, realistic approximations to light\u2019s propagation in tissue. <\/span><a href = \"https:\/\/omlc.org\/software\/mc\/mcxyz\/index.html\"><span>mcxyz.c<\/span><\/a><span> is a celebrated Monte Carlo program, coded in C, for modeling light propagation in heterogenous tissue written by a pioneer in biomedical optics, Steven L. Jacques. It is usually combined with MATLAB to generate the input optical properties of tissue types for a given illumination, allowing the users to create the three-dimensional (3D) structure of the desired heterogeneous tissue.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>MCmatlab converts (wraps) mcxyz.c to a compact tool usable directly through a MATLAB interface, without the need to leave the MATLAB environment. It thus combines the speed of C with the versatility and user-friendliness of MATLAB. In addition to the RTE solver, MCmatlab includes a thermal solver, useful for simulating processes such as photocoagulation. The results of simulation are shown using interactive 3D volumetric slice plotting as shown below.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: center; '><img class = \"imageNode\" src = \"https:\/\/blogs.mathworks.com\/pick\/files\/potw_mcmatlab_1.gif\" width = \"934\" height = \"578\" alt = \"mcmatlab_animation.gif\" style = \"vertical-align: baseline; width: 934px; height: 578px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>MCmatlab provides researchers with easy access points to simulate light\u2013tissue interaction[1] and has also been used to simulate light transport in luminescent materials[2] such as phosphors. It is especially useful for helping students understand the underlying physics in light-tissue interactions without demanding experience in C programming or UNIX systems, making it preferred tool of educators for teaching biophotonics.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>The entry comes with detailed documentation and a large collection of examples to get you started. Give this a try and let us know what you think. <\/span><\/div><ol  style = 'margin: 10px 0px 20px; padding-left: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px; '><li  style = 'margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap; '><span>Boonya-ananta, T., Rodriguez, A.J., Ajmal, A. <\/span><span style=' font-style: italic;'>et al.<\/span><span> <\/span><span style=' font-style: italic;'>Synthetic photoplethysmography (PPG) of the radial artery through parallelized Monte Carlo and its correlation to body mass index (BMI),<\/span><span> <\/span><span style=' font-style: italic;'>Sci Rep<\/span><span> <\/span><span style=' font-weight: bold;'>11, <\/span><span>2570 (2021). <\/span><a href = \"https:\/\/doi.org\/10.1038\/s41598-021-82124-4\"><span style=' text-decoration: underline;'>https:\/\/doi.org\/10.1038\/s41598-021-82124-4<\/span><\/a><\/li><li  style = 'margin-left: 56px; line-height: 21px; min-height: 0px; text-align: left; white-space: pre-wrap; '><span>Krasnoshchoka, A.,<\/span><span style=' font-style: italic;'> <\/span><span>Hansen, A. K., Thorset, A.<\/span><span> <\/span><span style=' font-style: italic;'>et al.<\/span><span>  <\/span><span style=' font-style: italic;'>Phosphor material dependent spot size limitations in laser lighting<\/span><span>, Optics Express<\/span><span> Vol. 28, <\/span><a href = \"https:\/\/www.osapublishing.org\/oe\/issue.cfm?volume=28&amp;issue=4\"><span style=' text-decoration: underline;'>Issue 4<\/span><\/a><span>, pp. 5758-5767 (2020), <\/span><a href = \"https:\/\/doi.org\/10.1364\/OE.383866\"><span style=' text-decoration: underline;'>https:\/\/doi.org\/10.1364\/OE.383866<\/span><\/a><\/li><\/ol><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><\/div>\r\n<\/div><script type=\"text\/javascript\">var css = ''; var head = document.head || document.getElementsByTagName('head')[0], style = document.createElement('style'); head.appendChild(style); style.type = 'text\/css'; if (style.styleSheet){ style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); }<\/script>","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img src=\"https:\/\/blogs.mathworks.com\/pick\/files\/potw_mcmatlab_1.gif\" class=\"img-responsive attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"\" decoding=\"async\" loading=\"lazy\" \/><\/div><p>Today, I am inviting Temo, who is from the academic discipline marketing team, and he looks after the physics discipline. He will share his Pick from the field of optics.This week's Pick is MCmatlab... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2023\/06\/13\/mcmatlab-a-monte-carlo-simulation-for-photon-transport-in-3d-voxel-space\/\">read more >><\/a><\/p>","protected":false},"author":35,"featured_media":16574,"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\/16550"}],"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\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=16550"}],"version-history":[{"count":5,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/16550\/revisions"}],"predecessor-version":[{"id":16583,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/16550\/revisions\/16583"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media\/16574"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=16550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=16550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=16550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}