POF-ML
dispar - Disparity analysis
The dispar PU performs a disparity analysis. For each pixel of the work PU, this PU looks for the best homologous point in the reference PU within an exploration window around the central pixel. The comparison is performed by comparing statistics computed within a statistics window. It produces in output a Pu with 3 samples per pixel: dX displacement, dY displacement and the confidence c.
Syntax
dispar(refChild,workChild,eww,ewh,sws)
Input
This PU takes in input two PU with one sample per pixel.
Parameters
- refChild - is the child PU used as the "reference image".
- workChild - is the child PU used as the "working image".
- eww - is the width of the exploration window (should be odd).
- ewh - is the height of the exploration window (should be odd).
- sws - is the size of the statistics window.
Output
The output is a PU with three float sample per pixel.
double - Double value
The double PU produces an uniform PU with the specified value.
Syntax
double(value)
Input
This PU takes no input PU.
Parameters
- value - is the double value to be set.
Output
The output is a PU with one double sample per pixel.
float - Float value
The float PU produces an uniform PU with the specified value.
Syntax
float(value)
Input
This PU takes no input PU.
Parameters
- value - is the float value to be set.
Output
The output is a PU with one float sample per pixel.
for - For loop
The for PU allows to perfom a POF-ML script on several products and aggregate the result using the specified operator.
Syntax
for(styleToBeApplied,aggregationOperator[,index1,index2,...,indexN])
Input
The input is defined by the aggregation operator.
Parameters
- styleToBeApplied - is the POF-ML script to be repeated on each product.
- aggregationOperator - is the name of the aggregation PU.
- indexN - is the desired product index. If not specified, all the products will be used.
Output
The output is defined by the aggregation operator.
if - If condition
The if PU allows to write a conditional test. For each output pixel, if the testChild pixel meet the condition, then the pixel from childIsTrue is kept, else the pixel from childIsFalse is kept.
Syntax
if(testChild,testOperator,testParameter,childIfTrue[,childIfFalse])
Input
This PU takes in input three PU with one sample per pixel.
Parameters
- testChild - is the child PU used for the test condition.
- testOperator - is the desired operator among "eq", "ne", "lt", "gt", "le", "ge", "in" and "out".
- testParameter - is the test parameter. It can be a simple value or a range depending on the test operator:
- value for "eq", "ne", "lt", "gt", "le" or "ge"
- range for "in" or "out"
- childIfTrue - is the child PU used to fill the pixel if the test is true.
- childIfFalse - is the child PU used to fill the pixel if the test is false. Optional, if not specified, the pixel will be set to background.
Output
The output is a PU with one sample per pixel. The output data type is the same as the childIfTrue PU.
int - Integer value
The int PU produces an uniform PU with the specified value.
Syntax
int(value)
Input
This PU takes no input PU.
Parameters
- value - is the integer value to be set.
Output
The output is a PU with one signed integer sample per pixel.
uint - Unsigned integer value
The uint PU produces an uniform PU with the specified value.
Syntax
uint(value)
Input
This PU takes no input PU.
Parameters
- value - is the unsigned integer value to be set.
Output
The output is a PU with one unsigned integer sample per pixel.