layerfunctions: layerfunctions

layerfunctionsR Documentation

layerfunctions

Description

An S4 class for functions that operate on layers or their parameters

Usage

## S4 method for signature 'layerfunction'
initialize(
  .Object,
  fun = function(x) {     x },
  returnLayer = TRUE,
  frames = integerSet()
)

layerfunction(...)

runLayerFunction(input, inputFun, classes, frameNumber)

Details

action.layer, action.data, etc... are convenient ways to add layerfunctions to layers.

Slots

fun

the name of a function or an function.

returnLayer

logical. If TRUE the function in fun accepts and returns layer objects. If FALSE it accepts parameters like a normal R function and returns a named list of parameters.

frames

an integerSet object. Controls on which frames the function runs. The default behaviour is that it runs on all frames.

Examples

print(1+1)

R-graphic-design/RGD documentation built on Jan. 2, 2023, 10:30 p.m.