Navigation: Sources > Source Primitives > Incoherent Source Primitives > Bitmap

 

Bitmap

 

Contact Us: fredsupport@photonengr.com

 

 

 

Description


The Bitmap type Source Primitive uses an image file (*.jpg or *.bmp) to define the spatially varying power and chromatic characteristics of a source definition.  Physical dimensions are applied to the Bitmap source and a user-supplied number of random rays are generated per pixel in the bitmap.  The following algorithm is applied on a pixel-by-pixel basis in order to convert the bitmap image into a rayset:

1.A user-supplied number of rays have their starting positions randomized within each pixel

2.The chromaticity coordinates of the bitmap pixel are calculated

3.Given the user-supplied wavelengths, the weighting of each wavelength is determined using a color synthesis algorithm to match the chromaticity coordinates from (2)

4.The solved weighting factors from (3) are multiplied by any additional user-supplied weighting factors given in the wavelength list

 

Two methods of wavelength generation are allowed; Bitmap and List.  When the Bitmap option is selected, FRED will automatically use three equally weighted wavelengths at 0.46, 0.54 and 0.62 microns.  When the List option is used, the user may supply their own set of discrete wavelengths with customized weighting and the following rules apply:

Fewer than 3 wavelengths: The weights of the wavelengths are given by the pixel's intensity (y-tristimulus) value, regardless of the wavelength

Greater than 3 wavelengths: A color synthesis algorithm is applied to match the pixel's chromaticity coordinates (same as step 3 above)

 

For certain applications, the Bitmap wavelengths option may be insufficient to characterize the system's chromatic response.  If, for example, the system contains spectral filters, then more than three wavelengths may be desired for raytracing and the user should consider using the List wavelength option.

 

 

Navigation


This feature can be accessed in the following ways:

Menu > Create > Source Primitive > Bitmap

Right mouse click on the Optical Sources folder, select Create New Source Primitive > Bitmap

Toolbar button:

 

 

Controls


Control

Inputs / Description

Defaults

Logical Parent

Read-only.  Specifies the source's parent node on the tree.

Optical Sources

Name

Name of the source as it will appear on the tree view.

Bitmap N

Description

Description string that will be visible on the tree view.

 

Parameter Attributes

0

Specifies the total power of the source in units of Watts.

1.0

1

The Select button allows the user to browse to a bitmap image (*.jpg or *.bmp).  After selection, the dialog will update to show the selected file path and pixel count information.

 

2

Specifies the number of random starting ray positions within each pixel.

1

3

Specifies the number of random ray directions emitting from each of the ray positions (parameter 2).  The random directions are selected to lie within the angle cone defined by parameters 5-7.

1

4

Specifies the semi-width of the bitmap along the X axis in document units.

0.5

5

Specifies the semi-width of the bitmap along the Y axis in document units.

0.5

6

Specifies the X semi-angle (degrees) of the cone of rays emitting from each ray position.

90

7

Specifies the Y semi-angle (degrees) of the cone of rays emitting from each ray position.

90

8

Specifies the shape of the emission cone (parameters 6 and 7).  Can either be Ellipse/Circle or Rectangle/Square.

Ellipse/Circle

Wavelength Attributes

Bitmap or List

In the following descriptions, N is the number of ray positions in the source volume (parameter 2) and M is the number of ray directions emitting from each point (parameter 3).

 

When the Bitmap option is selected, FRED will automatically use three equally weighted wavelengths at 0.46, 0.54 and 0.62 microns.  Three rays, one at each wavelength, will emit along the M directions leaving the N positions (i.e. the three rays all have the same starting ray direction).

 

When the List wavelength option is selected, one ray at each of the specified wavelengths will emit along the M directions leaving the N positions.  The wavelength must have non-zero weighting after the color synthesis operation is performed.

Bitmap

Polarization

Polarization

If checked, polarization data for the rays is maintained and stored.

Unchecked

Handedness

Sets the handedness of the polarization state (relevant for non-linear polarization states).  If the ray is propagating towards you, the electric field vector rotates in a clockwise direction for Right handedness and counter-clockwise for Left handedness.

 

Note that for linear polarization, the application of Left or Right handedness is arbitrary. The user may find that the UI display switches handedness depending on the angle of the linear polarization state entered, but this will have no impact on the resulting representation of the linear state.

Right

Ellipticity

Sets the ellipticity of the polarization state, 0 represents linear polarization and 1 represents circular.

0

Angle

Sets the angle of the polarization relative to the X axis.

90

 

OK

Accept settings and close dialog box.

 

Cancel

Discard settings and close dialog box.

 

Apply

Accept settings and keep dialog box open.

 

Help

Access this Help page.

 

 

 

Related Topics


Plane Wave (incoherent)

Point Source (incoherent)

Lambertian Plane

Lambertian Surface

Rayfile Source

Random Volume into a sphere

Ray Fan

Solar Source (simple)

Laser Diode (incoherent)

LED (far-field)

 

 

 

 

 

Copyright © Photon Engineering, LLC