The content of the invention
The technical problems to be solved by the invention are, there is provided the rendering intent of a sub-pixel and system, to improveProblem of dtmf distortion DTMF during display image borderline region.
In order to solve the above-mentioned technical problem, the one side of embodiments of the invention provides the rendering intent of a sub-pixel, shouldFor rendering for Delta type arrangement of subpixels structures, comprise the following steps:
Multiple sub-pixels are divided into multiple repetition pixel regions arranged by Delta, each pixel region that repeats is includedThree kinds of colors totally ten two sub-pixels;Three image pixels are corresponded in the horizontal, and two image pixels are corresponded in the vertical;
1 × 3 view data is loaded into successively, and binary conversion treatment is carried out to view data according to default threshold value;
Whether 1 × 3 view data that the loading is judged according to the binary conversion treatment result is boundary image and border classType;
If it is judged that being boundary image, then according to 1 × 3 image of the corresponding filtering strategies of its boundary types to the loadingCarry out sub-pixel and render processing;If it is judged that for non-boundary image, then according to general filtering strategies to the 1 of the loading ×3 images carry out sub-pixel and render processing.
Wherein, each pixel region that repeats includes 4 row sub-pixels, wherein the sub-pixel of the 2nd row and the 3rd row is total toWith;
In the upper part for repeating pixel region, one figure of sub-pixel formation of two sub-pixels of the 1st row and the 2nd rowAs pixel, two sub-pixels, one image pixel of formation of the sub-pixel of the 2nd row and the 3rd row, described two sons of the 3rd rowPixel and a sub-pixel one image pixel of formation of the 4th row;
In the lower part for repeating pixel region, two sub-pixels formation, one figure of a sub-pixel of the 1st row and the 2nd rowAs pixel, a sub-pixel one image pixel of formation of described two sub-pixels of the 2nd row and the 3rd row, described the one of the 3rd rowTwo sub-pixels, one image pixel of formation of individual sub-pixel and the 4th row;
Wherein, comprising red sub-pixels, green sub-pixel and blue sub-pixel in each image pixel.
Wherein, according to the binary conversion treatment result judge 1 × 3 view data of the loading whether be boundary image withAnd the step of boundary types are specially:
The binary conversion treatment result is compareed with least one default boundary template, to judge the 1 × 3 of the loadingWhether view data is boundary image and boundary types;
Wherein, the boundary types are:At least one in left margin, right margin, white point, stain, left shoulder, right shoulder, each borderType is to that should have a boundary template for being used to compare.
Wherein, step is further comprised:
Pre-define general filtering strategies, and the corresponding filtering strategies of each boundary types.
Wherein, it is described according to 1 × 3 image of the corresponding filtering strategies of boundary types or general filtering strategies to the loadingCarrying out the step of sub-pixel renders processing includes:
According to the corresponding filtering strategies of the boundary types of the determination or general filtering strategies, determine each in 1 × 3 imageThe relative luminous intensity of row sub-pixel, and control each row sub-pixel to be lighted with identified relative luminous intensity.
Correspondingly, the another aspect of the embodiment of the present invention, also provides the rendering system of a sub-pixel, applied to DeltaType arrangement of subpixels structure is rendered, including:
Pixel region division unit is repeated, for multiple sub-pixels to be divided into multiple repetition pixel regions arranged by Delta,Each pixel region that repeats includes three kinds of colors totally ten two sub-pixels;Three image pixels are corresponded in the horizontal, verticalTwo image pixels of upward correspondence;
Binary conversion treatment unit, for being loaded into 1 × 3 view data successively, two-value is carried out according to default threshold value to view dataChange is handled;
Comparison judgment unit, for judging whether 1 × 3 view data of the loading is side according to the binary conversion treatment resultBoundary's image and boundary types;
Render processing unit, for when judged result is boundary image, according to the corresponding filtering strategies of its boundary types to institute1 × 3 image progress sub-pixel for stating loading renders processing;When judged result is non-boundary image, then according to general filtering planProcessing slightly is rendered to 1 × 3 image progress sub-pixel of the loading.
Wherein, each pixel region that repeats includes 4 row sub-pixels, wherein the sub-pixel of the 2nd row and the 3rd row is total toWith;
In the upper part for repeating pixel region, one figure of sub-pixel formation of two sub-pixels of the 1st row and the 2nd rowAs pixel, two sub-pixels, one image pixel of formation of the sub-pixel of the 2nd row and the 3rd row, described two sons of the 3rd rowPixel and a sub-pixel one image pixel of formation of the 4th row;
In the lower part for repeating pixel region, two sub-pixels formation, one figure of a sub-pixel of the 1st row and the 2nd rowAs pixel, a sub-pixel one image pixel of formation of described two sub-pixels of the 2nd row and the 3rd row, described the one of the 3rd rowTwo sub-pixels, one image pixel of formation of individual sub-pixel and the 4th row;
Wherein, comprising red sub-pixels, green sub-pixel and blue sub-pixel in each image pixel.
Wherein, the comparison judgment unit further comprises:
Comparing unit, for the binary conversion treatment result to be compareed with least one default boundary template, to judgeWhether 1 × 3 view data of the loading is boundary image and boundary types;
Wherein, the boundary types are:At least one in left margin, right margin, white point, stain, left shoulder, right shoulder, each borderType is to that should have a boundary template for being used to compare.
Wherein, further comprise:
Predefined unit, for pre-defining general filtering strategies, and the corresponding filtering strategies of each boundary types.
Wherein, the render processing unit includes:
Luminous intensity determining unit, for the corresponding filtering strategies of the boundary types according to determined by comparing unit or general filteringStrategy, determines the relative luminous intensity of each row sub-pixel in 1 × 3 image;
Adjustment unit, for controlling each row sub-pixel to be lighted with identified relative luminous intensity.
Implement the embodiment of the present invention, have the advantages that:
First, the repetition pixel region for the RGB Delta arrangements that embodiments of the invention are defined, and using the sub-pixel side of renderingMethod, can effectively reduce the sub-pixel number under the same resolution ratio of sub-pixel number reduction under identical display resolution;
In addition, embodiments of the invention, to 1 × 3 view data of loading, two-value is carried out according to default threshold value to view dataChange is handled, and the result after binary conversion treatment is compareed with default boundary template, rim detection is carried out, to the figure metProcessing is rendered as data carry out sub-pixel using specific filtering strategies, the color that can effectively reduce image boundary region losesVery, the picture for showing display is more life-like.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear completeGround is described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based onEmbodiment in the present invention, those of ordinary skill in the art obtained on the premise of creative work is not made it is all itsIts embodiment, belongs to the scope of protection of the invention.
In addition, the explanation of following embodiment is with reference to additional diagram, the spy implemented to illustrate the present invention can be used toDetermine embodiment.The direction term being previously mentioned in the present invention, for example, " on ", " under ", "front", "rear", "left", "right", " interior "," outer ", " side " etc., are only the directions with reference to annexed drawings, therefore, and the direction term used is to more preferably, more clearly sayIt is bright and understand the present invention, rather than indicate or infer the device or element of meaning and must have specific orientation, with specific sidePosition construction and operation, therefore be not considered as limiting the invention.
In the description of the invention, it is necessary to illustrate, unless otherwise clearly defined and limited, term " installation ", " phaseEven ", " connection " should be interpreted broadly, for example, it may be being fixedly connected or detachably connected, or integratedly be connectedConnect, can mechanically connect, can be joined directly together, can also be indirectly connected to by intermediary, can be in two elementsThe connection in portion.For the ordinary skill in the art, the tool of above-mentioned term in the present invention can be understood with concrete conditionBody implication.
In addition, in the description of the invention, unless otherwise indicated, " multiple " are meant that two or more.If thisOccur the term of " process " in specification, it refers not only to independent process, when can not clearly be distinguished with other processes, as long asIt can realize that the effect desired by the process is then also included within this term.In addition, the numerical value model represented in this specification with " "Enclose the scope for referring to that the numerical value recorded before and after " " is included as minimum value and maximum.In the accompanying drawings, structureSimilar or identical is indicated by the same numeral.
It refer to shown in Fig. 1, show the master of one embodiment of the rendering intent for the sub-pixel that the present invention is providedSchematic flow sheet, in the lump with reference to shown in Fig. 2 to Fig. 5, in this embodiment, the rendering intent of the sub-pixel, applied to Delta typesArrangement of subpixels structure is rendered, and it comprises the following steps:
Multiple sub-pixels are divided into multiple repetition pixel regions arranged by Delta, each repetition pixel by step S10Region includes three kinds of colors totally ten two sub-pixels;Three image pixels are corresponded in the horizontal, and two images are corresponded in the verticalPixel;
Specifically, as shown in Fig. 2 in one example, each pixel region that repeats includes 4 row sub-pixels, wherein the 2nd rowShared with the sub-pixel of the 3rd row;
In the upper part for repeating pixel region, one figure of sub-pixel formation of two sub-pixels of the 1st row and the 2nd rowAs pixel, two sub-pixels, one image pixel of formation of the sub-pixel of the 2nd row and the 3rd row, described two sons of the 3rd rowPixel and a sub-pixel one image pixel of formation of the 4th row;
In the lower part for repeating pixel region, two sub-pixels formation, one figure of a sub-pixel of the 1st row and the 2nd rowAs pixel, a sub-pixel one image pixel of formation of described two sub-pixels of the 2nd row and the 3rd row, described the one of the 3rd rowTwo sub-pixels, one image pixel of formation of individual sub-pixel and the 4th row;
Wherein, comprising red sub-pixels, green sub-pixel and blue sub-pixel in each image pixel, i.e. each figure in fig. 2Picture pixel includes C1, C2 and C3 sub-pixel, and wherein C1 sub-pixels are one of red sub-pixels, green sub-pixel and blue sub-pixelKind, C2 sub-pixels are another in red sub-pixels, green sub-pixel and blue sub-pixel, and C3 sub-pixels are red sub-pixels, green sub- pictureThe third in element and blue sub-pixel;
It is understood that the repetition pixel region of the Delta arrangements shown in Fig. 2, passes through shared technology, it is only necessary to 12Individual sub-pixel can show 2 × 3 view data, and use conventional RGB Stripe arrangement modes to need 18 sub-pixelsIt could show, therefore, it can the sub-pixel of saving 1/3rd;And above-mentioned arrangement mode, each column includes three sub-pixels, andUpper-lower position mutually staggers, and can more uniformly utilize the physical space of display screen;
Step S11, is loaded into 1 × 3 view data successively, and binary conversion treatment is carried out to view data according to default threshold value;WhereinThreshold value is presets, and the gray value of image pixel is higher than being calculated as 1 after the binary conversion treatment of the threshold value, gray value is less than the threshold valueBe calculated as 0, by the binary conversion treatment, three bit value of binary conversion treatment result, i.e., one can be obtained(Every be respectively 0 or1);
Step S12, according to the binary conversion treatment result judge 1 × 3 view data of the loading whether be boundary image withAnd boundary types;Specifically, the binary conversion treatment result is compareed with least one default boundary template, to judgeWhether 1 × 3 view data of the loading is boundary image and boundary types;Wherein, the boundary types are:Left margin(Left edge), right margin(Right edge), white point(White point), stain(Dark point), left shoulder(Leftshoulder), right shoulder(Right shoulder)In at least one, each boundary types are to that should have one to be used for the border comparedTemplate;
As shown in figure 3, showing several boundary types and corresponding boundary template, it is to be understood that six shown in figureIt is citing to plant boundary template example, and non-is to limit;Wherein for left margin, the value of its boundary template is 100, specifically, works as stepWhen binary conversion treatment result in S11 is also 100, then judge 1 × 3 view data of the loading for boundary image and its border classType is left margin.
Step S13, if it is judged that being boundary image, is then carried according to the corresponding filtering strategies of its boundary types to described1 × 3 image entered carries out sub-pixel and renders processing;If it is judged that being non-boundary image, then according to general filtering strategies pair1 × 3 image of the loading carries out sub-pixel and renders processing.
Wherein, it is described according to 1 × 3 image of the corresponding filtering strategies of boundary types or general filtering strategies to the loadingCarrying out the step of sub-pixel renders processing includes:
According to the corresponding filtering strategies of the boundary types of the determination or general filtering strategies, determine each in 1 × 3 imageThe relative luminous intensity of row sub-pixel, and control each row sub-pixel to be lighted with identified relative luminous intensity.
It is understood that needing to pre-define general filtering strategies, and the corresponding filtering strategies of each boundary types.
Filtering strategies corresponding to following for example bright general filtering strategies or each boundary types, as shown in figure 4, showingGo out sub-pixel and render middle view data and the corresponding schematic diagram of sub-pixel distribution, wherein, VinFor a certain pixel of input pictureData value, includingVC1in、VC2in、VC3inThe data value of three kinds of colors, it being understood that forVCin(m,n-1)AndVCin(m,n)It also contains the data value of three kinds of colors;
In one example, the mode commonly filtered is as follows:
The relative luminous intensity of first row sub-pixel is:
V1C=VCin(m,n-1);
The relative luminous intensity of secondary series sub-pixel is:
V2C= 0.5VCin(m,n-1)+ 0.5VCin(m,n);
The relative luminous intensity of 3rd row sub-pixel is:
V3C=VCin(m,n);
The relative luminous intensity of 4th row sub-pixel is:
V4C=VCin(m,n+1);
Wherein, C is respectively sub-pixel corresponding color C1, C2, C3;
Filtering strategies corresponding for each boundary types are as follows:
For right margin type, its corresponding filtering strategies is as follows:
The relative luminous intensity of first row sub-pixel is:
V1C=VCin(m,n-1);
The relative luminous intensity of secondary series sub-pixel is:
V2C=VCin(m,n-1);
The relative luminous intensity of 3rd row sub-pixel is:
V3C= 0;
The relative luminous intensity of 4th row sub-pixel is:
V4C= 0。
For left margin type, its corresponding filtering strategies is as follows:
The relative luminous intensity of first row sub-pixel is:
V1C=0;
The relative luminous intensity of secondary series sub-pixel is:
V2C=0;
The relative luminous intensity of 3rd row sub-pixel is:
V3C=VCin(m,n+1) ;
The relative luminous intensity of 4th row sub-pixel is:
V4C=VCin(m,n+1)。
For white point type, its corresponding filtering strategies is as follows:
The relative luminous intensity of first row sub-pixel is:
V1C=0;
The relative luminous intensity of secondary series sub-pixel is:
V2C=VCin(m,n) ;
The relative luminous intensity of 3rd row sub-pixel is:
V3C=VCin(m,n) ;
The relative luminous intensity of 4th row sub-pixel is:
V4C= 0。
It is understood that above-mentioned specific filtering strategies are only for example, and for other sides such as stain, left shoulder or right shouldersBoundary's type, has also pre-defined corresponding filtering strategies, herein without being described in detail.
As shown in Figure 5, thus it is shown that the white point on border is rendered by general strategy and by boundary types strategyDisplay effect contrast schematic diagram afterwards;
As can be seen that for the white point, using common sub-pixel rendering intent, the sub-pixel " being lighted " of only two kinds colors is depositedIn cross-color, it is impossible to correctly show white point.And use the present invention to correspond to the filtering strategies of white point, spy is entered to the image pixelDifferent filtering process, the sub-pixel of three kinds of colors " is lighted ", can correctly show white point.
It is understood that the sub-pixel rendering intent proposed by the present invention arranged based on RGB Delta, Ke YitongCross contrast images template and carry out rim detection, while taking the method for adaptive-filtering(Correspond to every kind of boundary types to useOne specific filtering strategies)Carry out sub-pixel to render, the color distortion of image boundary can be effectively reduced.
Correspondingly, as shown in fig. 6, the another aspect of the embodiment of the present invention, also provides the rendering system of a sub-pixel, togetherWhen incorporated by reference to shown in Fig. 7, in this embodiment, the rendering system 1 of the sub-pixel is applied to Delta type arrangement of subpixels structuresRender, it includes:
Pixel region division unit 10 is repeated, for multiple sub-pixels to be divided into multiple repetition pixel regions arranged by DeltaDomain, each pixel region that repeats includes three kinds of colors totally ten two sub-pixels;Three image pixels are corresponded in the horizontal,Two image pixels of correspondence on longitudinal direction;
Binary conversion treatment unit 11, for being loaded into 1 × 3 view data successively, two are carried out according to default threshold value to view dataValue is handled;
Comparison judgment unit 12, for judged according to the binary conversion treatment result loading 1 × 3 view data whether beBoundary image and boundary types;
Render processing unit 13, for when judged result is boundary image, according to the corresponding filtering strategies pair of its boundary types1 × 3 image of the loading carries out sub-pixel and renders processing;When judged result is non-boundary image, then according to general filteringStrategy carries out sub-pixel to 1 × 3 image of the loading and renders processing;
Predefined unit 14, for pre-defining general filtering strategies, and the corresponding filtering strategies of each boundary types.
Wherein, each pixel region that repeats includes 4 row sub-pixels, wherein the sub-pixel of the 2nd row and the 3rd row is total toWith;
In the upper part for repeating pixel region, one figure of sub-pixel formation of two sub-pixels of the 1st row and the 2nd rowAs pixel, two sub-pixels, one image pixel of formation of the sub-pixel of the 2nd row and the 3rd row, described two sons of the 3rd rowPixel and a sub-pixel one image pixel of formation of the 4th row;
In the lower part for repeating pixel region, two sub-pixels formation, one figure of a sub-pixel of the 1st row and the 2nd rowAs pixel, a sub-pixel one image pixel of formation of described two sub-pixels of the 2nd row and the 3rd row, described the one of the 3rd rowTwo sub-pixels, one image pixel of formation of individual sub-pixel and the 4th row;
Wherein, comprising red sub-pixels, green sub-pixel and blue sub-pixel in each image pixel.
Wherein, the comparison judgment unit 12 further comprises:
Comparing unit, for the binary conversion treatment result to be compareed with least one default boundary template, to judgeWhether 1 × 3 view data of the loading is boundary image and boundary types;
Wherein, the boundary types are:At least one in left margin, right margin, white point, stain, left shoulder, right shoulder, each borderType is to that should have a boundary template for being used to compare.
Wherein, the render processing unit 13 includes:
Luminous intensity determining unit 130, for the corresponding filtering strategies or general of the boundary types according to determined by comparing unitFiltering strategies, determine the relative luminous intensity of each row sub-pixel in 1 × 3 image;
Adjustment unit 131, for controlling each row sub-pixel to be lighted with identified relative luminous intensity.
More details, can refer to the foregoing description to Fig. 1 to Fig. 5, herein without being described in detail.
Implement the present invention, with following beneficial effect:
First, the repetition pixel region for the RGB Delta arrangements that embodiments of the invention are defined, and using the sub-pixel side of renderingMethod, can effectively reduce the sub-pixel number under the same resolution ratio of sub-pixel number reduction under identical display resolution;
In addition, embodiments of the invention, to 1 × 3 view data of loading, two-value is carried out according to default threshold value to view dataChange is handled, and the result after binary conversion treatment is compareed with default boundary template, rim detection is carried out, to the figure metProcessing is rendered as data carry out sub-pixel using specific filtering strategies, the color that can effectively reduce image boundary region losesVery, the picture for showing display is more life-like.
Above content is to combine specific preferred embodiment further description made for the present invention, it is impossible to assertThe specific implementation of the present invention is confined to these explanations.For general technical staff of the technical field of the invention,On the premise of not departing from present inventive concept, some simple deduction or replace can also be made, should all be considered as belonging to the present invention'sProtection domain.