generateCI()
, which this function wraps.
generateCI2IFC(stimuli, responses, baseimage, rdata, saveasjpeg = TRUE, filename = "", targetpath = "./cis", antiCI = FALSE, scaling = "independent", constant = 0.1)
none
, constant
, matched
, or independent
(default)scaling='constant'
)'matched'
, and will match the range of the intensity of the pixels to
the range of the base image pixels. This scaling is non linear and depends on the range of both base image
and noise pattern. It is truly suboptimal, because it shifts the 0 point of the noise (that is, pixels that would
have not changed base image at all before scaling may change the base image after scaling and vice versa). It is
however the quick and dirty way to see how the CI noise affects the base image.For more control, use 'constant'
scaling, where the scaling is independent of
the base image and noise range, but where the choice of constant is arbitrary (provided by the user with t
the constant
parameter). The noise is then scale as follows: scaled <- (ci + constant) / (2*constant)
.
Note that pixels can take intensity values between 0 and 1 If your scaled noise exceeds those values,
a warning will be given. You should pick a higher constant (but do so consistently for different classification images
that you want to compare). The higher the constant, the less visible the noise will be in the resulting image.
When creating multiple classification images a good strategy is to find the lowest constant that works for all
classification images. This can be automatized using the autoscale
function.