CN110012278A - A kind of image rendering method, device, computer equipment and storage medium - Google Patents

A kind of image rendering method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110012278A
CN110012278A CN201910362114.3A CN201910362114A CN110012278A CN 110012278 A CN110012278 A CN 110012278A CN 201910362114 A CN201910362114 A CN 201910362114A CN 110012278 A CN110012278 A CN 110012278A
Authority
CN
China
Prior art keywords
image
blue light
pixel
rendered
colour temperature
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910362114.3A
Other languages
Chinese (zh)
Other versions
CN110012278B (en
Inventor
邓朔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910362114.3A priority Critical patent/CN110012278B/en
Publication of CN110012278A publication Critical patent/CN110012278A/en
Application granted granted Critical
Publication of CN110012278B publication Critical patent/CN110012278B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/73Colour balance circuits, e.g. white balance circuits or colour temperature control

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Generation (AREA)

Abstract

The embodiment of the invention discloses a kind of image rendering method, device, computer equipment and storage mediums;The embodiment of the present invention can carry out vision significance detection to image to be rendered, obtain the original significance value of pixel in the image to be rendered;The correlated colour temperature of pixel described in color positions information evaluation based on the pixel in color space;Based on the correlated colour temperature, blue ray radiation reference color temperature, the original significance value of the pixel is adjusted, obtains the blue light significance value of the pixel;When the blue light significance value of the pixel meets default anti-blue light condition, will the corresponding rendering color temperature adjustment of the image to be rendered to anti-blue light rendering colour temperature;The image to be rendered is rendered based on anti-blue light rendering colour temperature, image after being rendered.The program can promote image displaying quality while blue ray radiation preventing.

Description

A kind of image rendering method, device, computer equipment and storage medium
Technical field
The present invention relates to image technique fields, and in particular to a kind of image rendering method, device, computer equipment and storage Medium.
Background technique
Terminal such as mobile phone have been important components indispensable in contemporary life, to some healthy hidden dangers of user's bring Also it is gradually found by researchers, such as blue ray radiation etc..Blue light is primarily referred to as wavelength and (receives in 400-450nm in general sense Rice) between light, the energy that this part light carries is very big, can be directed through crystalline lens, damage to macula area, another Research conclusion refers to that the mankind receive blue ray radiation before sleeping and will affect the biological clock of human body, and so as to cause insomnia, no matter which kind of is tied By it is unsoundness hidden danger that the mankind, which receive blue ray radiation,.
In order to reduce the harm of blue ray radiation, it is currently suggested some anti-blue light schemes and applies in video playing, for example, The anti-blue light mode that some video websites propose, anti-blue light scheme carries out global adaptation primarily directed to the color of image at present, To reduce blue ray radiation.However, due to will be to all display picture material colour casts, to Mr. Yu using current anti-blue light scheme The image that a little picture materials itself are issued without blue light can make its colour cast more serious, reduce image displaying quality.
Summary of the invention
The embodiment of the present invention provides a kind of image rendering method, device, computer equipment and storage medium, can promote figure As display quality.
The embodiment of the present invention provides a kind of image rendering method, comprising:
Vision significance detection is carried out to image to be rendered, obtains the original conspicuousness of pixel in the image to be rendered Value;
The correlated colour temperature of pixel described in color positions information evaluation based on the pixel in color space;
Based on the correlated colour temperature, blue ray radiation reference color temperature, the original significance value of the pixel is adjusted, is obtained To the blue light significance value of the pixel;
When the blue light significance value of the pixel meets default anti-blue light condition, by the corresponding wash with watercolours of the image to be rendered Dyeing temperature is adjusted to anti-blue light rendering colour temperature;
The image to be rendered is rendered based on anti-blue light rendering colour temperature, image after being rendered.
Correspondingly, the embodiment of the present invention also provides a kind of image rendering device, comprising:
Detection unit obtains pixel in the image to be rendered for carrying out vision significance detection to image to be rendered Original significance value;
Colour temperature assessment unit, for based on pixel described in color positions information evaluation of the pixel in color space Correlated colour temperature;
Significance value acquiring unit, for being based on the correlated colour temperature, blue ray radiation reference color temperature, to the original of the pixel Beginning significance value is adjusted, and obtains the blue light significance value of the pixel;
Unit is adjusted, it, will be described to wash with watercolours for when the blue light significance value of the pixel meets default anti-blue light condition It contaminates the corresponding rendering color temperature adjustment of image to anti-blue light and renders colour temperature;
Rendering unit is rendered for being rendered based on anti-blue light rendering colour temperature to the image to be rendered Image afterwards.
In one embodiment, the significance value acquiring unit may include:
Weight Acquisition subelement, for obtaining the phase of the pixel based on the correlated colour temperature, blue ray radiation reference color temperature Close colour temperature weight;
Subelement is weighted, is weighted processing for the significance value according to the correlated colour temperature weight to the pixel, Obtain the pixel blue light significance value.
In one embodiment, Weight Acquisition subelement is used for:
Obtain colour temperature difference of the correlated colour temperature relative to the lowest color temperature of the blue ray radiation reference color temperature;
Calculate the colour temperature ratio between the colour temperature difference and the highest colour temperature of the blue ray radiation reference color temperature;
Using the colour temperature ratio as the correlated colour temperature weight of the pixel.
In one embodiment, the colour temperature assessment unit, can be specifically used for: based on the pixel in color space Color positions information and determine colour temperature metewand with reference to color location information;Picture is calculated according to the colour temperature metewand The correlated colour temperature of element.
In one embodiment, the adjusting unit, comprising:
Subelement is constructed, the whole blue light for constructing image to be rendered for the blue light significance value according to all pixels is significant Property value;
Regulator unit, for determining to meet and preset when the entirety blue light significance value being greater than default blue light threshold value Anti-blue light condition, and the corresponding rendering color temperature adjustment of the image to be rendered to anti-blue light is rendered into colour temperature.
In one embodiment, the building subelement, is specifically used for:
The blue light significance value of all pixels is added, blue light significance value summation is obtained;
Calculate the ratio between blue light significance value summation and the pixel quantity of image to be rendered;
The whole blue light significance value of image to be rendered is constructed according to the ratio.
In one embodiment, regulator unit is used for: being determined based on blue ray radiation reference color temperature and color temperature adjustment intensity Anti-blue light renders colour temperature;The corresponding rendering color temperature adjustment of the image to be rendered to anti-blue light is rendered into colour temperature.
In one embodiment, the detection unit, comprising:
Gray proces subelement obtains gray level image for carrying out grayscale processing to the image to be rendered;
Distance obtains subelement, for being obtained in image to be rendered between pixel and other pixels based on the gray level image The sum of Gray homogeneity;
Significance value obtains subelement, for obtaining the original of pixel in image to be rendered based on the sum of described Gray homogeneity Significance value.
In one embodiment, the distance obtains subelement, is used for
Count the corresponding pixel quantity of each grayscale in gray level image;
The corresponding pixel quantity of each gray scale, which is converted to corresponding cryptographic Hash, to be indicated;
Based on the Gray homogeneity in the cryptographic Hash, image to be rendered between pixel and other pixels, Gray homogeneity is calculated The sum of.
In one embodiment, image rendering device can also include: decoding unit;
The decoding unit obtains decoded image for being decoded to video data;It is determined from decoded image Current image to be rendered.
The embodiment of the invention also provides a kind of computer equipments, including memory and processor;The memory storage There is a plurality of instruction, the processor loads the instruction in the memory, to execute any figure provided in an embodiment of the present invention As the step in rendering method.
In addition, the embodiment of the present invention also provides a kind of storage medium, the storage medium is stored with a plurality of instruction, the finger It enables and being loaded suitable for processor, to execute the step in any image rendering method provided in an embodiment of the present invention.
The embodiment of the present invention can carry out vision significance detection to image to be rendered, obtain picture in the image to be rendered The original significance value of element;The related colour of pixel described in color positions information evaluation based on the pixel in color space Temperature;Based on the correlated colour temperature, blue ray radiation reference color temperature, the original significance value of the pixel is adjusted, institute is obtained State the blue light significance value of pixel;It, will be described to wash with watercolours when the blue light significance value of the pixel meets default anti-blue light condition It contaminates the corresponding rendering color temperature adjustment of image to anti-blue light and renders colour temperature;Based on anti-blue light rendering colour temperature to the figure to be rendered As being rendered, image after being rendered.Since the program can detecte vision significance region, and in the indigo plant of salient region When light radiation level reaches anti-blue light requirement, the rendering colour temperature for adjusting image carries out anti-blue light rendering, without to progress global color Temperature adjustment (such as adjusts color temps all in video), can promote image displaying quality while blue ray radiation preventing.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 a is the schematic diagram of a scenario of image rendering method provided in an embodiment of the present invention;
Fig. 1 b is the flow chart of image rendering method provided in an embodiment of the present invention;
Fig. 2 a is the flow chart of video playing provided in an embodiment of the present invention;
Fig. 2 b is video playing page schematic diagram provided in an embodiment of the present invention;
Fig. 2 c is the architecture diagram of video playing provided in an embodiment of the present invention;
Fig. 3 a is the structural schematic diagram of image rendering device provided in an embodiment of the present invention;
Fig. 3 b is another structural schematic diagram of image rendering device provided in an embodiment of the present invention;
Fig. 3 c is another structural schematic diagram of image rendering device provided in an embodiment of the present invention;
Fig. 3 d is another structural schematic diagram of image rendering device provided in an embodiment of the present invention;
Fig. 3 e is another structural schematic diagram of image rendering device provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of image rendering method, device, computer equipment and storage medium.Wherein, the figure As rendering device can integrate in computer equipment, which can be the equipment such as terminal, server, wherein eventually End can be mobile phone, tablet computer, laptop, individual calculus (PC, Personal Computer), miniature processing box Etc. equipment.
The embodiment of the present invention will be integrated in image rendering device terminal (namely the executing subject of image rendering method for eventually End) for introduce the present invention program.It will be appreciated that being set when image rendering device is integrated in other computers such as server In standby when (i.e. the executing subject of image rendering method is other computer equipments such as server), implementation procedure and terminal are executed Process is same or like, can be with the image rendering process of reference terminal.
So-called image rendering can refer to the process of and generate image with from model.Model be with the language of strict difinition or Description of person's data structure for three-dimension object, it includes geometry, viewpoint, texture and illumination information etc..Rendering application at present In drawing field, for example, can apply in video playing, rendering display etc. is carried out to video image.
It include server 20 and terminal 10 etc. the embodiment of the invention provides object detecting system with reference to Fig. 1 a;Server Pass through network connection between 20 and terminal 10.
Wherein, server 20 may be used to provide image data to terminal, for example, video data is sent to terminal 10 Play etc..
Wherein, terminal 10 can be used for obtaining image to be rendered from image data, for example, solving video data Code etc. obtains image to be rendered;Then, vision significance detection is carried out to image to be rendered, obtains pixel in image to be rendered Original significance value;The correlated colour temperature of color positions information evaluation pixel based on pixel in color space;Based on related colour Temperature, blue ray radiation reference color temperature, are adjusted the original significance value of pixel, obtain the blue light significance value of pixel;Work as picture When the blue light significance value of element meets default anti-blue light condition, by the corresponding rendering color temperature adjustment of image to be rendered to anti-blue light wash with watercolours Dyeing temperature;Image to be rendered is rendered based on anti-blue light rendering colour temperature, image after being rendered.In one embodiment, When the blue light significance value of pixel is unsatisfactory for default anti-blue light condition, according to the corresponding rendering colour temperature of image to be rendered to image It is rendered.
In addition, terminal 10 can also show image after rendering.For example, when image to be rendered is certain frame image of video, At this point it is possible to show image after rendering, video playing is realized.
It is described in detail separately below.It should be noted that the following description sequence is not as excellent to embodiment The restriction of choosing sequence.
A kind of image rendering method provided in an embodiment of the present invention, this method can be executed by the processor of terminal, such as be schemed Shown in 1b, the detailed process of the image rendering method be can be such that
101, vision significance detection is carried out to image to be rendered, obtains the original conspicuousness of pixel in image to be rendered Value.
Wherein, image to be rendered can be the image for currently needing to render, which can be the video image in video, Or other need to render the image of display, for example, game image etc..
For example, in one embodiment, being decoded to video data, decoded image is obtained;From decoded image Determine current image to be rendered.
Wherein, vision significance detection (Visual Saliency Detection) refers to and simulates people's by intelligent algorithm Visual characteristic extracts the marking area (i.e. the interested region of the mankind) in image.Vision significance (Visual Attention Mechanism, VA, i.e. vision noticing mechanism) when referring in face of an image, the mankind are automatically handled area-of-interest And selectively ignore region of loseing interest in, these people's area-of-interests are referred to as salient region.It is significant by vision Property detection can detecte out present image to the attraction degree and distributing area (i.e. salient region) of user.
Wherein, the significance value of pixel indicates pixel to the attraction degree of the mankind such as user, by carrying out vision to image Conspicuousness detects, the significance value shown in available image.
Wherein, vision significance detection mode can there are many, for example, may include the side based on histogram contrast Method, the significance value of each pixel are the color differences by it with pixel every other in image to determine;It for another example, can be with Method based on local contrast first divides the image into zonule, and the dividing method of use is the segmentation based on figure, and basic point Cutting thought is weight of the dissimilar degree as side using each pixel as the vertex of non-directed graph, between two pixels, Ask connection same area in two vertex while weight limit be less than connection different zones vertex while MINIMUM WEIGHT Weight carries out vertex conclusion and region merging technique in an iterative process;The significance value in each region is by it and other all areas Space length and the color difference of area pixel number weighting determine;Space length is the Euclidean distance of two regional barycenters, compared with Far region distributes smaller weight.
For another example, in one embodiment, the global contrast of some pixel on the entire image can be calculated, that is, is based on Sum of the distance of other all pixels in color calculates the saliency value of the pixel in the pixel and image.For example, step " is treated Render image and carry out vision significance detection, obtain the original significance value of pixel in image to be rendered ", may include:
Grayscale processing is carried out to image to be rendered, obtains gray level image;
The sum of the Gray homogeneity in image to be rendered between pixel and other pixels is obtained based on gray level image;
The original significance value of pixel in image to be rendered is obtained based on the sum of Gray homogeneity.
For example, can significance value by the sum of Gray homogeneity as pixel, or the sum of Gray homogeneity is changed Operation, using operation result as the significance value of pixel.
Wherein, can have can be a variety of for the mode of the sum of Gray homogeneity between pixel and other pixels, for example, can be first The gray scale difference value (i.e. Gray homogeneity or grayscale distance) for calculating pixel and other all pixels, then, by all gray scale difference values It adds up, after obtaining Gray homogeneity.
For another example, in one embodiment, in order to promote the sum of Gray homogeneity calculating speed, to promote vision significance The efficiency of detection can also be simplified the calculating of the sum of Gray homogeneity using hash algorithm, promote detection efficiency.For example, step " base The sum of the Gray homogeneity in image to be rendered between pixel and other pixels is obtained in gray level image ", may include:
Count the corresponding pixel quantity of each grayscale in gray level image;
The corresponding pixel quantity of each gray scale, which is converted to corresponding cryptographic Hash, to be indicated, the cryptographic Hash of pixel is obtained;
Based on the Gray homogeneity in cryptographic Hash, image to be rendered between pixel and other pixels, the sum of Gray homogeneity is calculated.
For example, with original image IorigFor come introduce vision significance detection:
(1), by original image IorigIt is handled, is converted into gray level image Igray
(2), the gray level information for counting gray level image, as counted the overall pixel number of each grayscale or gray scale in gray level image Amount.
(3), the overall pixel quantity of each grayscale or gray scale is converted into corresponding cryptographic Hash to identify, obtains Hash table; The cryptographic Hash of pixel is such as calculated by following formula:
Hash(Igray(x, y))=graypixelscount, graypixelscount is the overall pixel of some grayscale Quantity, Igray(x, y) is the grayscale or gray scale of pixel.
Wherein, Hash table has recorded the total number of each grayscale in image, that is, has counted current grey level histogram.
Conspicuousness pretreatment is properly termed as with above-mentioned (1), (2) (3).
(4), whole image is traversed, its conspicuousness is calculated for each display, is specifically calculated in the following way:
Wherein, Saliency (x, y) is the significance value of pixel (x, y), and Hash (i) is the cryptographic Hash of grayscale i, Igray (x, y) is the grayscale of pixel (x, y).
It through the above steps can be to the significance value for calculating each pixel in image to be rendered.
102, the correlated colour temperature of the color positions information evaluation pixel based on pixel in color space.
Wherein, the color positions information of pixel can be location information of the pixel in some color space, for example, building It may include the hue coordinate under difference space coordinate system in the case where having found color space coordinates system.The color space can To include rgb color space, alternatively, the XYZ color space after rgb color space conversion, for example, can be to rgb color space After carrying out standard handovers, XYZ color space is obtained, the color difference location information of pixel may include in XYZ hue coordinate system Hue coordinate position, such as (x, y).
Wherein, colour temperature is the measurement unit indicated in light comprising color component, and colour temperature unit is K (Kelvin's temperature Degree).Color temperature is indicated with absolute temperature K, is to heat a standard blackbody (such as platinum), temperature is increased to face when a certain degree Color starts to be gradually changed by red, orange, yellow, green, blue, indigo (royal purple), purple, utilized the characteristic of this photochromic variation, the light of light source When color is photochromic identical as black matrix, the temperature of black matrix at that time is referred to as to the color temperature of the light source.Due to glow discharge spot lamp one As be discrete spectrum, cannot fit like a glove with the continuous spectrum of black body radiation, so all using correlated colour temperature come approximate description Its color characteristics.
Since colour temperature and blue ray radiation level are in correlation, the value of colour temperature can be commented by current pixel chromaticity coordinates value Estimate, specifically, can be commented based on color positions information of the pixel in color space and with reference to color positional information calculation colour temperature Estimate coefficient;The correlated colour temperature of pixel is assessed according to colour temperature metewand.
For example, can be based on the color positions information of pixel and with reference to the position difference information between color location information Position difference information calculates colour temperature metewand.
For example, can be commented by following formula so that color positions information includes the hue coordinate xy under XYZ chromaticity coordinates as an example Estimate the colour temperature or correlated colour temperature of pixel:
T=-437n3+3601n2-6861n+5514.31
N=(x-0.3320)/(y-0.1858)
Wherein, n is colour temperature assessment system, and 0.3320,0.1858 is reference color coordinate value, and T is correlated colour temperature, subsequent use TEMP (X) is indicated.
The correlated colour temperature of each pixel can be calculated by the color positions information of pixel: for example, by following formula Calculate the correlated colour temperature Tem (x, y) of pixel (x, y):
Tem (x, y)=TEMP (Iori(x,y))
Wherein, TEMP (Iori(x, y)) it indicates to calculate original image I using the correlated colour temperature formula of above-mentioned TorigIn show The correlated colour temperature shown.
In the embodiment of the present invention, the timing between step 101 and step 102 is not limited by serial number, may be performed simultaneously, It can be executed before step 101 with step 102, can specifically be set according to actual needs.
103, it is based on correlated colour temperature, blue ray radiation reference color temperature, the original significance value of pixel is adjusted, picture is obtained The blue light significance value of element.
Wherein, blue ray radiation reference color temperature can be reference color temperature corresponding to blue ray radiation horizontality, specifically can be with It sets according to actual needs.Wherein, blue ray radiation level can there are many definition modes, for example, blue ray radiation pair can be used Eye injury degree is defined as highest blue ray radiation is horizontal, minimum blue ray radiation is horizontal, alternatively, blue light wavelength can also be used To define etc..
Wherein, the maximum colour temperature of blue ray radiation reference color temperature can be the corresponding colour temperature of highest blue ray radiation, blue ray radiation The lowest color temperature of reference color temperature can be the corresponding colour temperature of minimum blue ray radiation.The corresponding colour temperature of highest blue ray radiation, minimum indigo plant The corresponding colour temperature of light radiation can be set according to actual needs, for example, the corresponding colour temperature of highest blue ray radiation is 6500K, it is minimum The corresponding colour temperature of blue ray radiation is 1200K.
Wherein, blue light significance value can indicate that pixel attracts degree and blue ray radiation horizontal user in image.In reality In the application of border, since the significance value of the uninterested content pixel of user is zero, which is actually to calculate figure As in user concern or interested salient region in pixel blue light levels.
In the embodiment of the present invention, by detection user concern or interested salient region and salient region The blue light levels of pixel, the blue light levels adjustment rendering colour temperature based on pixel in salient region can be with to reduce blue ray radiation Image displaying quality is promoted while reducing blue ray radiation.
Wherein, can be had based on correlated colour temperature and blue ray radiation reference color temperature to the mode that significance value is adjusted more Kind, for example, adjustment amplitude can be calculated according to correlated colour temperature and blue ray radiation reference color temperature, according to adjustment amplitude to conspicuousness Value is adjusted.For another example, be also based on correlated colour temperature, blue ray radiation reference color temperature calculates an adjustment weight, be based on Weight is weighted significance value.
For example, step 103 " is based on correlated colour temperature, blue ray radiation reference color temperature, adjusts to the original significance value of pixel It is whole, obtain the blue light significance value of pixel ", may include:
The correlated colour temperature weight of pixel is obtained based on correlated colour temperature, blue ray radiation reference color temperature;
It is weighted processing to the significance value of pixel according to correlated colour temperature weight, obtains pixel blue light significance value.
Wherein, calculate colour temperature weight mode can there are many, for example, two colour temperatures can be selected out of reference color temperature, Weight is calculated with correlated colour temperature.
In one embodiment, in order to promote the accuracy of blue light assessment, it can choose the highest colour temperature, most of reference color temperature Low color temperature.Specifically, step 103 " the correlated colour temperature weight of pixel is obtained based on correlated colour temperature, blue ray radiation reference color temperature ", can To include:
Obtain colour temperature difference of the correlated colour temperature relative to the lowest color temperature of blue ray radiation reference color temperature;
Calculate the colour temperature ratio between colour temperature difference and the highest colour temperature of blue ray radiation reference color temperature;
Using colour temperature ratio as the correlated colour temperature weight of pixel.
For example, correlated colour temperature weight can be calculated by following formula:
weight(x,y)∈[0,1]
The highest blue ray radiation colour temperature of 6500K blue ray radiation reference color temperature, 1200K are minimum blue ray radiation colour temperature.In reality In the application of border, if colour temperature goes beyond the scope, truncation is carried out to the value beyond codomain range.
After correlated colour temperature weight is calculated, processing, Ke Yican can be weighted to the significance value of each pixel Examine following formula:
Iblue(x, y)=weight (x, y) * Saliency (x, y)
Wherein, Saliency (x, y) is the significance value of pixel, and weight (x, y) is the correlated colour temperature weight of pixel.
It can calculate the blue light significance value of each pixel through the above steps, in practical application, can be generated opposite Blue light figure, the opposite blue light figure include the blue light significance value of pixel.
104, when the blue light significance value of pixel meets default anti-blue light condition, by the corresponding rendering color of image to be rendered Temperature is adjusted to anti-blue light rendering colour temperature.
Wherein, rendering colour temperature is the required colour temperature used when rendering to image to be rendered.Generally in image rendering, Rendering parameter is had, which includes the parameters such as the rendering colour temperature of image.
Wherein, anti-blue light rendering colour temperature can be the rendering colour temperature with anti-blue light effect, based on the rendering colour temperature to figure The blue ray radiation of image can be reduced as carrying out rendering, there is anti-blue light effect.The cardinal principle of anti-blue light is by original 400- Light shift between 450nm is to warm colour region, and therefore, the embodiment of the present invention can be based on blue light significance value by the rendering of image Color temperature adjustment is to the colour temperature with anti-blue light effect, so that carrying out rendering to image realizes anti-blue light effect.
The embodiment of the present invention, the blue ray radiation that image is assessed by the blue light significance value of pixel is horizontal, can be promoted The accuracy and practicability of blue ray radiation assessment, because user is often concerned with interested picture material.
Wherein, the condition of anti-blue light rendering can be carried out to image by presetting anti-blue light condition, can be set according to actual needs It is fixed, when the blue light significance value of pixel meets default anti-blue light condition, adjusts rendering colour temperature and carry out anti-blue light rendering processing, when When the blue light significance value of pixel is unsatisfactory for default anti-blue light condition, anti-blue light rendering processing, script-based wash with watercolours can not be made Dyeing temperature is rendered.
For example, default anti-blue light condition may include: the sum of blue light significance value of all pixels greater than preset threshold, or Person, the ratio that blue light significance value is greater than the total pixel of pixel Zhan of threshold value is greater than preset ratio, alternatively, pixel in presumptive area The sum of blue light significance value is greater than preset threshold etc..
It in one embodiment, can be with blue light conspicuousness pixel-based in order to promote the accuracy that blue ray radiation is assessed The whole blue light significance value of son building image, utilizes the blue ray radiation water of whole blue light significant assessment salient region of image It is flat.
Wherein, whole blue light significance value is used to measure the whole blue ray radiation level of salient region in image.
At this point, the whole blue light significance value that default anti-blue light condition may include image is greater than default blue light threshold value, Meet default anti-blue light condition when the whole blue light significance value of image is greater than default blue light threshold value.
Specifically, step is " corresponding by image to be rendered when the blue light significance value of pixel meets default anti-blue light condition Rendering color temperature adjustment to anti-blue light render colour temperature ", may include:
The whole blue light significance value of image to be rendered is constructed according to the blue light significance value of all pixels;
When whole blue light significance value is greater than default blue light threshold value, determines and meet default anti-blue light condition, and will be to wash with watercolours It contaminates the corresponding rendering color temperature adjustment of image to anti-blue light and renders colour temperature.
In one embodiment, when whole blue light significance value is not more than default blue light threshold value, determination is unsatisfactory for presetting Anti-blue light condition illustrates that blue ray radiation level is lower, can not make anti-blue light rendering processing, is using the rendering of original render colour temperature It can.
Wherein, blue light significance value pixel-based construct whole blue light significance value mode can there are many, for example, It in one embodiment, can be based on the blue light significance value of all pixels in order to promote blue light assessment accuracy and efficiency The ratio of summation and image total pixel number amount constructs whole blue light significance value.
For example, step " constructs the whole blue light conspicuousness of image to be rendered according to the blue light significance value of all pixels It is worth ", may include:
The blue light significance value of all pixels is added, blue light significance value summation is obtained;
Calculate the ratio between blue light significance value summation and the pixel quantity of image to be rendered;
The whole blue light significance value of image to be rendered is constructed according to ratio.
Wherein, the pixel quantity of image to be rendered is the pixel quantity summation of image, high using pixel number in the width of image When amount indicates, it can be calculated by the wide height of image, for example, width (W) * high (H).
In one embodiment, for ease of calculation, promote computational efficiency, can blue light significance value to pixel carry out Normalization (or standardization) processing.For example,
I′blue=Normalize (Iblue)
Wherein, I 'blueFor the blue light significance value after normalization.
According to foregoing description, the whole significance value of image to be rendered can be calculated using following formula:
Wherein, I 'blue(x, y) is the blue light significance value after pixel normalization, and W is the width of image, and H is the height of image, Unit can be pixel (pixel).
According to above-mentioned the step of introducing, can calculate in image to be rendered whole blue light significance value after, can be with base It is adjusted in rendering colour temperature of the whole blue light significance value to image.Specific regulative mode can be such that
When whole blue light significance value is greater than default blue light threshold value, the rendering colour temperature of image to be rendered is adjusted, The rendering color temperature adjustment of image to be rendered to anti-blue light is such as rendered into colour temperature;
When whole blue light significance value is not more than default blue light threshold value, it is believed that salient region blue light levels are relatively low, Without color temperature adjustment.
Wherein, presetting blue light threshold value (threshold) is threshold value for measuring blue ray radiation level height, and range can be with Between 0 to 1, such as threshold ∈ [0,1], which can set according to demand.
In one embodiment, it when needing to adjust rendering colour temperature, in order to promote the accuracy of color temperature adjustment, can introduce Adjusting strength (strength) combines blue ray radiation reference color temperature to adjust rendering colour temperature;It is preset when whole blue light significance value is greater than When blue light threshold value, determine that (i.e. anti-blue light renders color to target rendering colour temperature based on blue ray radiation reference color temperature and color temperature adjustment intensity Temperature);The corresponding rendering color temperature adjustment of image to be rendered to target is rendered into colour temperature.
Wherein, adjusting strength (strength) is the amplitude or degree of color temperature adjustment.The adjusting strength can be 0 to 1 Between, such as strength ∈ [0,1].
In one embodiment, it can be calculated based on the minimum blue ray radiation colour temperature of the highest of reference color temperature, adjusting strength Target colour temperature.For example, target colour temperature (i.e. anti-blue light rendering colour temperature) can be calculated in the following way:
DestTem=(1.0-strength) * (6500K-1200K)+1200K
The corresponding colour temperature of highest blue ray radiation is 6500K, and the corresponding colour temperature of minimum blue ray radiation is 1200K.
105, image to be rendered is rendered based on anti-blue light rendering colour temperature, image after being rendered.
After the rendering color temperature adjustment to image, rendering image can be rendered according to the colour temperature after adjusting. Image can reduce blue ray radiation after rendering.
Specifically, when whole blue light significance value is greater than default blue light threshold value, by the rendering colour temperature tune of image to be rendered Section to anti-blue light renders colour temperature;
When whole blue light significance value is not more than default blue light threshold value, it is believed that salient region blue light levels are relatively low, At this point it is possible to which the original render colour temperature based on image to be rendered is rendered.
For example, after obtaining whole blue light significance value Blue, as its value Blue < threshold, it is believed that this figure As blue light levels it is relatively low, then without colour temperature change, when its significance value be greater than blue light threshold value (threshold) when, then according to Colour temperature change is carried out according to adjusting strength strength, carries out anti-blue light rendering.
Image rendering method provided in an embodiment of the present invention can be applied to be shown in scene in various image renderings, for example, It can be applied to the rendering to video image, with blue ray radiation preventing and video display quality can be promoted.
From the foregoing, it will be observed that the embodiment of the present invention can carry out vision significance detection to image to be rendered, figure to be rendered is obtained The original significance value of pixel as in;The correlated colour temperature of color positions information evaluation pixel based on pixel in color space; Based on correlated colour temperature, blue ray radiation reference color temperature, the original significance value of pixel is adjusted, the blue light for obtaining pixel is significant Property value;When the blue light significance value of pixel meets default anti-blue light condition, by the corresponding rendering color temperature adjustment of image to be rendered Colour temperature is rendered to anti-blue light;Image to be rendered is rendered based on anti-blue light rendering colour temperature, image after being rendered.Due to this Scheme can detecte vision significance region, and when the blue ray radiation level of salient region reaches anti-blue light requirement, adjustment The rendering colour temperature of image carries out anti-blue light rendering, without adjusting the global colour temperature of progress (such as to color temp tune all in video It is whole), image displaying quality can be promoted while blue ray radiation preventing.
In addition, the embodiment of the present invention can determine whether to make at anti-blue light based on the blue ray radiation level of salient region Reason, so that anti-blue light processing is more accurate and practical.
Citing, is described in further detail by the method according to described in above example below.
In the present embodiment, middle terminal will be specifically integrated with the image rendering device and will be applied be in video playing scene Example is illustrated.
As shown in Figure 2 a, a kind of video broadcasting method provided in an embodiment of the present invention, detailed process are as follows:
201, terminal obtains video data, and is decoded to video data, obtains decoded video image.
Wherein, the acquisition of video data can there are many, for example, being obtained from network side, or can be obtained from being locally stored It takes.
In the embodiment of the present invention, terminal can be decoded to obtain video image to be rendered with video data, for example, with reference to Fig. 2 c is the architecture diagram of video playback module, including rendering module and conspicuousness preprocessing module, rendering module can decode Video image, the video image are original image to be rendered.
In one embodiment, image rendering mode of the invention can be set under anti-blue light mode, when user is broadcasting When opening anti-blue light model when putting video, the image rendering method provided can be implemented using the present invention and carry out video image wash with watercolours Dye display, achievees the effect that blue ray radiation preventing.
For example, terminal can show that the video playing page, video playing page setup have anti-blue light mode to open control (such as Button etc.);When user for anti-blue light mode open control carry out opening operation when, can triggering terminal send anti-blue light at Reason instruction is decoded video data, then holds at this point, terminal can obtain video data according to anti-blue light process instruction The following step of row carries out rendering broadcasting, realizes anti-blue light effect.
For example, terminal shows that the video playing page of some video, the video playing page include video pictures with reference to Fig. 2 b With anti-blue light mode button;When user needs anti-blue light effect, opening operation such as point can be carried out to anti-blue light mode button The operations triggering anti-blue light process instruction such as hit, slide, terminal can be obtained according to the instruction video data and decoding execute it is subsequent It renders process and plays the video pictures with anti-blue light effect.
202, terminal carries out vision significance detection to video image, obtains the original conspicuousness of pixel in video image Value.
For example, with reference to Fig. 2 c after decoding obtains original image, conspicuousness detection can be carried out to original image.Specifically Ground, detection mode can be with the introductions of above-described embodiment.
203, the correlated colour temperature of color positions information evaluation pixel of the terminal based on pixel in color space.
Specifically, the assessment mode of correlated colour temperature can refer to the introduction of above-described embodiment.
For example, after conspicuousness detection, the blue light assessment of salient region can be carried out with reference to Fig. 2 c;Blue light assessment master To include the blue light levels assessment of salient region, can be assessed using the calculating entirety blue light significance value of above-mentioned introduction.
204, terminal obtains the correlated colour temperature weight of pixel based on correlated colour temperature, blue ray radiation reference color temperature.
For example, colour temperature difference of the available correlated colour temperature relative to the lowest color temperature of blue ray radiation reference color temperature;It calculates Colour temperature ratio between colour temperature difference and the highest colour temperature of blue ray radiation reference color temperature;Using colour temperature ratio as the related colour of pixel Warm weight.Specifically calculation refers to above-described embodiment.
205, terminal is weighted processing to the significance value of pixel according to correlated colour temperature weight, and the blue light for obtaining pixel is aobvious Work property value.
For example, being weighted after calculating correlated colour temperature weight to significance value, using significance value after weighting as pixel Blue light significance value.
206, terminal constructs the whole blue light significance value of image to be rendered according to the blue light significance value of all pixels.
For example, the blue light significance value of all pixels is added, blue light significance value summation is obtained;Calculate blue light conspicuousness The ratio being worth between summation and the pixel quantity of image to be rendered;The whole blue light conspicuousness of image to be rendered is constructed according to ratio Value.Wherein, the pixel quantity of image to be rendered is the pixel quantity summation of image, high using pixel quantity expression in the width of image When, it can be calculated by the wide height of image, for example, width (W) * high (H).
In one embodiment, for ease of calculation, promote computational efficiency, can blue light significance value to pixel carry out Normalization (or standardization) processing.For example,
I′blue=Normalize (Iblue)
Wherein, I 'blueFor the blue light significance value after normalization.
According to foregoing description, the whole significance value of image to be rendered can be calculated using following formula:
Wherein, I 'blue(x, y) is the blue light significance value after pixel normalization, and W is the width of image, and H is the height of image, Unit can be pixel (pixel).
207, when whole blue light significance value is greater than default blue light threshold value, by the original render color temperature adjustment of video image Colour temperature is rendered to anti-blue light;Rendering is carried out to video image according to anti-blue light rendering colour temperature to show.
For example, when whole blue light significance value is greater than default blue light threshold value, illustrating the indigo plant of salient region with reference to Fig. 2 c Light level is higher, needs to make anti-blue light processing, specifically, determines target based on blue ray radiation reference color temperature and color temperature adjustment intensity It renders colour temperature (i.e. anti-blue light rendering colour temperature);The corresponding rendering color temperature adjustment of image to be rendered to target is rendered into colour temperature.
Wherein, adjusting strength (strength) is the amplitude or degree of color temperature adjustment.The adjusting strength can be 0 to 1 Between, such as strength ∈ [0,1].
In one embodiment, it can be calculated based on the minimum blue ray radiation colour temperature of the highest of reference color temperature, adjusting strength Target colour temperature.For example, target colour temperature (i.e. anti-blue light rendering colour temperature) can be calculated in the following way:
DestTem=(1.0-strength) * (6500K-1200K)+1200K
208, when whole blue light significance value is not more than default blue light threshold value, according to the original render of video image to view Frequency image carries out rendering and shows.
When whole blue light significance value is not more than default blue light threshold value, show that the blue light levels of salient region are lower, Without making anti-blue light processing, therefore, is rendered using original colour temperature, promote the quality of video playing.
From the foregoing, it will be observed that the embodiment of the present invention it is current can to detect user in video frame by analyzing current frame of display video Region-of-interest (i.e. salient region), the blue ray radiation for counting region-of-interest is horizontal, and then is able to dynamically adjust video pictures Blue light, adjust colour temperature when blue ray radiation level is higher and make anti-blue light processing, do not make anti-indigo plant when blue ray radiation is horizontal lower Light processing;The program solves the defect of global adaptation in traditional anti-blue light, and the program is only in the blue ray radiation water of region-of-interest It puts down and carries out color temperature adjustment in high picture, reduce the entire effect to video content, so that user can both advise to a certain extent The video content keeping away the radiation of blue light, while can not being influenced again by adjustment with the viewing of maximum possible.
In order to better implement above method, correspondingly, the embodiment of the present invention also provides a kind of image rendering device, the figure As rendering device specifically can integrate in computer equipment such as terminal, server equipment.
For example, as shown in Figure 3a, which may include detection unit 301, colour temperature assessment unit 302, shows Work property value acquiring unit 303 adjusts unit 304 and rendering unit 305, as follows:
Detection unit 301 obtains picture in the image to be rendered for carrying out vision significance detection to image to be rendered The original significance value of element;
Colour temperature assessment unit 302, for based on picture described in color positions information evaluation of the pixel in color space The correlated colour temperature of element;
Significance value acquiring unit 303, for being based on the correlated colour temperature, blue ray radiation reference color temperature, to the pixel Original significance value be adjusted, obtain the blue light significance value of the pixel;
Adjust unit 304, for when the blue light significance value of the pixel meets default anti-blue light condition, will it is described to It renders the corresponding rendering color temperature adjustment of image to anti-blue light and renders colour temperature;
Rendering unit 305 obtains wash with watercolours for rendering based on anti-blue light rendering colour temperature to the image to be rendered Image after dye.
In one embodiment, with reference to Fig. 3 b, the significance value acquiring unit 303 may include:
Weight Acquisition subelement 3031 can be used for based on described in the correlated colour temperature, the acquisition of blue ray radiation reference color temperature The correlated colour temperature weight of pixel;
Subelement 3032 is weighted, can be used for the significance value according to the correlated colour temperature weight to the pixel and added Power processing, obtains the pixel blue light significance value.
In one embodiment, Weight Acquisition subelement 3031, can be used for:
Obtain colour temperature difference of the correlated colour temperature relative to the lowest color temperature of the blue ray radiation reference color temperature;
Calculate the colour temperature ratio between the colour temperature difference and the highest colour temperature of the blue ray radiation reference color temperature;
Using the colour temperature ratio as the correlated colour temperature weight of the pixel.
In one embodiment, the colour temperature assessment unit 302, can be specifically used for: based on the pixel in color sky Between in color positions information and determine colour temperature metewand with reference to color location information;It is calculated according to the colour temperature metewand The correlated colour temperature of pixel out.
In one embodiment, with reference to Fig. 3 c, the adjusting unit 304 may include:
Subelement 3041 is constructed, the whole blue light of image to be rendered is constructed for the blue light significance value according to all pixels Significance value;
Regulator unit 3042, for determining and meeting when the whole blue light significance value is greater than default blue light threshold value Default anti-blue light condition, and will the corresponding rendering color temperature adjustment of the image to be rendered to anti-blue light rendering colour temperature.
In one embodiment, the building subelement 3041, can be specifically used for:
The blue light significance value of all pixels is added, blue light significance value summation is obtained;
Calculate the ratio between blue light significance value summation and the pixel quantity of image to be rendered;
The whole blue light significance value of image to be rendered is constructed according to the ratio.
In one embodiment, regulator unit 3042 can be used for: be based on blue ray radiation reference color temperature and color temperature adjustment Intensity determines that anti-blue light renders colour temperature;The corresponding rendering color temperature adjustment of the image to be rendered to anti-blue light is rendered into colour temperature.
In one embodiment, with reference to Fig. 3 d, the detection unit 301 may include:
Gray proces subelement 3011 can be used for carrying out grayscale processing to the image to be rendered, obtain grayscale image Picture;
Distance obtains subelement 3012, can be used for based on pixel in gray level image acquisition image to be rendered and other The sum of Gray homogeneity between pixel;
Significance value obtains subelement 3013, can be used for obtaining picture in image to be rendered based on the sum of described Gray homogeneity The original significance value of element.
In one embodiment, the distance obtains subelement 3012, can be used for
Count the corresponding pixel quantity of each grayscale in gray level image;
The corresponding pixel quantity of each gray scale, which is converted to corresponding cryptographic Hash, to be indicated;
Based on the Gray homogeneity in the cryptographic Hash, image to be rendered between pixel and other pixels, Gray homogeneity is calculated The sum of.
In one embodiment, with reference to Fig. 3 e, image rendering device can also include: decoding unit 306;
The decoding unit 306, can be used for being decoded video data, obtains decoded image;Scheme after decoding Current image to be rendered is determined as in.
When it is implemented, above each unit can be used as independent entity to realize, any combination can also be carried out, is made It is realized for same or several entities, the specific implementation of above each unit can be found in the embodiment of the method for front, herein not It repeats again.
From the foregoing, it will be observed that the image rendering device of the present embodiment can regard image to be rendered by detection unit 301 Feel conspicuousness detection, obtains the original significance value of pixel in the image to be rendered;It is based on by colour temperature assessment unit 302 described The correlated colour temperature of pixel described in color positions information evaluation of the pixel in color space;By 303 base of significance value acquiring unit In the correlated colour temperature, blue ray radiation reference color temperature, the original significance value of the pixel is adjusted, the pixel is obtained Blue light significance value;By adjusting unit 304 when the blue light significance value of the pixel meets default anti-blue light condition, by institute It states the corresponding rendering color temperature adjustment of image to be rendered to anti-blue light and renders colour temperature;The anti-blue light wash with watercolours is based on by rendering unit 305 Dyeing temperature renders the image to be rendered, image after being rendered.Since the program can detecte vision significance area Domain, and when the blue ray radiation level of salient region reaches anti-blue light requirement, the rendering colour temperature for adjusting image carries out anti-blue light Rendering can be in the same of blue ray radiation preventing it is not necessary that the global colour temperature of progress is adjusted and (such as adjusted to color temps all in video) When, promote image displaying quality.
In addition, the embodiment of the present invention also provides a kind of computer equipment, as shown in figure 4, it illustrates the embodiment of the present invention The structural schematic diagram of related computer equipment, specifically:
The computer equipment may include the processor 401, one or one of one or more than one processing core with The components such as memory 402, power supply 403 and the input unit 404 of upper computer readable storage medium.Those skilled in the art can be with Understand, computer equipment structure shown in Fig. 4 does not constitute the restriction to computer equipment, may include than illustrate it is more or Less component perhaps combines certain components or different component layouts.Wherein:
Processor 401 is the control centre of the computer equipment, is set using various interfaces and the entire computer of connection Standby various pieces, by running or executing the software program and/or module that are stored in memory 402, and calling storage Data in memory 402 execute the various functions and processing data of computer equipment, to carry out to computer equipment whole Body monitoring.Optionally, processor 401 may include one or more processing cores;Preferably, processor 401 can integrate at Manage device and modem processor, wherein the main processing operation system of application processor, user interface and application program etc. are adjusted Demodulation processor processed mainly handles wireless communication.It is understood that above-mentioned modem processor can not also integrate everywhere It manages in device 401.
Memory 402 can be used for storing software program and module, and processor 401 is stored in memory 402 by operation Software program and module, thereby executing various function application and data processing.Memory 402 can mainly include storage journey Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function Such as sound-playing function, image player function) etc.;Storage data area can be stored to be created according to using for computer equipment Data etc..In addition, memory 402 may include high-speed random access memory, it can also include nonvolatile memory, such as At least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 402 can be with Including Memory Controller, to provide access of the processor 401 to memory 402.
Computer equipment further includes the power supply 403 powered to all parts, it is preferred that power supply 403 can pass through power supply pipe Reason system and processor 401 are logically contiguous, to realize management charging, electric discharge and power managed by power-supply management system Etc. functions.Power supply 403 can also include one or more direct current or AC power source, recharging system, power failure inspection The random components such as slowdown monitoring circuit, power adapter or inverter, power supply status indicator.
The computer equipment may also include input unit 404, which can be used for receiving the number or word of input Information is accorded with, and generates keyboard related with user setting and function control, mouse, operating stick, optics or trace ball letter Number input.
Although being not shown, computer equipment can also be including display unit etc., and details are not described herein.Specifically in the present embodiment In, the processor 401 in computer equipment can be according to following instruction, by the process pair of one or more application program The executable file answered is loaded into memory 402, and the application journey being stored in memory 402 is run by processor 401 Sequence, thus realize various functions, it is as follows:
Vision significance detection is carried out to image to be rendered, obtains the original conspicuousness of pixel in the image to be rendered Value;The correlated colour temperature of pixel described in color positions information evaluation based on the pixel in color space;Based on the correlation Colour temperature, blue ray radiation reference color temperature are adjusted the original significance value of the pixel, and the blue light for obtaining the pixel is significant Property value;When the blue light significance value of the pixel meets default anti-blue light condition, by the corresponding rendering of the image to be rendered Color temperature adjustment to anti-blue light renders colour temperature;The image to be rendered is rendered based on anti-blue light rendering colour temperature, is obtained Image after rendering.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
From the foregoing, it will be observed that the computer equipment of the present embodiment carries out vision significance detection to image to be rendered, obtain described The original significance value of pixel in image to be rendered;Described in color positions information evaluation based on the pixel in color space The correlated colour temperature of pixel;Based on the correlated colour temperature, blue ray radiation reference color temperature, the original significance value of the pixel is carried out Adjustment, obtains the blue light significance value of the pixel;When the blue light significance value of the pixel meets default anti-blue light condition, The corresponding rendering color temperature adjustment of the image to be rendered to anti-blue light is rendered into colour temperature;Based on anti-blue light rendering colour temperature to institute It states image to be rendered to be rendered, image after being rendered.Since the program can detecte vision significance region, and significant Property region blue ray radiation level when reaching anti-blue light requirement, the rendering colour temperature for adjusting image carries out anti-blue light rendering, without pair Global colour temperature adjustment (such as adjusting to color temps all in video) is carried out, image can be promoted while blue ray radiation preventing Show quality.
It will appreciated by the skilled person that all or part of the steps in the various methods of above-described embodiment can be with It is completed by instructing, or relevant hardware is controlled by instruction to complete, which can store computer-readable deposits in one In storage media, and is loaded and executed by processor.
For this purpose, the embodiment of the present invention also provides a kind of storage medium, wherein being stored with a plurality of instruction, which can be located Reason device is loaded, to execute the step in any object detecting method provided by the embodiment of the present invention.For example, the instruction Following steps can be executed:
Vision significance detection is carried out to image to be rendered, obtains the original conspicuousness of pixel in the image to be rendered Value;The correlated colour temperature of pixel described in color positions information evaluation based on the pixel in color space;Based on the correlation Colour temperature, blue ray radiation reference color temperature are adjusted the original significance value of the pixel, and the blue light for obtaining the pixel is significant Property value;When the blue light significance value of the pixel meets default anti-blue light condition, by the corresponding rendering of the image to be rendered Color temperature adjustment to anti-blue light renders colour temperature;The image to be rendered is rendered based on anti-blue light rendering colour temperature, is obtained Image after rendering.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
Wherein, which may include: read-only memory (ROM, Read Only Memory), random access memory Body (RAM, Random Access Memory), disk or CD etc..
By the instruction stored in the storage medium, any image wash with watercolours provided by the embodiment of the present invention can be executed Step in dyeing method, it is thereby achieved that achieved by any image rendering method provided by the embodiment of the present invention Beneficial effect is detailed in the embodiment of front, and details are not described herein.
It is provided for the embodiments of the invention a kind of image rendering method, device, computer equipment and storage medium above It is described in detail, used herein a specific example illustrates the principle and implementation of the invention, the above reality The explanation for applying example is merely used to help understand method and its core concept of the invention;Meanwhile for those skilled in the art, According to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion in this specification Appearance should not be construed as limiting the invention.

Claims (13)

1. a kind of image rendering method characterized by comprising
Vision significance detection is carried out to image to be rendered, obtains the original significance value of pixel in the image to be rendered;
The correlated colour temperature of pixel described in color positions information evaluation based on the pixel in color space;
Based on the correlated colour temperature, blue ray radiation reference color temperature, the original significance value of the pixel is adjusted, institute is obtained State the blue light significance value of pixel;
When the blue light significance value of the pixel meets default anti-blue light condition, by the corresponding rendering color of the image to be rendered Temperature is adjusted to anti-blue light rendering colour temperature;
The image to be rendered is rendered based on anti-blue light rendering colour temperature, image after being rendered.
2. image rendering method as described in claim 1, which is characterized in that be based on the correlated colour temperature, blue ray radiation colour temperature Range is adjusted the original significance value of the pixel, obtains the blue light significance value of the pixel, comprising:
The correlated colour temperature weight of the pixel is obtained based on the correlated colour temperature, blue ray radiation reference color temperature;
Significance value according to the correlated colour temperature weight to the pixel is weighted processing, and the blue light for obtaining the pixel is aobvious Work property value.
3. image rendering method as claimed in claim 2, which is characterized in that be based on the correlated colour temperature, blue ray radiation colour temperature Range obtains the correlated colour temperature weight of the pixel, comprising:
Obtain colour temperature difference of the correlated colour temperature relative to the lowest color temperature of the blue ray radiation reference color temperature;
Calculate the colour temperature ratio between the colour temperature difference and the highest colour temperature of the blue ray radiation reference color temperature;
Using the colour temperature ratio as the correlated colour temperature weight of the pixel.
4. image rendering method as described in claim 1, which is characterized in that based on color of the pixel in color space Location information assesses the correlated colour temperature of the pixel, comprising:
Colour temperature metewand is determined based on color positions information of the pixel in color space and with reference to color location information;
The correlated colour temperature of pixel is calculated according to the colour temperature metewand.
5. image rendering method as described in claim 1, which is characterized in that when the blue light significance value of the pixel meets in advance When blue light condition of setting up defences, the corresponding rendering color temperature adjustment of the image to be rendered to anti-blue light is rendered into colour temperature, comprising:
The whole blue light significance value of image to be rendered is constructed according to the blue light significance value of all pixels;
When the whole blue light significance value is greater than default blue light threshold value, the default anti-blue light condition that meets is determined, and will be described The corresponding rendering color temperature adjustment of image to be rendered to anti-blue light renders colour temperature.
6. image rendering method as claimed in claim 5, which is characterized in that constructed according to the blue light significance value of all pixels The whole blue light significance value of image to be rendered, comprising:
The blue light significance value of all pixels is added, blue light significance value summation is obtained;
Calculate the ratio between blue light significance value summation and the pixel quantity of image to be rendered;
The whole blue light significance value of image to be rendered is constructed according to the ratio.
7. image rendering method as claimed in claim 5, which is characterized in that by the corresponding rendering colour temperature of the image to be rendered It is adjusted to anti-blue light rendering colour temperature, comprising:
Determine that anti-blue light renders colour temperature based on blue ray radiation reference color temperature and color temperature adjustment intensity;
The corresponding rendering color temperature adjustment of the image to be rendered to anti-blue light is rendered into colour temperature.
8. such as the described in any item image rendering methods of claim 1-7, which is characterized in that it is aobvious to carry out vision to image to be rendered The detection of work property, obtains the original significance value of pixel in the image to be rendered, comprising:
Grayscale processing is carried out to the image to be rendered, obtains gray level image;
The sum of the Gray homogeneity in image to be rendered between pixel and other pixels is obtained based on the gray level image;
The original significance value of pixel in image to be rendered is obtained based on the sum of described Gray homogeneity.
9. image rendering method as claimed in claim 8, which is characterized in that obtain image to be rendered based on the gray level image The sum of Gray homogeneity between middle pixel and other pixels, comprising:
Count the corresponding pixel quantity of each grayscale in gray level image;
The corresponding pixel quantity of each gray scale, which is converted to corresponding cryptographic Hash, to be indicated;
Based on the Gray homogeneity in the cryptographic Hash, image to be rendered between pixel and other pixels, the sum of Gray homogeneity is calculated.
10. image rendering method as described in claim 1, which is characterized in that further include:
Video data is decoded, decoded image is obtained;
Current image to be rendered is determined from decoded image.
11. a kind of image rendering device characterized by comprising
Detection unit obtains the original of pixel in the image to be rendered for carrying out vision significance detection to image to be rendered Beginning significance value;
Colour temperature assessment unit, for the correlation based on pixel described in color positions information evaluation of the pixel in color space Colour temperature;
Significance value acquiring unit, for being based on the correlated colour temperature, blue ray radiation reference color temperature, to the original aobvious of the pixel Work property value is adjusted, and obtains the blue light significance value of the pixel;
Unit is adjusted, for when the blue light significance value of the pixel meets default anti-blue light condition, by the figure to be rendered As corresponding rendering color temperature adjustment to anti-blue light renders colour temperature;
Rendering unit is schemed after being rendered for being rendered based on anti-blue light rendering colour temperature to the image to be rendered Picture.
12. a kind of storage medium, which is characterized in that the storage medium is stored with a plurality of instruction, and described instruction is suitable for processor It is loaded, the step in 1 to 10 described in any item image rendering methods is required with perform claim.
13. a kind of computer equipment, which is characterized in that including memory and processor;The memory is stored with a plurality of instruction, The processor loads the instruction in the memory, requires 1 to 10 described in any item image rendering methods with perform claim In step.
CN201910362114.3A 2019-04-30 2019-04-30 Image rendering method and device, computer equipment and storage medium Active CN110012278B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910362114.3A CN110012278B (en) 2019-04-30 2019-04-30 Image rendering method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910362114.3A CN110012278B (en) 2019-04-30 2019-04-30 Image rendering method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110012278A true CN110012278A (en) 2019-07-12
CN110012278B CN110012278B (en) 2020-07-07

Family

ID=67175376

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910362114.3A Active CN110012278B (en) 2019-04-30 2019-04-30 Image rendering method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110012278B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110458835A (en) * 2019-08-16 2019-11-15 腾讯科技(深圳)有限公司 A kind of image processing method, device, equipment and medium
CN112927659A (en) * 2021-02-08 2021-06-08 捷开通讯(深圳)有限公司 Method, device and storage medium for adjusting basic three-primary-color data of display screen
CN113409713A (en) * 2021-06-11 2021-09-17 展讯通信(上海)有限公司 Blue light eye protection intensity adjusting method, device, medium and equipment
CN113852799A (en) * 2020-06-28 2021-12-28 京东方科技集团股份有限公司 Image processing method, image processing apparatus, display apparatus, and storage medium
US20220245861A1 (en) * 2021-02-04 2022-08-04 Mediatek Inc. Method and apparatus for performing image color correction according to image content analysis

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020110372A1 (en) * 2000-12-22 2002-08-15 Eastman Kodak Company Camera that displays predominant color multi-color scene and/or multi-color captured image of scene
JP2002369019A (en) * 2001-06-07 2002-12-20 Canon Inc Color adjustment method and device for image information
CN102104785A (en) * 2009-12-21 2011-06-22 佳能株式会社 Image pickup apparatus and controlling method therefor
CN103327345A (en) * 2012-03-19 2013-09-25 华晶科技股份有限公司 White balance processing method and processing device thereof
CN108848363A (en) * 2018-05-31 2018-11-20 江苏乙生态农业科技有限公司 A kind of auto white balance method suitable for large scene

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020110372A1 (en) * 2000-12-22 2002-08-15 Eastman Kodak Company Camera that displays predominant color multi-color scene and/or multi-color captured image of scene
JP2002369019A (en) * 2001-06-07 2002-12-20 Canon Inc Color adjustment method and device for image information
CN102104785A (en) * 2009-12-21 2011-06-22 佳能株式会社 Image pickup apparatus and controlling method therefor
CN103327345A (en) * 2012-03-19 2013-09-25 华晶科技股份有限公司 White balance processing method and processing device thereof
CN108848363A (en) * 2018-05-31 2018-11-20 江苏乙生态农业科技有限公司 A kind of auto white balance method suitable for large scene

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110458835A (en) * 2019-08-16 2019-11-15 腾讯科技(深圳)有限公司 A kind of image processing method, device, equipment and medium
CN113852799A (en) * 2020-06-28 2021-12-28 京东方科技集团股份有限公司 Image processing method, image processing apparatus, display apparatus, and storage medium
WO2022001490A1 (en) * 2020-06-28 2022-01-06 京东方科技集团股份有限公司 Image processing method, image processing device, display device, and storage medium
CN113852799B (en) * 2020-06-28 2023-08-08 京东方科技集团股份有限公司 Image processing method, image processing apparatus, display apparatus, and storage medium
US11917343B2 (en) 2020-06-28 2024-02-27 Boe Technology Group Co., Ltd. Image processing method, image processing device, display device, and storage medium
US20220245861A1 (en) * 2021-02-04 2022-08-04 Mediatek Inc. Method and apparatus for performing image color correction according to image content analysis
CN114866748A (en) * 2021-02-04 2022-08-05 联发科技股份有限公司 Image processing method and device
TWI799105B (en) * 2021-02-04 2023-04-11 聯發科技股份有限公司 Method and apparatus for image processing
US12062213B2 (en) 2021-02-04 2024-08-13 Mediatek Inc. Method and apparatus for performing image color correction according to image content analysis
CN112927659A (en) * 2021-02-08 2021-06-08 捷开通讯(深圳)有限公司 Method, device and storage medium for adjusting basic three-primary-color data of display screen
CN113409713A (en) * 2021-06-11 2021-09-17 展讯通信(上海)有限公司 Blue light eye protection intensity adjusting method, device, medium and equipment

Also Published As

Publication number Publication date
CN110012278B (en) 2020-07-07

Similar Documents

Publication Publication Date Title
CN110012278A (en) A kind of image rendering method, device, computer equipment and storage medium
CN108550101A (en) Image processing method, device and storage medium
Akyüz et al. Color appearance in high-dynamic-range imaging
Rizzi et al. A new algorithm for unsupervised global and local color correction
Kuang et al. Evaluating HDR rendering algorithms
CN111416950A (en) Video processing method and device, storage medium and electronic equipment
Yoshida et al. Analysis of reproducing real‐world appearance on displays of varying dynamic range
US20120269431A1 (en) Methods and appartuses for restoring color and enhancing electronic images
US9483815B2 (en) Systems and methods for computational lighting
Huang et al. Enhancing color representation for the color vision impaired
CN114359305A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN111127476A (en) Image processing method, device, equipment and storage medium
CN103745430A (en) Rapid beautifying method of digital image
CN110728618A (en) Virtual makeup trying method, device and equipment and image processing method
WO2016183681A1 (en) System and method for color retargeting
Qiu et al. Learning to display high dynamic range images
Wang et al. Lighting system for visual perception enhancement in volume rendering
Anand et al. PARVAI—HVS aware adaptive display power management for mobile games
Yan et al. Too many pixels to perceive: Subpixel shutoff for display energy reduction on oled smartphones
EP3218897B1 (en) Display brightness control
Yu et al. Color scheme adaptation to enhance user experience on smartphone displays leveraging ambient light
Yu et al. Sensing ambient light for user experience-oriented color scheme adaptation on smartphone displays
Akyüz et al. A reality check for radiometric camera response recovery algorithms
Dong et al. Exploiting entropy masking in perceptual graphic rendering
Rezagholizadeh et al. Maximum entropy spectral modeling approach to mesopic tone mapping

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant