CN106341671B - Method for displaying image based on sub-pix down-sampling - Google Patents

Method for displaying image based on sub-pix down-sampling Download PDF

Info

Publication number
CN106341671B
CN106341671B CN201510408004.8A CN201510408004A CN106341671B CN 106341671 B CN106341671 B CN 106341671B CN 201510408004 A CN201510408004 A CN 201510408004A CN 106341671 B CN106341671 B CN 106341671B
Authority
CN
China
Prior art keywords
sub
pix
color
sampled
color component
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.)
Active
Application number
CN201510408004.8A
Other languages
Chinese (zh)
Other versions
CN106341671A (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.)
Xi'an Nova Nebula Technology Co., Ltd.
Original Assignee
Xian Novastar Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Novastar Electronic Technology Co Ltd filed Critical Xian Novastar Electronic Technology Co Ltd
Priority to CN201510408004.8A priority Critical patent/CN106341671B/en
Publication of CN106341671A publication Critical patent/CN106341671A/en
Application granted granted Critical
Publication of CN106341671B publication Critical patent/CN106341671B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Of Color Television Signals (AREA)
  • Image Processing (AREA)

Abstract

The present invention relates to a kind of method for displaying image based on sub-pix down-sampling, including:(i) original image of input is received;(ii) Gamma is carried out to original image to convert to obtain original image after Gamma is converted;(iii) original image carries out sub-pix down-sampling and obtains multiple being sampled sub-pix color component after being converted to Gamma;(iv) anti-color error handle is carried out respectively to obtain sub-pix color component after multiple anti-color error handles to multiple sub-pix color components that are sampled;(v) anti-Gamma is carried out to sub-pix color component after multiple anti-color error handles to convert to obtain target image;And (vi) exports target image to target display screen.Especially, in step (iv), for similar patterns such as the lines in original image, words, increase complementary color again after particular decision condition is judged after sub-pix down-sampling, thus it can largely improve resolution ratio and eliminate color mistake, solve colour cast problem such as complementary color excess or mend a plurality of line that the complementary color mechanism in prior art is brought.

Description

