II Escuela de Optica Biomedica, Puebla, 2011 Monte Carlo, Euler and Quaternions Jessica C. Ramella-Roman.

Slides:



Advertisements
Similar presentations
Eyk Bösche et al. BBC2 Workshop, Oktober 2004: Eyk Bösche et al. BBC2 Workshop, Oktober 2004: Simulation of skylight polarization with the DAK model and.
Advertisements

Multi-wave Mixing In this lecture a selection of phenomena based on the mixing of two or more waves to produce a new wave with a different frequency, direction.
II Escuela de Optica Biomedica, Puebla, 2011 Polarimeters Jessica C. Ramella-Roman, PhD.
II Escuela de Optica Biomedica, Puebla, 2011 Use of polarized light imaging and sensing in the clinical setting Jessica C. Ramella-Roman, PhD.
Using a Radiative Transfer Model in Conjunction with UV-MFRSR Irradiance Data for Studying Aerosols in El Paso-Juarez Airshed by Richard Medina Calderón.
II Escuela de Optica Biomedica, Puebla, 2011 Modeling of polarized light transfer in scattering media Monte Carlo.
Geant4 Low Energy Polarized Compton Processes Gerardo Depaola * Francesco Longo + Francesco Longo + * National University of Córdoba (Argentina) + University.
BIOP – Center for Biomedical Optics and New Laser Systems Light scattering from a single particle Peter E. Andersen Optics and Fluid Dynamics Dept. Risø.
Polarization of Light Waves
Evan Walsh Mentors: Ivan Bazarov and David Sagan August 13, 2010.
Rational Trigonometry Applied to Robotics
Page 1 Vijay Natraj Polarization November 9, 2007.
c = km/sec I F = I 0 x (cosθ) 2.
3D orientation.
Page 1 1 of 100, L2 Peer Review, 3/24/2006 Level 2 Algorithm Peer Review Polarization Vijay Natraj.
Virtues of polarization in remote sensing of atmospheres and oceans George W. Kattawar Department of Physics and Institute for Quantum Studies Texas A&M.
The Ray Vector A light ray can be defined by two co-ordinates: x in,  in x out,  out its position, x its slope,  Optical axis optical ray x  These.
Diffraction vs. Interference
Single-Scattering Stuff + petty chap 12 intro April 27-29, 2015.
Lecture 12 Monte Carlo Simulations Useful web sites:
Chapter 5 Jones Calculus and Its Application to Birefringent Optical Systems Lecture 1 Wave plates Wave plates (retardation plates) are optical elements.
Review: Laws of Reflection and Refraction
Radiative Transfer Theory at Optical and Microwave wavelengths applied to vegetation canopies: part 2 UoL MSc Remote Sensing course tutors: Dr Lewis
Rotations and Translations
Pat Arnott, ATMS 749 Atmospheric Radiation Transfer CH4: Reflection and Refraction in a Homogenous Medium.
The Hong Kong Polytechnic University Optics II----by Dr.H.Huang, Department of Applied Physics1 Light Waves Nature of Light: Light can be viewed as both.
Absorbing and scattering inhomogeneity detection using TPSF conformal mapping Potlov A.Yu., Abdulkareem S.N., Frolov S.V., Proskurin S.G. Biomedical engineering,
Geometric Transformation. So far…. We have been discussing the basic elements of geometric programming. We have discussed points, vectors and their operations.
CS 450: COMPUTER GRAPHICS QUATERNIONS SPRING 2015 DR. MICHAEL J. REALE.
Optical Models Jian Huang, CS 594, Spring 2002 This set of slides are modified from slides used by Prof. Torsten Moeller, at Simon Fraser University, BC,
Attenuation by absorption and scattering
Scattering by particles
Solar Energy Part 1: Resource San Jose State University FX Rongère January 2009.
Rotations and Translations
Incoherent pair background processes with full polarizations at the ILC Anthony Hartin JAI, Oxford University Physics, Denys Wilkinson Building, Keble.
Statistics and Linear Algebra (the real thing). Vector A vector is a rectangular arrangement of number in several rows and one column. A vector is denoted.
Advanced Computer Graphics Spring 2014
POLARIZATION CHARACTERISTICS OF MULTIPLE SCATTERING OF LIGHT BY NONSPHERICAL PARTICLES AND AGGREGATES OF SPHERICAL PARTICLES IN TURBID MEDIA Alexander.
RT solution methods. Review: What are we doing again? Divide vertical, plane-parallel atmosphere up into approximately homogeneous sections. Calculate.
Radiation Shielding and Reactor Criticality Fall 2012 By Yaohang Li, Ph.D.
Lecture/Lab: Interaction of light with particles. Mie’s solution.
111/17/ :21 Graphics II Global Rendering and Radiosity Session 9.
Doc.: IEEE /0431r0 Submission April 2009 Alexander Maltsev, Intel CorporationSlide 1 Polarization Model for 60 GHz Date: Authors:
Review of Basic Polarization Optics for LCDs Module 4.
Chapter 38 Diffraction Patterns and Polarization.
Announcements HW set 10 due this week; covers Ch (skip 24.8) and Office hours: Prof. Kumar’s Tea and Cookies 5-6 pm today My office hours.
Nonlinear Optics Lab. Hanyang Univ. Chapter 6. Processes Resulting from the Intensity-Dependent Refractive Index - Optical phase conjugation - Self-focusing.
Comparing Two Motions Jehee Lee Seoul National University.
Goddard February 2003 R.Bellazzini - INFN Pisa A new X-Ray Polarimeter based on the photoelectric effect for Black Holes and Neutron Stars Astrophysics.
Numerical Model of an Internal Pellet Target O. Bezshyyko *, K. Bezshyyko *, A. Dolinskii †,I. Kadenko *, R. Yermolenko *, V. Ziemann ¶ * Nuclear Physics.
Euler Angles This means, that we can represent an orientation with 3 numbers Assuming we limit ourselves to 3 rotations without successive rotations about.
Week 5 - Monday.  What did we talk about last time?  Lines and planes  Trigonometry  Transforms  Affine transforms  Rotation  Scaling  Shearing.
Learning from the Past, Looking to the Future James R. (Jim) Beaty, PhD - NASA Langley Research Center Vehicle Analysis Branch, Systems Analysis & Concepts.
Fundamentals of Computer Animation Orientation and Rotation.
Hale COLLAGE (CU ASTR-7500) “Topics in Solar Observation Techniques” Lecture 3: Basic concepts in radiative transfer & polarization Spring 2016, Part 1.
Dollan, Laihem, Lohse, Schälicke, Stahl 1 Monte Carlo based studies of polarized positrons source for the International Linear Collider (ILC)
7. Electromagnetic Waves 7A. Plane Waves Consider Maxwell’s Equations with no sources We are going to search for waves of the form To make things as general.
Specific features of motion of the photon density normalized maximum
CS 445 / 645 Introduction to Computer Graphics
Polarization in spectral lines
Polarized Light Scattering
Announcements I should have exams back to you on Fri.
Diffraction vs. Interference
Mont-Carlo simulation of OCT structural images of subcutaneous
UMBC Graphics for Games
John DeVries1,2, Dr. Neal Turner2, and Dr. Susan Terebey1,2
Ordinary light versus polarized light
Categories of Optical Elements that modify states of polarization:
Lesson 4: Application to transport distributions
N-port Network Port reference Line Impedance Port Voltage & Current.
Presentation transcript:

