Inputs and parameters and parameters both represent data computed by a module. An input must come from another modules output. A parameter currently must be statically configured in the configuration file.
It would be very useful if a parameter could also receive its data from another modules output.
Motivation example: module colormap
The module takes a gray scale image and applies a color map on it. It takes the minimum and maximum gray value that should be mapped as parameter. Currently this is a static solution. If these parameters could also come from a previous module, a normalization could be done during the mapping!
Proposed changes
A chain module configuration looks currently like:
module-name
parameter
param-1 = value
<-
input-1 = &existing-variable-1
input-2 = <existing-variable-2-last-use
->
output-1 = >new-variable-3
The operator that create, reference and remove variables must move before the assignment:
module-name
parameter
param-1 = static-value
<-
input-1 &= existing-variable-1
input-2 <= existing-variable-2-last-use
->
output-1 >= new-variable-3
Then they can be used in parameters without interfering with a static value:
module-name
parameter
param-1 = static-value
param-2 &= existing-variable-1
param-3 <= existing-variable-2-last-use
<-
input-1 &= existing-variable-3
input-2 <= existing-variable-4-last-use
->
output-1 >= new-variable-5
Inputs and parameters and parameters both represent data computed by a module. An input must come from another modules output. A parameter currently must be statically configured in the configuration file.
It would be very useful if a parameter could also receive its data from another modules output.
Motivation example: module
colormapThe module takes a gray scale image and applies a color map on it. It takes the minimum and maximum gray value that should be mapped as parameter. Currently this is a static solution. If these parameters could also come from a previous module, a normalization could be done during the mapping!
Proposed changes
A chain module configuration looks currently like:
module-name parameter param-1 = value <- input-1 = &existing-variable-1 input-2 = <existing-variable-2-last-use -> output-1 = >new-variable-3The operator that create, reference and remove variables must move before the assignment:
module-name parameter param-1 = static-value <- input-1 &= existing-variable-1 input-2 <= existing-variable-2-last-use -> output-1 >= new-variable-3Then they can be used in parameters without interfering with a static value:
module-name parameter param-1 = static-value param-2 &= existing-variable-1 param-3 <= existing-variable-2-last-use <- input-1 &= existing-variable-3 input-2 <= existing-variable-4-last-use -> output-1 >= new-variable-5