POF-ML
azi - Azimuth
The azi PU computes the azimuth value (also called aspect) of a specified child PU (in particular for DEM).
Syntax
azi(child)
Input
This PU takes in input one PU with one sample per pixel.
Parameters
- child - is the child PU.
Output
The output is a PU with one float sample per pixel (NaN for background).
cur - Curvature
The cur PU computes curvature values of a specified child PU (in particular for DEM).
Syntax
cur(child,curvature)
Input
This PU takes in input one PU with one sample per pixel.
Parameters
- child - is the child PU.
-
curvature - define the curvature to be compute.
- 0 - horizontal
- 1 - vertical
- 2 - tangential
Output
The output is a PU with one float sample per pixel (NaN for background).
cvl - Convolution
The cvl PU computes a user defined convolution of a specified child PU.
Syntax
cvl(child,gain,offset,matrixCoef...)
Input
This PU takes in input one PU with one sample per pixel.
Parameters
- child - is the child PU.
- gain - is the convolution gain.
- offset - is the convolution offset.
- matrixCoef - is the convolution matrix from top left to bottom right.
Output
The output is a PU with one float sample per pixel (NaN for background).
dil - Dilatation
The dil PU performs a dilatation of a specified child PU.
Syntax
dil(child)
Input
This PU takes in input one PU with one sample per pixel.
Parameters
- child - is the child PU.
Output
The output is a PU with one float sample per pixel (NaN for background).
ero - Erosion
The ero PU performs an erosion of a specified child PU.
Syntax
ero(child)
Input
This PU takes in input one PU with one sample per pixel.
Parameters
- child - is the child PU.
Output
The output is a PU with one float sample per pixel (NaN for background).
gra - Gradient
The gra PU computes the gradient of a specified child PU.
Syntax
gra(child,matrix_id,gain,offset)
Input
This PU takes in input one PU with one sample per pixel.
Parameters
- child - is the child PU.
-
matrix_id - is the matrix identifier.
- N - North gradient
- NE - North-East gradient
- E - East gradient
- SE - South-East gradient
- S - South gradient
- SW - South-West gradient
- W - West gradient
- NW - North-West gradient
- 4C - 4-connected gradient
- 8C - 8-connected gradient
- gain - is the gain gradient.
- offset - is the offset gradient.
Output
The output is a PU with one sample per pixel. The output data type is the same as in input.
iso - Isocurve
The iso PU isocurve line according to the specified parameters. The lines drawn have indices, which can be rendered using a lut or cls PU.
Syntax
iso(child,strokeWidth,type,isoValue)
Input
This PU takes in input one PU with one sample per pixel.
Parameters
- child - is the child PU.
- strokeWidth - is the line width (1 or 2 pixels).
- type - is type of isocurve definition:
- enum - the user defines each value of isocurve.
- step - the user defines a step between each isocurve.
- isoValue - depends on the type.
- enum - each comma separated isocurve value.
- step - single step value.
Output
The output is a PU with one sample per pixel. The output data type depends on the isocurve type, unsigned 8-bits integer if "enum" and signed 8-bits integer if "step".
rsd - Round Standard Deviation
The rsd PU computes the standard deviation within a circle around the central pixel.
Syntax
rsd(child,radius)
Input
This PU takes in input one PU with one sample per pixel.
Parameters
- child - is the child PU.
- radius - is the circle radius (from 1 to 30 pixels).
Output
The output is a PU with one float sample per pixel (NaN for background).
sha - Sharpening
The sha PU performs a contrast enhancement using a convolution.
Syntax
sha(child,sharpening_factor)
Input
This PU takes in input one PU with one sample per pixel.
Parameters
- child - is the child PU.
- sharpening_factor - is the factor applied to the convolution matrix. It increase the sharpening effect.
Output
The output is a PU with one sample per pixel. The output data type is the same as in input.
slo - Slope
The slo PU computes the slope value of a specified child PU (in particular for DEM).
Syntax
slo(child)
Input
This PU takes in input one PU with one sample per pixel.
Parameters
- child - is the child PU.
Output
The output is a PU with one float sample per pixel (NaN for background).
stats - Local statistics
The stats PU computes local statistics (mean, standard deviation or coefficient of variation) in a square window around the central pixel. It applied a stretching on the output values according to the specified min/max.
Syntax
stats(child,stat,sws,min,max)
Input
This PU takes in input one PU with one sample per pixel.
Parameters
- child - is the child PU.
- stat - is the desired statistics.
- mean - for local mean,
- stdev - for local standard deviation,
- cv - for local coefficient of variation.
- sws - is the width of the statistics window. Must be an odd value between 1 and 255.
- min - is the minimum value of the stretching.
- max - is the maximum value of the stretching.
Output
The output is a PU with one unsigned int sample per pixel (0 for background).