Method for displaying image based on sub-pix down-sampling
Technical field
The present invention relates to image procossing and display technology field, more particularly to a kind of image based on sub-pix down-sampling shows Show method.
Background technology
Display Technique is that information industry includes one of most critical part in technology, LED (Light Emitting Diode, light emitting diode) display screen system as new Display Technique, with its energy-saving and environmental protection, it is highlighted the advantages that gradual quilt Market receives, so as to be widely used in the fields such as city medium, urban transportation.Pursuit such as high-resolution to display quality shows Show it is that LED shows that industry constantly pursues a goal.
1) existing LED display uses three primary colours Display Technique more, and the lifting for resolution ratio is simply using traditional Both full-pixel Sampling techniques, thus mainly lift resolution ratio using the density and scale that increase physical picture element.This technology Cost is high, and room for promotion is limited, also has in terms of manufacture craft and radiating and certain drawback be present.
2) occur that color aliasing is asked when in the display system, being sampled using sub-pix down-sampling technology to original image Topic.It is existing to be based on the anti-color aliasing filtering method of display device sub-pix arrangement, although color can be being eliminated to a certain degree Mistake, but color mistake still occurs in the processing of the lines for occurring in original image, word etc., display effect is not Very well, so processing text message will have more preferable algorithm.It by line width is one or two pixel groups that text message herein, which is, Into thin lines form text.
Fig. 1 is referred to, it is the image procossing stream based on sub-pix down-sampling and anti-color error algorithms in prior art Cheng Tu;Specially:The red being sampled to carrying out sub-pix down-sampling after the original image progress Gamma conversion of input (R) color component, green (G) color component and blueness (B) color component, then the R color components to being sampled, G color components Carry out anti-color error handle respectively with B color components, and carry out after anti-color error handle is completed anti-Gamma conversion and defeated Go out image.
The sub-pix down-sampling technology samples mechanism using four sub-pix color component rectanglar arrangements, in high-resolution A primary colours are sampled in each pixel in original image, specific sample mode is as shown in Figure 2.Due to from each location of pixels A sub-pix color component is only sampled, so the lack sampling of color occurs.For color lack sampling, using anti-color mistake Algorithm carries out complementary color, and its core concept is that each primary colours (color component) obtained by direct sub-pix down-sampling are mended Color.Assuming that obtaining the data profile shown in Fig. 3 after sampling, specific anti-color error algorithms step is as follows:
By taking the anti-color correcting error algorithms of R color components as an example, if the coordinate of original pixels corresponding to R is (i, j), first Eight neighborhood 3 × 3 module as shown in Figure 4 centered on R is marked off, R value is the R values of original pixels (i, j), it is assumed that former The R values of beginning pixel (i, j) are equal to R0, and G values are equal to G0, and B values are equal to B0.Next,
(I) judge whether to need the condition of complementary color:
Judge whether to need the condition for mending G components:G0>G1&&G0>G2&&G0>G3&&G0>G4, meet that condition then represents G Component needs complementary color
Judge whether to need the condition for mending B component:B0>B1&&B0>B2&&B0>B3&&B0>B4, meet that condition then represents B Component needs complementary color
(II) determine which position carries out complementary color to surrounding:
Complementary color is carried out to position corresponding to maximum in tetra- amounts of G1, G2, G3, G4.G1, G2, G3, G4 tetra- is represented with a Position corresponding to maximum in amount;If having two and above position while being maximum, G1 is preferentially assigned to, next to that G2, G3 again, such as the maximum among G1=G2 and for four, it is determined that position corresponding to G1 is complementary color position a.
Complementary color is carried out to position corresponding to maximum in tetra- amounts of B1, B2, B3, B4.B1, B2, B3, B4 tetra- is represented with b Position corresponding to maximum in amount;If having two and above position while being maximum, B1 is preferentially assigned to, next to that B2, B3 again.
(III) whether carrying out complementary color has four kinds of situations, at the same determine complementary color should mend how much:
1) G, B component are required to complementary color
Complementary color value size is:
R [i, j]=(R [i, j]+R [a]+R [b])/3
G [a]=(G [i, j]+G [a]+G [b])/3
B [b]=(B [i, j]+B [a]+B [b])/3
2) G components need complementary color, B component not to need complementary color
Complementary color value size is:
R [i, j]=(R [i, j]+R [a])/2
G [a]=(G [i, j]+G [a])/2
3) G components do not need complementary color, B component to need complementary color
Complementary color value size is:
R [i, j]=(R [i, j]+R [b])/2
B [b]=(B [i, j]+B [b])/2
4) G, B component do not need complementary color.
It will additionally be appreciated that during using centers of the G or B as 3 × 3 modules, used complementary color mechanism with centered on R Shi Xiangtong.
However, when handling the original image containing similar patterns such as lines, words using foregoing anti-color error algorithms, meeting Generation colour cast problem is such as complementary color excessively or a plurality of line of benefit, it is impossible to eliminates color mistake, can be lost relative to original image on the contrary Very;As shown in Figures 5 to 7, its be shown respectively the white oblique line bar with single pixel wide, ledgement and vertical moulding artwork and enter The contrast effect of analogous diagram after the above-mentioned anti-color error handle of row.
The content of the invention
Therefore, a kind of image based on sub-pix down-sampling is provided for the defects of prior art and deficiency, the present invention Display methods, to solve color caused by the image containing similar patterns such as word, lines in existing sub-pix down-sampling technology Problem-Error.
Specifically, a kind of method for displaying image based on sub-pix down-sampling that the embodiment of the present invention proposes, including step: (i) original image of input is received;(ii) Gamma is carried out to the original image to convert to obtain original image after Gamma is converted; (iii) original image progress sub-pix down-sampling is adopted with obtaining the one of each original pixels after being converted to the Gamma Sample sub-pix color component and obtain multiple being sampled sub-pix color component;(iv) it is sampled sub-pix color to the multiple Component carries out anti-color error handle to obtain sub-pix color component after multiple anti-color error handles respectively;(v) to described The anti-Gamma of sub-pix color component progress converts to obtain target image after multiple anti-color error handles;And (vi) output institute Target image to target display screen is stated to be shown.Wherein, step (iv) includes:Sub-pix color point is sampled to the multiple Multiple targets that a white line after the Gamma is converted in original image is corresponded in amount are sampled sub-pix color component When carrying out anti-color error handle,
(iv1) it is two kinds of color components being alternately arranged and by phase when the multiple target is sampled sub-pix color component Adjacent two targets are sampled sub-pix color component and resisted respectively as the center sub-pix color component of 3 × 3 modules There is the first complementary color of identical position, if the first complementary color position is sampled sub-pix color component during color error handle Sub-pix face is sampled with what the original pixels corresponding to the center sub-pix color component neutralized the first complementary color position The difference for not sampling sub-pix color component that colouring component has same color type meets first condition, then not to the center It is half value that sub-pix color component, which carries out complementary color and updates the center sub-pix color component,;And/or
(iv2) when the multiple target is sampled sub-pix color component for a kind of color component and by each mesh Mark, which is sampled when sub-pix color component carries out anti-color error handle as the center sub-pix color component of 3 × 3 modules, to be had There are adjacent the second complementary color position and three complementary color position, if the two neighboring target is sampled in sub-pix color component The sub-pix color component that is sampled that first object is sampled the second complementary color position of sub-pix color component meets second Condition, the second target that the two neighboring target is sampled in sub-pix color component be sampled sub-pix color component only by The second complementary color position that second target is sampled sub-pix color component carries out complementary color and second target is adopted The three complementary color position of sample sub-pix color component is not sampled sub-pix color component to second target and mended Color and to update second target to be sampled sub-pix color component be half value;Wherein, the first object is sampled sub-pix The sub-pix color component that is sampled of the second complementary color position of color component is sampled sub-pix face with second target The color type for being sampled sub-pix color component of the three complementary color position of colouring component it is identical and with second target It is different to be sampled the color type for being sampled sub-pix color component of the second complementary color position of sub-pix color component, institute State that first object is sampled the second complementary color position of sub-pix color component and second target is sampled sub-pix face The three complementary color position of colouring component is sampled the opposite sides of sub-pix color component positioned at the first object respectively.
In one embodiment of the invention, in step (iv1), the first condition is:X[i,j]-X[p]>h;Its In, X [p] is sampled sub-pix color component for the first complementary color position p's, and X [i, j] is the center sub-pix color point The sub-pix color that is sampled that the corresponding position coordinates of amount neutralizes the first complementary color position p for the original pixels of [i, j] is divided Amount X [p] does not sample sub-pix color component with same color type, and h is non-zero constant.
In one embodiment of the invention, 0.7<h<1.
In one embodiment of the invention, the second condition is that the first object is sampled sub-pix color component The second complementary color position be sampled sub-pix color component more than 0.
In one embodiment of the invention, in step (iv1), the two neighboring target is sampled sub-pix color Component is two kinds in red, green and blue component, and the sub-pix color component that is sampled of the first complementary color position is red Another in color, green and blue component.
In one embodiment of the invention, in step (iv2), first and second target is sampled sub-pix face Colouring component is same in red, green and blue component, the second complementary color position and three complementary color position difference For other two kinds in red, green and blue component.
In one embodiment of the invention, in step (iv), the white line is white ledgement, white vertical line Bar or white oblique line bar.
In one embodiment of the invention, the white line is single pixel wide white wire in the original image Bar.
In one embodiment of the invention, in step (vi), the target display screen is LED display, the LED LED point arrangement mode on display screen is four lamp rectanglar arrangements or three lamp triangular pitch.
From the foregoing, it will be observed that the embodiment of the present invention is in the processing procedure to the original image comprising similar patterns such as lines, words In, increase after specific Rule of judgment is judged complementary color again after sub-pix down-sampling, it can largely be improved point Resolution and color mistake is eliminated, solving colour cast problem caused by the complementary color mechanism in prior art, (such as complementary color is excessive Or mend a plurality of line).
By the detailed description below with reference to accompanying drawing, other side of the invention and feature become obvious.But it should know Road, the accompanying drawing is only the purpose design explained, not as the restriction of the scope of the present invention, because it should refer to Appended claims.It should also be noted that unless otherwise noted, it is not necessary to which scale accompanying drawing, they only try hard to concept Ground illustrates structure and flow described herein.
Brief description of the drawings
Below in conjunction with accompanying drawing, the embodiment of the present invention is described in detail.
Fig. 1 is the image processing flow figure based on sub-pix down-sampling and anti-color error algorithms in prior art.
Fig. 2 is sub-pix down-sampling schematic diagram of mechanism in prior art.
Fig. 3 is the data profile obtained in prior art after sub-pix down-sampling.
Fig. 4 is 3 × 3 Module Divisions and complementary color rule schematic diagram of prior art moderate resistance color error algorithms.
Fig. 5 be using prior art anti-color error algorithms when the artwork comprising white oblique line bar and anti-color mistake at The contrast of analogous diagram after reason.
Fig. 6 be using prior art anti-color error algorithms when the artwork comprising white ledgement and anti-color mistake at The contrast of analogous diagram after reason.
Fig. 7 be using prior art anti-color error algorithms when the artwork comprising white vertical moulding and anti-color mistake at The contrast of analogous diagram after reason.
Fig. 8 is four physics sub-pix rectanglar arrangement schematic diagrams of first embodiment of the invention.
Fig. 9 is the image processing flow based on sub-pix down-sampling and anti-color error algorithms of first embodiment of the invention Figure.
Figure 10 and Figure 11 is that two kinds of situations of colour cast occurs in single pixel wide white ledgement in first embodiment of the invention Principle schematic.
Figure 12 and Figure 13 is that two kinds of situations of colour cast occurs in single pixel wide white vertical moulding in first embodiment of the invention Principle schematic.
Figure 14 is that the principle that a kind of situation of colour cast occurs in single pixel wide white oblique line bar in first embodiment of the invention is shown It is intended to.
Figure 15 is three physics sub-pix triangular pitch schematic diagrams of second embodiment of the invention.
Figure 16 is the data profile obtained in second embodiment of the invention after sub-pix down-sampling.
Figure 17 is 3 × 3 Module Divisions and complementary color rule schematic diagram of the anti-color error algorithms of second embodiment of the invention.
Figure 18 and Figure 19 is that two kinds of situations of colour cast occurs in single pixel wide white vertical moulding in second embodiment of the invention Principle schematic.
Embodiment
In order to facilitate the understanding of the purposes, features and advantages of the present invention, below in conjunction with the accompanying drawings to the present invention Embodiment be described in detail.
【First embodiment】
First, the present embodiment carries out the object of anti-color error handle:
The characteristics of including the similar pattern such as the original image of the similar patterns such as word, lines, this kind of word, lines is main It is made up of the single pixel wides such as horizontal line, vertical line, oblique line or the wide white line of double image element.
2nd, the physics sub-pix placement scheme that the present embodiment is directed to:
Using four physics sub-pix rectanglar arrangement modes, red (R) physics sub-pix, blueness (B) physics are sub- Pixel, two rectangular arrangements of green (G) physics sub-pix, and two green physics sub-pixs are all the time in a diagonal On, four kinds of situations shown in Fig. 8 all meet this arrangement mode.Further, it is to be appreciated that the four physics sub-pix rectangle Arrangement mode is, for example, the LED point arrangement on LED display, namely four lamp rectanglar arrangements.
3rd, the image procossing mechanism in the present embodiment:
Illustrated by taking (a) arrangement mode in four kinds of physics sub-pix placement schemes shown in Fig. 8 as an example, utilize sub- picture Plain down-sampling and flow of the anti-color error algorithms processing comprising the original image of similar pattern such as lines, word as shown in figure 9, In brief, its original image to input carries out the red (R) that sub-pix down-sampling is sampled after carrying out Gamma conversion Color component, green (G) color component and blueness (B) color component, then R color components, G color components and B to being sampled Color component carries out increasing by a Rule of judgment before anti-color error handle respectively, and is carried out after anti-color error handle is completed Anti- Gamma conversion and output image.
In above-mentioned flow, after the completion of sub-pix down-sampling and before complementary color is carried out, it is not necessary to first distinguish word, lines etc. Figure, same processing is all done to whole image.Describe in detail as follows:
For caused colour cast problem after prior art complementary color, for the mode of the four rectangular arrangements of physics sub-pix, divide Analysing the reason for it produces colour cast has:When judging whether to need the condition of complementary color in abovementioned steps (I) and in abovementioned steps (III) R, G, B value used when carrying out complementary color in, it is all not the value of original image, but is endowed after complementary color new Value;And when judging complementary color position in the abovementioned steps (II), due to the particularity of white line, complementary color position be all preferably it is left with Upper both direction (such as B1, G1 position in Fig. 4), right and upper both direction also may be selected, but produced problem is the same, The complementary color Overdosing problems to the multiple complementary color of certain color component in same position are to produced, or same color component is in center face Neighbouring two positions of colouring component all carry out complementary color.For problem above, the technical scheme of the present embodiment is before complementary color is carried out Increase a Rule of judgment:
(1) there are two kinds of situations of colour cast for single pixel wide white ledgement in
Situation one:It is regular according to the complementary color being relevant to shown in earlier figures 4 referring to Figure 10, square frame (corresponding 3 × 3 modules, because The value for being sampled sub-pix color component for the original pixels of both sides above and below single pixel wide white Cross slat is minimum gray 0, therefore do not draw) in centered on G components when need to mend R component (as shown in the dashed circle in Figure 10 (a)), complementary color position is C, also to need to mend R component (as shown in the dashed circle in Figure 10 (b)) during B component center, complementary color position is also c, according to foregoing After step (III) complementary color, R component can complementary color excess.Specifically, for white line, if R=G=B=x, when with G components Centered on when, G [i, j]=(G [i, j]+G [c])/2=(x+0)/2=x/2, R [c]=(R [i, j]+R [c])/2 after complementary color =(x+0)/2=x/2;Afterwards when centered on B component, B [i, j]=(B [i, j]+B [c])/2=(x+0)/2=x/2, R [c]=(R [i, j]+R [c])/2=(x+x/2)/2=3x/4.Therefore, last complementary color result is G=x/2, B=x/2, R [c]= 3x/4, so colour cast problem can be produced.
In order to solve this colour cast problem, increase a Rule of judgment, namely R [i, j]-R [c] before complementary color is carried out>H, if This condition is unsatisfactory for, then B [i, j]=B [i, j]/2 no longer to R component complementary color and when centered on B component (namely is updated to half Value).Herein, the span for h is done as described below:Be directed to pure white lines, before Gamma conversion, using G components as After center carries out complementary color to R component, 128 are approximately equal to 0.3 after G=R=128, Gamma conversion;When centered on B component When, equivalent to 1 after R [i, j]=255, Gamma conversion, so R [i, j]-R [c]=0.7;For other white lines, this Value can all be more than 0.7, so h takes (0.7,1), namely 0.7<h<1.
Situation two:Referring to Figure 11, according to the complementary color rule being relevant to shown in earlier figures 4, in square frame centered on G components When need to mend B component (as shown in the dashed circle in Figure 11 (a)), complementary color position is c, with also needed during R component center mend B component (as shown in the dashed circle in Figure 11 (b)), complementary color position are also c, and after abovementioned steps (III) complementary color, B component can be mended Color is excessive.Specifically, for white line, if R=G=B=x, when centered on G components, G [i, j]=(G after complementary color [i, j]+G [c])/2=(x+0)/2=x/2, B [c]=(B [i, j]+B [c])/2=(x+0)/2=x/2;When using R component in During the heart, R [i, j]=(R [i, j]+R [c])/2=(x+0)/2=x/2, B [c]=(B [i, j]+B [c])/2=(x+x/2)/2= 3x/4.Therefore, last complementary color result is G=x/2, R=x/2, B [c]=3x/4, so colour cast problem can be produced.
In order to solve this colour cast problem, increase a Rule of judgment, namely B [i, j]-B [c] before complementary color is carried out>H, if This condition is unsatisfactory for, then R [i, j]=R [i, j]/2 no longer to B component complementary color and when centered on R component (namely is updated to half Value);Herein, h takes (0.7,1), namely 0.7<h<1.
In brief, when carrying out anti-color error handle to white ledgement, the purpose that increases Rule of judgment be in order to Avoid pair with white ledgement corresponding to be sampled color component (such as Figure 10 G, B component, or Figure 11 G, R component) The 3rd color component (such as Figure 10 R component or Figure 11 B component) of neighbouring same position carries out multiple complementary color.
In addition, it can also be learnt from Figure 10 and Figure 11:Corresponding white the multiple of ledgement are sampled sub-pix color component For the two kinds of color components (such as G, R in G, B in Figure 10, or Figure 11) being alternately arranged, and two neighboring it is sampled sub- picture Plain color component has identical when carrying out anti-color error handle respectively as the center sub-pix color component of 3 × 3 modules Complementary color position c, if complementary color position c be sampled sub-pix color component (such as Figure 10 dashed circle R, or in Figure 11 it is empty Line circle B) with dividing in the original pixels corresponding to the sub-pix color component of center with the complementary color position c sub-pix color of being sampled The difference for not sampling sub-pix color component that measurer has same color type meets first condition example R as the aforementioned [i, j]-R [c]>H (or B [i, j]-B [c]>H), then the B (or R in Figure 11 (b)) of heart sub-pix color component such as 10 (b) is misaligned It is half value (namely divided by 2) to carry out complementary color and update center sub-pix color component.
(2) there are two kinds of situations of colour cast for single pixel wide white vertical moulding in
The principle that colour cast occurs in single pixel wide white vertical moulding is the same with foregoing single pixel wide white ledgement, for Figure 12 Shown situation, increased Rule of judgment are:Whether R [i, j]-R [c]>H, h span are (0.7,1);Using B component as During center, if meeting this condition, complementary color is carried out by foregoing existing complementary color mechanism, need not be again if being unsatisfactory for this condition To R component complementary color and B [i, j]=B [i, j]/2 (namely being updated to half value), namely the value of B component divided by 2.
For the situation shown in Figure 13, increased Rule of judgment is:B[i,j]–B[c]>H, h span for (0.7, 1);When centered on R component, if meeting this condition, complementary color is carried out by foregoing existing complementary color mechanism, if being unsatisfactory for this Part, then need not give B component complementary color and R [i, j]=R [i, j]/2 (namely being updated to half value) again, namely the value of R component divided by 2。
In brief, when carrying out anti-color error handle to white vertical moulding, the purpose that increases Rule of judgment be in order to Avoid pair with white vertical moulding corresponding to be sampled color component (such as Figure 12 G, B component, or Figure 13 G, R component) The 3rd color component (such as Figure 12 R component or Figure 13 B component) of neighbouring same position carries out multiple complementary color.
In addition, it can also be learnt from Figure 12 and Figure 13:Corresponding white the multiple of vertical moulding are sampled sub-pix color component For the two kinds of color components (such as G, R in G, B in Figure 12, or Figure 13) being alternately arranged, and two neighboring it is sampled sub- picture Plain color component has identical when carrying out anti-color error handle respectively as the center sub-pix color component of 3 × 3 modules Complementary color position c, if complementary color position c be sampled sub-pix color component (such as Figure 12 dashed circle R, or in Figure 13 it is empty Line circle B) with dividing in the original pixels corresponding to the sub-pix color component of center with the complementary color position c sub-pix color of being sampled The difference for not sampling sub-pix color component that measurer has same color type meets first condition example R as the aforementioned [i, j]-R [c]>H (or B [i, j]-B [c]>H), then the B (or R in Figure 13 (b)) of heart sub-pix color component such as 12 (b) is misaligned It is half value (namely divided by 2) to carry out complementary color and update center sub-pix color component.
(3) there is a kind of situation of colour cast for single pixel wide white oblique line bar in
Referring to Figure 14 (a), it represents the distribution of the sub-pix color component obtained after sub-pix down-sampling white oblique line bar Situation, it is G1~G5 by G components serial number, but the quantity of G components is not limited thereto for ease of follow-up explanation.If press Take a picture on the complementary color rule shown in earlier figures 4, when centered on G1 components, R, B need to be mended, complementary color position is c1, c2;When with Complementary color need to mend R, B when centered on G2 components, and complementary color position is c3, c4;By that analogy, had respectively around G1, G2, G3, G4, G5 By complementary color, two B components are caused to produce colour cast two R components by complementary color, the problem of mending a line occur, such as Figure 14 (b) more It is shown.
In order to solve this problem, increase by a Rule of judgment before carrying out complementary color, when centered on G1 components, if B [i -1, j-2]>When 0, without mending B component, when centered on G2 components, if R [i -1, j-2]>0 (position is in Figure 14 (b) C1 positions), without mend R component, G3, G4, G5 by that analogy, and G1, G2, G3, G4, G5 value in complementary color respectively divided by 2 (namely being updated to half value), this addresses the problem white oblique line bar complementary color to there is the problem of two lines, effect such as Figure 14 (c) institutes Show.
In brief, when carrying out anti-color error handle to white oblique line bar, the purpose that increases Rule of judgment be in order to Avoid same color component (such as R component or B component) with white oblique line bar corresponding to be sampled sub-pix color component Complementary color is all carried out on two neighbouring positions of (such as G components).
In addition, it can also be learnt from Figure 14:Multiple sub-pix color components that are sampled of corresponding white oblique line bar is one kind Color component (such as G) and each is sampled center sub-pix color component of the sub-pix color component as 3 × 3 modules Have during anti-color error handle the first adjacent complementary color position (such as center sub-pix color component G1 left locations C1, center sub-pix color component G2 left location c4) and the second complementary color position (such as above the sub-pix color component G1 of center Position c2, center sub-pix color component G2 top position c3), if two neighboring be sampled in sub-pix color component G1, G2 The first the first complementary color position c1 for the being sampled sub-pix color component such as G1 sub-pix color component R that is sampled meet the Two condition examples R as the aforementioned [i -1, j-2]>0, two neighboring second quilt being sampled in sub-pix color component G1, G2 The first complementary color position c4 that sampling sub-pix color component G2 is only sampled sub-pix color component G2 by described second is mended Color and the described second the second complementary color position c3 for being sampled sub-pix color component G2 is not sampled sub-pix face to described second It is half value that colouring component G2, which carries out complementary color and updates described second to be sampled sub-pix color component G2,;Wherein, described first adopted Sample sub-pix color component G1 the first complementary color position c1 sub-pix color component R and described second that is sampled is sampled sub- picture Plain color component G2 the second complementary color position c3 color type for being sampled sub-pix color component R is identical and with described second It is different to be sampled sub-pix color component G2 the first complementary color position c4 color type for being sampled sub-pix color component B, Described first, which is sampled sub-pix color component G1 the first complementary color position c1 and described second, is sampled sub-pix color component G2 the second complementary color position c3 is respectively positioned at the described first opposite sides for being sampled sub-pix color component G1.
【Second embodiment】
First, the present embodiment carries out the object of anti-color error handle:
The characteristics of including the similar pattern such as the original image of the similar patterns such as word, lines, this kind of word, lines is main It is made up of the single pixel wides such as horizontal line, vertical line, oblique line or the wide white line of double image element.
2nd, the physics sub-pix placement scheme that the present embodiment is directed to:
Using three physics sub-pix triangular pitch modes, red (R) physics sub-pix, blueness (B) physics Sub-pix, green (G) physics sub-pix arrangement triangular in shape, and have between two neighboring physics sub-pix it is certain away from From, in units of this arrangement, the triangle arrangement array of periodic arrangement, such as shown in Figure 15.Furthermore, it is to be understood that It is that the three physics sub-pix triangular pitch mode is, for example, the LED point arrangement on LED display, namely three lamps Triangular pitch.
Correspondingly, what is obtained after sub-pix down-sampling is carried out to the original image of input is sampled sub-pix color component Arrangement is then for shown in Figure 16.In addition, after anti-color error handle is completed, then to the sub-pix color point of the even number line in Figure 16 Amount carries out the translation on position, the first sub-pix color component of first sub-pix color component of even number line in odd-numbered line With the centre position of second sub-pix color component, to cause each sub-pix color component in final output image Position corresponds with the position of the corresponding physics sub-pix in Figure 15 physics sub-pix arrangement array.
3rd, the image procossing mechanism in the present embodiment:
The original image of the similar patterns such as lines, word is included using sub-pix down-sampling and the processing of anti-color error algorithms Flow as shown in figure 9, in brief, its original image to input carries out carrying out sub-pix down-sampling after Gamma conversion obtaining To red (R) color component, green (G) color component and blueness (B) color component being sampled, then the R colors to being sampled Component, G color components and B color components carry out increasing by a Rule of judgment before anti-color error handle respectively, and complete to resist Anti- Gamma conversion and output image are carried out after color error handle.
In above-mentioned flow, after the completion of sub-pix down-sampling and before complementary color is carried out, it is not necessary to first distinguish word, lines etc. Figure, same processing is all done to whole image.Describe in detail as follows:
For caused colour cast problem after prior art complementary color, for the mode of three physics sub-pix arrangements triangular in shape, Analyzing the reason for it produces colour cast has:When judging whether to need the condition of complementary color in abovementioned steps (I) and in abovementioned steps (III) R, G, B value used when carrying out complementary color in, it is all not the value of original image, but is endowed after complementary color new Value;And when judging complementary color position in the abovementioned steps (II), due to the particularity of white line, complementary color position be all preferably it is left with Upper both direction (such as B1, G1 position in Fig. 4), right and upper both direction also may be selected, but produced problem is the same, The complementary color Overdosing problems to the multiple complementary color of certain color component in same position are to produced, or same color component is in 3 × 3 moulds Neighbouring two positions of block center color component all carry out complementary color.For problem above, the technical scheme of the present embodiment is to enter Increase a Rule of judgment before row complementary color:
(1) there are two kinds of situations of colour cast for single pixel wide white vertical moulding in
Situation one:It is regular according to the existing complementary color being relevant to shown in Figure 17 referring to Figure 18, square frame (corresponding 3 × 3 modules, because The value for being sampled sub-pix color component for the original pixels at left and right sides of the vertical bar of single pixel wide white is minimum gray 0, therefore do not draw) in centered on B component when need to mend G components (as shown in the dashed circle in Figure 18 (a)), complementary color position is D, also to need to mend G components (as shown in the dashed circle in Figure 18 (b)) during R component center, complementary color position is also a, according to foregoing After step (III) complementary color, R component can complementary color excess.Specifically, for white line, if R=G=B=x, when with B component Centered on when, B [i, j]=(B [i, j]+B [d])/2=(x+0)/2=x/2, G [d]=(G [i, j]+G [d])/2 after complementary color =(x+0)/2=x/2;Afterwards when centered on R component, R [i, j]=(R [i, j]+R [d])/2=(x+0)/2=x/2, G [d]=(G [i, j]+G [d])/2=(x+x/2)/2=3x/4.Therefore, last complementary color result is G=x/2, B=x/2, R [d]= 3x/4, so colour cast problem can be produced.
In order to solve this colour cast problem, increase Rule of judgment before complementary color is carried out, i.e. if G [i, j]-G [d]>During h, G component complementary colors are carried out, otherwise need not be to G components complementary color and B [i, j]=B [i, j]/2;Wherein h span for (0.7, , namely 0.7 1)<h<1.When centered on R component, added Rule of judgment is identical, namely judges whether G [i, j]-G [d]> H, need not be to G components complementary color and R [i, j]=R [i, j]/2 if this condition is unsatisfactory for.
Situation two:Referring to Figure 19, according to the existing complementary color rule being relevant to shown in Figure 17, in square frame using R component in B component (as shown in the dashed circle in Figure 19 (a)) need to be mended during the heart, complementary color position is d, also to need to mend B component during G weight centers (as shown in the dashed circle in Figure 19 (b)), complementary color position are also d, and after abovementioned steps (III) complementary color, B component can be mended Color is excessive.Specifically, for white line, if R=G=B=x, when centered on R component, R [i, j]=(R after complementary color [i, j]+R [d])/2=(x+0)/2=x/2, B [d]=(B [i, j]+B [d])/2=(x+0)/2=x/2;When using G components in During the heart, G [i, j]=(G [i, j]+G [d])/2=(x+0)/2=x/2, B [d]=(B [i, j]+B [d])/2=(x+x/2)/2= 3x/4.Therefore, last complementary color result is R=x/2, G=x/2, B [d]=3x/4, so colour cast problem can be produced.
In order to solve this colour cast problem, increase Rule of judgment before complementary color is carried out, i.e. if B [i, j]-B [d]>During h, B component complementary color is carried out when centered on R component, otherwise need not be to B component complementary color and R [i, j]=R [i, j]/2;Wherein h's Span is (0.7,1), namely 0.7<h<1.When centered on G components, added Rule of judgment is identical, namely judgement is No B [i, j]-B [d]>H, need not be to B component complementary color and G [i, j]=G [i, j]/2 if this condition is unsatisfactory for.
In brief, when carrying out anti-color error handle to white vertical moulding, the purpose that increases Rule of judgment be in order to Avoid pair with white vertical moulding corresponding to be sampled color component (such as Figure 18 R, B component, or Figure 19 G, R component) The 3rd color component (such as Figure 18 G components or Figure 19 B component) of neighbouring same position carries out multiple complementary color.
In addition, it can also be learnt from Figure 18 and Figure 19:Corresponding white the multiple of vertical moulding are sampled sub-pix color component For the two kinds of color components (such as R, G in B, R in Figure 18, or Figure 19) being alternately arranged, and two neighboring it is sampled sub- picture Plain color component has identical when carrying out anti-color error handle respectively as the center sub-pix color component of 3 × 3 modules Complementary color position d, if complementary color position d be sampled sub-pix color component (such as Figure 18 dashed circle G, or in Figure 19 it is empty Line circle B) with dividing in the original pixels corresponding to the sub-pix color component of center with the complementary color position d sub-pix color of being sampled The difference for not sampling sub-pix color component that measurer has same color type meets first condition such as G [i, j]-G [d]>h (or B [i, j]-B [d]>H), then the R (or G in Figure 19 (b)) for misaligning heart sub-pix color component such as 18 (b) is mended Color and to update center sub-pix color component be half value (namely divided by 2).
As for the white ledgement in the original image of second embodiment and white oblique line bar, it is directly using existing complementary color Rule will not produce colour cast problem.
In addition, it is noted that the image procossing scheme in first and second above-mentioned embodiment can apply to be based on During the method for displaying image of sub-pix down-sampling, correspondingly, obtained after sub-pix down-sampling and anti-color error handle Sub-pix color component data converted via anti-Gamma after can be sent to target display screen such as LED display and shown Show.
In summary, the embodiment of the present invention is in the processing procedure to the original image comprising similar patterns such as lines, words In, increase after specific Rule of judgment is judged complementary color again after sub-pix down-sampling, it can largely be improved point Resolution and color mistake is eliminated, solving colour cast problem caused by complementary color mechanism of the prior art, (such as complementary color is excessive Or mend a plurality of line).
So far, original of the specific case used herein to the method for displaying image based on sub-pix down-sampling of the present invention Reason and embodiment are set forth, and the explanation of above example is only intended to help method and its core think of for understanding the present invention Think;Meanwhile for those of ordinary skill in the art, according to the thought of the present invention, in specific embodiments and applications There will be changes, in summary, this specification content should not be construed as limiting the invention, protection scope of the present invention It should be defined by appended claim.

