Color replacement method base on HSV space

A space conversion and color technology, applied in color signal processing circuits, image communication, electrical components, etc., can solve problems such as impractical and inconsistent with color perception characteristics

Inactive Publication Date: 2010-06-30
CHINA DIGITAL VIDEO BEIJING
View PDF0 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although this method is simple and easy to implement, it is not practical, because under normal circumstances, it is necessary to replace all colors within a certain range, such as replacing the entire blue sky in the background. At this time, what is to be replaced is not a color, but is a large range of blue
It is more difficult to replace directly in the RGB space, because the RGB space is the space of the superposition coefficients of the three components of the three primary colors, which itself does not conform to the color perception characteristics of the human eye, so it is difficult to model in this space for color replacement

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Color replacement method base on HSV space
  • Color replacement method base on HSV space

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The present invention will be described in detail below in conjunction with specific embodiments and accompanying drawings.

[0031] The core idea of ​​the present invention is: firstly convert the input image from RGB space to HSV space, and then convert from HSV space to RGB space after completing color replacement in HSV space.

[0032] The HSV space is a space that describes a color through its chroma (Hue), saturation (Saturation) and brightness (Value). The brightness here does not refer to the mixed brightness (luma) in the YUV space, but another measure of color brightness. The concept of HSV space and the color space conversion between RGB and HSV space are well-known technologies in the art, and you can refer to related documents or network resources: http: / / en.wikipedia.org / wiki / HSL_color_space.

[0033] The present invention has the following input parameters: source color, target color, hue aperture (hue_aperture) and hue soft border (hue_soft border), sat...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a color replacement method base on an HSV space, which belongs to the technical filed of special effect processing and analysis of videos and images. The method comprises the following steps: firstly, converting a source color and a target color from an RGB space to the HSV space; then calculating the difference values delta H, delta S and delta V between the components H, S and V of the source color and the components H, S and V of the target color; then, converting the input images from the RGB space to the HSV space; respectively adding the delta H, the delta S and the delta V into the components H, S and V requiring color pixel replacement in the input images; and finally, converting the images after the color replacement from the HSV space to the RGB space. The invention realizes the replacement effect on the colors in a certain range in the images or the videos, and is particularly suitable for being used in high-quality and high-efficiency special effect treatment and analysis of videos or images.

Description

technical field [0001] The invention belongs to the technical field of special effect processing and synthesis of videos and images, and in particular relates to a color replacement method based on HSV space. The invention is especially suitable for high-quality, high-efficiency video or image special effect processing and synthesis. Background technique [0002] The RGB color mode is a color standard in the industry. It obtains a variety of colors by changing the three color channels of red (R), green (G), and blue (B) and superimposing them with each other. , RGB is the color that represents the three channels of red, green, and blue. This standard includes almost all the colors that human vision can perceive. It is one of the most widely used color systems at present. The RGB color mode uses the RGB model to assign an intensity value in the range of 0 to 255 to the RGB component of each pixel in the image. For example: the R value of pure red is 255, the G value is 0, a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04N1/62H04N9/70
Inventor 见良郑鹏程刘铁华孙季川
Owner CHINA DIGITAL VIDEO BEIJING
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products