CN106341671A - Image display method based on sub-pixel downsampling - Google Patents

Image display method based on sub-pixel downsampling Download PDF

Info

Publication number
CN106341671A
CN106341671A CN201510408004.8A CN201510408004A CN106341671A CN 106341671 A CN106341671 A CN 106341671A CN 201510408004 A CN201510408004 A CN 201510408004A CN 106341671 A CN106341671 A CN 106341671A
Authority
CN
China
Prior art keywords
sub
color
pix
component
sampled
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
CN201510408004.8A
Other languages
Chinese (zh)
Other versions
CN106341671B (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 invention relates to an image display method based on sub-pixel downsampling. The method comprises the steps that (i) an input original image is received; (ii) Gamma transforming is carried out on the original image to acquire an original image after Gamma transforming; (iii) sub-pixel downsampling is carried out on the original image after Gamma transforming to acquire a number of sampled sub-pixel color components; (iv) anti-color-error-processing is carried out on a number of sampled sub-pixel color components to acquire a number of anti-color-error-processed sub-pixel color components; (iv) Gamma transforming is carried out on a number of anti-color-error-processed sub-pixel color components to acquire a target image; and (vi) the target image is output to a target display screen. Particularly, in step (iv), lines, characters and similar patterns in the original image are judged by adding a specific judgment condition after sub-pixel downsampling, and then color complementing is carried out; the resolution can be improved to a great extent, and color errors are eliminated; and the problem of color cast, such as color over-complementing or line over-complementing, which is caused by a color complementing mechanism in the prior art, is solved.

Description

Method for displaying image based on sub-pix down-sampling
Technical field
The present invention relates to image procossing and display technology field, particularly to a kind of based under sub-pix The method for displaying image of sampling.
Background technology
Display Technique is one of most critical part, led (light in the comprised technology of information industry Emitting diode, light emitting diode) display screen system as new Display Technique, with its energy-conservation, Environmental protection, highlighted the advantages of be gradually acceptable to the market, thus being widely used in city medium, city The fields such as traffic.Being that led display industry constantly chases after is shown to the pursuit such as high-resolution of display quality Seek target.
1) adopt three primary colours Display Technique existing led display screen, for the lifting of resolution more Using traditional both full-pixel Sampling techniques, thus mainly use increase physical picture element density and Scale is lifting resolution.The high cost of this technology, room for promotion is limited, processing technology with And radiating aspect also has and there is certain drawback.
2) occur when in the display system, original image being sampled using sub-pix down-sampling technology Color Aliasing Problem.Existing based on display device sub-pix arrange anti-color aliasing filtering method, Although color mistake to a certain degree can be eliminated, for the lines occurring in original image, The process of word etc. still occurs color mistake, and display effect is not fine, so processing text Information will have more preferable algorithm.Text message herein is made up of for one or two pixel live width The text that constitutes of thin lines.
Refer to Fig. 1, it is to be based on sub-pix down-sampling and anti-color error algorithms in prior art Image processing flow figure;Particularly as follows: it is laggard that the original image inputting is carried out with gamma conversion Row sub-pix down-sampling obtains redness (r) color component, green (g) color component and the indigo plant being sampled Color (b) color component, then to the r color component being sampled, g color component and b color component Carry out anti-color fault processing respectively, and carry out anti-gamma after completing anti-color fault processing Conversion output image.
This sub-pix down-sampling technology uses four sub-pix color component rectanglar arrangement Sampling Machine System, primary colours of sampling in each pixel in high-resolution original image, specific sampling side Formula is as shown in Figure 2.Due to only sampling a sub-pix color component from each location of pixels, so The lack sampling of color occurs.For color lack sampling, carry out complementary color using anti-color error algorithms, Its core concept is that each primary colours (color component) obtained by direct sub-pix down-sampling are mended Color.The data profile shown in Fig. 3 is obtained, specifically anti-color error algorithms step after assuming sampling Suddenly as follows:
, if the seat of the corresponding original pixels of r taking r color component anti-color correcting error algorithms as a example It is designated as (i, j), mark off eight neighborhood 3 × 3 module centered on r as shown in Figure 4 first, The value of r be the r value of original pixels (i, j) it is assumed that the r value of original pixels (i, j) is equal to r0, G value is equal to g0, and b value is equal to b0.Next,
I () judges whether to need the condition of complementary color:
Judge whether the condition needing to mend g component: g0 > g1&&g0 > g2&&g0 > g3&& G0 > g4, meets condition and then represents g component needs complementary color
Judge whether the condition needing to mend b component: b0 > b1&&b0 > b2&&b0 > b3&& B0 > b4, meets condition and then represents b component needs complementary color
(ii) determine to carry out complementary color to which position of surrounding:
Carry out complementary color to the corresponding position of maximum in tetra- amounts of g1, g2, g3, g4.Use a table Show the corresponding position of maximum in tetra- amounts of g1, g2, g3, g4;If having two and above position It is maximum simultaneously, then be preferentially assigned to g1, next to that g2, then g3, for example work as g1=g2 And for the maximum among four it is determined that the corresponding position of g1 is complementary color position a.
Carry out complementary color to the corresponding position of maximum in tetra- amounts of b1, b2, b3, b4.Use b table Show the corresponding position of maximum in tetra- amounts of b1, b2, b3, b4;If having two and above position It is maximum simultaneously, then be preferentially assigned to b1, next to that b2, then b3.
(iii) whether carrying out complementary color has four kinds of situations, determines complementary color should mend how many simultaneously:
1) g, b component is 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 component needs 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 component does 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 does not all need complementary color.
It will additionally be appreciated that during with g or b for the center of 3 × 3 modules, the benefit being adopted Color mechanism is identical with when centered on r.
However, being processed containing the similar pattern such as lines, word using aforementioned anti-color error algorithms During original image, colour cast problem such as complementary color can be produced excessively or mend a plurality of line etc. it is impossible to eliminate face Color mistake, on the contrary can distortion with respect to original image;As shown in Figures 5 to 7, it is shown respectively There is the artwork of white oblique line bar, ledgement and vertical moulding of single pixel wide and carry out above-mentioned anti-color The contrast effect of the analogous diagram after fault processing.
Content of the invention
Therefore, for the defect in prior art and deficiency, the present invention provides one kind to be based on sub-pix The method for displaying image of down-sampling, to solve to contain word, lines in existing sub-pix down-sampling technology Etc. color Problem-Error produced by the image of similar pattern.
Specifically, a kind of image display side based on sub-pix down-sampling that the embodiment of the present invention proposes Method, including step: the original image of (i) receives input;(ii) gamma is carried out to described original image Conversion obtains original image after gamma conversion;(iii) to original image after described gamma conversion One that carries out sub-pix down-sampling to obtain each original pixels is sampled sub-pix color component And obtain multiple being sampled sub-pix color component;(iv) the plurality of sub-pix color that is sampled is divided Amount carries out anti-color fault processing respectively and is divided with obtaining sub-pix color after multiple anti-color fault processing Amount;V () carries out anti-gamma change to sub-pix color component after the plurality of anti-color fault processing Get target image in return;And (vi) exports described target image and is shown to target display screen.Its In, step (iv) includes: is sampled in sub-pix color component corresponding described gamma to the plurality of Multiple targets of a white line in original image after conversion are sampled sub-pix color component and enter During the anti-color fault processing of row,
(iv1) it is alternately arranged two kind color when the plurality of target is sampled sub-pix color component Component and two neighboring described target is sampled sub-pix color component as 3 × 3 modules Center sub-pix color component carry out that there is during anti-color fault processing identical the first complementary color position Put, if described first complementary color position be sampled sub-pix color component and described center sub-pix face The sub-pix color that is sampled of in the original pixels corresponding to colouring component and described first complementary color position is divided The difference that measurer has the sub-pix color component of not sampling of same color type meets first condition, then Described center sub-pix color component is not carried out with complementary color and updates described center sub-pix color component For half value;And/or
(iv2) when the plurality of target is sampled sub-pix color component for a kind of color component and by often One described target is sampled sub-pix color component as the center sub-pix color of 3 × 3 modules Component carries out thering is the second adjacent complementary color position and three complementary color position during anti-color fault processing, If the first object that two neighboring described target is sampled in sub-pix color component is sampled sub-pix The sub-pix color component that is sampled of the described second complementary color position of color component meets second condition, The second target that described two neighboring target is sampled in sub-pix color component is sampled sub-pix face Colouring component is only entered by the described second complementary color position that described second target is sampled sub-pix color component Row complementary color and described three complementary color position that described second target is sampled sub-pix color component is not right Described second target is sampled sub-pix color component and carries out complementary color and update described second target and adopted Sample sub-pix color component is half value;Wherein, described first object is sampled sub-pix color component Be sampled sub-pix color component and described second target of described second complementary color position be sampled Asia The color type being sampled sub-pix color component of the described three complementary color position of pixel color component The quilt of identical and be sampled sub-pix color component with described second target described second complementary color position The color type of sampling sub-pix color component is different, and described first object is sampled sub-pix color The described second complementary color position of component and described second target are sampled the described of sub-pix color component Three complementary color position is sampled relatively the two of sub-pix color component respectively positioned at described first object Side.
In one embodiment of the invention, in step (iv1), described first condition is: x [i, j]-x[p]>h;Wherein, x [p] be described first complementary color position p be sampled sub-pix color component, X [i, j] is the original pixels for [i, j] for the position coordinateses corresponding to the sub-pix color component of described center Sub-pix color component x [p] that is sampled neutralizing described first complementary color position p has same color class The sub-pix color component of not sampling of type, h is non-zero constant.
In one embodiment of the invention, 0.7 < h < 1.
In one embodiment of the invention, described second condition is sampled Asia for described first object The sub-pix color component that is sampled of the described second complementary color position of pixel color component is more than 0.
In one embodiment of the invention, in step (iv1), described two neighboring target is adopted Sample sub-pix color component is two kinds in red, green and blue component, described first complementary color position That puts is sampled another that sub-pix color component is in red, green and blue component.
In one embodiment of the invention, in step (iv2), described first and second target quilts Sampling sub-pix color component is same in red, green and blue component, described second benefit Color bits puts be respectively in red, green and blue component with described three complementary color position other two kinds.
In one embodiment of the invention, in step (iv), described white line is white horizontal line Bar, white vertical moulding or white oblique line bar.
In one embodiment of the invention, described white line is single picture in described original image Element width white line.
In one embodiment of the invention, in step (vi), described target display screen is led Display screen, the LED lamp point arrangement mode on described led 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 to the original graph comprising the similar pattern such as lines, word In the processing procedure of picture, increase after specific Rule of judgment judged after sub-pix down-sampling Complementary color again, it can largely improve resolution and eliminate color mistake, solve existing skill The colour cast problem (such as complementary color is excessive or mends a plurality of line) that complementary color mechanism in art is brought.
By the detailed description below with reference to accompanying drawing, the other side of the present invention and feature become obvious. It is understood that this accompanying drawing is only the purpose design explained, not as the model of the present invention The restriction enclosed, this is because it should refer to appended claims.It should also be noted that it is unless another Point out outward it is not necessary to scale accompanying drawing, they only try hard to conceptually to illustrate described herein Structure and flow process.
Brief description
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in detail.
Fig. 1 is the image procossing in prior art based on sub-pix down-sampling and anti-color error algorithms Flow chart.
Fig. 2 is sub-pix down-sampling schematic diagram of mechanism in prior art.
Fig. 3 is the data profile obtaining after sub-pix down-sampling in prior art.
Fig. 4 is that in prior art, 3 × 3 Module Division of anti-color error algorithms and complementary color rule are illustrated Figure.
Fig. 5 be comprise during the anti-color error algorithms using prior art white oblique line bar artwork and The contrast of the analogous diagram after anti-color fault processing.
Fig. 6 be the artwork that comprises white ledgement during the anti-color error algorithms using prior art and The contrast of the analogous diagram after anti-color fault processing.
Fig. 7 be the artwork that comprises white vertical moulding during the anti-color error algorithms using prior art and The contrast of the analogous diagram after anti-color fault processing.
Fig. 8 is four physics sub-pix rectanglar arrangement schematic diagrams of first embodiment of the invention.
Fig. 9 is first embodiment of the invention based on sub-pix down-sampling and anti-color error algorithms Image processing flow figure.
Figure 10 and Figure 11 is that in first embodiment of the invention, colour cast in single pixel wide white ledgement Two kinds of situations principle schematic.
Figure 12 and Figure 13 is that in first embodiment of the invention, colour cast in single pixel wide white vertical moulding Two kinds of situations principle schematic.
Figure 14 is one kind that in first embodiment of the invention, colour cast in single pixel wide white oblique line bar The principle schematic of situation.
Figure 15 is three physics sub-pix triangular pitch schematic diagrams of second embodiment of the invention.
Figure 16 is the data profile obtaining after sub-pix down-sampling in second embodiment of the invention.
Figure 17 is 3 × 3 Module Division of anti-color error algorithms and the benefit of second embodiment of the invention Color rule schematic diagram.
Figure 18 and Figure 19 is that in second embodiment of the invention, colour cast in single pixel wide white vertical moulding Two kinds of situations principle schematic.
Specific embodiment
Understandable for enabling the above objects, features and advantages of the present invention to become apparent from, with reference to Accompanying drawing is described in detail to the specific embodiment of the present invention.
[first embodiment]
First, the present embodiment carries out the object of anti-color fault processing:
Comprise the original image of the similar pattern such as word, lines, the similar figure such as this kind of word, lines The feature of shape is main by the plain wide white line structure of the single pixel wide such as horizontal line, vertical line, oblique line or double image Become.
2nd, the physics sub-pix placement scheme that the present embodiment is directed to:
Using four physics sub-pix rectanglar arrangement modes, redness (r) physics sub-pix, an indigo plant The rectangular arrangement of color (b) physics sub-pix, two green (g) physics sub-pixs, and two greens All the time on a diagonal, four shown in Fig. 8 kind situation all meets this arrangement to physics sub-pix Mode.Further, it is to be appreciated that described four physics sub-pix rectanglar arrangement modes are, for example, led LED lamp point arrangement on display screen, namely four lamp rectanglar arrangements.
3rd, the image procossing mechanism in the present embodiment:
Said as a example (a) arrangement mode in shown in by Fig. 8 four kind physics sub-pix placement scheme Bright, processed with anti-color error algorithms using sub-pix down-sampling and comprise the similar figure such as lines, word As shown in figure 9, in brief, it is carried out the flow process of the original image of shape to the original image of input Carry out, after gamma conversion, redness (r) color component, the green that sub-pix down-sampling obtains being sampled (g) color component and blueness (b) color component, then the r color component being sampled, g color are divided Amount and b color component increase by a Rule of judgment before carrying out anti-color fault processing respectively, and complete Carry out anti-gamma conversion output image after becoming anti-color fault processing.
In above-mentioned flow process, it is not necessary to first area after the completion of sub-pix down-sampling and before carrying out complementary color The figures such as single cent word, lines, all do same process to whole image.Describe in detail as follows:
For the colour cast problem producing after prior art complementary color, the rectangular row for four physics sub-pixs The mode of cloth, analyzing the reason it produces colour cast has: judges whether to need to mend in abovementioned steps (i) R, g, b value of employing when carrying out complementary color during the condition of color and in abovementioned steps (iii), it is simultaneously Non- be all original image value, but the new value being endowed after complementary color;And at abovementioned steps (ii) During middle judgement complementary color position, due to the particularity of white line, complementary color position is all preferably left and upper Both direction (b1, g1 position in such as Fig. 4), also may be selected right and upper both direction, But produced problem is the same, to produced the benefit to the multiple complementary color of certain color component in same position Color Overdosing problems, or same color component all mended in neighbouring two positions of center color component Color.For problem above, the technical scheme of the present embodiment is to increase a judgement before carrying out complementary color Condition:
(1). two kinds of situations of colour cast occur for single pixel wide white ledgement
Situation one: referring to Figure 10, according to the complementary color rule being relevant to shown in aforementioned Fig. 4, square frame is (right Answer 3 × 3 modules because single pixel wide white the upper and lower both sides of Cross slat original pixels be sampled Asia The value of pixel color component is minimum gray 0, therefore does not draw) in centered on g component when need Mend r component (as shown in the dashed circle in Figure 10 (a)), complementary color position is c, with b weight center When also need mend r component (as shown in the dashed circle in Figure 10 (b)), complementary color position also be c, according to After abovementioned steps (iii) complementary color, r component meeting complementary color is excessive.Specifically, for white line, If r=g=b=x, when centered on g component, g [i, j] after complementary color =(g [i, j]+g [c])/2=(x+0)/2=x/2, r [c]=(r [i, j]+r [c])/2=(x+0)/2=x/2;Work as 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 by a Rule of judgment before carrying out complementary color, namely r [i, j] - r [c] > h, if being unsatisfactory for this condition, no longer gives r component complementary color and centered on b component When b [i, j]=b [i, j]/2 (namely being updated to half value).Herein, the span of h is done as follows Illustrate: be directed to pure white lines, before gamma conversion, centered on g component to r After component carries out complementary color, after g=r=128, gamma conversion, 128 are approximately equal to 0.3;When When centered on b component, after r [i, j]=255, gamma conversion, be equivalent to 1, so R [i, j]-r [c]=0.7;For other white lines, this value all can 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 aforementioned Fig. 4, in square frame Centered on g component when need to mend b component (as shown in the dashed circle in Figure 11 (a)), complementary color position It is set to c, also to need during r weight center to mend b component (as shown in the dashed circle in Figure 11 (b)), Complementary color position is also c, and after abovementioned steps (iii) complementary color, b component meeting complementary color is excessive.Specifically Ground, for white line, if r=g=b=x, when centered on g component, g [i, j] after complementary color =(g [i, j]+g [c])/2=(x+0)/2=x/2, b [c]=(b [i, j]+b [c])/2=(x+0)/2=x/2;When with r When centered on component, 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 by a Rule of judgment before carrying out complementary color, namely b [i, j] - b [c] > h, if being unsatisfactory for this condition, no longer gives b component complementary color and centered on r component When r [i, j]=r [i, j]/2 (namely being updated to half value);Herein, h takes (0.7,1), namely 0.7 < h < 1.
In brief, when anti-color fault processing is carried out to white ledgement, increase Rule of judgment Purpose be in order to avoid to be sampled color component (such as Figure 10 corresponding to white ledgement G, b component, or g, r component of Figure 11) the 3rd color of neighbouring same position divides Amount (the r component of such as Figure 10 or the b component of Figure 11) carries out multiple complementary color.
Additionally, can also learn from Figure 10 and Figure 11: corresponding white the multiple of ledgement are sampled Sub-pix color component is alternately arranged two kind color component (g, b in such as Figure 10, or figure G in 11, r), and the two neighboring sub-pix color component that is sampled is respectively as 3 × 3 modules Center sub-pix color component carry out that there is during anti-color fault processing identical complementary color position c, If complementary color position c be sampled sub-pix color component (dashed circle r of such as Figure 10, or In dashed circle b) and original pixels corresponding to the sub-pix color component of center in Figure 11 and complementary color Position c is sampled the sub-pix color of not sampling that sub-pix color component has same color type The difference of component meets for example aforesaid r [i, j]-r [c] of first condition > h (or b [i, j]-b [c] > H), then the b (or the r in Figure 11 (b)) misaligning heart sub-pix color component such as 10 (b) is mended Color to update center sub-pix color component be half value (namely divided by 2).
(2). two kinds of situations of colour cast occur for single pixel wide white vertical moulding
The principle of colour cast with aforementioned single pixel wide white ledgement one in single pixel wide white vertical moulding Sample, for the situation shown in Figure 12, the Rule of judgment of increase is: whether r [i, j] r [c] > h, The span of h is (0.7,1);When centered on b component, if meeting this condition, by aforementioned Existing complementary color mechanism carries out complementary color, if being unsatisfactory for this condition, does not need again 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 is divided by 2.
For the situation shown in Figure 13, the Rule of judgment of increase is: b [i, j] b [c] > h, h's Span is (0.7,1);When centered on r component, if meeting this condition, by aforementioned existing Complementary color mechanism carry out complementary color, if being unsatisfactory for this condition, do not need again give b component complementary color and R [i, j]=r [i, j]/2 (namely being updated to half value), namely the value of r component is divided by 2.
In brief, when anti-color fault processing is carried out to white vertical moulding, increase Rule of judgment Purpose be in order to avoid to be sampled color component (such as Figure 12 corresponding to white vertical moulding G, b component, or g, r component of Figure 13) the 3rd color of neighbouring same position divides Amount (the r component of such as Figure 12 or the b component of Figure 13) carries out multiple complementary color.
Additionally, can also learn from Figure 12 and Figure 13: corresponding white the multiple of vertical moulding are sampled Sub-pix color component is alternately arranged two kind color component (g, b in such as Figure 12, or figure G in 13, r), and the two neighboring sub-pix color component that is sampled is respectively as 3 × 3 modules Center sub-pix color component carry out that there is during anti-color fault processing identical complementary color position c, If complementary color position c be sampled sub-pix color component (dashed circle r of such as Figure 12, or In dashed circle b) and original pixels corresponding to the sub-pix color component of center in Figure 13 and complementary color Position c is sampled the sub-pix color of not sampling that sub-pix color component has same color type The difference of component meets for example aforesaid r [i, j]-r [c] of first condition > h (or b [i, j]-b [c] > H), then the b (or the r in Figure 13 (b)) misaligning heart sub-pix color component such as 12 (b) is mended Color to update center sub-pix color component be half value (namely divided by 2).
(3). a kind of situation of colour cast occurs for single pixel wide white oblique line bar
Referring to Figure 14 (a), its sub-pix color obtaining after representing sub-pix down-sampling white oblique line bar The distribution situation of component, illustrates for ease of follow-up, and g component serial number is g1~g5, but g The quantity of component is not limited thereto.If according to the complementary color rule being relevant to shown in aforementioned Fig. 4, When centered on g1 component, r, b need to be mended, complementary color position is c1, c2;When with g2 component Centered on when complementary color need to mend r, b, complementary color position be c3, c4;By that analogy, g1, g2, g3, Two r components are had respectively by complementary color, two b components are led to by complementary color produce around g4, g5 , the problems mending a line, such as shown in Figure 14 (b) more in raw colour cast.
In order to solve this problem, before carrying out complementary color, increase by a Rule of judgment, when with g1 component being During center, if during b [i 1, j-2] > 0, do not carry out mending b component, when centered on g2 component When, if r [i 1, j-2] > 0 (this position is the c1 position in Figure 14 (b)), do not carry out mending r component, G3, g4, g5 by that analogy, and the value of g1, g2, g3, g4, g5 in complementary color respectively Divided by 2 (namely being updated to half value), this addresses the problem white oblique line bar complementary color and two lines occur Problem, shown in effect such as Figure 14 (c).
In brief, when anti-color fault processing is carried out to white oblique line bar, increase Rule of judgment Purpose be in order to avoid same color component (such as r component or b component) with white oblique line bar Corresponding being sampled all is carried out on two neighbouring positions of sub-pix color component (such as g component) Complementary color.
Additionally, can also learn from Figure 14: corresponding white the multiple of oblique line bar are sampled sub-pix face Colouring component be a kind of color component (such as g) and each is sampled sub-pix color component as The center sub-pix color component of 3 × 3 modules carries out thering is adjacent during anti-color fault processing One complementary color position (such as center sub-pix color component g1 left location c1, center sub-pix color Component g2 left location c4) and the second complementary color position (above such as center sub-pix color component g1 Position c2, center sub-pix color component g2 top position c3), if two neighboring be sampled sub- picture In plain color component g1, g2 first is sampled first benefit of sub-pix color component such as g1 Color bits put c1 be sampled sub-pix color component r meet second condition such as aforesaid r [i 1, J-2] > 0, described two neighboring be sampled in sub-pix color component g1, g2 second be sampled Sub-pix color component g2 is only by the described second the first complementary color being sampled sub-pix color component g2 Position c4 carries out complementary color and the described second the second complementary color position being sampled sub-pix color component g2 C3 is not sampled sub-pix color component g2 to described second to carry out complementary color and updates described second quilt Sampling sub-pix color component g2 is half value;Wherein, described first it is sampled sub-pix color and divides The sub-pix color component r that is sampled of the first complementary color position c1 of amount g1 is sampled with described second The face being sampled sub-pix color component r of the second complementary color position c3 of sub-pix color component g2 Color type is identical and the first complementary color position c4 that be sampled sub-pix color component g2 with described second Be sampled sub-pix color component b color type different, described first is sampled sub-pix face The first complementary color position c1 of colouring component g1 and described second is sampled sub-pix color component g2's Second complementary color position c3 is sampled relatively the two of sub-pix color component g1 respectively positioned at described first Side.
[second embodiment]
First, the present embodiment carries out the object of anti-color fault processing:
Comprise the original image of the similar pattern such as word, lines, the similar figure such as this kind of word, lines The feature of shape is main by the plain wide white line structure of the single pixel wide such as horizontal line, vertical line, oblique line or double image Become.
2nd, the physics sub-pix placement scheme that the present embodiment is directed to:
Using three physics sub-pix triangular pitch modes, redness (r) physics sub-pix, The arrangement triangular in shape of blue (b) physics sub-pix, green (g) physics sub-pix, and adjacent There is a certain distance between two physics sub-pixs, in units of this arrangement, periodic arrangement structure Triangularity arrangement array, such as shown in Figure 15.Further, it is to be appreciated that described three physics Sub-pix triangular pitch mode is, for example, the LED lamp point arrangement on led display screen, I.e. three lamp triangular pitch.
Correspondingly, obtain after the original image to input carries out sub-pix down-sampling is sampled Asia Pixel color component arrangement is then shown in Figure 16.Additionally, after completing anti-color fault processing, then The sub-pix color component of the even number line in Figure 16 is carried out with the translation on position, the first of even number line Individual sub-pix color component is in first sub-pix color component of odd-numbered line and second sub-pix face The centre position of colouring component, so that each sub-pix color component in final output image The position of the corresponding physics sub-pix arranged in array with the physics sub-pix of Figure 15 in position is one by one Corresponding.
3rd, the image procossing mechanism in the present embodiment:
Processed with anti-color error algorithms using sub-pix down-sampling and comprise the similar figure such as lines, word As shown in figure 9, in brief, it is carried out the flow process of the original image of shape to the original image of input Carry out, after gamma conversion, redness (r) color component, the green that sub-pix down-sampling obtains being sampled (g) color component and blueness (b) color component, then the r color component being sampled, g color are divided Amount and b color component increase by a Rule of judgment before carrying out anti-color fault processing respectively, and complete Carry out anti-gamma conversion output image after becoming anti-color fault processing.
In above-mentioned flow process, it is not necessary to first area after the completion of sub-pix down-sampling and before carrying out complementary color The figures such as single cent word, lines, all do same process to whole image.Describe in detail as follows:
For the colour cast problem producing after prior art complementary color, triangular in shape for three physics sub-pixs The mode of arrangement, analyzing the reason it produces colour cast has: judges whether needs in abovementioned steps (i) R, g, b value of employing when carrying out complementary color during the condition of complementary color and in abovementioned steps (iii), its It is all not the value of original image, but the new value being endowed after complementary color;And at abovementioned steps (ii) During middle judgement complementary color position, due to the particularity of white line, complementary color position is all preferably left and upper Both direction (b1, g1 position in such as Fig. 4), also may be selected right and upper both direction, But produced problem is the same, to produced the benefit to the multiple complementary color of certain color component in same position Color Overdosing problems, or same color component is in neighbouring two positions of 3 × 3 module centers color components All carry out complementary color.For problem above, the technical scheme of the present embodiment is to increase before carrying out complementary color One Rule of judgment:
(1). two kinds of situations of colour cast occur for single pixel wide white vertical moulding
Situation one: referring to Figure 18, according to being relevant to the existing complementary color rule shown in Figure 17, square frame is (right Answer 3 × 3 modules because the original pixels of the vertical bar left and right sides of single pixel wide white be sampled Asia The value of pixel color component is minimum gray 0, therefore does not draw) in centered on b component when need Mend g component (as shown in the dashed circle in Figure 18 (a)), complementary color position is d, with r weight center When also need mend g component (as shown in the dashed circle in Figure 18 (b)), complementary color position also be a, according to After abovementioned steps (iii) complementary color, r component meeting complementary color is excessive.Specifically, for white line, If r=g=b=x, when centered on b component, b [i, j] after complementary color =(b [i, j]+b [d])/2=(x+0)/2=x/2, g [d]=(g [i, j]+g [d])/2=(x+0)/2=x/2;Work as 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 carrying out complementary color, i.e. if During g [i, j]-g [d] > h, carry out g component complementary color, otherwise do not need to g component complementary color and b [i, j]= b[i,j]/2;Wherein the span of h is (0.7,1), namely 0.7 < h < 1.In with r component being During the heart, added Rule of judgment is identical, namely judges whether g [i, j]-g [d] > h, if being unsatisfactory for this Condition does not then need to g component complementary color and r [i, j]=r [i, j]/2.
Situation two: referring to Figure 19, the existing complementary color shown in Figure 17 is regular according to being relevant to, square frame Interior centered on r component when need to mend b component (as shown in the dashed circle in Figure 19 (a)), complementary color Position is d, also to need during g weight center to mend b component (as shown in the dashed circle in Figure 19 (b)), Complementary color position is also d, and after abovementioned steps (iii) complementary color, b component meeting complementary color is excessive.Specifically Ground, for white line, if r=g=b=x, when centered on r component, r [i, j] after complementary color =(r [i, j]+r [d])/2=(x+0)/2=x/2, b [d]=(b [i, j]+b [d])/2=(x+0)/2=x/2;When with g When centered on component, 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 carrying out complementary color, i.e. if During b [i, j]-b [d] > h, carry out b component complementary color when centered on r component, otherwise do not need to b Component complementary color and r [i, j]=r [i, j]/2;Wherein the span of h is (0.7,1), namely 0.7 < h < 1. When centered on g component, added Rule of judgment is identical, namely judges whether b [i, j]-b [d] > h, If being unsatisfactory for this condition, do not need to b component complementary color and g [i, j]=g [i, j]/2.
In brief, when anti-color fault processing is carried out to white vertical moulding, increase Rule of judgment Purpose be in order to avoid to be sampled color component (such as Figure 18 corresponding to white vertical moulding R, b component, or g, r component of Figure 19) the 3rd color of neighbouring same position divides Amount (the g component of such as Figure 18 or the b component of Figure 19) carries out multiple complementary color.
Additionally, can also learn from Figure 18 and Figure 19: corresponding white the multiple of vertical moulding are sampled Sub-pix color component is alternately arranged two kind color component (b, r in such as Figure 18, or figure R in 19, g), and the two neighboring sub-pix color component that is sampled is respectively as 3 × 3 modules Center sub-pix color component carry out that there is during anti-color fault processing identical complementary color position d, If complementary color position d be sampled sub-pix color component (dashed circle g of such as Figure 18, or In dashed circle b) and original pixels corresponding to the sub-pix color component of center in Figure 19 and complementary color Position d is sampled the sub-pix color of not sampling that sub-pix color component has same color type The difference of component meets first condition such as g [i, j]-g [d] > h (or b [i, j]-b [d] > h), then misalign The r (or the g in Figure 19 (b)) of heart sub-pix color component such as 18 (b) carries out complementary color and updates center Sub-pix color component is 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 direct Colour cast problem will not be produced using existing complementary color rule.
In addition, it is noted that the image procossing scheme in first and second embodiment above-mentioned can During being applied to the method for displaying image based on sub-pix down-sampling, correspondingly, sub-pix The sub-pix color component data obtaining after down-sampling and anti-color fault processing is via anti-gamma Target display screen such as led display screen can be sent to after conversion shown.
In sum, the embodiment of the present invention is to the original graph comprising the similar pattern such as lines, word In the processing procedure of picture, increase after specific Rule of judgment judged after sub-pix down-sampling Complementary color again, it can largely improve resolution and eliminate color mistake, solve existing skill The colour cast problem (such as complementary color is excessive or mends a plurality of line) that complementary color mechanism in art is brought.
So far, specific case used herein image based on sub-pix down-sampling to the present invention The principle of display packing and embodiment are set forth, and the explanation of above example is only intended to help Assistant's solution method of the present invention and its core concept;Simultaneously for one of ordinary skill in the art, According to the thought of the present invention, all will change in specific embodiments and applications, comprehensive Upper described, this specification content should not be construed as limitation of the present invention, protection scope of the present invention Should be defined by appended claim.

