CN106571127A - Method and device of displaying target image - Google Patents

Method and device of displaying target image Download PDF

Info

Publication number
CN106571127A
CN106571127A CN201510646075.1A CN201510646075A CN106571127A CN 106571127 A CN106571127 A CN 106571127A CN 201510646075 A CN201510646075 A CN 201510646075A CN 106571127 A CN106571127 A CN 106571127A
Authority
CN
China
Prior art keywords
value
target image
gray
channel
image
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
CN201510646075.1A
Other languages
Chinese (zh)
Other versions
CN106571127B (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.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510646075.1A priority Critical patent/CN106571127B/en
Publication of CN106571127A publication Critical patent/CN106571127A/en
Application granted granted Critical
Publication of CN106571127B publication Critical patent/CN106571127B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/22Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of characters or indicia using display control signals derived from coded signals representing the characters or indicia, e.g. with a character-code memory
    • G09G5/24Generation of individual character patterns
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/22Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of characters or indicia using display control signals derived from coded signals representing the characters or indicia, e.g. with a character-code memory
    • G09G5/30Control of display attribute

Abstract

The present invention relates to a method and device of displaying a target image, and belongs to the computer technology field. The method comprises the steps of obtaining the to-be-displayed target image; obtaining a gray scale image of the target image, and determining the gray values of the pixel points contained in the gray scale image; determining the number of the pixel points corresponding to each gray value, and if the number of the pixel points corresponding to each gray value satisfies a preset random distribution condition, compressing the original channel value ranges of the color channels, and displaying the target image based on the compressed channel value ranges. According to the present invention, the accuracy of the displayed image can be improved.

Description

A kind of method and apparatus of target image
Technical field
The disclosure is directed to field of computer technology, especially with respect to the method and dress of a kind of target image Put.
Background technology
As the development of mobile terminal technology, the purposes of mobile terminal are more and more extensive, people are had become One of most important instrument in routine work, life.People Jing often browses on mobile terminals various information, Wherein, image information is one of information that people Jing is often browsed.
Each pixel has corresponding channel value for these three color channels of red, green, blue, the passage The span of value be 0~255, mobile terminal in display image information, can according in image information each The corresponding channel value of pixel is directly shown.
During the disclosure is realized, inventor has found at least there is problems with:
When some images are shown (such as the landscape image for shooting), if shown in the manner described above, show The saturation of the image for illustrating can be too high, causes the color of image excessively gorgeous, the image fault for showing occurs Situation, so as to cause the accuracy of display image relatively low.
The content of the invention
In order to overcome problem present in correlation technique, present disclose provides a kind of method of target image And device.The technical scheme is as follows:
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of method of target image, methods described Including:
Obtain target image to be shown;
The gray level image of the target image is obtained, the ash of each pixel included in the gray level image is determined Angle value;
The number of the corresponding pixel of each gray value is determined, if the corresponding pixel of described each gray value Number be unsatisfactory for default randomness change condition, then the Src Chan value model based on each color channel Enclose and the target image is shown.
Optionally, if the number of the corresponding pixel of described each gray value be unsatisfactory for it is default random Property change condition, then shown based on the Src Chan value scope of each color channel to the target image Show, including:
It is more than predetermined threshold value if there is the number and value of the corresponding pixel of multiple discrete gray values, then The target image is shown based on the Src Chan value scope of each color channel.
Optionally, if the number of the corresponding pixel of described each gray value be unsatisfactory for it is default random Property change condition, then shown based on the Src Chan value scope of each color channel to the target image Show, including:
If the number of the corresponding pixel of each gray value meets linear changing relation, based on described each The Src Chan value scope of color channel shows to the target image.
Optionally, the gray level image for obtaining the target image, determines what is included in the gray level image The gray value of each pixel, including:
The corresponding gray level image of each color channel of the target image is obtained, determines what is included in each gray level image The gray value of each pixel;
The number for determining the corresponding pixel of each gray value, if the corresponding picture of described each gray value The number of vegetarian refreshments is unsatisfactory for default randomness change condition, then the Src Chan based on each color channel Value scope shows to the target image, including:
Respectively in each gray level image, the number of the corresponding pixel of each gray value is determined, if described The number of the corresponding pixel of each gray value in each gray level image is unsatisfactory for default randomness change bar Part, then shown based on the Src Chan value scope of each color channel to the target image.
Optionally, the Src Chan value scope based on each color channel is carried out to the target image Show, including:
In the target image in the channel value of each color channel of each pixel, will be less than predetermined threshold value Channel value carry out increase process, to channel value increase process after target image show.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of method of target image, methods described Including:
Obtain target image to be shown;
The gray level image of the target image is obtained, the ash of each pixel included in the gray level image is determined Angle value;
The number of the corresponding pixel of each gray value is determined, if the corresponding pixel of described each gray value Number meet default random distribution condition, then the Src Chan value scope of each color channel is pressed Contracting is processed, and the channel value scope after being processed based on compression is shown to the target image.
Optionally, if the number of the corresponding pixel of described each gray value meets default randomness Distribution occasion, then be compressed process by the Src Chan value scope of each color channel, after being processed based on compression Channel value scope the target image is shown, including:
It is more than predetermined threshold value if there is no the number and value of the corresponding pixel of multiple discrete gray values, Then the Src Chan value scope of each color channel is compressed into process, the channel value model after processing based on compression Enclose and the target image is shown.
Optionally, if the number of the corresponding pixel of described each gray value meets default randomness Distribution occasion, then be compressed process by the Src Chan value scope of each color channel, after being processed based on compression Channel value scope the target image is shown, including:
If the number of the corresponding pixel of each gray value is unsatisfactory for linear changing relation, by each color The Src Chan value scope of passage is compressed process, and the channel value scope after being processed based on compression is to the mesh Logo image is shown.
Optionally, the gray level image for obtaining the target image, determines what is included in the gray level image The gray value of each pixel, including:
The corresponding gray level image of each color channel of the target image is obtained, determines what is included in each gray level image The gray value of each pixel;
The number for determining the corresponding pixel of each gray value, if the corresponding picture of described each gray value The number of vegetarian refreshments meets default random distribution condition, then enter the Src Chan value scope of each color channel Row compression is processed, and the channel value scope after being processed based on compression is shown to the target image, including:
Respectively in each gray level image, the number of the corresponding pixel of each gray value is determined, if described In each gray level image, the number that there is the corresponding pixel of each gray value in the first gray level image meets pre- If random distribution condition, then the Src Chan value scope of each color channel is compressed into process, be based on Channel value scope after compression is processed shows to the target image.
Optionally, it is described that the Src Chan value scope of each color channel is compressed into process, at compression Channel value scope after reason shows to the target image, including:
By the Src Chan value Ratage Coutpressioit of each color channel to default channel value scope;
According to the proportionate relationship of the default channel value scope and the Src Chan value scope, to the target The channel value of each color channel of each pixel is compressed in image;
The target image is shown based on the channel value after compression.
Optionally, the channel value based on after compression shows to the target image, including:
In channel value in the target image after the compression of each color channel of each pixel, will be less than Channel value after the compression of predetermined threshold value carries out increase process, and the target image after processing channel value increase enters Row shows.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of device of target image, described device Including:
Acquisition module, for obtaining target image to be shown;
Determining module, for obtaining the gray level image of the target image, determines and is included in the gray level image Each pixel gray value;
Display module, for determining the number of the corresponding pixel of each gray value, if described each gray scale The number for being worth corresponding pixel is unsatisfactory for default randomness change condition, then based on each color channel Src Chan value scope the target image is shown.
Optionally, the display module, is used for:
It is more than predetermined threshold value if there is the number and value of the corresponding pixel of multiple discrete gray values, then The target image is shown based on the Src Chan value scope of each color channel.
Optionally, the display module, is used for:
If the number of the corresponding pixel of each gray value meets linear changing relation, based on described each The Src Chan value scope of color channel shows to the target image.
Optionally, the acquisition module, is used for:
The corresponding gray level image of each color channel of the target image is obtained, determines what is included in each gray level image The gray value of each pixel;
The display module, is used for:
Respectively in each gray level image, the number of the corresponding pixel of each gray value is determined, if described The number of the corresponding pixel of each gray value in each gray level image is unsatisfactory for default randomness change bar Part, then shown based on the Src Chan value scope of each color channel to the target image.
Optionally, the display module, is used for:
In the target image in the channel value of each color channel of each pixel, will be less than predetermined threshold value Channel value carry out increase process, to channel value increase process after target image show.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of device of target image, described device Including:
Acquisition module, for obtaining target image to be shown;
Determining module, for obtaining the gray level image of the target image, determines and is included in the gray level image Each pixel gray value;
Display module, for determining the number of the corresponding pixel of each gray value, if described each gray scale The number for being worth corresponding pixel meets default random distribution condition, then by the original logical of each color channel Road value scope is compressed process, and the channel value scope after being processed based on compression is shown to the target image Show.
Optionally, the display module, is used for:
It is more than predetermined threshold value if there is no the number and value of the corresponding pixel of multiple discrete gray values, Then the Src Chan value scope of each color channel is compressed into process, the channel value model after processing based on compression Enclose and the target image is shown.
Optionally, the display module, is used for:
If the number of the corresponding pixel of each gray value is unsatisfactory for linear changing relation, by each color The Src Chan value scope of passage is compressed process, and the channel value scope after being processed based on compression is to the mesh Logo image is shown.
Optionally, the acquisition module, is used for:
The corresponding gray level image of each color channel of the target image is obtained, determines what is included in each gray level image The gray value of each pixel;
The display module, is used for:
Respectively in each gray level image, the number of the corresponding pixel of each gray value is determined, if described In each gray level image, the number that there is the corresponding pixel of each gray value in the first gray level image meets pre- If random distribution condition, then the Src Chan value scope of each color channel is compressed into process, be based on Channel value scope after compression is processed shows to the target image.
Optionally, the display module, including:
First compression submodule, for by the Src Chan value Ratage Coutpressioit of each color channel to default channel value Scope;
Second compression submodule, for according to the default channel value scope and the Src Chan value scope Proportionate relationship, is compressed to the channel value of each color channel of each pixel in the target image;
Display sub-module, for being shown to the target image based on the channel value after compression.
Optionally, the display module, is used for:
In channel value in the target image after the compression of each color channel of each pixel, will be less than Channel value after the compression of predetermined threshold value carries out increase process, and the target image after processing channel value increase enters Row shows.
According to the 5th aspect of the embodiment of the present disclosure, there is provided a kind of device of target image, described device Including:
Processor;
For storing the memorizer of processor executable;
Wherein, the processor is configured to:
Obtain target image to be shown;
The gray level image of the target image is obtained, the ash of each pixel included in the gray level image is determined Angle value;
The number of the corresponding pixel of each gray value is determined, if the corresponding pixel of described each gray value Number be unsatisfactory for default randomness change condition, then the Src Chan value model based on each color channel Enclose and the target image is shown.
According to the 6th aspect of the embodiment of the present disclosure, there is provided a kind of device of target image, described device Including:
Processor;
For storing the memorizer of processor executable;
Wherein, the processor is configured to:
Obtain target image to be shown;
The gray level image of the target image is obtained, the ash of each pixel included in the gray level image is determined Angle value;
The number of the corresponding pixel of each gray value is determined, if the corresponding pixel of described each gray value Number meet default random distribution condition, then the Src Chan value scope of each color channel is pressed Contracting is processed, and the channel value scope after being processed based on compression is shown to the target image.
The technical scheme that embodiment of the disclosure is provided can include following beneficial effect:
In the embodiment of the present disclosure, target image to be shown is obtained, obtain the gray level image of target image, really Determine the gray value of each pixel included in gray level image, determine the number of the corresponding pixel of each gray value, If the number of the corresponding pixel of each gray value meets default random distribution condition, by each color The Src Chan value scope of passage is compressed process, and the channel value scope after being processed based on compression is to target figure As being shown, so, count out by the stronger natural views of the randomness of grey value profile in display pixel During image, the channel value scope after compression is processed can be based on it is shown, reduce the overall channel value of image, Reduction occurs that image saturation is too high, image fault situation, such that it is able to improve the accuracy of display image.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, The disclosure can not be limited.
Description of the drawings
Accompanying drawing herein is merged in description and constitutes the part of this specification, shows and meets the disclosure Embodiment, and be used to explain the principle of the disclosure together with description.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the method for the target image according to an exemplary embodiment;
Fig. 2 is a kind of rectangular histogram according to an exemplary embodiment;
Fig. 3 is a kind of rectangular histogram according to an exemplary embodiment;
Fig. 4 is a kind of rectangular histogram according to an exemplary embodiment;
Fig. 5 is a kind of flow chart of the method for the target image according to an exemplary embodiment;
Fig. 6 is a kind of flow chart of the method for the target image according to an exemplary embodiment;
Fig. 7 is a kind of schematic diagram of the device of the target image according to an exemplary embodiment;
Fig. 8 is a kind of schematic diagram of the device of the target image according to an exemplary embodiment;
Fig. 9 is a kind of structural representation of the terminal according to an exemplary embodiment.
By above-mentioned accompanying drawing, it has been shown that the clear and definite embodiment of the disclosure, hereinafter will be described in more detail. These accompanying drawings and word description are not intended to limit the scope of disclosure design by any mode, but logical Cross with reference to the concept that specific embodiment is those skilled in the art's explanation disclosure.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following retouches State when being related to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element. Embodiment described in following exemplary embodiment does not represent all embodiment party consistent with the disclosure Formula.Conversely, they be only with described in detail in the such as appended claims, disclosure some in terms of phase one The example of the apparatus and method of cause.
The exemplary embodiment of the disclosure one provides a kind of method of target image, as shown in figure 1, should The handling process of method can include the steps:
In a step 101, target image to be shown is obtained.
In a step 102, the gray level image of target image is obtained, each pixel included in gray level image is determined The gray value of point.
In step 103, the number of the corresponding pixel of each gray value is determined, if each gray value pair The number of the pixel answered is unsatisfactory for default randomness change condition, then based on the original logical of each color channel Road value scope shows to target image;If the number of the corresponding pixel of each gray value meets default Random distribution condition, then the Src Chan value scope of each color channel is compressed into process, based on pressure Channel value scope after contracting is processed shows to target image.
In the embodiment of the present disclosure, target image to be shown is obtained, obtain the gray level image of target image, really Determine the gray value of each pixel included in gray level image, determine the number of the corresponding pixel of each gray value, If the number of the corresponding pixel of each gray value meets default random distribution condition, by each color The Src Chan value scope of passage is compressed process, and the channel value scope after being processed based on compression is to target figure As being shown, so, count out by the stronger natural views of the randomness of grey value profile in display pixel During image, the channel value scope after compression is processed can be based on it is shown, reduce the overall channel value of image, Reduction occurs that image saturation is too high, image fault situation, such that it is able to improve the accuracy of display image.
Disclosure another exemplary embodiment provides a kind of method of target image, and the method can be used In terminal.Wherein, terminal can be the mobile terminals such as mobile phone or panel computer.The terminal can include place Reason device, memorizer and display unit, processor can be used for obtaining the gray level image of target image, and be based on The gray level image is analyzed, and to determine that suitable channel value carrys out target image, memorizer can be used In the data for storing the data and generation needed in following processing procedures, display unit can be liquid crystal display Device, display unit can be with target image.In addition, the terminal can also include input block, input is single Unit can be button, can be touch screen, or mouse, and user can be by input block in terminal It is upper to select to need the target image that browses, terminal then can receive it is corresponding choose instruction, the terminal can be with Including parts such as sensor, voicefrequency circuit and power supplys.
Below in conjunction with embodiment, the handling process shown in Fig. 1 is described in detail, content can be with It is as follows:
In a step 101, target image to be shown is obtained.
In force, the trigger condition that terminal obtains target image to be shown can be diversified.With Family can install the application program with picture browsing function in terminal, when user wishes to browse certain image, When user needs to browse certain image (i.e. target image), user can open the application program, and at this In the image list that application program is provided, the corresponding icon of target image is clicked on, terminal can then receive correspondence The selection instruction of target image, then can obtain target image to be shown.User can also enter in terminal Row changing interface is operated, then terminal can determine interface to be shown according to the switching command of user, and then The background image in the interface can be obtained, as target image to be shown.For example, user can be from certain The desktop of system is switched in the interface of individual application program, then terminal can obtain the wallpaper of desktop, by wallpaper As target image to be shown;Or, user can open certain application program in the desktop of system, then Terminal can obtain the main interface of the application program, and then can obtain the image included in main interface, as Target image to be shown.
In a step 102, the gray level image of target image is obtained, each pixel included in gray level image is determined The gray value of point.
In force, terminal is obtained after target image to be shown, can according to default gray scale detection algorithm, The gray level image of target image is obtained, in gray level image, each pixel can be to there is a gray scale Value, then terminal can determine the gray value of each pixel.For three color channels, terminal can basis The channel value of any one color channel of each pixel in target image, obtains the gray level image of target image. For example, terminal can determine the gray level image of target image according to the channel value of the red channel of each pixel; Or the gray level image of target image can be determined according to the channel value of the green channel of each pixel;Also may be used According to the channel value of the blue channel of each pixel, to determine the gray level image of target image.
Optionally, corresponding three gray level images of three color channels of target image can be obtained, accordingly, The processing procedure of step 102 can be as follows:The corresponding gray level image of each color channel of target image is obtained, really The gray value of each pixel included in fixed each gray level image.
In force, terminal is obtained after target image to be shown, can according to default gray scale detection algorithm, Determine the corresponding gray level image of red channel, and determine in the gray level image, each pixel can be corresponded to Gray value.Terminal can determine the corresponding gray level image of blue channel according to default gray scale detection algorithm, And determine in the gray level image, each pixel can corresponding gray value.Terminal can also be according to default Gray scale detection algorithm, determine the corresponding gray level image of green channel, and determine in the gray level image, each Pixel can corresponding gray value.
In step 103, the number of the corresponding pixel of each gray value is determined, if each gray value pair The number of the pixel answered is unsatisfactory for default randomness change condition, then based on the original logical of each color channel Road value scope shows to target image;If the number of the corresponding pixel of each gray value meets default Random distribution condition, then the Src Chan value scope of each color channel is compressed into process, based on pressure Channel value scope after contracting is processed shows to target image.
In force, terminal can be by wide colour gamut come target image, it is also possible to by standard color gamut come Display image.Wherein, in wide colour gamut, the scope of the channel value of each color channel is 0~255, in reference colours In domain, the scope of the channel value of each color channel is then preset range, and preset range is less than 0~255, such as can be with It is 0~200.
Terminal determined after the gray value of each pixel included in gray level image, can count each gray value pair The number of the pixel answered, and then may determine that whether the number of the corresponding pixel of each gray value meets default Randomness change condition.Randomness change condition can be diversified, and for example, terminal counts each After the number of the corresponding pixel of gray value, can obtain the corresponding pixel of each gray value number it is straight Fang Tu, then terminal can calculate the ratio of the number of the corresponding pixel of any two gray value, Ran Houke Whether to judge the ratio as integer, and the number of the ratio of integer can be recorded.If the number is more than Or equal to preset number threshold value, then the number that can be determined that the corresponding pixel of each gray value is unsatisfactory for presetting Randomness change condition, i.e., target image for manual manufacture image, such as user interface image, terminal can Target image is shown with the Src Chan value scope based on each color channel, i.e., terminal can be by wide Colour gamut shows to target image.If the number is less than preset number threshold value, each ash is can be determined that It is natural image that the number of the corresponding pixel of angle value meets default random distribution condition, i.e. target image, Such as the natural land image for shooting, the corresponding rectangular histogram of natural image can be with as shown in Fig. 2 terminal can be by The Src Chan value scope of each color channel is compressed process, the channel value scope pair after being processed based on compression Target image is shown that is, terminal can be shown by standard color gamut to target image.So, base In above-mentioned process, terminal can carry out color gamut conversion, realize entering different types of image call difference colour gamut Row shows.
Optionally, can be judged whether with value according to the number of the corresponding pixel of discrete gray value full The above-mentioned random distribution condition of foot, corresponding processing procedure can be as follows:If there is multiple discrete gray scales The number and value for being worth corresponding pixel is more than predetermined threshold value, then the Src Chan value based on each color channel Scope shows to target image;If there is no the number of the corresponding pixel of multiple discrete gray values And value be more than predetermined threshold value, then the Src Chan value scope of each color channel is compressed into process, be based on Channel value scope after compression is processed shows to target image.
In force, terminal determined after the gray value of each pixel included in gray level image, can be counted every The number of the corresponding pixel of individual gray value, then can determine to having pixel and discrete gray value, As shown in Figure 3.If there is two adjacent gray values all to there is pixel number, then can ignore it In a gray value, for example, the less gray value of corresponding number can be ignored.Terminal can these from In the number of the corresponding pixel of scattered gray value, it is determined that the first number of maximum, and then can determine and The mutually discrete gray value of the corresponding gray value of one number, then can be in these discrete gray values, will most The first big number is added with the second second largest number, then judge to obtain and value whether more than or Equal to predetermined threshold value, if should and be worth be less than predetermined threshold value, by the 3rd the third-largest number with should and value phase Plus, then judge whether what is obtained is more than or equal to predetermined threshold value with value, by that analogy.If there is multiple The number of the corresponding pixel of discrete gray value and value be more than predetermined threshold value, then can based on each color lead to The Src Chan value scope in road shows to target image;If there is no multiple discrete gray value correspondences Pixel number and value be more than predetermined threshold value, then can be by the Src Chan value scope of each color channel Process is compressed, the channel value scope after being processed based on compression is shown to target image.In addition, eventually End can also arrange the threshold value (can be referred to as gray value quantity threshold) of the number of the gray value of addition, if then deposited It is more than predetermined threshold value, and the number of gray value in the number and value of the corresponding pixel of multiple discrete gray values Mesh is less than gray value quantity threshold, then can be based on the Src Chan value scope of each color channel to target image Shown, otherwise, the Src Chan value scope of each color channel can be compressed process, based on pressure Channel value scope after contracting is processed shows to target image.
Optionally, it is also possible to which whether the number for judging the corresponding pixel of each gray value meets linear changing relation, Corresponding processing procedure can be as follows:If the number of the corresponding pixel of each gray value meets linear change pass System, then shown based on the Src Chan value scope of each color channel to target image;If each gray value The number of corresponding pixel is unsatisfactory for linear changing relation, then by the Src Chan value scope of each color channel Process is compressed, the channel value scope after being processed based on compression is shown to target image.
In force, terminal determined after the gray value of each pixel included in gray level image, can be counted every The number of the corresponding pixel of individual gray value, obtains the rectangular histogram of gray value and the number of corresponding pixel, As shown in Figure 4.Terminal can carry out curve by default algorithm (such as method of least square) to these data Fitting, then may determine that whether the curve for obtaining is straight line, or whether can be approximated to be straight line (as respectively The difference of the slope of line segment is in preset range).If what fitting was obtained is straight line, or be can be approximated to be straight Line, the then number that can be determined that the corresponding pixel of each gray value meets linear changing relation, and then terminal can Target image is shown with the Src Chan value scope based on each color channel;If fitting is obtained not It is straight line, or straight line cannot be approximately, then terminal can be determined that the number of the corresponding pixel of each gray value Mesh is unsatisfactory for linear changing relation, then the Src Chan value scope of each color channel is compressed into process, base Channel value scope after compression is processed shows to target image.In addition, if a certain model of terminal judges The number of the corresponding pixel of gray value in enclosing meets linear changing relation, then can determine in the range of this The number of gray value, if the number of the gray value in the range of being somebody's turn to do is more than predetermined threshold value, can be determined that mesh figure Image as being manual manufacture, may then based on the Src Chan value scope of each color channel to target image Shown.
Optionally, can be compressed according to certain proportionate relationship, corresponding processing procedure can be as follows: By the Src Chan value Ratage Coutpressioit of each color channel to default channel value scope;According to default channel value scope With the proportionate relationship of Src Chan value scope, the passage to each color channel of each pixel in target image Value is compressed;Target image is shown based on the channel value after compression.
In force, if the terminal determine that the number of the corresponding pixel of each gray value meets default random Property change condition, then can by the Src Chan value Ratage Coutpressioit of each color channel to default channel value scope, And the proportionate relationship of default channel value scope and Src Chan value scope can be calculated, wherein, preset passage Value scope is less than Src Chan value scope.For example, Src Chan value scope is 0~255, and default channel value is 0~200, then proportionate relationship is 200/255.Terminal determined after proportionate relationship, can according to the proportionate relationship, The channel value of each pixel in target image is compressed, the channel value pair after compression is may then based on Target image is shown.In addition, default channel value scope can also be divided into multiple subranges by terminal, Src Chan value scope is divided into into same number subrange, corresponding two subranges then can be calculated Proportionate relationship, and then according to the proportionate relationship for calculating, the channel value to each pixel in target image It is compressed.
For example, it is 0~200 to preset channel value scope, and its corresponding subrange is 0~100,100~150, 150~200, Src Chan value scope is 0~255, and its corresponding subrange is 0~130,130~200, 200~255, then the ratio that can determine corresponding subrange is:100/130=10/13,150/200=3/4, 200/255=40/51, then be 120*10/13=92, channel value 150 after the compression of channel value 120 in target image It is 150*3/4=112 after compression, is 172 after the compression of channel value 220.
Terminal determines after the channel value after compression process that the channel value that can be based on after compression be entered to target image Row shows.In addition, for three color channels, its corresponding default channel value scope can be identical, Can also be different.
Optionally, for the feelings of corresponding three gray level images of three color channels of above-mentioned acquisition target image Condition, accordingly, the processing procedure of step 103 can be as follows:Respectively in each gray level image, it is determined that often The number of the corresponding pixel of individual gray value, if in each gray level image, existed every in the first gray level image The number of the corresponding pixel of individual gray value meets default random distribution condition, then by each color channel Src Chan value scope is compressed process, and the channel value scope after being processed based on compression is carried out to target image Show;If the number of the corresponding pixel of each gray value in each gray level image be unsatisfactory for it is default with Machine change condition, then shown based on the Src Chan value scope of each color channel to target image.
In force, after corresponding three gray level images of three color channels of terminal acquisition, can randomly select The corresponding gray level image of certain color channel is analyzed, and for example, it is corresponding that terminal can obtain red channel Gray level image, and determining in the gray level image, each pixel can corresponding gray value, then can be with Determine the number of the corresponding pixel of each gray value, and judge the number of the corresponding pixel of each gray value Whether default random distribution condition is met, if it is satisfied, then can be by the Src Chan of each color channel Value scope is compressed process, and the channel value scope after being processed based on compression is shown to target image, such as Fruit is unsatisfactory for, then can be in other two color channel, the corresponding gray level image of one color channel of selection Above-mentioned analysis is carried out, by that analogy.If in corresponding three gray level images of three color channels, there is certain The number of the corresponding pixel of each gray value in individual gray level image (i.e. the first gray level image) meets default Random distribution condition, then the Src Chan value scope of each color channel can be compressed process, and Channel value scope after being processed based on compression is shown to target image;If every in three gray level images The number of the corresponding pixel of individual gray value is unsatisfactory for default randomness change condition, then can be based on each The Src Chan value scope of color channel shows to target image.
Optionally, for less channel value, it is also possible to carry out increase process, corresponding processing procedure can be with It is as follows:In the target image in the channel value of each color channel of each pixel, by less than predetermined threshold value Channel value carries out increase process, and the target image after processing channel value increase shows;In target image In each pixel each color channel compression after channel value in, will be less than predetermined threshold value compression after Channel value carries out increase process, and the target image after processing channel value increase shows.
In force, due to the hardware problem of equipment component, may result in the display effect of target image compared with Difference, such as in target image, the channel value of some pixels is 80, and the passage of the pixel that user sees Value therefore, it can for less channel value to carry out increase process, such as by the passage of the pixel equivalent to 50 Value increases to 100, then user can see pixel of the channel value equivalent to 80.Terminal can be in target figure As in the channel value of each color channel of each pixel, the channel value less than predetermined threshold value is obtained, then The channel value of acquisition is carried out into increase process, terminal can increase channel value according to preset ratio, Channel value can be added default value, the target image after then can processing channel value increase shows Show.When process is compressed to Src Chan value scope, terminal then can be every in the target image In channel value after the compression of each color channel of individual pixel, the channel value less than predetermined threshold value is obtained, so Afterwards the channel value of acquisition is carried out into increase process, and then the target image after processing channel value increase shows Show.
In the embodiment of the present disclosure, target image to be shown is obtained, obtain the gray level image of target image, really Determine the gray value of each pixel included in gray level image, determine the number of the corresponding pixel of each gray value, If the number of the corresponding pixel of each gray value meets default random distribution condition, by each color The Src Chan value scope of passage is compressed process, and the channel value scope after being processed based on compression is to target figure As being shown, so, count out by the stronger natural views of the randomness of grey value profile in display pixel During image, the channel value scope after compression is processed can be based on it is shown, reduce the overall channel value of image, Reduction occurs that image saturation is too high, image fault situation, such that it is able to improve the accuracy of display image.
Disclosure another exemplary embodiment provides a kind of method of target image, as shown in figure 5, The handling process of the method can include the steps:
In step 501, target image to be shown is obtained.
In force, the trigger condition that terminal obtains target image to be shown can be diversified.With Family can install the application program with picture browsing function in terminal, when user wishes to browse certain image, When user needs to browse certain image (i.e. target image), user can open the application program, and at this In the image list that application program is provided, the corresponding icon of target image is clicked on, terminal can then receive correspondence The selection instruction of target image, then can obtain target image to be shown.User can also enter in terminal Row changing interface is operated, then terminal can determine interface to be shown according to the switching command of user, and then The background image in the interface can be obtained, as target image to be shown.For example, user can be from certain The desktop of system is switched in the interface of individual application program, then terminal can obtain the wallpaper of desktop, by wallpaper As target image to be shown;Or, user can open certain application program in the desktop of system, then Terminal can obtain the main interface of the application program, and then can obtain the image included in main interface, as Target image to be shown.
In step 502, the gray level image of target image is obtained, each pixel included in gray level image is determined The gray value of point.
In force, terminal is obtained after target image to be shown, can according to default gray scale detection algorithm, The gray level image of target image is obtained, in gray level image, each pixel can be to there is a gray scale Value, then terminal can determine the gray value of each pixel.For three color channels, terminal can basis The channel value of any one color channel of each pixel in target image, obtains the gray level image of target image. For example, terminal can determine the gray level image of target image according to the channel value of the red channel of each pixel; Or the gray level image of target image can be determined according to the channel value of the green channel of each pixel;Also may be used According to the channel value of the blue channel of each pixel, to determine the gray level image of target image.
Optionally, corresponding three gray level images of three color channels of target image can be obtained, accordingly, The processing procedure of step 502 can be as follows:The corresponding gray level image of each color channel of target image is obtained, really The gray value of each pixel included in fixed each gray level image.
In force, terminal is obtained after target image to be shown, can according to default gray scale detection algorithm, Determine the corresponding gray level image of red channel, and determine in the gray level image, each pixel can be corresponded to Gray value.Terminal can determine the corresponding gray level image of blue channel according to default gray scale detection algorithm, And determine in the gray level image, each pixel can corresponding gray value.Terminal can also be according to default Gray scale detection algorithm, determine the corresponding gray level image of green channel, and determine in the gray level image, each Pixel can corresponding gray value.
In step 503, the number of the corresponding pixel of each gray value is determined, if each gray value pair The number of the pixel answered is unsatisfactory for default randomness change condition, then based on the original logical of each color channel Road value scope shows to target image.
In force, terminal can be by wide colour gamut come target image, it is also possible to by standard color gamut come Display image.Wherein, in wide colour gamut, the scope of the channel value of each color channel is 0~255, in reference colours In domain, the scope of the channel value of each color channel is then preset range, and preset range is less than 0~255, such as can be with It is 0~200.
Terminal determined after the gray value of each pixel included in gray level image, can count each gray value pair The number of the pixel answered, and then may determine that whether the number of the corresponding pixel of each gray value meets default Randomness change condition.Randomness change condition can be diversified, and for example, terminal counts each After the number of the corresponding pixel of gray value, can obtain the corresponding pixel of each gray value number it is straight Fang Tu, then terminal can calculate the ratio of the number of the corresponding pixel of any two gray value, Ran Houke Whether to judge the ratio as integer, and the number of the ratio of integer can be recorded.If the number is more than Or equal to preset number threshold value, then the number that can be determined that the corresponding pixel of each gray value is unsatisfactory for presetting Randomness change condition, i.e., target image for manual manufacture image, such as user interface image, terminal can Target image is shown with the Src Chan value scope based on each color channel, i.e., terminal can be by wide Colour gamut shows to target image.So, based on above-mentioned process, terminal can carry out color gamut conversion, real Now different types of image call difference colour gamut is shown.
Optionally, can be judged whether with value according to the number of the corresponding pixel of discrete gray value full The above-mentioned random distribution condition of foot, corresponding processing procedure can be as follows:If there is multiple discrete gray scales The number and value for being worth corresponding pixel is more than predetermined threshold value, then the Src Chan value based on each color channel Scope shows to target image.
In force, terminal determined after the gray value of each pixel included in gray level image, can be counted every The number of the corresponding pixel of individual gray value, then can determine to having pixel and discrete gray value, As shown in Figure 3.If there is two adjacent gray values all to there is pixel number, then can ignore it In a gray value, for example, the less gray value of corresponding number can be ignored.Terminal can these from In the number of the corresponding pixel of scattered gray value, it is determined that the first number of maximum, and then can determine and The mutually discrete gray value of the corresponding gray value of one number, then can be in these discrete gray values, will most The first big number is added with the second second largest number, then judge to obtain and value whether more than or Equal to predetermined threshold value, if should and be worth be less than predetermined threshold value, by the 3rd the third-largest number with should and value phase Plus, then judge whether what is obtained is more than or equal to predetermined threshold value with value, by that analogy.If there is multiple The number of the corresponding pixel of discrete gray value and value be more than predetermined threshold value, then can based on each color lead to The Src Chan value scope in road shows to target image.In addition, terminal can also arrange the gray scale of addition The threshold value (gray value quantity threshold can be referred to as) of the number of value, then if there is multiple discrete gray value correspondences Pixel number and value be more than predetermined threshold value, and the number of gray value be less than gray value quantity threshold, The Src Chan value scope that each color channel can be then based on show to target image, otherwise, can be by The Src Chan value scope of each color channel is compressed process, the channel value scope pair after being processed based on compression Target image is shown.
Optionally, it is also possible to which whether the number for judging the corresponding pixel of each gray value meets linear changing relation, Corresponding processing procedure can be as follows:If the number of the corresponding pixel of each gray value meets linear change pass System, then shown based on the Src Chan value scope of each color channel to target image.
In force, terminal determined after the gray value of each pixel included in gray level image, can be counted every The number of the corresponding pixel of individual gray value, obtains the rectangular histogram of gray value and the number of corresponding pixel, As shown in Figure 4.Terminal can carry out curve by default algorithm (such as method of least square) to these data Fitting, then may determine that whether the curve for obtaining is straight line, or whether can be approximated to be straight line (as respectively The difference of the slope of line segment is in preset range).If what fitting was obtained is straight line, or be can be approximated to be straight Line, the then number that can be determined that the corresponding pixel of each gray value meets linear changing relation, and then terminal can Target image is shown with the Src Chan value scope based on each color channel.In addition, if terminal is sentenced The number of the corresponding pixel of gray value in a certain scope of breaking meets linear changing relation, then can determine this In the range of gray value number, if should in the range of the number of gray value be more than predetermined threshold value, can be with Judge image of the mesh image as manual manufacture, may then based on the Src Chan value scope pair of each color channel Target image is shown.
Optionally, for the feelings of corresponding three gray level images of three color channels of above-mentioned acquisition target image Condition, accordingly, the processing procedure of step 503 can be as follows:Respectively in each gray level image, it is determined that often The number of the corresponding pixel of individual gray value, if the corresponding pixel of each gray value in each gray level image Number be unsatisfactory for default randomness change condition, then the Src Chan value scope based on each color channel Target image is shown.
In force, after corresponding three gray level images of three color channels of terminal acquisition, can randomly select The corresponding gray level image of certain color channel is analyzed, and for example, it is corresponding that terminal can obtain red channel Gray level image, and determining in the gray level image, each pixel can corresponding gray value, then can be with Determine the number of the corresponding pixel of each gray value, and judge the number of the corresponding pixel of each gray value Whether default random distribution condition is met, if it is satisfied, then can be by the Src Chan of each color channel Value scope is compressed process, and the channel value scope after being processed based on compression is shown to target image, such as Fruit is unsatisfactory for, then can be in other two color channel, the corresponding gray level image of one color channel of selection Above-mentioned analysis is carried out, by that analogy.If the corresponding pixel of each gray value in three gray level images Number is unsatisfactory for default randomness change condition, then can be based on the Src Chan value model of each color channel Enclose and target image is shown.
Optionally, for less channel value, it is also possible to carry out increase process, corresponding processing procedure can be with It is as follows:In the target image in the channel value of each color channel of each pixel, by less than predetermined threshold value Channel value carries out increase process, and the target image after processing channel value increase shows.
In force, due to the hardware problem of equipment component, may result in the display effect of target image compared with Difference, such as in target image, the channel value of some pixels is 80, and the passage of the pixel that user sees Value therefore, it can for less channel value to carry out increase process, such as by the passage of the pixel equivalent to 50 Value increases to 100, then user can see pixel of the channel value equivalent to 80.Terminal can be in target figure As in the channel value of each color channel of each pixel, the channel value less than predetermined threshold value is obtained, then The channel value of acquisition is carried out into increase process, terminal can increase channel value according to preset ratio, Channel value can be added default value, the target image after then can processing channel value increase shows Show.
Disclosure another exemplary embodiment provides a kind of method of target image, as shown in fig. 6, The handling process of the method can include the steps:
In step 601, target image to be shown is obtained.
In force, the trigger condition that terminal obtains target image to be shown can be diversified.With Family can install the application program with picture browsing function in terminal, when user wishes to browse certain image, When user needs to browse certain image (i.e. target image), user can open the application program, and at this In the image list that application program is provided, the corresponding icon of target image is clicked on, terminal can then receive correspondence The selection instruction of target image, then can obtain target image to be shown.User can also enter in terminal Row changing interface is operated, then terminal can determine interface to be shown according to the switching command of user, and then The background image in the interface can be obtained, as target image to be shown.For example, user can be from certain The desktop of system is switched in the interface of individual application program, then terminal can obtain the wallpaper of desktop, by wallpaper As target image to be shown;Or, user can open certain application program in the desktop of system, then Terminal can obtain the main interface of the application program, and then can obtain the image included in main interface, as Target image to be shown.
In step 602, the gray level image of target image is obtained, each pixel included in gray level image is determined The gray value of point.
In force, terminal is obtained after target image to be shown, can according to default gray scale detection algorithm, The gray level image of target image is obtained, in gray level image, each pixel can be to there is a gray scale Value, then terminal can determine the gray value of each pixel.For three color channels, terminal can basis The channel value of any one color channel of each pixel in target image, obtains the gray level image of target image. For example, terminal can determine the gray level image of target image according to the channel value of the red channel of each pixel; Or the gray level image of target image can be determined according to the channel value of the green channel of each pixel;Also may be used According to the channel value of the blue channel of each pixel, to determine the gray level image of target image.
Optionally, corresponding three gray level images of three color channels of target image can be obtained, accordingly, The processing procedure of step 602 can be as follows:The corresponding gray level image of each color channel of target image is obtained, really The gray value of each pixel included in fixed each gray level image.
In force, terminal is obtained after target image to be shown, can according to default gray scale detection algorithm, Determine the corresponding gray level image of red channel, and determine in the gray level image, each pixel can be corresponded to Gray value.Terminal can determine the corresponding gray level image of blue channel according to default gray scale detection algorithm, And determine in the gray level image, each pixel can corresponding gray value.Terminal can also be according to default Gray scale detection algorithm, determine the corresponding gray level image of green channel, and determine in the gray level image, each Pixel can corresponding gray value.
In step 603, the number of the corresponding pixel of each gray value is determined, if each gray value pair The number of the pixel answered meets default random distribution condition, then by the Src Chan value of each color channel Scope is compressed process, and the channel value scope after being processed based on compression is shown to target image.
In force, terminal can be by wide colour gamut come target image, it is also possible to by standard color gamut come Display image.Wherein, in wide colour gamut, the scope of the channel value of each color channel is 0~255, in reference colours In domain, the scope of the channel value of each color channel is then preset range, and preset range is less than 0~255, such as can be with It is 0~200.
Terminal determined after the gray value of each pixel included in gray level image, can count each gray value pair The number of the pixel answered, and then may determine that whether the number of the corresponding pixel of each gray value meets default Randomness change condition.Randomness change condition can be diversified, and for example, terminal counts each After the number of the corresponding pixel of gray value, can obtain the corresponding pixel of each gray value number it is straight Fang Tu, then terminal can calculate the ratio of the number of the corresponding pixel of any two gray value, Ran Houke Whether to judge the ratio as integer, and the number of the ratio of integer can be recorded.If the number is less than Preset number threshold value, the then number that can be determined that the corresponding pixel of each gray value meets default randomness Distribution occasion, i.e. target image are natural image, and the natural land image for such as shooting, natural image is corresponding Rectangular histogram can be with as shown in Fig. 2 the Src Chan value scope of each color channel can be compressed place by terminal Reason, the channel value scope after being processed based on compression shows that is, terminal can pass through standard to target image Colour gamut shows to target image.So, based on above-mentioned process, terminal can carry out color gamut conversion, real Now different types of image call difference colour gamut is shown.
Optionally, can be judged whether with value according to the number of the corresponding pixel of discrete gray value full The above-mentioned random distribution condition of foot, corresponding processing procedure can be as follows:If there is no multiple discrete ashes The number of the corresponding pixel of angle value and value be more than predetermined threshold value, then by the Src Chan value of each color channel Scope is compressed process, and the channel value scope after being processed based on compression is shown to target image.
In force, terminal determined after the gray value of each pixel included in gray level image, can be counted every The number of the corresponding pixel of individual gray value, then can determine to having pixel and discrete gray value, As shown in Figure 3.If there is two adjacent gray values all to there is pixel number, then can ignore it In a gray value, for example, the less gray value of corresponding number can be ignored.Terminal can these from In the number of the corresponding pixel of scattered gray value, it is determined that the first number of maximum, and then can determine and The mutually discrete gray value of the corresponding gray value of one number, then can be in these discrete gray values, will most The first big number is added with the second second largest number, then judge to obtain and value whether more than or Equal to predetermined threshold value, if should and be worth be less than predetermined threshold value, by the 3rd the third-largest number with should and value phase Plus, then judge whether what is obtained is more than or equal to predetermined threshold value with value, by that analogy.If there is no many The number and value of the corresponding pixel of individual discrete gray value is more than predetermined threshold value, then can lead to each color The Src Chan value scope in road is compressed process, and the channel value scope after being processed based on compression is to target image Shown.
Optionally, it is also possible to which whether the number for judging the corresponding pixel of each gray value meets linear changing relation, Corresponding processing procedure can be as follows:If the number of the corresponding pixel of each gray value is unsatisfactory for linear change Relation, then be compressed process by the Src Chan value scope of each color channel, logical after being processed based on compression Road value scope shows to target image.
In force, terminal determined after the gray value of each pixel included in gray level image, can be counted every The number of the corresponding pixel of individual gray value, obtains the rectangular histogram of gray value and the number of corresponding pixel, As shown in Figure 4.Terminal can carry out curve by default algorithm (such as method of least square) to these data Fitting, then may determine that whether the curve for obtaining is straight line, or whether can be approximated to be straight line (as respectively The difference of the slope of line segment is in preset range).If what fitting was obtained is not straight line, or cannot be approximate For straight line, then terminal can be determined that the number of the corresponding pixel of each gray value is unsatisfactory for linear changing relation, Then the Src Chan value scope of each color channel is compressed into process, the channel value model after processing based on compression Enclose and target image is shown.
Optionally, for the feelings of corresponding three gray level images of three color channels of above-mentioned acquisition target image Condition, accordingly, the processing procedure of step 603 can be as follows:Respectively in each gray level image, it is determined that often The number of the corresponding pixel of individual gray value, if in each gray level image, existed every in the first gray level image The number of the corresponding pixel of individual gray value meets default random distribution condition, then by each color channel Src Chan value scope is compressed process, and the channel value scope after being processed based on compression is carried out to target image Show.
In force, after corresponding three gray level images of three color channels of terminal acquisition, can randomly select The corresponding gray level image of certain color channel is analyzed, and for example, it is corresponding that terminal can obtain red channel Gray level image, and determining in the gray level image, each pixel can corresponding gray value, then can be with Determine the number of the corresponding pixel of each gray value, and judge the number of the corresponding pixel of each gray value Whether default random distribution condition is met, if it is satisfied, then can be by the Src Chan of each color channel Value scope is compressed process, and the channel value scope after being processed based on compression is shown to target image, such as Fruit is unsatisfactory for, then can be in other two color channel, the corresponding gray level image of one color channel of selection Above-mentioned analysis is carried out, by that analogy.If in corresponding three gray level images of three color channels, there is certain The number of the corresponding pixel of each gray value in individual gray level image (i.e. the first gray level image) meets default Random distribution condition, then the Src Chan value scope of each color channel can be compressed process, and Channel value scope after being processed based on compression is shown to target image.
Optionally, can be compressed according to certain proportionate relationship, corresponding processing procedure can be as follows: By the Src Chan value Ratage Coutpressioit of each color channel to default channel value scope;According to default channel value scope With the proportionate relationship of Src Chan value scope, the passage to each color channel of each pixel in target image Value is compressed;Target image is shown based on the channel value after compression.
In force, if the terminal determine that the number of the corresponding pixel of each gray value meets default random Property change condition, then can by the Src Chan value Ratage Coutpressioit of each color channel to default channel value scope, And the proportionate relationship of default channel value scope and Src Chan value scope can be calculated, wherein, preset passage Value scope is less than Src Chan value scope.For example, Src Chan value scope is 0~255, and default channel value is 0~200, then proportionate relationship is 200/255.Terminal determined after proportionate relationship, can according to the proportionate relationship, The channel value of each pixel in target image is compressed, the channel value pair after compression is may then based on Target image is shown.In addition, default channel value scope can also be divided into multiple subranges by terminal, Src Chan value scope is divided into into same number subrange, corresponding two subranges then can be calculated Proportionate relationship, and then according to the proportionate relationship for calculating, the channel value to each pixel in target image It is compressed.
For example, it is 0~200 to preset channel value scope, and its corresponding subrange is 0~100,100~150, 150~200, Src Chan value scope is 0~255, and its corresponding subrange is 0~130,130~200, 200~255, then the ratio that can determine corresponding subrange is:100/130=10/13,150/200=3/4, 200/255=40/51, then be 120*10/13=92, channel value 150 after the compression of channel value 120 in target image It is 150*3/4=112 after compression, is 172 after the compression of channel value 220.
Terminal determines after the channel value after compression process that the channel value that can be based on after compression be entered to target image Row shows.In addition, for three color channels, its corresponding default channel value scope can be identical, Can also be different.
Optionally, for less channel value, it is also possible to carry out increase process, corresponding processing procedure can be with It is as follows:In the target image in the channel value after the compression of each color channel of each pixel, will be less than pre- If the channel value after the compression of threshold value carries out increase process, the target image after processing channel value increase is carried out Show.
In force, due to the hardware problem of equipment component, may result in the display effect of target image compared with Difference, such as in target image, the channel value of some pixels is 80, and the passage of the pixel that user sees Value therefore, it can for less channel value to carry out increase process, such as by the passage of the pixel equivalent to 50 Value increases to 100, then user can see pixel of the channel value equivalent to 80.For to Src Chan value Scope is compressed the situation of process, terminal then can each pixel in the target image each color channel Compression after channel value in, obtain less than predetermined threshold value channel value, then the channel value of acquisition is carried out Increase is processed, and then the target image after processing channel value increase shows.
In the embodiment of the present disclosure, target image to be shown is obtained, obtain the gray level image of target image, really Determine the gray value of each pixel included in gray level image, determine the number of the corresponding pixel of each gray value, If the number of the corresponding pixel of each gray value meets default random distribution condition, by each color The Src Chan value scope of passage is compressed process, and the channel value scope after being processed based on compression is to target figure As being shown, so, count out by the stronger natural views of the randomness of grey value profile in display pixel During image, the channel value scope after compression is processed can be based on it is shown, reduce the overall channel value of image, Reduction occurs that image saturation is too high, image fault situation, such that it is able to improve the accuracy of display image.
Disclosure further example embodiment provides a kind of device of target image, as shown in fig. 7, The device includes:Acquisition module 710, determining module 720 and display module 730.
Acquisition module 710, for obtaining target image to be shown;
Determining module 720, for obtaining the gray level image of the target image, determines in the gray level image and wraps The gray value of each pixel for containing;
Display module 730, for determining the number of the corresponding pixel of each gray value, if described each ash The number of the corresponding pixel of angle value is unsatisfactory for default randomness change condition, then logical based on each color The Src Chan value scope in road shows to the target image;If the corresponding picture of described each gray value The number of vegetarian refreshments meets default random distribution condition, then enter the Src Chan value scope of each color channel Row compression is processed, and the channel value scope after being processed based on compression is shown to the target image.
Optionally, the display module 730, is used for:
It is more than predetermined threshold value if there is the number and value of the corresponding pixel of multiple discrete gray values, then The target image is shown based on the Src Chan value scope of each color channel;If there is no The number and value of the corresponding pixel of multiple discrete gray values is more than predetermined threshold value, then by each color channel Src Chan value scope be compressed process, based on compression process after channel value scope to the target figure As being shown.
Optionally, the display module 730, is used for:
If the number of the corresponding pixel of each gray value meets linear changing relation, based on described each The Src Chan value scope of color channel shows to the target image;If each gray value correspondence The number of pixel be unsatisfactory for linear changing relation, then the Src Chan value scope of each color channel is carried out Compression is processed, and the channel value scope after being processed based on compression is shown to the target image.
Optionally, as shown in figure 8, the display module 730, including:
First compression submodule 731, for by the Src Chan value Ratage Coutpressioit of each color channel to default passage Value scope;
Second compression submodule 732, for according to the default channel value scope and the Src Chan value scope Proportionate relationship, the channel value of each color channel of each pixel in the target image is compressed;
Display sub-module 733, for being shown to the target image based on the channel value after compression.
Optionally, the acquisition module 710, is used for:
The corresponding gray level image of each color channel of the target image is obtained, determines what is included in each gray level image The gray value of each pixel;
The display module 730, is used for:
Respectively in each gray level image, the number of the corresponding pixel of each gray value is determined, if described In each gray level image, the number that there is the corresponding pixel of each gray value in the first gray level image meets pre- If random distribution condition, then the Src Chan value scope of each color channel is compressed into process, be based on Channel value scope after compression is processed shows to the target image;If in each gray level image The number of the corresponding pixel of each gray value is unsatisfactory for default randomness change condition, then based on described The Src Chan value scope of each color channel shows to the target image.
Optionally, the display module 730, is used for:
In the target image in the channel value of each color channel of each pixel, will be less than predetermined threshold value Channel value carry out increase process, to channel value increase process after target image show;
The display module 730, is used for:
In channel value in the target image after the compression of each color channel of each pixel, will be less than Channel value after the compression of predetermined threshold value carries out increase process, and the target image after processing channel value increase enters Row shows.
With regard to the device in above-described embodiment, wherein modules perform the concrete mode of operation relevant It has been described in detail in the embodiment of the method, explanation will be not set forth in detail herein.
In the embodiment of the present disclosure, target image to be shown is obtained, obtain the gray level image of target image, really Determine the gray value of each pixel included in gray level image, determine the number of the corresponding pixel of each gray value, If the number of the corresponding pixel of each gray value meets default random distribution condition, by each color The Src Chan value scope of passage is compressed process, and the channel value scope after being processed based on compression is to target figure As being shown, so, count out by the stronger natural views of the randomness of grey value profile in display pixel During image, the channel value scope after compression is processed can be based on it is shown, reduce the overall channel value of image, Reduction occurs that image saturation is too high, image fault situation, such that it is able to improve the accuracy of display image.
Disclosure further example embodiment provides a kind of device of target image, as shown in fig. 7, The device includes:Acquisition module 710, determining module 720 and display module 730.
Acquisition module 710, for obtaining target image to be shown;
Determining module 720, for obtaining the gray level image of the target image, determines in the gray level image and wraps The gray value of each pixel for containing;
Display module 730, for determining the number of the corresponding pixel of each gray value, if described each ash The number of the corresponding pixel of angle value is unsatisfactory for default randomness change condition, then logical based on each color The Src Chan value scope in road shows to the target image.
Optionally, the display module 730, is used for:
It is more than predetermined threshold value if there is the number and value of the corresponding pixel of multiple discrete gray values, then The target image is shown based on the Src Chan value scope of each color channel.
Optionally, the display module 730, is used for:
If the number of the corresponding pixel of each gray value meets linear changing relation, based on described each The Src Chan value scope of color channel shows to the target image.
Optionally, the acquisition module 710, is used for:
The corresponding gray level image of each color channel of the target image is obtained, determines what is included in each gray level image The gray value of each pixel;
The display module 730, is used for:
Respectively in each gray level image, the number of the corresponding pixel of each gray value is determined, if described The number of the corresponding pixel of each gray value in each gray level image is unsatisfactory for default randomness change bar Part, then shown based on the Src Chan value scope of each color channel to the target image.
Optionally, the display module 730, is used for:
In the target image in the channel value of each color channel of each pixel, will be less than predetermined threshold value Channel value carry out increase process, to channel value increase process after target image show.
Disclosure further example embodiment provides a kind of device of target image, as shown in fig. 7, The device includes:Acquisition module 710, determining module 720 and display module 730.
Acquisition module 710, for obtaining target image to be shown;
Determining module 720, for obtaining the gray level image of the target image, determines in the gray level image and wraps The gray value of each pixel for containing;
Display module 730, for determining the number of the corresponding pixel of each gray value, if described each ash The number of the corresponding pixel of angle value meets default random distribution condition, then by the original of each color channel Channel value scope is compressed process, and the channel value scope after being processed based on compression is carried out to the target image Show.
Optionally, the display module 730, is used for:
It is more than predetermined threshold value if there is no the number and value of the corresponding pixel of multiple discrete gray values, Then the Src Chan value scope of each color channel is compressed into process, the channel value model after processing based on compression Enclose and the target image is shown.
Optionally, the display module 730, is used for:
If the number of the corresponding pixel of each gray value is unsatisfactory for linear changing relation, by each color The Src Chan value scope of passage is compressed process, and the channel value scope after being processed based on compression is to the mesh Logo image is shown.
Optionally, the acquisition module 710, is used for:
The corresponding gray level image of each color channel of the target image is obtained, determines what is included in each gray level image The gray value of each pixel;
The display module 730, is used for:
Respectively in each gray level image, the number of the corresponding pixel of each gray value is determined, if described In each gray level image, the number that there is the corresponding pixel of each gray value in the first gray level image meets pre- If random distribution condition, then the Src Chan value scope of each color channel is compressed into process, be based on Channel value scope after compression is processed shows to the target image.
Optionally, as shown in figure 8, the display module 730, including:
First compression submodule 731, for by the Src Chan value Ratage Coutpressioit of each color channel to default passage Value scope;
Second compression submodule 732, for according to the default channel value scope and the Src Chan value scope Proportionate relationship, the channel value of each color channel of each pixel in the target image is compressed;
Display sub-module 733, for being shown to the target image based on the channel value after compression.
Optionally, the display module 730, is used for:
In channel value in the target image after the compression of each color channel of each pixel, will be less than Channel value after the compression of predetermined threshold value carries out increase process, and the target image after processing channel value increase enters Row shows.
In the embodiment of the present disclosure, target image to be shown is obtained, obtain the gray level image of target image, really Determine the gray value of each pixel included in gray level image, determine the number of the corresponding pixel of each gray value, If the number of the corresponding pixel of each gray value meets default random distribution condition, by each color The Src Chan value scope of passage is compressed process, and the channel value scope after being processed based on compression is to target figure As being shown, so, count out by the stronger natural views of the randomness of grey value profile in display pixel During image, the channel value scope after compression is processed can be based on it is shown, reduce the overall channel value of image, Reduction occurs that image saturation is too high, image fault situation, such that it is able to improve the accuracy of display image.
It should be noted that:Above-described embodiment provide target image device in target image, Only it is illustrated with the division of above-mentioned each functional module, in practical application, can as desired will be upper State function distribution to be completed by different functional modules, will the internal structure of equipment be divided into different function moulds Block, to complete all or part of function described above.In addition, the display target that above-described embodiment is provided The device of image belongs to same design with the embodiment of the method for target image, and it implements process and refers to Embodiment of the method, repeats no more here.
The another exemplary embodiment of the disclosure provides a kind of structural representation of terminal.The terminal can be handss Machine etc..
With reference to Fig. 9, terminal 800 can include following one or more assemblies:Process assembly 802, memorizer 804, power supply module 806, multimedia groupware 808, audio-frequency assembly 810, the interface of input/output (I/O) 812, sensor cluster 814, and communication component 816.
The integrated operation of the usual control terminal 800 of process assembly 802, such as with display, call, number According to communication, the associated operation of camera operation and record operation.Treatment element 802 can include one or many Individual processor 820 carrys out execute instruction, to complete all or part of step of above-mentioned method.Additionally, processing Component 802 can include one or more modules, the interaction being easy between process assembly 802 and other assemblies. For example, processing component 802 can include multi-media module, to facilitate multimedia groupware 808 and process assembly Interaction between 802.
Memorizer 804 is configured to store various types of data to support the operation in terminal 800.These The example of data includes the instruction of any application program for operating in terminal 800 or method, contact person Data, telephone book data, message, picture, video etc..Memorizer 804 can be by any kind of volatile Property or non-volatile memory device or combinations thereof realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), Programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory, Disk or CD.
Electric power assembly 806 provides electric power for the various assemblies of terminal 800.Electric power assembly 806 can include electricity Management system, one or more power supplys, and other with generate for audio output apparatus 800, manage and point With the component that electric power is associated.
Multimedia groupware 808 is included in the screen of one output interface of offer between the terminal 800 and user Curtain.In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).Such as Fruit screen includes touch panel, and screen may be implemented as touch screen, to receive the input signal from user. Touch panel includes one or more touch sensors with the gesture on sensing touch, slip and touch panel. The touch sensor can not only sensing touch or sliding action border, but also detect and the touch Or persistent period and the pressure of slide correlation.In certain embodiments, multimedia groupware 808 includes one Individual front-facing camera and/or post-positioned pick-up head.When terminal 800 is in operator scheme, such as screening-mode or video During pattern, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each is preposition to take the photograph As head and post-positioned pick-up head can be a fixed optical lens systems or with focal length and optical zoom energy Power.
Audio-frequency assembly 810 is configured to output and/or input audio signal.For example, audio-frequency assembly 810 includes One mike (MIC), when audio output apparatus 800 are in operator scheme, such as call model, record mould When formula and speech recognition mode, mike is configured to receive external audio signal.The audio signal for being received Can be further stored in memorizer 804 or via communication component 816 and send.
I/O interfaces 812 are that interface, above-mentioned peripheral interface are provided between process assembly 802 and peripheral interface module Module can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, sound Amount button, start button and locking press button.
Sensor cluster 814 includes one or more sensors, for providing various aspects for terminal 800 State estimation.For example, sensor cluster 814 can detect the opening/closed mode of terminal 800, component Relative localization, such as described component for terminal 800 display and keypad, sensor cluster 814 is also Can be with the position change of 800 1 components of detection terminal 800 or terminal, user and depositing that terminal 800 is contacted Or do not exist, the temperature change of the orientation of terminal 800 or acceleration/deceleration and terminal 800.Sensor cluster 814 Proximity transducer can be included, be configured to detect when without any physical contact near object deposit .Sensor cluster 814 can also include optical sensor, such as CMOS or ccd image sensor, be used for Used in imaging applications.In certain embodiments, the sensor cluster 814 can also be passed including acceleration Sensor, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communication component 816 is configured to facilitate the logical of wired or wireless way between terminal 800 and other equipment Letter.Terminal 800 can be accessed based on the wireless network of communication standard, such as WiFi, 2G or 3G, or they Combination.In one exemplary embodiment, communication component 816 is received from outside wide via broadcast channel The broadcast singal or broadcast related information of broadcast management system.In one exemplary embodiment, the communication unit Part 816 also includes near-field communication (NFC) module, to promote junction service.For example, can in NFC module Based on RF identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra broadband (UWB) skill Art, bluetooth (BT) technology and other technologies are realizing.
In the exemplary embodiment, terminal 800 can by one or more application specific integrated circuits (ASIC), Digital signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), Field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic component realities It is existing, for performing said method.
In the exemplary embodiment, a kind of non-transitory computer-readable storage medium including instruction is additionally provided Matter, such as, including the memorizer 804 of instruction, above-mentioned instruction can be performed with complete by the processor 820 of terminal 800 Into said method.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory Memorizer (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by terminal When reason device is performed so that terminal can hold a kind of method of target image, and the method includes:
Obtain target image to be shown;
The gray level image of the target image is obtained, the ash of each pixel included in the gray level image is determined Angle value;
The number of the corresponding pixel of each gray value is determined, if the corresponding pixel of described each gray value Number be unsatisfactory for default randomness change condition, then the Src Chan value model based on each color channel Enclose and the target image is shown.
Optionally, if the number of the corresponding pixel of described each gray value be unsatisfactory for it is default random Property change condition, then shown based on the Src Chan value scope of each color channel to the target image Show, including:
It is more than predetermined threshold value if there is the number and value of the corresponding pixel of multiple discrete gray values, then The target image is shown based on the Src Chan value scope of each color channel.
Optionally, if the number of the corresponding pixel of described each gray value be unsatisfactory for it is default random Property change condition, then shown based on the Src Chan value scope of each color channel to the target image Show, including:
If the number of the corresponding pixel of each gray value meets linear changing relation, based on described each The Src Chan value scope of color channel shows to the target image.
Optionally, the gray level image for obtaining the target image, determines what is included in the gray level image The gray value of each pixel, including:
The corresponding gray level image of each color channel of the target image is obtained, determines what is included in each gray level image The gray value of each pixel;
The number for determining the corresponding pixel of each gray value, if the corresponding picture of described each gray value The number of vegetarian refreshments is unsatisfactory for default randomness change condition, then the Src Chan based on each color channel Value scope shows to the target image, including:
Respectively in each gray level image, the number of the corresponding pixel of each gray value is determined, if described The number of the corresponding pixel of each gray value in each gray level image is unsatisfactory for default randomness change bar Part, then shown based on the Src Chan value scope of each color channel to the target image.
Optionally, the Src Chan value scope based on each color channel is carried out to the target image Show, including:
In the target image in the channel value of each color channel of each pixel, will be less than predetermined threshold value Channel value carry out increase process, to channel value increase process after target image show.
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by terminal When reason device is performed so that terminal can also hold a kind of method of target image, and the method includes:
Obtain target image to be shown;
The gray level image of the target image is obtained, the ash of each pixel included in the gray level image is determined Angle value;
The number of the corresponding pixel of each gray value is determined, if the corresponding pixel of described each gray value Number meet default random distribution condition, then the Src Chan value scope of each color channel is pressed Contracting is processed, and the channel value scope after being processed based on compression is shown to the target image.
Optionally, if the number of the corresponding pixel of described each gray value meets default randomness Distribution occasion, then be compressed process by the Src Chan value scope of each color channel, after being processed based on compression Channel value scope the target image is shown, including:
It is more than predetermined threshold value if there is no the number and value of the corresponding pixel of multiple discrete gray values, Then the Src Chan value scope of each color channel is compressed into process, the channel value model after processing based on compression Enclose and the target image is shown.
Optionally, if the number of the corresponding pixel of described each gray value meets default randomness Distribution occasion, then be compressed process by the Src Chan value scope of each color channel, after being processed based on compression Channel value scope the target image is shown, including:
If the number of the corresponding pixel of each gray value is unsatisfactory for linear changing relation, by each color The Src Chan value scope of passage is compressed process, and the channel value scope after being processed based on compression is to the mesh Logo image is shown.
Optionally, the gray level image for obtaining the target image, determines what is included in the gray level image The gray value of each pixel, including:
The corresponding gray level image of each color channel of the target image is obtained, determines what is included in each gray level image The gray value of each pixel;
The number for determining the corresponding pixel of each gray value, if the corresponding picture of described each gray value The number of vegetarian refreshments meets default random distribution condition, then enter the Src Chan value scope of each color channel Row compression is processed, and the channel value scope after being processed based on compression is shown to the target image, including:
Respectively in each gray level image, the number of the corresponding pixel of each gray value is determined, if described In each gray level image, the number that there is the corresponding pixel of each gray value in the first gray level image meets pre- If random distribution condition, then the Src Chan value scope of each color channel is compressed into process, be based on Channel value scope after compression is processed shows to the target image.
Optionally, it is described that the Src Chan value scope of each color channel is compressed into process, at compression Channel value scope after reason shows to the target image, including:
By the Src Chan value Ratage Coutpressioit of each color channel to default channel value scope;
According to the proportionate relationship of the default channel value scope and the Src Chan value scope, to the target The channel value of each color channel of each pixel is compressed in image;
The target image is shown based on the channel value after compression.
Optionally, the channel value based on after compression shows to the target image, including:
In channel value in the target image after the compression of each color channel of each pixel, will be less than Channel value after the compression of predetermined threshold value carries out increase process, and the target image after processing channel value increase enters Row shows.
In the embodiment of the present disclosure, target image to be shown is obtained, obtain the gray level image of target image, really Determine the gray value of each pixel included in gray level image, determine the number of the corresponding pixel of each gray value, If the number of the corresponding pixel of each gray value meets default random distribution condition, by each color The Src Chan value scope of passage is compressed process, and the channel value scope after being processed based on compression is to target figure As being shown, so, count out by the stronger natural views of the randomness of grey value profile in display pixel During image, the channel value scope after compression is processed can be based on it is shown, reduce the overall channel value of image, Reduction occurs that image saturation is too high, image fault situation, such that it is able to improve the accuracy of display image.
Those skilled in the art will readily occur to this public affairs after considering description and putting into practice disclosure disclosed herein Other embodiments opened.The application is intended to any modification, purposes or the adaptations of the disclosure, These modifications, purposes or adaptations follow the general principle of the disclosure and are not disclosed including the disclosure Common knowledge in the art or conventional techniques.Description and embodiments are considered only as exemplary , the true scope and spirit of the disclosure are pointed out by claim below.
It should be appreciated that the disclosure is not limited to the accurate knot for being described above and being shown in the drawings Structure, and can without departing from the scope carry out various modifications and changes.The scope of the present disclosure is only by appended Claim is limiting.

Claims (24)

1. a kind of method of target image, it is characterised in that methods described includes:
Obtain target image to be shown;
The gray level image of the target image is obtained, the ash of each pixel included in the gray level image is determined Angle value;
The number of the corresponding pixel of each gray value is determined, if the corresponding pixel of described each gray value Number be unsatisfactory for default randomness change condition, then the Src Chan value model based on each color channel Enclose and the target image is shown.
2. method according to claim 1, it is characterised in that if described each gray value pair The number of the pixel answered is unsatisfactory for default randomness change condition, then the original based on each color channel Beginning channel value scope shows to the target image, including:
It is more than predetermined threshold value if there is the number and value of the corresponding pixel of multiple discrete gray values, then The target image is shown based on the Src Chan value scope of each color channel.
3. method according to claim 1, it is characterised in that if described each gray value pair The number of the pixel answered is unsatisfactory for default randomness change condition, then the original based on each color channel Beginning channel value scope shows to the target image, including:
If the number of the corresponding pixel of each gray value meets linear changing relation, based on described each The Src Chan value scope of color channel shows to the target image.
4. method according to claim 1, it is characterised in that the ash of the acquisition target image Degree image, determines the gray value of each pixel included in the gray level image, including:
The corresponding gray level image of each color channel of the target image is obtained, determines what is included in each gray level image The gray value of each pixel;
The number for determining the corresponding pixel of each gray value, if the corresponding picture of described each gray value The number of vegetarian refreshments is unsatisfactory for default randomness change condition, then the Src Chan based on each color channel Value scope shows to the target image, including:
Respectively in each gray level image, the number of the corresponding pixel of each gray value is determined, if described The number of the corresponding pixel of each gray value in each gray level image is unsatisfactory for default randomness change bar Part, then shown based on the Src Chan value scope of each color channel to the target image.
5. method according to claim 1, it is characterised in that described based on each color channel Src Chan value scope shows to the target image, including:
In the target image in the channel value of each color channel of each pixel, will be less than predetermined threshold value Channel value carry out increase process, to channel value increase process after target image show.
6. a kind of method of target image, it is characterised in that methods described includes:
Obtain target image to be shown;
The gray level image of the target image is obtained, the ash of each pixel included in the gray level image is determined Angle value;
The number of the corresponding pixel of each gray value is determined, if the corresponding pixel of described each gray value Number meet default random distribution condition, then the Src Chan value scope of each color channel is pressed Contracting is processed, and the channel value scope after being processed based on compression is shown to the target image.
7. method according to claim 6, it is characterised in that if described each gray value pair The number of the pixel answered meets default random distribution condition, then by the Src Chan value of each color channel Scope is compressed process, and the channel value scope after being processed based on compression is shown to the target image, Including:
It is more than predetermined threshold value if there is no the number and value of the corresponding pixel of multiple discrete gray values, Then the Src Chan value scope of each color channel is compressed into process, the channel value model after processing based on compression Enclose and the target image is shown.
8. method according to claim 6, it is characterised in that if described each gray value pair The number of the pixel answered meets default random distribution condition, then by the Src Chan value of each color channel Scope is compressed process, and the channel value scope after being processed based on compression is shown to the target image, Including:
If the number of the corresponding pixel of each gray value is unsatisfactory for linear changing relation, by each color The Src Chan value scope of passage is compressed process, and the channel value scope after being processed based on compression is to the mesh Logo image is shown.
9. method according to claim 6, it is characterised in that the ash of the acquisition target image Degree image, determines the gray value of each pixel included in the gray level image, including:
The corresponding gray level image of each color channel of the target image is obtained, determines what is included in each gray level image The gray value of each pixel;
The number for determining the corresponding pixel of each gray value, if the corresponding picture of described each gray value The number of vegetarian refreshments meets default random distribution condition, then enter the Src Chan value scope of each color channel Row compression is processed, and the channel value scope after being processed based on compression is shown to the target image, including:
Respectively in each gray level image, the number of the corresponding pixel of each gray value is determined, if described In each gray level image, the number that there is the corresponding pixel of each gray value in the first gray level image meets pre- If random distribution condition, then the Src Chan value scope of each color channel is compressed into process, be based on Channel value scope after compression is processed shows to the target image.
10. method according to claim 6, it is characterised in that described by the original of each color channel Channel value scope is compressed process, and the channel value scope after being processed based on compression is carried out to the target image Show, including:
By the Src Chan value Ratage Coutpressioit of each color channel to default channel value scope;
According to the proportionate relationship of the default channel value scope and the Src Chan value scope, to the target The channel value of each color channel of each pixel is compressed in image;
The target image is shown based on the channel value after compression.
11. methods according to claim 10, it is characterised in that the channel value based on after compression The target image is shown, including:
In channel value in the target image after the compression of each color channel of each pixel, will be less than Channel value after the compression of predetermined threshold value carries out increase process, and the target image after processing channel value increase enters Row shows.
12. a kind of devices of target image, it is characterised in that described device includes:
Acquisition module, for obtaining target image to be shown;
Determining module, for obtaining the gray level image of the target image, determines and is included in the gray level image Each pixel gray value;
Display module, for determining the number of the corresponding pixel of each gray value, if described each gray scale The number for being worth corresponding pixel is unsatisfactory for default randomness change condition, then based on each color channel Src Chan value scope the target image is shown.
13. devices according to claim 12, it is characterised in that the display module, are used for:
It is more than predetermined threshold value if there is the number and value of the corresponding pixel of multiple discrete gray values, then The target image is shown based on the Src Chan value scope of each color channel.
14. devices according to claim 12, it is characterised in that the display module, are used for:
If the number of the corresponding pixel of each gray value meets linear changing relation, based on described each The Src Chan value scope of color channel shows to the target image.
15. devices according to claim 12, it is characterised in that the acquisition module, are used for:
The corresponding gray level image of each color channel of the target image is obtained, determines what is included in each gray level image The gray value of each pixel;
The display module, is used for:
Respectively in each gray level image, the number of the corresponding pixel of each gray value is determined, if described The number of the corresponding pixel of each gray value in each gray level image is unsatisfactory for default randomness change bar Part, then shown based on the Src Chan value scope of each color channel to the target image.
16. devices according to claim 12, it is characterised in that the display module, are used for:
In the target image in the channel value of each color channel of each pixel, will be less than predetermined threshold value Channel value carry out increase process, to channel value increase process after target image show.
17. a kind of devices of target image, it is characterised in that described device includes:
Acquisition module, for obtaining target image to be shown;
Determining module, for obtaining the gray level image of the target image, determines and is included in the gray level image Each pixel gray value;
Display module, for determining the number of the corresponding pixel of each gray value, if described each gray scale The number for being worth corresponding pixel meets default random distribution condition, then by the original logical of each color channel Road value scope is compressed process, and the channel value scope after being processed based on compression is shown to the target image Show.
18. devices according to claim 17, it is characterised in that the display module, are used for:
It is more than predetermined threshold value if there is no the number and value of the corresponding pixel of multiple discrete gray values, Then the Src Chan value scope of each color channel is compressed into process, the channel value model after processing based on compression Enclose and the target image is shown.
19. devices according to claim 17, it is characterised in that the display module, are used for:
If the number of the corresponding pixel of each gray value is unsatisfactory for linear changing relation, by each color The Src Chan value scope of passage is compressed process, and the channel value scope after being processed based on compression is to the mesh Logo image is shown.
20. devices according to claim 17, it is characterised in that the acquisition module, are used for:
The corresponding gray level image of each color channel of the target image is obtained, determines what is included in each gray level image The gray value of each pixel;
The display module, is used for:
Respectively in each gray level image, the number of the corresponding pixel of each gray value is determined, if described In each gray level image, the number that there is the corresponding pixel of each gray value in the first gray level image meets pre- If random distribution condition, then the Src Chan value scope of each color channel is compressed into process, be based on Channel value scope after compression is processed shows to the target image.
21. devices according to claim 17, it is characterised in that the display module, including:
First compression submodule, for by the Src Chan value Ratage Coutpressioit of each color channel to default channel value Scope;
Second compression submodule, for according to the default channel value scope and the Src Chan value scope Proportionate relationship, is compressed to the channel value of each color channel of each pixel in the target image;
Display sub-module, for being shown to the target image based on the channel value after compression.
22. devices according to claim 21, it is characterised in that the display module, are used for:
In channel value in the target image after the compression of each color channel of each pixel, will be less than Channel value after the compression of predetermined threshold value carries out increase process, and the target image after processing channel value increase enters Row shows.
23. a kind of devices of target image, it is characterised in that include:
Processor;
For storing the memorizer of processor executable;
Wherein, the processor is configured to:
Obtain target image to be shown;
The gray level image of the target image is obtained, the ash of each pixel included in the gray level image is determined Angle value;
The number of the corresponding pixel of each gray value is determined, if the corresponding pixel of described each gray value Number be unsatisfactory for default randomness change condition, then the Src Chan value model based on each color channel Enclose and the target image is shown.
24. a kind of devices of target image, it is characterised in that include:
Processor;
For storing the memorizer of processor executable;
Wherein, the processor is configured to:
Obtain target image to be shown;
The gray level image of the target image is obtained, the ash of each pixel included in the gray level image is determined Angle value;
The number of the corresponding pixel of each gray value is determined, if the corresponding pixel of described each gray value Number meet default random distribution condition, then the Src Chan value scope of each color channel is pressed Contracting is processed, and the channel value scope after being processed based on compression is shown to the target image.
CN201510646075.1A 2015-10-08 2015-10-08 A kind of method and apparatus of displaying target image Active CN106571127B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510646075.1A CN106571127B (en) 2015-10-08 2015-10-08 A kind of method and apparatus of displaying target image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510646075.1A CN106571127B (en) 2015-10-08 2015-10-08 A kind of method and apparatus of displaying target image

Publications (2)

Publication Number Publication Date
CN106571127A true CN106571127A (en) 2017-04-19
CN106571127B CN106571127B (en) 2019-06-14

Family

ID=58506580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510646075.1A Active CN106571127B (en) 2015-10-08 2015-10-08 A kind of method and apparatus of displaying target image

Country Status (1)

Country Link
CN (1) CN106571127B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107704801A (en) * 2017-08-18 2018-02-16 电子科技大学 Curved lanes line detecting method based on segmented linear bonus point section Bezier

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005130486A (en) * 2003-09-30 2005-05-19 Sanyo Electric Co Ltd Video signal processing apparatus
US20070076949A1 (en) * 2005-09-30 2007-04-05 Canon Kabushiki Kaisha Data processing method, image processing method, image display unit and television apparatus
CN101360178A (en) * 2007-07-31 2009-02-04 佳能株式会社 Image processing device and image processing method
CN102081258A (en) * 2009-11-30 2011-06-01 乐金显示有限公司 Liquid crystal display and local dimming control control method thereof
CN102523397A (en) * 2011-12-12 2012-06-27 四川长虹电器股份有限公司 Method for adjusting screen image quality
CN102831592A (en) * 2012-08-10 2012-12-19 中国电子科技集团公司第四十一研究所 Image nonlinearity enhancement method based on histogram subsection transformation
CN104408752A (en) * 2014-12-11 2015-03-11 西安电子科技大学 High dynamic range image compression method based on mixed tone mapping algorithm

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005130486A (en) * 2003-09-30 2005-05-19 Sanyo Electric Co Ltd Video signal processing apparatus
US20070076949A1 (en) * 2005-09-30 2007-04-05 Canon Kabushiki Kaisha Data processing method, image processing method, image display unit and television apparatus
CN101360178A (en) * 2007-07-31 2009-02-04 佳能株式会社 Image processing device and image processing method
CN102081258A (en) * 2009-11-30 2011-06-01 乐金显示有限公司 Liquid crystal display and local dimming control control method thereof
CN102523397A (en) * 2011-12-12 2012-06-27 四川长虹电器股份有限公司 Method for adjusting screen image quality
CN102831592A (en) * 2012-08-10 2012-12-19 中国电子科技集团公司第四十一研究所 Image nonlinearity enhancement method based on histogram subsection transformation
CN104408752A (en) * 2014-12-11 2015-03-11 西安电子科技大学 High dynamic range image compression method based on mixed tone mapping algorithm

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107704801A (en) * 2017-08-18 2018-02-16 电子科技大学 Curved lanes line detecting method based on segmented linear bonus point section Bezier

Also Published As

Publication number Publication date
CN106571127B (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN104503689B (en) Application interface display methods and device
RU2630167C1 (en) Method and device for switching colour range mode
CN105094549B (en) Show the method and device of message
CN106371688A (en) Full-screen single-hand operation method and apparatus
CN106570442A (en) Fingerprint identification method and device
CN105760884B (en) The recognition methods of picture type and device
CN106572389A (en) Method and apparatus for adjusting display image
CN106201292A (en) Terminal false-touch prevention method and apparatus
CN106713696B (en) Image processing method and device
CN105631797A (en) Watermarking method and device
CN104216525B (en) Method and device for mode control of camera application
JP6392900B2 (en) Pressure detection method, apparatus, program, and recording medium
CN105159661A (en) Corner mark display method and apparatus for icon
CN105487805A (en) Object operating method and device
CN105956486A (en) Remote control method and apparatus
CN106383627A (en) Information displaying method and apparatus
CN104464674B (en) Liquid crystal display method of adjustment and device
CN105678266A (en) Method and device for combining photo albums of human faces
CN106843666A (en) The method and device of display interface adjustment
CN107168543A (en) Control method of keyboard and device
CN105825490A (en) Gaussian blur method and device of image
CN106817608A (en) Realize the method and device of local display
CN106775548B (en) page processing method and device
CN106681632A (en) Projection control method, device and system, terminal device and display device
CN106210446A (en) saturation enhancement method and device

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