II Escuela de Optica Biomedica, Puebla, 2011 Monte Carlo, Euler and Quaternions Jessica C. Ramella-Roman

II Escuela de Optica Biomedica, Puebla, 2011 Stokes vector reference Yesterday, Meridian plane – Three steps – “Rotate” to scattering plane Rotational matrix – Scatter Scattering matrix – “Rotate” to a new plane Rotational matrix

II Escuela de Optica Biomedica, Puebla, 2011 Today Monte Carlo Reference frame is a triplet of unit vectors Rotation are about an axis and follow a specific order

II Escuela de Optica Biomedica, Puebla, 2011 Today Monte Carlo Reference frame is a triplet of unit vectors Rotation of the frame is done in two steps.

II Escuela de Optica Biomedica, Puebla, 2011 Euler and Quaternion The only difference between today programs is the way we handle these rotations Euler angles rotation Quaternions algebra

II Escuela de Optica Biomedica, Puebla, 2011 Euler Monte Carlo The photon polarization reference frame is tracked at any time via a triplet of unit vectors that are rotated by an azimuth and scattering angle according to a predefined order Introduced by Bartel et al. (*) * S. Bartel, A. Hielsher, “Monte Carlo simulations of the diffuse backscattering Mueller matrix for highly scattering media,” Applied Optics, Vol. 39, No. 10; (2000).

