Percent Clip

Feature Description

Percent Clip applies linear stretching between specified minimum and maximum percentage pixel values. Pixels outside the specified percentage range are pushed to the maximum or minimum output pixel value.
For example, if most of the data is distributed between 20 and 100, with only a small portion at the extreme ends, using Percent Clip with a percentage set to 2% will find the gray values corresponding to the 2% and 98% percentiles. These two values are then used as the new minimum and maximum gray values for the original image, followed by linear stretching. Values within the lowest 2% range are directly assigned the output minimum value, and values within the highest 2% range are directly assigned the output maximum value. Data between 20 and 100 is then adjusted to the range of 0 to 255, thereby enhancing the image contrast. The returned result type is a raster dataset (RasterRDD).

For a description of image stretching, please refer to Minimum Maximum.

Parameter description

Parameter Name Default Value Parameter Interpretation Parameter Type
Input RDD   The RasterRDD to be analyzed. RasterRDD
Low-end Truncation Percentage
(Optional)
2.0 Specifies the percentage cutoff point for the low-end values. The default is 2, meaning the lowest 2% of values are pushed to the minimum target pixel value. Double
High-end Truncation Percentage
(Optional)
98.0 Specifies the percentage cutoff point for the high-end values. The default is 98, meaning the highest 2% of values are pushed to the maximum target pixel value. Double
Minimum Target Pixel Value
(Optional)
0 The minimum target pixel value. Original pixel values will be stretched to lie between the minimum and maximum target pixel values. The default is 0. Integer
Maximum Output Pixel Value
(Optional)
255 The maximum target pixel value. Original pixel values will be stretched to lie between the minimum and maximum target pixel values. The default is 255. Integer