class documentation
class VirtualColourimetricScope:
Non-physically (Not path tracing) based model of an imaging device.
| Method | __init__ |
Constructor for Virtual Scope, builds sensor and illumination functions required to decompose RGB images |
| Method | response |
Produce a tristimulus response for the virtual scope, given a filter function |
| Instance Variable | b |
Undocumented |
| Instance Variable | g |
Undocumented |
| Instance Variable | ls |
Undocumented |
| Instance Variable | r |
Undocumented |
| Instance Variable | wl |
Undocumented |
def __init__(self, filename_sensor_r, filename_sensor_g, filename_sensor_b, filename_illumination, wl=np.arange( 300, 1100)):
Constructor for Virtual Scope, builds sensor and illumination functions required to decompose RGB images
| Parameters | |
| filename | Sensor sensitivity for R, as CSV. used with polygeist.colour.Illuminant (string) |
| filename | Sensor sensitivity for G, as CSV. used with polygeist.colour.Illuminant (string) |
| filename | Sensor sensitivity for B, as CSV. used with polygeist.colour.Illuminant (string) |
| filename | Light source for scope, as CSV. used with polygeist.colour.Illuminant (string) |
| wl | Wavelength as a range from start to finish in nm (np.array) |
| Returns | |
| Object (VirtualColourimetricScope) | |
def response(self, filter_function, gamma=1.0):
Produce a tristimulus response for the virtual scope, given a filter function
| Parameters | |
| filter | Transmission or reflectance function, as a function of self.wl (np.array) |
| gamma | Brightness of the light source in intensity, default = 1. (float) |
| Returns | |
| (r, g, b) Tristimulus values from the scope (Tuple, float) | |