class documentation

class VirtualColourimetricScope:

View In Hierarchy

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_function Undocumented
Instance Variable g_function Undocumented
Instance Variable ls Undocumented
Instance Variable r_function 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_rSensor sensitivity for R, as CSV. used with polygeist.colour.Illuminant (string)
filename_sensor_gSensor sensitivity for G, as CSV. used with polygeist.colour.Illuminant (string)
filename_sensor_bSensor sensitivity for B, as CSV. used with polygeist.colour.Illuminant (string)
filename_illuminationLight source for scope, as CSV. used with polygeist.colour.Illuminant (string)
wlWavelength 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_functionTransmission or reflectance function, as a function of self.wl (np.array)
gammaBrightness of the light source in intensity, default = 1. (float)
Returns
(r, g, b) Tristimulus values from the scope (Tuple, float)
b_function =

Undocumented

g_function =

Undocumented

ls =

Undocumented

r_function =

Undocumented

wl =

Undocumented