Claims (7)

1. a kind of method for displaying image based on sub-pix down-sampling, including step:(i) original image of input is received;(ii) Gamma is carried out to the original image to convert to obtain original image after Gamma is converted;(iii) it is original after being converted to the Gamma Image carries out sub-pix down-sampling and is sampled sub-pix color component to obtain the one of each original pixels and obtains multiple It is sampled sub-pix color component;(iv) anti-color error handle is carried out respectively to the multiple sub-pix color component that is sampled To obtain sub-pix color component after multiple anti-color error handles;(v) to sub-pix after the multiple anti-color error handle Color component carries out anti-Gamma and converts to obtain target image;And (vi) exports the target image to target display screen and carried out Display;Characterized in that, step (iv) includes:
The white wire corresponded in sub-pix color component after the Gamma is converted in original image is sampled to the multiple When multiple targets of bar are sampled sub-pix color component and carry out anti-color error handle,
(iv1) it is two kinds of color components being alternately arranged and by adjacent two when the multiple target is sampled sub-pix color component The individual target is sampled sub-pix color component and carries out anti-color respectively as the center sub-pix color component of 3 × 3 modules There is the first complementary color of identical position, if the first complementary color position is sampled sub-pix color component and institute during error handle That states the neutralization of the original pixels corresponding to the sub-pix color component of center the first complementary color position is sampled sub-pix color point The difference for not sampling sub-pix color component that measurer has same color type meets first condition, then not to center Asia picture It is half value that plain color component, which carries out complementary color and updates the center sub-pix color component,;And/or
(iv2) when the multiple target is sampled sub-pix color component for a kind of color component and by each target quilt Sampling sub-pix color component has phase when carrying out anti-color error handle as the center sub-pix color component of 3 × 3 modules Adjacent the second complementary color position and three complementary color position, if the two neighboring target is sampled first in sub-pix color component The sub-pix color component that is sampled that target is sampled the second complementary color position of sub-pix color component meets second condition, The second target that the two neighboring target is sampled in sub-pix color component is sampled sub-pix color component only by described The second complementary color position that second target is sampled sub-pix color component carries out complementary color and second target is sampled Asia The three complementary color position of pixel color component is not sampled sub-pix color component to second target and carries out complementary color simultaneously It is half value to update second target to be sampled sub-pix color component;Wherein, the first object is sampled sub-pix color The sub-pix color component that is sampled of the second complementary color position of component is sampled sub-pix color point with second target The color type for being sampled sub-pix color component of the three complementary color position of amount is identical and is adopted with second target The color type for being sampled sub-pix color component of the second complementary color position of sample sub-pix color component is different, and described One target is sampled the second complementary color position of sub-pix color component and second target is sampled sub-pix color point The three complementary color position of amount is sampled the opposite sides of sub-pix color component positioned at the first object respectively;
Wherein, in step (iv1), the first condition is:X[i,j]-X[p]>h;Wherein, X [p] is the first complementary color position That puts p is sampled sub-pix color component, X [i, j] be position coordinates corresponding to the center sub-pix color component for [i, J] original pixels neutralize the first complementary color position p be sampled sub-pix color component X [p] with same color type Sub-pix color component is not sampled, and h is non-zero constant;
The second condition is being sampled for the second complementary color position that the first object is sampled sub-pix color component Sub-pix color component is more than 0.
2. the method for displaying image as claimed in claim 1 based on sub-pix down-sampling, it is characterised in that 0.7<h<1.
3. the method for displaying image as claimed in claim 1 based on sub-pix down-sampling, it is characterised in that in step (iv1) In, the two neighboring target is sampled sub-pix color component as two kinds in red, green and blue component, and described first Complementary color position is sampled sub-pix color component as another in red, green and blue component.
4. the method for displaying image as claimed in claim 1 based on sub-pix down-sampling, it is characterised in that in step (iv2) In, first and second target is sampled sub-pix color component to be same in red, green and blue component, described Second complementary color position and the three complementary color position are respectively other two kinds in red, green and blue component.
5. the method for displaying image as claimed in claim 1 based on sub-pix down-sampling, it is characterised in that in step (iv) In, the white line is white ledgement, white vertical moulding or white oblique line bar.
6. the method for displaying image as claimed in claim 5 based on sub-pix down-sampling, it is characterised in that the white line It is single pixel wide white line in the original image.
7. the method for displaying image as claimed in claim 1 based on sub-pix down-sampling, it is characterised in that in step (vi) In, the target display screen is LED display, the LED point arrangement mode on the LED display for four lamp rectanglar arrangements or Three lamp triangular pitch.
CN201510408004.8A 2015-07-13 2015-07-13 Method for displaying image based on sub-pix down-sampling Active CN106341671B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510408004.8A CN106341671B (en) 2015-07-13 2015-07-13 Method for displaying image based on sub-pix down-sampling

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510408004.8A CN106341671B (en) 2015-07-13 2015-07-13 Method for displaying image based on sub-pix down-sampling

