6.9. tracer.presets Submodule¶
6.9.1. tracer.presets.geometry¶
- optrace.tracer.presets.geometry.arizona_eye(adaptation=0.0, pupil=5.7, r_det=8, pos=None)¶
Arizona Eye Model from Schwiegerling J. Field Guide to Visual and Ophthalmic Optics. SPIE Publications: 2004. Includes Eye adaption and chromatic behaviour. Matches different on- and off-axis aberrations of the eye. See the source above for more info.
- Parameters:
- Returns:
Group containing all the elements
- Return type:
- optrace.tracer.presets.geometry.ideal_camera(cam_pos, z_g, b=10, r=6, r_det=6)¶
Create an ideally imaging camera, consisting of a lens and a detector area. Returns a Group of both elements.
- optrace.tracer.presets.geometry.legrand_eye(pupil=5.7, r_det=8.0, pos=None)¶
LeGrand full theoretical eye, a paraxial schematic eye model, taken from Schwiegerling J. Field Guide to Visual and Ophthalmic Optics. SPIE Publications: 2004.
Properties: Infinity adapted eye. Eye approximation by spherical surfaces. Only useful for first order optical properties of the eye.
6.9.2. tracer.presets.image¶
- optrace.tracer.presets.image.ETDRS_chart(s=None, extent=None)¶
ETDRS Chart standard. Source: https://commons.wikimedia.org/wiki/File:ETDRS_Chart_2.svg
- Parameters:
- Returns:
GrayscaleImage object
- Return type:
- optrace.tracer.presets.image.ETDRS_chart_inverted(s=None, extent=None)¶
ETDRS Chart inverted. Edited version of: https://commons.wikimedia.org/wiki/File:ETDRS_Chart_2.svg
- optrace.tracer.presets.image.cell(s=None, extent=None)¶
Stable Diffusion image from https://lexica.art/prompt/960d8351-f474-4cc0-b84b-4e9521754064
- optrace.tracer.presets.image.color_checker(s=None, extent=None)¶
Color checker chart. Source: https://commons.wikimedia.org/wiki/File:X-rite_color_checker,_SahiFa_Braunschweig,_AP3Q0026_edit.jpg
- optrace.tracer.presets.image.documents(s=None, extent=None)¶
Photo of a keyboard and documents on a desk. Source: https://www.pexels.com/photo/documents-on-wooden-surface-95916/
- optrace.tracer.presets.image.eye_test_vintage(s=None, extent=None)¶
Photo of a vintage eye test chart. Source: https://www.publicdomainpictures.net/en/view-image.php?image=284944&picture=eye-test-chart-vintage
- optrace.tracer.presets.image.fruits(s=None, extent=None)¶
Photo of fruits on a tray. Source: https://www.pexels.com/photo/sliced-fruits-on-tray-1132047/
- optrace.tracer.presets.image.grid(s=None, extent=None)¶
White grid on black background with 10x10 cells. Useful for distortion characterization. Source: Own creation.
- Parameters:
- Returns:
GrayscaleImage object
- Return type:
- optrace.tracer.presets.image.group_photo(s=None, extent=None)¶
Photo of a group of people in front of a blackboard. Source: https://www.pexels.com/photo/photo-of-people-standing-near-blackboard-3184393/
- optrace.tracer.presets.image.hong_kong(s=None, extent=None)¶
Photo of a Hong Kong street at night. Source: https://www.pexels.com/photo/cars-on-street-during-night-time-3158562/
- optrace.tracer.presets.image.interior(s=None, extent=None)¶
Green sofa in an interior room. Source: https://www.pexels.com/photo/green-2-seat-sofa-1918291/
- optrace.tracer.presets.image.landscape(s=None, extent=None)¶
Landscape image of a mountain and water scene. Source: https://www.pexels.com/photo/green-island-in-the-middle-of-the-lake-during-daytime-724963/
- optrace.tracer.presets.image.siemens_star(s=None, extent=None)¶
Siemens Star Image. Source: Own creation.
- Parameters:
- Returns:
GrayscaleImage object
- Return type:
- optrace.tracer.presets.image.tv_testcard1(s=None, extent=None)¶
TV test card 1. Source: https://commons.wikimedia.org/wiki/File:TestScreen_square_more_colors.svg
- optrace.tracer.presets.image.tv_testcard2(s=None, extent=None)¶
TV test card 2. Source: https://commons.wikimedia.org/wiki/File:Bulgarian_colour_testcard.png
6.9.3. tracer.presets.light_spectrum¶
- optrace.tracer.presets.light_spectrum.FDC: LightSpectrum¶
Spectral Lines F, D, C
- optrace.tracer.presets.light_spectrum.F_eC_: LightSpectrum¶
Spectral Lines F’, e, C’
- optrace.tracer.presets.light_spectrum.FdC: LightSpectrum¶
Spectral Lines F, d, C
- optrace.tracer.presets.light_spectrum.FeC: LightSpectrum¶
Spectral Lines F, e, C
- optrace.tracer.presets.light_spectrum.a: LightSpectrum¶
Standard Illuminant A. Typical, domestic, tungsten-filament lighting. Color temperature of 2856K.
- optrace.tracer.presets.light_spectrum.c: LightSpectrum¶
Standard Illuminant C. Obsolete, average / north sky daylight. Color temperature of 6774K.
- optrace.tracer.presets.light_spectrum.d50: LightSpectrum¶
Standard Illuminant D50. Horizon light. Color temperature of 5003K.
- optrace.tracer.presets.light_spectrum.d55: LightSpectrum¶
Standard Illuminant D55. Mid-morning/mid-afternoon daylight. Color temperature of 5503K.
- optrace.tracer.presets.light_spectrum.d65: LightSpectrum¶
Standard Illuminant D65. Noon daylight. Color temperature of 6504K
- optrace.tracer.presets.light_spectrum.d75: LightSpectrum¶
Standard Illuminant D75. North sky daylight. Color temperature of 7504K.
- optrace.tracer.presets.light_spectrum.e: LightSpectrum¶
Standard Illuminant E. Equal energy radiator with a color temperature of 5455K.
- optrace.tracer.presets.light_spectrum.f11: LightSpectrum¶
Standard Illuminant F11. Narrowband triband fluorescent lamp in R, G, B regions. Color temperature of 4000K.
- optrace.tracer.presets.light_spectrum.f2: LightSpectrum¶
Standard Illuminant F2. Fluorescent lamp with two semi-broadband emissions. Color temperature of 4230K.
- optrace.tracer.presets.light_spectrum.f7: LightSpectrum¶
Standard Illuminant F7. Broadband fluorescent lamp with multiple phosphors. Color temperature of 6500K.
- optrace.tracer.presets.light_spectrum.led_b1: LightSpectrum¶
Standard Illuminant LED-B1. Blue excited phosphor type LED with a color temperature of 2733K.
- optrace.tracer.presets.light_spectrum.led_b2: LightSpectrum¶
Standard Illuminant LED-B2. Blue excited phosphor type LED with a color temperature of 2998K.
- optrace.tracer.presets.light_spectrum.led_b3: LightSpectrum¶
Standard Illuminant LED-B3. Blue excited phosphor type LED with a color temperature of 4103K.
- optrace.tracer.presets.light_spectrum.led_b4: LightSpectrum¶
Standard Illuminant LED-B4. Blue excited phosphor type LED with a color temperature of 5109K.
- optrace.tracer.presets.light_spectrum.led_b5: LightSpectrum¶
Standard Illuminant LED-B5. Blue excited phosphor type LED with a color temperature of 6598K.
- optrace.tracer.presets.light_spectrum.led_bh1: LightSpectrum¶
Standard Illuminant LED-BH1. Hybrid type white LED with added red. Color temperature of 2851K.
- optrace.tracer.presets.light_spectrum.led_rgb1: LightSpectrum¶
Standard Illuminant LED-RGB1. Tri-led RGB source with a color temperature of 2840K.
- optrace.tracer.presets.light_spectrum.led_v1: LightSpectrum¶
Standard Illuminant LED-V1. Violet enhanced blue excited phosphor LED with a color temperature of 2724K.
- optrace.tracer.presets.light_spectrum.led_v2: LightSpectrum¶
Standard Illuminant LED-V2. Violet enhanced blue excited phosphor LED with a color temperature of 4070K.
- optrace.tracer.presets.light_spectrum.rgb_lines: LightSpectrum¶
Spectral Lines 450, 550, 650nm with a power ratio producing neutral D65 white
- optrace.tracer.presets.light_spectrum.srgb_b: LightSpectrum¶
Exemplary sRGB B Primary Spectrum
- optrace.tracer.presets.light_spectrum.srgb_b_power_factor¶
Power ratios for white mixing from sRGB primaries
- optrace.tracer.presets.light_spectrum.srgb_g: LightSpectrum¶
Exemplary sRGB G Primary Spectrum
- optrace.tracer.presets.light_spectrum.srgb_g_power_factor¶
Power ratios for white mixing from sRGB primaries
- optrace.tracer.presets.light_spectrum.srgb_r: LightSpectrum¶
Exemplary sRGB R Primary Spectrum
- optrace.tracer.presets.light_spectrum.srgb_r_power_factor¶
Power ratios for white mixing from sRGB primaries
- optrace.tracer.presets.light_spectrum.srgb_w: LightSpectrum¶
Exemplary sRGB White Spectrum
6.9.4. tracer.presets.psf¶
- optrace.tracer.presets.psf.airy(r=1.0)¶
Airy disk kernel, where d is the diameter of the zeroth order.
- Parameters:
r (float) – resolution limit in µm (half the core airy disk diameter) in µm
- Returns:
image object
- Return type:
- optrace.tracer.presets.psf.circle(d=1.0)¶
Two dimensional circle kernel with diameter d.
- Parameters:
d (float) – circle diameter in µm
- Returns:
image object
- Return type:
- optrace.tracer.presets.psf.gaussian(sig=0.5)¶
Two dimensional gaussian kernel. d describes the diameter in µm of the function that approximately matches the zeroth order of an airy disk.
- Parameters:
sig (float) – gaussian sigma in µm
- Returns:
image object
- Return type:
- optrace.tracer.presets.psf.glare(sig1=0.5, sig2=3.0, a=0.15)¶
Glare kernel. This glare consists of two gaussian kernels. See gaussian() for details on the diameter. Factor a describes the relative amplitude of the larger kernel to the smaller one.
- Parameters:
- Returns:
image object
- Return type:
- optrace.tracer.presets.psf.halo(sig1=0.5, sig2=0.25, r=4.0, a=0.3)¶
Halo kernel. It consists of a central 2D gaussian and an outer gaussian ring.
- Parameters:
- Returns:
image object
- Return type:
6.9.5. tracer.presets.refraction_index¶
- optrace.tracer.presets.refraction_index.BAF10: RefractionIndex¶
N_BAF10 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=BAF10&page=SCHOTT
- optrace.tracer.presets.refraction_index.BAK1: RefractionIndex¶
N-BAK1 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=BAK1&page=SCHOTT
- optrace.tracer.presets.refraction_index.BASF64: RefractionIndex¶
N-BASF64 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SCHOTT-BaSF&page=N-BASF64
- optrace.tracer.presets.refraction_index.BK7: RefractionIndex¶
N-BK7 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=BK7&page=SCHOTT
- optrace.tracer.presets.refraction_index.BaF2: RefractionIndex¶
BaF2 (Barium fluoride), see https://refractiveindex.info/?shelf=main&book=BaF2&page=Malitson
- optrace.tracer.presets.refraction_index.COC: RefractionIndex¶
Topas COC 5013 at 25°C, see G. Khanarian, Hoechst Celanese - “Optical properties of cyclic olefin copolymers”, Table 1
- optrace.tracer.presets.refraction_index.COP: RefractionIndex¶
Zeonex E48R, see https://refractiveindex.info/?shelf=other&book=ZeonexE48R&page=Sultanova
- optrace.tracer.presets.refraction_index.CR39: RefractionIndex¶
CR-39, PADC, Poly(allyl diglycol carbonate), see Conrady equation coefficients from ZEMAX model for CR39, thread https://community.zemax.com/got-a-question-7/cr-39-eyeglass-lenses-677 attached file ophthalmic.zip, line 50 in ophthalmic.agf
- optrace.tracer.presets.refraction_index.CaF2: RefractionIndex¶
CaF2 (Calcium fluoride), see https://refractiveindex.info/?shelf=main&book=CaF2&page=Malitson
- optrace.tracer.presets.refraction_index.F2: RefractionIndex¶
N-F2 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SCHOTT-F&page=F2
- optrace.tracer.presets.refraction_index.FK51A: RefractionIndex¶
N-FK51A (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=FK51A&page=SCHOTT
- optrace.tracer.presets.refraction_index.Finalite: RefractionIndex¶
Sola Finalite from https://eyewiki.org/Lens_Material_Properties
- optrace.tracer.presets.refraction_index.K5: RefractionIndex¶
N-K5 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SCHOTT-K&page=N-K5
- optrace.tracer.presets.refraction_index.LAF2: RefractionIndex¶
N-LAF2 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SCHOTT-LaF&page=N-LAF2
- optrace.tracer.presets.refraction_index.LAK22: RefractionIndex¶
N-LAK22 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SCHOTT-LaK&page=N-LAK22
- optrace.tracer.presets.refraction_index.LAK8: RefractionIndex¶
N-LAK8 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SCHOTT-LaK&page=N-LAK8
- optrace.tracer.presets.refraction_index.LASF44: RefractionIndex¶
N-LASF44 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SCHOTT-LaSF&page=N-LASF44
- optrace.tracer.presets.refraction_index.LASF9: RefractionIndex¶
N-LASF9 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=LASF9&page=SCHOTT
- optrace.tracer.presets.refraction_index.LF5: RefractionIndex¶
N-LF5 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SCHOTT-LF&page=LF5
- optrace.tracer.presets.refraction_index.MR7: RefractionIndex¶
- optrace.tracer.presets.refraction_index.MgF2: RefractionIndex¶
MgF2 (Magnesium fluoride), see https://refractiveindex.info/?shelf=main&book=MgF2&page=Dodge-o
- optrace.tracer.presets.refraction_index.Ormex: RefractionIndex¶
Essilor Ormex from https://eyewiki.org/Lens_Material_Properties
- optrace.tracer.presets.refraction_index.PC: RefractionIndex¶
Polycarbonate, see # https://refractiveindex.info/?shelf=organic&book=polycarbonate&page=Sultanova
- optrace.tracer.presets.refraction_index.PDSM: RefractionIndex¶
Polydimethylsiloxane, see https://refractiveindex.info/?shelf=organic&book=polydimethylsiloxane&page=Schneider-RTV615
- optrace.tracer.presets.refraction_index.PEI: RefractionIndex¶
Polyetherimide, see https://refractiveindex.info/?shelf=organic&book=polyetherimide&page=Zhang
- optrace.tracer.presets.refraction_index.PET: RefractionIndex¶
Polyethylene terephthalate, see https://refractiveindex.info/?shelf=organic&book=polyethylene_terephthalate&page=Zhang linearly extrapolated from 400nm to 380nm
- optrace.tracer.presets.refraction_index.PMMA: RefractionIndex¶
Poly(methyl methacrylate), see https://refractiveindex.info/?shelf=organic&book=poly%28methyl_methacrylate%29&page=Szczurowski
- optrace.tracer.presets.refraction_index.PS: RefractionIndex¶
Polystyren, see https://refractiveindex.info/?shelf=3d&book=plastics&page=ps
- optrace.tracer.presets.refraction_index.PVC: RefractionIndex¶
PVC, see https://refractiveindex.info/?shelf=organic&book=polyvinil_chloride&page=Zhang linearly extrapolated for 380 and 390nm
- optrace.tracer.presets.refraction_index.SF10: RefractionIndex¶
N-SF10 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SF10&page=SCHOTT
- optrace.tracer.presets.refraction_index.SF11: RefractionIndex¶
N-SF11 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SF11&page=SCHOTT
- optrace.tracer.presets.refraction_index.SF5: RefractionIndex¶
N-SF5 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SF5&page=SCHOTT
- optrace.tracer.presets.refraction_index.SF6: RefractionIndex¶
N-SF6 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SCHOTT-SF&page=SF6
- optrace.tracer.presets.refraction_index.SF66: RefractionIndex¶
N-SF66 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SCHOTT-SF&page=N-SF66
- optrace.tracer.presets.refraction_index.SK14: RefractionIndex¶
N-SK14 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SCHOTT-SK&page=N-SK14
- optrace.tracer.presets.refraction_index.SSK8: RefractionIndex¶
N-SSK8 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SCHOTT-SSK&page=N-SSK8
- optrace.tracer.presets.refraction_index.Spectralite: RefractionIndex¶
Sola Spectralite from https://eyewiki.org/Lens_Material_Properties
- optrace.tracer.presets.refraction_index.air: RefractionIndex¶
Air at 550nm, 15°C, 1013.25hPa, neglecting dispersion, see https://refractiveindex.info/?shelf=other&book=air&page=Ciddor
- optrace.tracer.presets.refraction_index.diamond: RefractionIndex¶
Diamond, see https://refractiveindex.info/?shelf=main&book=C&page=Peter
- optrace.tracer.presets.refraction_index.ethanol: RefractionIndex¶
C2H5OH (Ethanol), see https://refractiveindex.info/?shelf=organic&book=ethanol&page=Sani-formula
- optrace.tracer.presets.refraction_index.fused_silica: RefractionIndex¶
Fused silica (fused quartz), see https://refractiveindex.info/?shelf=glass&book=fused_silica&page=Malitson
- optrace.tracer.presets.refraction_index.ice: RefractionIndex¶
Water Ice at -7°C, see https://refractiveindex.info/?shelf=3d&book=crystals&page=ice (from table in full database record) but interpolated so it starts at 380nm
- optrace.tracer.presets.refraction_index.soda_lime: RefractionIndex¶
Clear soda lime silica window glass
- optrace.tracer.presets.refraction_index.vacuum: RefractionIndex¶
Vacuum
- optrace.tracer.presets.refraction_index.water: RefractionIndex¶
Water at 20.0°C, see https://refractiveindex.info/?shelf=main&book=H2O&page=Daimon-20.0C
6.9.6. tracer.presets.spectral_lines¶
all lines specified with name, element, color
- optrace.tracer.presets.spectral_lines.all_line_combinations: list¶
all line combination presets in one list
6.9.7. tracer.presets.spectrum¶
- optrace.tracer.presets.spectrum.xyz_observers: list¶
x, y, z observer curve spectrum presets in one list