Method and system for color stretching of RGB mode images

A pattern image and color technology, applied in the field of color stretching methods and systems, can solve problems such as large amount of calculation, and achieve the effect of eliminating the calculation process and reducing the amount of color stretching calculation.

Active Publication Date: 2014-05-21
TENCENT TECH (SHENZHEN) CO LTD
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In the traditional method, when the fragment renderer in the graphics processor performs color stretching on the RGB mode image, it needs to perform stretching calculation on the R color value, G color value and B color value of all texel elements of the texture of the image, for An image with a width of M pixels and a height of N pixels needs to be stretched and calculated M×N×3 times, and the amount of calculation is very large

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
  • Method and system for color stretching of RGB mode images
  • Method and system for color stretching of RGB mode images
  • Method and system for color stretching of RGB mode images

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] Such as figure 1 Shown, in one embodiment, a kind of color stretching method of RGB mode image, comprises the following steps:

[0026] Step S102, acquiring the color value of the texel currently processed by the fragment renderer in the texture of the RGB mode image. The color values ​​include R color values, G color values, and B color values.

[0027] In one embodiment, before step S102, the color stretching method of the above-mentioned RGB mode image further includes the following steps: converting the RGB mode image to be processed into a texture; uploading the texture of the RGB mode image to a graphics processor; The processor preprocesses the texture of the uploaded RGB mode image; obtains the texture elements of the preprocessed texture one by one and sends them to the fragment renderer.

[0028] After the texture of the RGB mode image is uploaded to the graphics processor, the graphics processor performs related processing on the texture. The rasterization...

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

A method for color stretching of RGB mode images comprises the steps of obtaining color values of texture elements currently processed by a fragment renderer in textures of the RGB mode images; reading color stretching values stored on columns corresponding to the color values from RGB stretching value textures; establishing color stretching images of the RGB mode images according to the read color stretching values; and enabling the color stretching values of the color values within the value range of corresponding primary colors to be sequentially stored in channels of the RGB stretching value textures. According to the method, the color stretching values of the currently processed texture elements can be obtained only by utilizing the fragment renderer to search the color stretching values stored by the color values of the currently processed texture elements on the corresponding columns in the corresponding channels in the RGB stretching value textures, the color stretching value calculation process is omitted, and accordingly the color stretching calculation amount is reduced. In addition, a system for color stretching of the RGB mode images is further provided.

Description

【Technical field】 [0001] The invention relates to image processing technology, in particular to a color stretching method and system for RGB mode images. 【Background technique】 [0002] Most colors can be produced by combining red, green, and blue colors with a certain color value. Therefore, red, green, and blue are also called primary colors. The color range of red, green, and blue is 0-255. The image in RGB mode includes R channel, G channel and B channel, which are used to store the R color value, G color value and B color value of all pixels in the image respectively, and the R color value, G color value and B color value of the pixel represent respectively Composite the red, green, blue color values ​​of the pixel's color. When calculating the R color value, G color value, and B color value, the R color value, G color value, and B color value are generally normalized, that is, divided by 255, and the decimal obtained after dividing by 255 is used as The correspondin...

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): G06T3/00
Inventor 姜德强
Owner TENCENT TECH (SHENZHEN) 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