II Escuela de Optica Biomedica, Puebla, 2011 Euler matrices Euler's rotation theorem: any rotation may be described using three angles. And three rotation matrices – About z axis – About x’ axis – About z’ axis Drawings, Wolfram, Mathworld

II Escuela de Optica Biomedica, Puebla, 2011 Euler cnt. We only need TWO vectors and TWO rotations Two unit vectors v and u The third unit vector is defined by the cross product of v and u and is calculated only when a photon reaches a boundary.

II Escuela de Optica Biomedica, Puebla, 2011 Euler cnt. Advantage – Stokes vector is rotated only once for each scattering event instead of twice as in the meridian plane method. – Simple to implement and visualize Drawback – – Gimbal lock - makes the rotation fail for angles exactly equal to 90˚ (rare event).

II Escuela de Optica Biomedica, Puebla, 2011 Monte Carlo flow chart

II Escuela de Optica Biomedica, Puebla, 2011 Launch The two unit vector v and u v and u define the starting Stokes vector reference plane. The unit vector u represents the direction of photon propagation.

II Escuela de Optica Biomedica, Puebla, 2011 Move The photon is moved a distance  s, the new coordinates of the photon are

II Escuela de Optica Biomedica, Puebla, 2011 Drop Reduction of photon weight (W) According to material albedo albedo =  s /(  s +  a ) absorbed = W*(1-albedo)

II Escuela de Optica Biomedica, Puebla, 2011 Scatter The rejection method establishes the scattering angle  and azimuth angle . The Stokes vector must be rotated by an angle  into the scattering plane before scattering can occur.

II Escuela de Optica Biomedica, Puebla, 2011 Referencing to scattering plane Done as in meridian plane Monte Carlo Multiply the Stokes vector by matrix R

II Escuela de Optica Biomedica, Puebla, 2011 Scatter cnt The interaction with a spherical particle is achieved by multiplying the Stokes vector with a scattering matrix M(  )

II Escuela de Optica Biomedica, Puebla, 2011 M(  ) elements s 11, s 12, s 33, s 34 calculated with Mie theory Expressed as S1, S2* – Mie scattering * C. Bohren and D. R. Huffman, Absorption and scattering of light by small particles, (Wiley Science Paperback Series,1998).

II Escuela de Optica Biomedica, Puebla, 2011 Reference frame After scattering the Stokes vector the reference coordinate system v u must be updated. The two rotations, for the angles  and  can be obtained using Euler’s rotational matrices.

II Escuela de Optica Biomedica, Puebla, 2011 Rotational matrix ROT Rodrigues’s rotational matrix ROT Accomplishes the general case of rotating any vector by an angle  about an axis K Where K is the rotational axis, c=cos(  ), s=sin(  ) and v=1-cos(  ).

II Escuela de Optica Biomedica, Puebla, 2011 Vector rotation First the unit vector v is rotated about the vector u by an angle  Multiply v by the rotational matrix ROT(u,  ); u remains unchanged

II Escuela de Optica Biomedica, Puebla, 2011 Vector rotation Second u is rotated about the newly generated v by an angle . This is done multiplying the unit vector u by the rotational matrix ROT(v,  ).

II Escuela de Optica Biomedica, Puebla, 2011 Update of direction cosines This is done as in standard Monte Carlo  and  If |u z | ≈ 1

II Escuela de Optica Biomedica, Puebla, 2011 Update of direction cosines If |u z | ≠ 1

II Escuela de Optica Biomedica, Puebla, 2011 Photon life The life of a photon ends when the photon passes through a boundary or when its weight W value falls below a threshold. Roulette is used to terminate the photon packet when W  W th. – Gives the photon packet one chance of surviving – If the photon packet does not survive the roulette, the photon weight is reduced to zero and the photon is terminated.

