DOKK / manpages / debian 10 / pfstools / pfsclamp.1.en
pfsclamp(1) General Commands Manual pfsclamp(1)

pfsclamp - Clamp color and luminance channel values to be within the specified range

pfsclamp [--min <minimum>] [--max <maximum>] [--percentile] [--zero] [--rgb]

Use this command to clamp values of luminance and color channels to be within the specified range. I.e. if a value in the channel is above the specified maximum or below specified minimum, set the value to either minimum or maximum.

The command operates directly on XYZ channels.

Lower bound for clamping. Default value: 0.0001 (10^-4)

Upper bound for clamping. Default value: 100000000 (10^8)

Treat given min and max values as a percentile.

Set values out of clamping range to zero, instead of setting to specified maximum and minimum.

Perform clamping in RGB space.

Remove possible out-of-range values, for examples zeros, from memorial image.

Remove 5% of the brightest pixels from the original image.

pfsin(1) pfsout(1)

Please report bugs and comments to Rafal Mantiuk <mantiuk@mpi-sb.mpg.de> and Grzegorz Krawczyk <krawczyk@mpi-sb.mpg.de>.