Publications (2)

Publication Number Publication Date
CN106341671A CN106341671A (en) 2017-01-18
CN106341671B true CN106341671B (en) 2018-04-06

Family

ID=57827034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510408004.8A Active CN106341671B (en) 2015-07-13 2015-07-13 Method for displaying image based on sub-pix down-sampling

Country Status (1)

Country Link
CN (1) CN106341671B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101448163A (en) * 2008-12-17 2009-06-03 香港应用科技研究院有限公司 Down-sampling method based on sub-pel and device therefor
CN101770759A (en) * 2008-12-17 2010-07-07 香港应用科技研究院有限公司 Method and device for downsampling based on sub-pixel
CN103338378A (en) * 2013-07-24 2013-10-02 西安电子科技大学 Two-dimensional sub-pixel sampling-based super-resolution display method and device
CN204463787U (en) * 2015-02-12 2015-07-08 西安诺瓦电子科技有限公司 LED structure, display unit and display control unit

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007240658A (en) * 2006-03-06 2007-09-20 Seiko Epson Corp Image display device, electronic equipment, and pixel arrangement designing method
TWI381742B (en) * 2005-10-13 2013-01-01 Seiko Epson Corp Image display device, electronic apparatus, and pixel location determining method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101448163A (en) * 2008-12-17 2009-06-03 香港应用科技研究院有限公司 Down-sampling method based on sub-pel and device therefor
CN101770759A (en) * 2008-12-17 2010-07-07 香港应用科技研究院有限公司 Method and device for downsampling based on sub-pixel
CN103338378A (en) * 2013-07-24 2013-10-02 西安电子科技大学 Two-dimensional sub-pixel sampling-based super-resolution display method and device
CN204463787U (en) * 2015-02-12 2015-07-08 西安诺瓦电子科技有限公司 LED structure, display unit and display control unit

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
亚像素采样对LED显示质量的提升;周筱媛,等;《光子学报》;20140215;第43卷(第2期);全文 *