II Escuela de Optica Biomedica, Puebla, 2011 Boundaries Two final rotations of the Stokes vector are necessary to put the photon status of polarization in the detector reference frame. This will be achieved with matrix multiplication of two rotational matrix by stokes vector

II Escuela de Optica Biomedica, Puebla, 2011 Boundaries – R(  ) w is reconstructed as the cross product of v and u. An angle  is needed to rotate the Stokes vector into a scattering plane

II Escuela de Optica Biomedica, Puebla, 2011 Boundaries – R(  ) This is the ONLY reason we need the vector u, v, and w

II Escuela de Optica Biomedica, Puebla, 2011 Boundaries – R(  ) This rotation is about the direction of propagation of the photon, i.e. the axis u Resulting position of v

II Escuela de Optica Biomedica, Puebla, 2011 Boundaries – R(  ) A second rotation of an angle  about the Z axis Put the photon reference frame in the detector reference frame

II Escuela de Optica Biomedica, Puebla, 2011 Boundaries – R(  ) Transmission Reflection

II Escuela de Optica Biomedica, Puebla, 2011 Boundaries End Stokes vector in the detector frame of reference We need vector u, v, and w to obtain these angles

II Escuela de Optica Biomedica, Puebla, 2011 Quaternion Monte Carlo Quaternion Monte Carlo simply uses Quaternion Algebra to handle vector rotation. Advantage – Stokes vector is rotated only once for each scattering event instead of twice as in the meridian plane method. – No issue with Gimbal lock – Optimized for computer simulations

II Escuela de Optica Biomedica, Puebla, 2011 Quaternions A quaternion is a 4-tuple of real numbers; it is an element of R 4. Quaternion can also be defined as the sum of a scalar part q 0 and a vector part Q in R 3 of the form

II Escuela de Optica Biomedica, Puebla, 2011 Quaternions cnt. The vector part Q is the rotational axis and the scalar part is the angle of rotation. Multiplication of a vector t by the quaternion is equivalent to rotating the vector t around the vector Q of an angle q 0.

II Escuela de Optica Biomedica, Puebla, 2011 Vector rotation First the unit vector v is rotated about the vector u by an angle 

II Escuela de Optica Biomedica, Puebla, 2011 Rotation -  The first rotation is about the vector u by an angle . This is done generating the quaternion q  And then using the quaternion operator q ∗ vq on the vector v q ∗ is the complex conjugate of q

II Escuela de Optica Biomedica, Puebla, 2011 Vector rotation Second u is rotated about the newly generated v by an angle .

II Escuela de Optica Biomedica, Puebla, 2011 Rotation -  The second rotation is about the vector v by an angle . This is done generating the quaternion q  And then using the quaternion operator q  *uq  on the vector u

II Escuela de Optica Biomedica, Puebla, 2011 Rotations These steps are repeated for every scattering event. At the boundaries the last aligning rotations are the same as in Euler Monte Carlo.

II Escuela de Optica Biomedica, Puebla, 2011 Testing Comparison with Evans Code In 1991 Evans designed an adding doubling code that can calculate both the radiance and flux of a polarized light beam exiting the atmosphere plane parallel slab of thickness L = 4/µ s, absorption coefficient µ a =0, unpolarized incident beam wavelength = nm.

II Escuela de Optica Biomedica, Puebla, 2011 Evans - Reflectance mode Diameter (nm) Evans I This code I Evans Q This code Q Reflectance mode, comparison between Evans adding-doubling code and the meridian plane Monte Carlo program. The results do not include the final rotation for a single detector. Incident I=[ ]

II Escuela de Optica Biomedica, Puebla, 2011 Evans – Transmission mode Diameter (nm) Evans I This code I Evans Q This code Q Transmission mode, comparison between Evans adding doubling code and the meridian plane Monte Carlo program. The results are not corrected for a single detector Incident I=[ ]

II Escuela de Optica Biomedica, Puebla, 2011 How to run the code Download the code dex.html dex.html

II Escuela de Optica Biomedica, Puebla, 2011 How to run the code Download the code dex.html dex.html

