{'fraction_non_alphanumeric': 0.016926201760324982, 'fraction_numerical': 0.0, 'mean_word_length': 5.482456140350878, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Color Search and Replace

We present an interactive image enhancement technique to adjust the global color composition of an image by finding and replacing color gradients. We show how color gradient transformations can perform the basic operations of color editing. To recolor an image, the user designates a mapping of source color gradients to corresponding target color gradients. Each color gradient can be represented by a spherical parameterization, consisting of its midpoint color, contrast radius, as well as hue and luminance angles, in order to give the user separate and independent control over color shift, contrast adjustment, and color variation. Color gradients provide not only a flexible way of selecting color features but also a powerful way of manipulating image colors, as each mapping between a source and a target color gradient defines an affine color transformation. To determine the region of influence of each color mapping, perceptual similarity between colors is evaluated by applying Shepard's law of generalization to color differences. Through a feature-based warping approach, our color warping algorithm applies a continuous, nonlinear, volumetric deformation to the color space in order to approximate the requested color mappings. By making interactive color correction easier to control, our technique may prove useful in a variety of color image enhancement tasks in digital photography, video processing, and information visualization.