Claims (9)

1. a kind of method for displaying image based on sub-pix down-sampling, including step: (i) receives input Original image;(ii) described original image is carried out gamma conversion obtain gamma conversion after Original image;(iii) sub-pix down-sampling is carried out to obtain to original image after described gamma conversion One of each original pixels is sampled sub-pix color component and obtains multiple being sampled sub-pix Color component;(iv) the plurality of sub-pix color component that is sampled is carried out at anti-color mistake respectively Reason is to obtain sub-pix color component after multiple anti-color fault processing;V () is to the plurality of anti-color After fault processing, sub-pix color component carries out anti-gamma conversion and obtains target image;And (vi) Export described target image to be shown to target display screen;It is characterized in that, step (iv) includes:
To the plurality of be sampled in sub-pix color component original after correspondence described gamma conversion Multiple targets of a white line in image are sampled sub-pix color component and carry out anti-color mistake When processing by mistake,
(iv1) it is alternately arranged two kind color when the plurality of target is sampled sub-pix color component Component and two neighboring described target is sampled sub-pix color component as 3 × 3 modules Center sub-pix color component carry out that there is during anti-color fault processing identical the first complementary color position Put, if described first complementary color position be sampled sub-pix color component and described center sub-pix face The sub-pix color that is sampled of in the original pixels corresponding to colouring component and described first complementary color position is divided The difference that measurer has the sub-pix color component of not sampling of same color type meets first condition, then Described center sub-pix color component is not carried out with complementary color and updates described center sub-pix color component For half value;And/or
(iv2) when the plurality of target is sampled sub-pix color component for a kind of color component and by often One described target is sampled sub-pix color component as the center sub-pix color of 3 × 3 modules Component carries out thering is the second adjacent complementary color position and three complementary color position during anti-color fault processing, If the first object that two neighboring described target is sampled in sub-pix color component is sampled sub-pix The sub-pix color component that is sampled of the described second complementary color position of color component meets second condition, The second target that described two neighboring target is sampled in sub-pix color component is sampled sub-pix face Colouring component is only entered by the described second complementary color position that described second target is sampled sub-pix color component Row complementary color and described three complementary color position that described second target is sampled sub-pix color component is not right Described second target is sampled sub-pix color component and carries out complementary color and update described second target and adopted Sample sub-pix color component is half value;Wherein, described first object is sampled sub-pix color component Be sampled sub-pix color component and described second target of described second complementary color position be sampled Asia The color type being sampled sub-pix color component of the described three complementary color position of pixel color component The quilt of identical and be sampled sub-pix color component with described second target described second complementary color position The color type of sampling sub-pix color component is different, and described first object is sampled sub-pix color The described second complementary color position of component and described second target are sampled the described of sub-pix color component Three complementary color position is sampled relatively the two of sub-pix color component respectively positioned at described first object Side.
2. the method for displaying image based on sub-pix down-sampling as claimed in claim 1, its feature It is, in step (iv1), described first condition is: x [i, j]-x [p] > h;Wherein, x [p] is Described first complementary color position p is sampled sub-pix color component, and x [i, j] is described center sub-pix Position coordinateses corresponding to color component be [i, j] original pixels in and described first complementary color position p Be sampled the sub-pix color of not sampling that sub-pix color component x [p] has same color type Component, h is non-zero constant.
3. the method for displaying image based on sub-pix down-sampling as claimed in claim 2, its feature It is, 0.7 < h < 1.
4. the method for displaying image based on sub-pix down-sampling as claimed in claim 1, its feature It is, described second condition is described second that described first object is sampled sub-pix color component The sub-pix color component that is sampled of complementary color position is more than 0.
5. the method for displaying image based on sub-pix down-sampling as claimed in claim 1, its feature Be, in step (iv1), described two neighboring target be sampled sub-pix color component be red, Green and blue component in two kinds, described first complementary color position be sampled sub-pix color component For another in red, green and blue component.
6. the method for displaying image based on sub-pix down-sampling as claimed in claim 1, its feature It is, in step (iv2), it is red that described first and second targets are sampled sub-pix color component Same in color, green and blue component, described second complementary color position and described three complementary color position Put other two kinds in respectively red, green and blue component.
7. the method for displaying image based on sub-pix down-sampling as claimed in claim 1, its feature It is, in step (iv), described white line is white ledgement, white vertical moulding or white are oblique Lines.
8. the method for displaying image based on sub-pix down-sampling as claimed in claim 7, its feature It is, described white line is single pixel wide white line in described original image.
9. the method for displaying image based on sub-pix down-sampling as claimed in claim 1, its feature It is, in step (vi), described target display screen is led display screen, described led display screen On LED lamp point arrangement mode be 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 true CN106341671A (en) 2017-01-18
CN106341671B 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 (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070085863A1 (en) * 2005-10-13 2007-04-19 Seiko Epson Corporation Image display device, electronic apparatus, and pixel location determining method
JP2007240658A (en) * 2006-03-06 2007-09-20 Seiko Epson Corp Image display device, electronic equipment, and pixel arrangement designing method
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070085863A1 (en) * 2005-10-13 2007-04-19 Seiko Epson Corporation Image display device, electronic apparatus, and pixel location determining method
JP2007240658A (en) * 2006-03-06 2007-09-20 Seiko Epson Corp Image display device, electronic equipment, and pixel arrangement designing method
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显示质量的提升", 《光子学报》 *

Also Published As

Publication number Publication date
CN106341671B (en) 2018-04-06

Similar Documents

Publication Publication Date Title
CN107293571B (en) The pixel arrangement structure and OLED display panel of OLED display panel
CN103366683B (en) Pixel array, display and method for displaying image on display
CN104037201B (en) Pixel array, display and method for presenting images on display
CN104618703B (en) A kind of white balance adjustment method
CN204463787U (en) LED structure, display unit and display control unit
CN103700329B (en) The display packing of display panel
CN101489143B (en) Image processing method, image data conversion method and apparatus thereof
CN204965933U (en) Dot structure and display panel
TWI588757B (en) Edge detection system and methods
CN101394570A (en) Display and method of control
CN105096754B (en) Display device and sub-pixel rendering intent
CN108428435B (en) The verifying display methods of one sub-pixel rendering
CN105869557A (en) Display apparatus
CN104614882B (en) Display base plate and its driving method and display device
CN112185301B (en) Display device correction method and device and processor
CN103299643A (en) Color imaging device
CN104616597A (en) Display substrate and driving method thereof and display device
CN105096806A (en) Sub pixel arrangement of display, and coloring method
CN106898291B (en) The driving method and driving device of display panel
CN116682332A (en) LED sub-pixel arrangement structure and module
CN104461441A (en) Rendering method, rendering device and display device
KR20150142138A (en) Image display method
CN105448950A (en) Organic light-emitting diode display panel and pixel arrangement structure of display panel
CN103413499A (en) LED display screen
CN204904727U (en) Dot structure and display device

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
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.