@MISC\{IMM2013-06573, author = "J. R. Frisvad", title = "LMabs (Matlab version)", year = "2013", month = "jun", keywords = "absorbing host medium, Lorenz-Mie theory, participating media, optical properties", publisher = "Technical University of Denmark", address = "", url = "http://people.compute.dtu.dk/jerf/code/", abstract = "This source code implements Lorenz-Mie theory using the formulas presented in the {SIGGRAPH} 2007 paper Computing the Scattering Properties of Participating Media Using Lorenz-Mie Theory By authors: Jeppe Revall Frisvad, Niels J{\o}rgen Christensen, Henrik Wann Jensen Some notes on which files to use: - The script mini\_milk.m is an example of how to call the function that predicts the optical properties of a particular milk product. - The script plot\_LM\_phase.m illustrates how to compute the phase function of a specific particle (using a casein micelle and a fat globule as examples). - The function that predicts the optical properties of milk is in milk.m. - The Lorenz-Mie theory is spread out in a number of smaller functions (of which particle\_props and LorenzMie are the ones to call if you want to work with new materials). The code is very slow compared to the C++ version because Matlab does not like for-loops. Vectorizing the code is not straight forward because it is based on recurrence formulae. Thus, some patience is required if you want to make a many predictions. Permission is granted to anyone to use this code as software for any purpose, including commercial applications. However, the software is provided 'as-is' without any warranty." }