Laser induced diffuse reflectance imaging – Monte Carlo simulation of backscattering measured on the surface
간접 관련 필름·전자재료 · (11) 배리어 필름 (12) 증착 필름(13) 프리즘 필름(15) 디스플레이 패널재료
기본 정보
- 저자
- DOI
- 10.1016/j.mex.2020.100958
- 저널
- MethodsX
- 발행년도
- 2020
- 발행기관
- Elsevier BV
- 피인용수
- 3
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1016/j.mex.2020.100958
- 토픽
- Surface Roughness and Optical Measurements
- OpenAlex ID
- W3036735046
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 필름·전자재료 · (11) 배리어 필름
- 부 분야
- (12) 증착 필름, (13) 프리즘 필름, (15) 디스플레이 패널재료
- R&D 측면
- 분석·모델링
- 확신도
- 0.70
- 근거 용어
- Monte Carlo simulation, diffuse reflectance, backscattering, optical parameters, refractive index
- 판단 근거
- 이 논문은 매질의 광학적 특성(흡수, 산란, 굴절률 등)에 따른 빛의 산란 및 반사 거동을 몬테카를로 시뮬레이션으로 모델링하는 방법을 다룹니다.
- R&D 활용 포인트
- 필름(배리어, 증착, 광학 필름) 및 디스플레이 소재의 광학적 물성(투과, 반사, 산란)을 예측하고 분석하는 시뮬레이션 모델링 기술로 활용 가능합니다.
- 평가 입력
- 본문 29,852자
초록
본문 29,852자
본문 펼치기
섹션 본문 35문단 · 17,516자
(제목 없음)
1a b s t r a c tThe Monte Carlo simulation algorithm of photon trajectory computation is implemented in object oriented R code. Diffuse reflectance, also called backscattering, is modeled in semi-infinite homogeneous media. Spatial photon flux leaving the surface of the media is collected. The profile of intensity along radii relative to the incident point is used to simulate measurement of computer vision systems. Four optical parameters of the media are used: absorption coefficient, scattering coefficient, anisotropy factor and refractive index. Five parameters are used to describe configuration of the vision system: number of photons, radius of circular light beam, limiting energy level of photons, radius of observed area, spatial resolution of the vision system.• The incident angle of the light beam is included in the photon launch procedure. Initial direction is typically assumed to be normal with x,y,z coordinates of 0,0,1. In the proposed modification, initial move vector is calculated based on the incident angle and refractive index of the media. Additionally, elliptic distortion of the circular light beam on the surface is calculated based on the incident angle. • Photon flux leaving media through the surface is corrected with Lambertian method to measure intensity captured by an imaging device in normal position. • The software implementing the method is written in R language, the R code is available as standard package.
Specifications Table Subject Area
2Agricultural and Biological Sciences Computer Science More specific subject area:
3Optical properties of biological tissue Method name:
4Monte Carlo simulation of diffuse reflectance measured on the surface Name and reference of original method
5The code presented in this paper implements stochastic Monte Carlo algorithm to simulate light distribution in media and its measurement on the surface. The
Resource availability
6Object oriented R code ( www.r-project.org ) was written and an R package has been created.
Method details
7The name Monte Carlo (MC) indicates stochastic behavior of computation. The simulation of diffuse reflectance, also known as backscattering, follows photon pathways inside medium and summarizes photon flux leaving the surface. The simulation assumes semi-infinite homogeneous media and an imaging device above the surface to collect photons and measure spatial intensity distribution. Detailed description of the photon trajectory computation algorithm and software libraries are available in Fortran language (with the name of PENELOPE) [1 , 2] and ANSI C language (with the name of MCML and CONV) [3 , 4] . This implementation uses variable names similar to the ANSI C code.
8Computer vision systems measure spatial intensity distribution relative to the incident point of the light beam [5 , 6] . The light beam injects photons into the media and surrounding area got illuminated by diffuse reflectance. Intensity is typically measured in concentric rings of 1 pixel width ( Fig. 1 ). The captured intensity profile is very similar to the result of Monte Carlo simulation. Monte Carlo simulation can be used in inverse modeling. Estimation functions, established based on the observed results of simulation, can make predictions in vision systems [7 , 8] .
9The measured photon flux and the shape of the intensity profile ( Fig. 1 ) depends on the optical properties of the media. These parameters are μ a absorption coefficient (cm −1 ), μ s scattering coefficient (cm −1 ), g anisotropy factor and n refractive index of media. The reduced scattering coefficient ( Eq. (1) ) is reported in many publications as simplified parameter of the theoretical model [9] .
10This simplification makes validation more difficult, since many different combinations of g and μ s can result the same μ s ' reduced scattering coefficient. Media could be assumed isotropic ( g = 0) Fig. 1. Radial averaging pattern of concentric rings (left) and typical shape of acquired intensity profile (right). R is the radius measured from incident point. but biological materials are reported to scatter forward g > 0.6 [10] . Additionally, absorption and scattering coefficients may differ by wavelength. The effect of wavelength on optical measurement is demonstrated in Fig. 2 , where the same object can be observed with diffuse reflectance induced at multiple wavelengths. The computational parameters of the simulation include number of photons, radius of circular light beam, limiting energy level of photons, radius of observed area, spatial resolution of the vision system. The number of photons significantly affects computation time, therefore the minimum sufficient number shall be adjusted. The noise of the calculated intensity profile decreases with increasing number of photons. Based on the power of the light source and wavelength of emitted light, required number of photons can be calculated using Planck's law ( Eq. (2) ):
11where E is the photon energy, h is the Planck's constant, v is the frequency, This number can decrease if integration time of the imaging device of computer vision system was considered. Based on time resolved calculations, the 1 ns pulse length was found to be sufficient for simulation of light penetration into apple [5] . The hardware parameters of the computer vision system are constant for the same setup, such as image resolution, beam radius. The parameter limiting energy shall be low enough to allow drop low energy photons without significant computation error. The simulation can be initialized with optical parameters of media and parameters of the computer vision system. The R code to load package and initialize simulation object is presented in Table 1 . Absorption and scattering coefficients are expected in cm −1 unit.
12Running simulation with this implementation does not require additional preparation. One function is made to perform all computations ( Table 2 ) and result can be presented on chart or extracted as table.
13Low number of photons in simulation obtain significant noise on the intensity profile. Low intensity values far from incident point may have higher noise due to the lower number of photons in that area. According to our experiences, the minimum recommended number of photons is 10 6 . The effect of the number of photons is presented on Fig. 3 . Simulation of absorbed energy inside media can require less photons compared to diffuse reflection on surface, because the number of trajectories leaving the media on observed area is lower.
14The simulation function ( Table 2 ) has an optional second parameter, the incident angle of light beam. This value is used when photon is launched into media. If parameter is missing, default value of 0 °is assumed. The normal position, above incident point, is occupied by the camera or other imaging device. Therefore, light source cannot be placed in the same direction. Measurement geometry of low incident angle is recommended to utilize large amount of photons. On the other hand, incident angle should be large enough to avoid direct reflection into the camera. The incident angle of 10-20 °is recommended. The incident angle can be used with simulation function ( Table 3 ). Computational methods presented in literature use normal direction, perpendicular to surface [1-4 , 9] . Due to the limitations of hardware setup, this should be reconsidered.
15Setup function ( Table 4 ) was made to initialize computation at the beginning of the simulation. Container is created for results and derived parameters, such as albedo and critical angle, are calculated. The computation of simulation function may take long since it follows all photon trajectories. In order to accelerate procedure, maximum trajectory length and random launch position of all photons are adjusted, as well.
16A randomize function ( Table 5 ) was made with the purpose to accelerate computation and generate random numbers in advance for each photon. Computation later can refer to the prepared vectors of random numbers instead of calling the random number generation function each time.
17Photon trajectory computation has five steps:
18• launch photon • move in media • bounce if photon leaves media through surface • absorb energy • scatter in media Table 4 Setup function implementation in R language to prepare containers, calculate parameters.
19## Initialize computation Setup < -function(myObject) {UseMethod("Setup",myObject)} Setup.MCBS < -function(myObject) { # container for intesity profile myObject$heat < -rep(0,1 + round(myObject$radius / myObject$rpx)) # transport albedo = intensity decrease after interaction event myObject$albedo < -myObject$mu_s / (myObject$mu_ s + myObject$mu_a) # specular reflection myObject$rs < -((myObject$n -1) / (myObject$n + 1)) ^ 2 # critical angle myObject$cangle < -sqrt(1.0 -1.0/(myObject$n ^ 2)) # maximum trajectory length in events myObject$MAXLEN < -round(log(myObject$limit)/log(myObject$albedo)) + 1 # beam start position, radius and angle myObject$rbr < -myObject$beamr * sqrt(runif(myObject$photons)) myObject$rba < -runif(myObject$photons,min = 0,max = 2 * pi) # reset summary values myObject$rd < -0 myObject$bit < -0 return(myObject) } Table 5 Randomize function implementation in R language to generate random numbers for single photon.
20## Fill random data for single photon trajectory Randomize < -function(myObject) {UseMethod("Randomize",myObject)} Randomize.MCBS < -function(myObject) { # maximum trajectory length is computed to MAXLEN # random numbers are selected from uniform distribution # move length, 0--1 myObject$rmv < -runif(myObject$MAXLEN) # absorption roulette, 0--1 myObject$rabs < -runif(myObject$MAXLEN) # new direction after scattering, from −1 to + 1 myObject$rx1 < -runif(myObject$MAXLEN,min = −1,max = 1) myObject$rx2 < -runif(myObject$MAXLEN,min = −1,max = 1) # Heyney-Greenstein phase function random variable, 0--1 myObject$rmu < -runif(myObject$MAXLEN)
return(myObject) }
21Common computational method is modified in launch and bounce. Launch is considering incident angle and its effects, bounce collects photon weights on surface. All steps are available as separate functions to allow users build customized procedure.
22The launch function has an optional second parameter, the incident angle. Initial direction inside media is calculated on the basis of the incident angle and refractive index ( Eq. (3) ).
23where φ 1 is the incident angle in air, φ 2 is the refracted angle in media and n 2 is the refractive index of the media. When photon is emitted from light source, its weight is 1. The photon weight decreases first time during interaction with surface. Photons entering media are usually considered to have normal start direction (u,v,w) = (0,0,1). This direction is changed according to the incident angle. Table 6 Launch function implementation in R language to start photon trajectory from boundary. ## Launch single photon within beam # Parameter: # iAngle = incident angle, default = 0 deg (relative to normal) Launch < -function(myObject,iAngle = 0) {UseMethod("Launch",myObject)} Launch.MCBS < -function(myObject,iAngle = 0) { # initial photon weight myObject$weight < -1.0 -myObject$rs # internal angle after refraction myAngle < -asin(sin(iAngle * pi/180)/myObject$n)
24In media of n = 1.4, start angle is in the range of 7.12 °-14.14 °for recommended incident angle range of 10 °-20 °Additionally, due to the rotation of the incident light beam, its circular cross section is elliptic on the surface. This elliptical distortion is calculated on the launch position. The start position of the photon on the surface (x,y,z = 0) is calculated randomly within the area of the circular light beam, using uniform distribution [11] . Elliptic distortion affects this position with the y coordinate. The R language implementation of launch function is presented in Table 6 .
25During simulation, photons are identified with index number idx and trajectory moves for each photon are identified with index number midx . These indices are used to access containers of random numbers, such as launch position polar coordinates rbr for radius and rba for angle ( Table 4 , 6 ). Bulk generation of random numbers is done for optimization of computation.
26The second modified function compared to common algorithm is the bounce method. Photons leaving the surface are collected in this step. Photon position (x,y,z) is out of media if z < 0. When this occurs, moving direction (u,v,w) also points out of the media with w < 0. Moving direction is compared to critical angle to decide whether internal reflection happens or photon can leave media. Fresnel reflection is calculated to correct photon weight. Additionally, Lambertian correction is performed modeling the camera or imaging device in normal position above the surface. Photon flux is collected in vector heat , with spatial resolution. According to the R language, the first element of the vector has index 1, which belongs to the incident point of radius r = 0. Each element of the vector represent photon flux leaving the surface in the area of concentric ring around the incident point. The source code of the bounce function implemented in R language is presented in Table 7 .
27In order to receive the normalized photon flux in cm −2 unit, vector elements are divided by the corresponding surface area during post processing. The area of the concentric rings can be calculated using two equivalent equations ( Eq. (4) , ( 5 ).
28Where A is the area of the ring of dr width and r is the inner radius of the ring. The form of Eq. (5) is commonly used, but equations are equivalent and also calculated with similar speed. The R implementation is using formula Eq. (4) . Table 7 Bounce function implementation in R language to collect surface photon flux.
## Bounce interaction with surface
29temp < -(t -myObject$n * myObject$w)/( t + myObject$n * myObject$w) # Fresnel reflection rf < -(temp1 * temp1 + temp * temp)/2.0 myObject$rd < -myObject$rd + (1.0-rf) * myObject$weight # collect leaving photons by radius # Lambertian correction to normal direction lcc < -abs Computations are accelerated to decrease simulation runtime. Trigonometric functions are substituted where it is possible using the following equation ( Eq. (6) ). co s 2 φ + si n 2 φ = 1 and sin φ = 1 − co s 2 φ; cos φ = 1 − si n 2 φ (6) The simulation uses a lot of random numbers to launch photons and calculate their trajectory. Random numbers are generated in bulk for optimization. Start polar coordinates are generated in a vector with the length of the number of photons ( Table 4 ). Trajectory random variables are generated in vectors with the length calculated from limiting energy and transport albedo ( Table 5 ). Table 8 presents the random vectors used int the R implementation. The implemented code can be used according to presented sample ( Table 2 ). Only two functions are required to perform simulation, the MCBS object constructor and Simulation to perform computation. Photon flux can be retrieved as intensity profile by Export function ( Table 3 ). If one would like to make customized procedure, functions are available and Simulation function can be used as template.
30Due to the interpreted R codes, computation consumes more time than compiled C software. Parallel processing may utilize multiple cores of processors on POSIX computer systems. Single core process simulation of 10 6 photons took approximately 2 h on Intel i3 processor (3.83 GFLOPS/core).
Method validation
31Reference material of known optical properties was produced by PDW Analytics GmbH (Potsdam, Germany). The absorption coefficient and reduced scattering coefficient of solid phantom are known as μ a = 0.1056 cm −1 and μ s ' = 2.529 cm −1 at 680 nm. The Monte Carlo simulation was repeated twice and used different combinations of anisotropy factor and scattering coefficient (resulting the same reduced scattering coefficient). Simulation parameters are listed in Table 9 . The diffusion theory model [9] was also computed as reference. As a result of changing optical properties, rotation of simulated profiles can be observed [5 , 6] . Comparing the two simulations, results of isotropic media ( g = 0) fit better to diffusion theory model in terms of correlation and RMSE (root mean squared error).
32Backscattering images were recorded for the reference material at 660 nm wavelength ( Fig. 2 ), using a laser module of 3 mW and a CCD camera (CV-A50IR, JAI Ltd., Japan) with zoom lens of 18-108 mm and f/2.5 (12VG1040 ASIR-SQ, Tamron Co. Ltd, Japan). The resolution of the images were 0.01205 cm/pixel. Images were recorded with 8 bit/pixel color depth, therefore pixel intensities ranged 0-255. All intensity profiles, measured and computed, were normalized to the range of 0-1 for comparison. The over saturated part near the incident point of the intensity profile was omitted from analysis. Comparison result of diffusion theory model as well as Monte Carlo simulation with measured signal is presented in Table 10 .
33According to the correlation and RMSE values, diffusion theory model showed the closest relationship followed by anisotropic Monte Carlo simulation. Diffusion theory model obtained slightly better correlation, while Monte Carlo simulation reached slightly lower RMSE value.
Additional information
34• PENELOPE2014, A Code System for Monte-Carlo Simulation of Electron and Photon Transport https: //www.oecd-nea.org/tools/abstract/detail/nea-1525 • Scott Prahl: Monte Carlo Light Scattering Programs https://omlc.org/software/mc/ • MCBackscattering: Monte Carlo Simulation for Surface Backscattering https://cran.r-project.org/ package=MCBackscattering
Conflict of Interest
35Author declare no conflict of interest
참고문헌 10건
- Conv—convolution for responses to a finite diameter photon beam incident on multi-layered tissues Computer Methods and Programs in Biomedicine · Elsevier BV · 1997 10.1016/s0169-2607(97)00021-7
- MCML—Monte Carlo modeling of light transport in multi-layered tissues Computer Methods and Programs in Biomedicine · Elsevier BV · 1995 10.1016/0169-2607(95)01640-f
- Monte Carlo simulation for quantification of light transport features in apples Computers and Electronics in Agriculture · Elsevier BV · 2009 10.1016/j.compag.2009.04.002
- A diffusion theory model of spatially resolved, steady-state diffuse reflectance for the noninvasive determination of tissue optical properties <i>in</i> <i>vivo</i> Medical Physics · Wiley · 1992 10.1118/1.596777
- Analysis of laser light propagation in kiwifruit using backscattering imaging and Monte Carlo simulation Computers and Electronics in Agriculture · Elsevier BV · 2009 10.1016/j.compag.2009.06.011
- Grading of apples based on firmness and soluble solids content using Vis/SWNIR spectroscopy and spectral scattering techniques Journal of Food Engineering · Elsevier BV · 2013 10.1016/j.jfoodeng.2013.10.022
- Light Distributions from Point, Line and Plane Sources for Photochemical Reactions and Fluorescence in Turbid Biological Tissues Photochemistry and Photobiology · Wiley · 1998 10.1111/j.1751-1097.1998.tb05161.x
- Analysis of laser light migration in apple tissue by Monte Carlo simulation Progress in Agricultural Engineering Sciences · Akadémiai Kiadó · 2008 10.1556/progress.4.2008.3
- PENELOPE: A code system for Monte Carlo simulation of electron and photon transport Penelope · Organization for Economic Cooperation and Development · 2020 10.1787/9d2cc3d5-en
- Multispectral measurement of scattering-angular light distribution in apple skin and flesh samples Applied Optics · Optica Publishing Group · 2016 10.1364/ao.55.009217