II Escuela de Optica Biomedica, Puebla, 2011 Download the code Programs

II Escuela de Optica Biomedica, Puebla, 2011 Make Command line Compilation/linking step

II Escuela de Optica Biomedica, Puebla, 2011 Run This program will run a full Mueller matrix Monte Carlo launching four vectors [ ] H 0 degree polarized [ ] V 90 degrees polarized [ ] P 45 degrees polarized [ ] R –Right circular Command line

II Escuela de Optica Biomedica, Puebla, 2011 Memory usage Intel (64-bit) – Macbook pro 2.3Ghz I7 8GB RAM Real mem 860 KB Virtual mem 17 MB

II Escuela de Optica Biomedica, Puebla, 2011 out Output is a set of Stokes vector images for each launched Stokes vector outHI -> Horizontal incident polarization and I portion of the Stokes vector outHQ -> Horizontal incident polarization and Q portion of the Stokes vector

II Escuela de Optica Biomedica, Puebla, 2011 Inside the code GNU Licence

II Escuela de Optica Biomedica, Puebla, 2011 Modifiable parameters

II Escuela de Optica Biomedica, Puebla, 2011 Image related parameters

II Escuela de Optica Biomedica, Puebla, 2011 Stokes vector launch

II Escuela de Optica Biomedica, Puebla, 2011 Launch terms Initial position Initial orientation Initial Stokes vector

II Escuela de Optica Biomedica, Puebla, 2011 We can use the three Monte Carlo programs to understand how polarized light travels into scattering media

II Escuela de Optica Biomedica, Puebla, 2011 Light transfer –mono disperse particles

II Escuela de Optica Biomedica, Puebla, 2011 Light transfer –mono disperse particles Experimental results – black circles Monte Carlo – black square Diameter 482 nm, Wavelength was 543 nm. nsphere =1.59

II Escuela de Optica Biomedica, Puebla, 2011 Light transfer –mono disperse particles Experimental results – black circles Monte Carlo – black square Diameter 308 nm, Wavelength was 543 nm. nsphere =1.59

II Escuela de Optica Biomedica, Puebla, 2011 Poly-disperse solutions Gamma distribution of particles

II Escuela de Optica Biomedica, Puebla, 2011 Poly-disperse solutions Comparison with Evans Results from a slab in reflectance Incident I=[ ]

II Escuela de Optica Biomedica, Puebla, 2011 Poly-disperse solutions -DLP

II Escuela de Optica Biomedica, Puebla, 2011 Map of polarized light distribution d

II Escuela de Optica Biomedica, Puebla, 2011 Map of polarized light distribution d

II Escuela de Optica Biomedica, Puebla, 2011 Map of polarized light distribution d

II Escuela de Optica Biomedica, Puebla, 2011 d d d x y d x y D = 0.01 µm µ s = 0.89 cm -1 = 0.543µm

II Escuela de Optica Biomedica, Puebla, 2011 D = 0.01µm µ s = 0.89 cm -1 = 0.543µm yy d d x y

II Escuela de Optica Biomedica, Puebla, 2011 x y d d d D = 0.48 µm µ s = 0.89 cm -1 = 0.543µm d x y

II Escuela de Optica Biomedica, Puebla, 2011 D = 0.48 µm µ s = 0.89 cm -1 = 0.543µm d yy d x y

II Escuela de Optica Biomedica, Puebla, 2011 Isosurface Pol= 0.5 D = 0.01 µm µ s = 0.89 cm -1 = 0.543µm x y d

II Escuela de Optica Biomedica, Puebla, 2011 Isosurface Pol = 0.9 D = 0.48 µm µ s = 0.89 cm -1 = 0.543µm x y d

II Escuela de Optica Biomedica, Puebla, 2011 Poincaré sphere analysis, Ellipticity

II Escuela de Optica Biomedica, Puebla, 2011 Ellipticity 0.01µm10 µm = 543nm 2 scattering events 19 scattering events

II Escuela de Optica Biomedica, Puebla, 2011 Particle effect on polarization Depolarize faster Less forward directed Turn incident polarized light into another linear state Depolarize slower – Large g effect More forward directed Turn incident polarized light into elliptical states Small spheres Large spheres