Image Processing Method for Natural Color Changing via Luminance Adjustment
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing image processing methods for changing the color of specific areas in images, such as hair areas, result in unnatural and poor color changing effects due to direct replacement of initial colors with target colors.
Innovation Solution
A computer-implemented method that determines the initial luminance of target pixels based on their initial color values, and then adjusts these color values using color conversion information to match the illumination intensity, thereby enhancing the naturalness and effectiveness of the color changing effect.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If direct replacement of initial color with target color is used, then color changing operation is simple, but color changing effect is unnatural and poor
Solution Approach 1:
The patent applies parameter changes by introducing luminance as an additional parameter to control color transformation. Instead of directly replacing colors, the method converts initial color values to luminance values, applies luminance transformation rules to obtain target luminance, then converts back to color space. This parameter transformation approach (color → luminance → transformed luminance → color) resolves the contradiction by maintaining operational simplicity while achieving natural color changing effects through physics-based luminance relationships.
Solution Approach 2:
The patent uses luminance as an intermediary between initial color and target color. Rather than direct color replacement, the method introduces luminance transformation as a mediating step: initial color values are converted to luminance, luminance transformation rules are applied, and the result is converted back to color space. This intermediary approach ensures natural color transitions by preserving the relationship between color and illumination intensity, resolving the contradiction between simple operation and natural effect.
2Speed
If initial color value is directly replaced by target color, then processing speed is fast, but color matching with illumination intensity is poor
Solution Approach 1:
The patent applies parameter changes by transforming color values to luminance values and back, rather than directly replacing colors. This involves: converting initial color values to luminance values using color space transformation, applying luminance transformation rules to get target luminance, and converting target luminance back to color values. This parameter transformation maintains processing efficiency while achieving precise color matching with illumination intensity through physics-based relationships.
3Manufacturing precision
If luminance transformation rule is applied, then color changing effect matches illumination intensity, but processing complexity increases
Solution Approach 1:
The patent applies parameter changes by transforming color values to luminance values and back, rather than directly replacing colors. This involves: converting initial color values to luminance values using color space transformation, applying luminance transformation rules to get target luminance, and converting target luminance back to color values. This parameter transformation maintains processing efficiency while achieving precise color matching with illumination intensity through physics-based relationships.
Solution Approach 2:
The patent uses luminance as an intermediary between initial color and target color. Rather than direct color replacement, the method introduces luminance transformation as a mediating step: initial color values are converted to luminance, luminance transformation rules are applied, and the result is converted back to color space. This intermediary approach ensures natural color transitions by preserving the relationship between color and illumination intensity, resolving the contradiction between simple operation and natural effect.
Data Source
Figure 1~2
Figure 3~5
Figure 6~8
AI summary
An image processing method and apparatus, and a computer device and a storage medium. The method comprises: determining a target area corresponding to a target object in an image to be processed (S101); on the basis of initial color values of at least some target pixel points corresponding to the target area, determining initial brightnesses corresponding to the at least some target pixel points (S 102); and adjusting the initial color values of the at least some target pixel points on the basis of the initial brightnesses corresponding to the at least some target pixel points, and acquired preset color conversion information of the target area, so as to obtain a target image (S103).