Also Published As

Publication number Publication date
CN106341671A (en) 2017-01-18

Similar Documents

Publication Publication Date Title
KR100982685B1 (en) System and method for a high performance color filter mosaic array
CN104618703B (en) A kind of white balance adjustment method
CN107293571A (en) The pixel arrangement structure and OLED display panel of OLED display panel
CN204463787U (en) LED structure, display unit and display control unit
TW201447427A (en) Displaying device, pixel array, and color development compensating method
CN101394570A (en) Display and method of control
CN204965933U (en) Dot structure and display panel
CN103733220A (en) Image processing method and device based on bayer format
US7916790B2 (en) Pixel compensation method for an image sensor
CN103543548B (en) A kind of dot structure, display floater and liquid crystal display
CN104037203A (en) Pixel array and displayer
CN106898291B (en) The driving method and driving device of display panel
CN112185301B (en) Display device correction method and device and processor
CN105185352A (en) Method and device for image rim modification
US9922587B2 (en) Pixel structure and driving method thereof, display panel and display device
CN104461441A (en) Rendering method, rendering device and display device
CN105989799B (en) Image processing method and image processing apparatus
KR20150142138A (en) Image display method
CN105245796A (en) Sensor and sensing method
CN105096801B (en) Display unit, display panel and its driving method and display device
CN103413499A (en) LED display screen
CN106341671B (en) Method for displaying image based on sub-pix down-sampling
CN108510891A (en) A kind of pixel arrangement structure
CN106358028B (en) Image processing method based on sub-pix down-sampling
CN104735433B (en) Adaptive colour filter for digital sensor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 710075 DEF101, Zero One Square, Xi'an Software Park, No. 72 Zhangbajie Science and Technology Second Road, Xi'an High-tech Zone, Shaanxi Province

Patentee after: Xi'an Nova Nebula Technology Co., Ltd.

Address before: 710075 Qinfengge D District 401, Xi'an Software Park, 68 Science and Technology Second Road, Xi'an High-tech Zone, Shaanxi Province

Patentee before: Xian Novastar Electronic Technology Co., Ltd.

CP03 Change of name, title or address