YUV-HSV color space transformation method and system

A technology of color space and conversion method, which is applied in the field of conversion method and system from YUV to HSV color space, can solve problems such as difficulty in maintaining tables, difficulty in positioning, etc., and achieves the effects of simplifying the amount of calculation, concise operation, and saving time

Inactive Publication Date: 2016-08-10
LETV HLDG BEIJING CO LTD +1
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since the color range is [0,255], if you want to look up the table, the R channel needs a dimension of 256*256, the G channel needs a dimension of 256*256*256, and

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
  • YUV-HSV color space transformation method and system
  • YUV-HSV color space transformation method and system
  • YUV-HSV color space transformation method and system

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0071] In order to make the objectives, technical solutions, and advantages of the present invention clearer, the following further describes the present invention in detail in conjunction with specific embodiments and with reference to the accompanying drawings.

[0072] Such as figure 1 As shown, the present invention provides an embodiment of a method for converting YUV to HSV color space, including:

[0073] Step 101: Convert each pixel of the YUV format picture by looking up the pre-calculated YUV to RGB correspondence table into the corresponding value R’G’B’ in the RGB format with the Y component removed;

[0074] Step 102: Convert the corresponding value R'G'B' in the RGB format of each pixel to the corresponding value in the HSV format.

[0075] Such as figure 2 As shown, another embodiment of the conversion method from YUV to HSV color space provided by the present invention includes:

[0076] Step 201: Convert each pixel of the YUV format picture by looking up the pre-calcu...

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 YUV-HSV color space transformation method and system, relating to the image processing field. The method comprises the steps of: through checking a precomputed YUV-RGB corresponding relation table, converting each pixel point of an image in a YUV format into a corresponding value R'G'B' of an RGB format with Y component being removed; and converting the corresponding value R'G'B' of each pixel in an RGB format into a corresponding value in an HSV format. The algorithm increases an algorithmic speed under the condition of guaranteeing precision, allows a computer to rapidly perform positioning in the table, and converts a YUV channel to an HSV channel fast.

Description

technical field [0001] The present invention relates to the field of image processing, in particular to a conversion method and system from YUV to HSV color space. Background technique [0002] In the current video encoding and decoding process, the format of the image is often YUV format. If image processing is performed on this basis, the color space needs to be converted. Usually, it will be converted to the RGB color space. For a deeper level, it needs to be converted to HSV color space. [0003] In the existing technology, the conversion from YUV to HSV needs to be converted to RGB first, and then converted to HSV. [0004] The traditional YUV to RGB formula is: [0005] R=Y+1.402*(V-128) [0006] G=Y–0.344*(U-128)–0.714*(V-128) [0007] B=Y+1.772*(U-128) [0008] The formula for converting traditional RGB to HSV is [0009] V max =max(R,G,B) [0010] V min =min(R,G,B) [0011] H = ...

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
IPC IPC(8): H04N9/64
CPCH04N9/64
Inventor 杨帆白茂生魏伟蔡砚刚刘阳
Owner LETV HLDG BEIJING CO LTD
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