Journal "Software Engineering"
a journal on theoretical and applied science and technology
ISSN 2220-3397
Issue N3 2018 year
When you reduce raster digital images, you need a sharpening effect. When processing a series of photos (for example, using Actions in Adobe Photoshop), setting the sharpness manually for each photo reduces the responsiveness of the work. Setting the fixed gain of sharpness for all photos in the series does not allow to take the features of each picture into account. In this connection, there is a need for an algorithm that automatically selects the level of sharpening and takes into account the specific features of a particular photograph. The limitation of sharpening is the appearance of artifacts that manifest themselves in the form of dark and light haloes, visual thickening of fine lines, the appearance of very light and very dark dots. With sharpening, pixels that are darker than their surroundings become even darker, those that are lighter than surrounding pixels become lighter. This can lead to the fact that the color of the pixels after the conversion, associated with the sharpening, goes beyond the color gamut. When exiting for gamut, clipping algorithms come into play, which can distort the color tone of the pixels, lead to the fusion of different colors. Such distortions manifest themselves as unacceptable artifacts of sharpening. The presented algorithm for automatic adjustment of the sharpness of raster digital images is based on limiting the level of artifacts that occur when the color leaves behind the gamut of the color space. To select the sharpness adjustment parameter, a cubic approximation is used for the dependence of the proportion of the color values beyond the coverage on the gamut.