Description Usage Arguments Value Examples
View source: R/findLEDContrast.R
Calculates the LED contrast that result in a pursued contrast at the photoreceptor level, given certain time-averaged LED illuminances and given cone fundamentals.
1 | findLEDContrasts(pursuedContr, lmean, ConeFund, maxContrast = T)
|
lmean |
time-averaged luminances of the LEDs |
ConeFund |
cone funamentals to be used |
maxContrast |
use the maximal contrasts at the photoreceptor levels that can be achieved technically while keeping the contrast ratios from pursuedContrast constant? |
pursuedContrast |
the contrast in the photoreceptors that should be achieved |
LED contrasts that result in the desired contrasts at the photoreceptor level
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
#### set given values
## mean luminance of primaries
lmean <- c(red = 20, green = 40, blue = 3, cyan = 20)
## create M-cone isolating stimlui
pursuedContr <- c(rod = 0, scone = 0, mcone = 20, lcone = 0)
## Find LED contrast that result in pursued contrasts
LEDcontrast100 <- findLEDContrasts(pursuedContr, lmean, ConeFund)
# Calculate the maximal photoreceptor contrast this results in
maxContrast <- findPhotoreceptorContrasts(LEDcontrast100, lmean, ConeFund)
createPresetFile("mcone", "außen", LEDcontrast100, c(20, 40, 3, 20), lmean)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.