Learn R Programming

rcicr (version 0.3.4.1)

autoscale: Determines optimal scaling constant for a list of ci's

Description

Determines optimal scaling constant for a list of ci's

Usage

autoscale(cis, saveasjpegs = TRUE, targetpath = "./cis")

Arguments

cis
List of cis, each of which are a list containing the pixel matrices of at least the noise pattern ($ci) and if the noise patterns need to be written to jpegs, als the base image ($base)
saveasjpegs
Boolean, when set to true, the autoscaled noise patterns will be combined with their respective base images and saved as jpegs (using the key of the list as name)
targetpath
Optional string specifying path to save jpegs to (default: ./cis)

Value

List of scaled noise patterns and determind scaling factor