CN102194219A - Method for optimally displaying image shaded by barrier - Google Patents
Method for optimally displaying image shaded by barrier Download PDFInfo
- Publication number
- CN102194219A CN102194219A CN2011101288879A CN201110128887A CN102194219A CN 102194219 A CN102194219 A CN 102194219A CN 2011101288879 A CN2011101288879 A CN 2011101288879A CN 201110128887 A CN201110128887 A CN 201110128887A CN 102194219 A CN102194219 A CN 102194219A
- Authority
- CN
- China
- Prior art keywords
- color
- obstacle
- blocked
- display packing
- barrier
- 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
Links
Images
Abstract
The invention discloses a method for optimally displaying an image shaded by a barrier, wherein the image shaded by the barrier comprises a shaded image and a barrier shape. The method comprises the following steps: S1) cutting the barrier shape into a plurality of blocks in same density; S2) dividing the barrier shape into a plurality of monochrome blocks, each of which has a single color; S3) changing the color of the shaded image according to the barrier shape; and S4) finely adjusting the line and edge of the shaded image according to the barrier shape. According to the method, the barrier shape is cut and divided and then the shaded image is adjusted according to the processed barrier shape, the barrier shape and the shaded image are comprehensively processed, and a better display effect for the shaded image is achieved under the condition of minimum variation.
Description
Technical field
The present invention relates to the image optimization process field, relate in particular to a kind of by the optimization display packing of barrier shielded image.
Background technology
The display effect of image except relevant with image self, also can be subjected to the influence of extraneous factor.Barriers such as railing are for example arranged before the image, can block parts of images, have influence on color, shape of image etc., thereby influence the display effect of integral image.
Present image processing techniques when processing is blocked image, mainly contains two kinds of methods: a kind of is to handle the obstructions chart picture as much as possible, and the image that is blocked can more completely be shown; Another kind is the demonstration of adjusting the image that is blocked, blocks the influence that brings to reduce barrier.Because above-mentioned two kinds of methods are the individual processing obstructions chart picture or the image that is blocked, or require a great deal of time and energy, or the effect of handling is undesirable.
Summary of the invention
The present invention has overcome deficiency of the prior art, provides a kind of by the optimization display packing of barrier shielded image, and the obstacle figure and the figure that is blocked are carried out overall treatment, makes the figure that is blocked obtain better display effect under the change of minimum.
In order to realize above-mentioned purpose, adopt following technical scheme:
A kind of by the optimization display packing of barrier shielded image, describedly comprised be blocked figure and obstacle figure by the barrier shielded image, described method comprises:
S1 is divided into the piece that several density equate with the obstacle figure;
S2 is divided into several monochromatic plates with the obstacle figure, and each monochromatic plate has single look;
S3 changes the color of the figure that is blocked according to the obstacle figure;
S4 finely tunes the lines and the edge of the figure that is blocked according to the obstacle figure.
In the such scheme, step S1 adopts artificial cutting, Kmeans algorithm, compression algorithm or Histogram-based described cutting apart.
Following method is adopted in the described division of step S2:
The individual element point reads the color parameter of obstacle figure, contrasts the color parameter of adjacent two pixels, if difference then is divided into different monochromatic plates greater than preset value, otherwise is divided into same monochromatic plate.
Described step S1 comprises also whether the disturbance in judgement figure comprises the piece that several density equate, then directly carry out next step in this way, otherwise just carry out cutting operation, described step S2 comprises also whether the disturbance in judgement figure is divided into several monochromatic plates, then directly carry out next step in this way, otherwise just carry out division operation.
After step S2 finishes, if the single look of monochromatic plate is an assertive colours, then earlier single look is treated to the gradual change look, carries out step S3 again, described assertive colours is that the lightness in the HSB pattern is higher than 65% color.
The processing procedure of described gradual change look comprises:
Determine the HSB mode parameter of described single look;
With the color of described single look as starting point;
Select the color of the phase advancing coloud nearside of a single look as terminal point;
One side of determining monochromatic plate is starting point, and its opposite side is a terminal point, carries out color gradient from origin-to-destination, forms the gradual change look.
The phase advancing coloud nearside of described single look refers to that the form and aspect of single look constant, saturation degree reduces, lightness is lower than the color that obtains after 65%.
Step S3 adopts the CIE method, according to the color and the density of obstacle figure, the color change of the figure that is blocked is become color of object, and the density of described obstacle figure refers to that the obstacle figure accounts for by the ratio of barrier shielded image.
Described color of object adopts the CIE method to be obtained by following formula in the CIE color diagram:
The color of the color=figure that is blocked of the density of color of object * obstacle figure+(density of 1-obstacle figure) * obstacle figure.
Step S4 adopts fuzzy method, according to the shape of obstacle figure the figure that is blocked is finely tuned, and makes the lines of the figure that is blocked and edge penetration to the position of closing on.
After step S4 finishes, place the figure be not blocked if having living space, then the figure that will not be blocked be placed on the figure that is blocked around.
Compared with prior art, the present invention is cut apart, is divided the obstacle figure, again according to the obstacle figure after handling to the figure adjustment that is blocked, the obstacle figure and the figure that is blocked are carried out overall treatment, under the change of minimum, make the figure that is blocked obtain better display effect.
Description of drawings
Fig. 1 is a general flow chart of the present invention;
Fig. 2 is the image of the equal obstacle figure of density;
Fig. 3 is for choosing color of object on the CIE color diagram;
Fig. 4 is blocked figure not by fuzzy image;
Fig. 5 is blocked figure by the image after fuzzy.
Embodiment
The invention will be further described below in conjunction with accompanying drawing.
Main-process stream of the present invention is analyzed as shown in Figure 1 below step by step.
(1) the obstacle figure is divided into the piece that several density equate.
In by the barrier shielded image, the obstacle figure and the figure that is blocked are overlapped together.If the obstacle pattern density is unequal, promptly not to be evenly distributed on the image, some part of the figure that then may cause being blocked is blocked by full wafer, makes this part can not show fully.
Be illustrated in figure 2 as the obstacle figure that density equates, be distributed on the entire image, because density equates that the content that can't have influence on the figure that is blocked shows though the obstacle figure is thickly dotted point.The observer can be well understood to the content of the figure that is blocked.If the obstacle figure concentrates on the image middle part, though having fully, other parts do not block, the part that is blocked can not show fully, also has influence on the observer and understands content displayed.
Cut apart the method that the obstacle figure can adopt simple artificial cutting, also can adopt Kmean algorithm, compression algorithm, Histogram-based etc. to be widely known by the people in the computer video again.
(2) the obstacle figure is divided into several monochromatic plates.
In by the barrier shielded image, the obstacle figure and the figure that is blocked are overlapped together, and the obstacle figure is before being positioned at the figure that is blocked on the picture material, and the color of obstacle figure can have influence on the actual color that the observer sees the figure that is blocked.
When dividing monochromatic plate, the individual element point reads the color parameter of obstacle figure, contrasts the color parameter of adjacent two pixels, if difference then is divided into different monochromatic plates greater than preset value, otherwise is divided into same monochromatic plate.
(3) whether the color of disturbance in judgement figure is assertive colours.
If the obstacle graphic color is too distinct, the observer with the aid of pictures as the time can stay the look seal easily, thereby the color of figure is observed in influence.For example seeing bright-coloured green for a long time, can in eye, stay green look seal, seeing that afterwards other color relation can deduct green, also can influence eyes distinguishing other color.If, then need assertive colours is adjusted so the color of obstacle figure is an assertive colours.
(4) assertive colours is processed into the gradual change look.
By revising saturation degree and the brightness in the assertive colours HSB pattern, saturation degree is reduced, brightness is lower than 65%, obtain the phase advancing coloud nearside of assertive colours, as the color of starting point and terminal point the obstacle figure is carried out color gradient with advancing coloud nearside mutually with assertive colours again, thereby form the gradual change look.
(5) change the color of the figure that is blocked.
The color of obstacle figure is different with observer's position, can the observer be seen to be blocked the color of figure and actual color to produce deviation, and observer's position changes, so can only change the color of the figure that is blocked according to the color of obstacle figure.
As shown in Figure 3, find the color dot C of the color dot B of obstacle figure and the figure that is blocked on the CIE color diagram, the color of the point on the BC extended line and the color that B is ordered all can obtain the color that C is ordered with the certain proportion allotment.According to the density of obstacle figure, promptly the obstacle figure accounts for the ratio of entire image, with following formula:
The color of the color=figure that is blocked of the density of color of object * obstacle figure+(density of 1-obstacle figure) * obstacle figure
The color of the color of object point A that obtains is the color of object that the figure that is blocked changes color.According to the difference of the density of obstacle figure, color of object point is the point of diverse location on the BC extended line.If the color of object that calculates has been pointed out CIE color diagram zone, then suitably adjust the obstacle figure and the color of the figure that is blocked, the color of object point is fallen in the zone of CIE color diagram.
(6) the be blocked lines and the edge of figure of fine setting.
Be blocked some lines or the edge of figure may be lived by the obstacle graph shealtering fully, causes and can't show.By fine setting the be blocked lines and the edge of figure, make the fuzzy position of closing on that is penetrated into of the figure that is blocked.
Image as shown in Figure 4, the figure that is blocked seems discontinuous owing to being subjected to blocking of obstacle figure, and lines seem stiff.As shown in Figure 5, finely tune the lines and the edge of the figure that is blocked, make the figure that is blocked fuzzy, it is many that image has just seemed coherent nature.
(7) judge whether to have living space and place the figure that is not blocked.
Have living space around the figure if be blocked and to place the figure that is not blocked, then the figure that will not be blocked be placed on the figure that is blocked around.The observer can carry out association to the whole figure that is blocked by the part for being blocked in the figure that is not blocked and the figure that is blocked, thereby understands the content of the figure that is blocked better.
Claims (10)
1. one kind by the optimization display packing of barrier shielded image, is describedly comprised be blocked figure and obstacle figure by the barrier shielded image, it is characterized in that described method comprises:
S1 is divided into the piece that several density equate with the obstacle figure;
S2 is divided into several monochromatic plates with the obstacle figure, and each monochromatic plate has single look;
S3 changes the color of the figure that is blocked according to the obstacle figure;
S4 finely tunes the lines and the edge of the figure that is blocked according to the obstacle figure.
2. optimization display packing according to claim 1 is characterized in that, step S1 adopts artificial cutting, Kmeans algorithm, compression algorithm or Histogram-based described cutting apart.
3. optimization display packing according to claim 1 is characterized in that, following method is adopted in the described division of step S2:
The individual element point reads the color parameter of obstacle figure, contrasts the color parameter of adjacent two pixels, if difference then is divided into different monochromatic plates greater than preset value, otherwise is divided into same monochromatic plate; If the single look of monochromatic plate is an assertive colours, then earlier single look is treated to the gradual change look, carry out step S3 again, described assertive colours is that the lightness in the HSB pattern is higher than 65% color.
4. optimization display packing according to claim 1, it is characterized in that, described step S1 comprises also whether the disturbance in judgement figure comprises the piece that several density equate, then directly carry out next step in this way, otherwise just carry out cutting operation, described step S2 comprises also whether the disturbance in judgement figure is divided into several monochromatic plates, then directly carries out next step in this way, otherwise just carries out division operation.
5. optimization display packing according to claim 4 is characterized in that, the processing procedure of described gradual change look comprises:
Determine the HSB mode parameter of described single look;
With the color of described single look as starting point;
Select the color of the phase advancing coloud nearside of a single look as terminal point;
One side of determining monochromatic plate is starting point, and its opposite side is a terminal point, carries out color gradient from origin-to-destination, forms the gradual change look.
6. optimization display packing according to claim 5 is characterized in that, the phase advancing coloud nearside of described single look refers to that the form and aspect of single look constant, saturation degree reduces, lightness is lower than the color that obtains after 65%.
7. optimization display packing according to claim 1, it is characterized in that step S3 adopts the CIE method, according to the color and the density of obstacle figure, the color change of the figure that is blocked is become color of object, and the density of described obstacle figure refers to that the obstacle figure accounts for by the ratio of barrier shielded image.
8. optimization display packing according to claim 7 is characterized in that, described color of object adopts the CIE method to be obtained by following formula in the CIE color diagram:
The color of the color=figure that is blocked of the density of color of object * obstacle figure+(density of 1-obstacle figure) * obstacle figure.
9. optimization display packing according to claim 1 is characterized in that, step S4 adopts fuzzy method, according to the shape of obstacle figure the figure that is blocked is finely tuned, and makes the lines of the figure that is blocked and edge penetration to the position of closing on.
10. optimization display packing according to claim 1 is characterized in that, after step S4 finishes, places the figure be not blocked if having living space, then the figure that will not be blocked be placed on the figure that is blocked around.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110128887.9A CN102194219B (en) | 2011-05-18 | 2011-05-18 | Method for optimally displaying image shaded by barrier |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110128887.9A CN102194219B (en) | 2011-05-18 | 2011-05-18 | Method for optimally displaying image shaded by barrier |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102194219A true CN102194219A (en) | 2011-09-21 |
CN102194219B CN102194219B (en) | 2014-05-07 |
Family
ID=44602239
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110128887.9A Expired - Fee Related CN102194219B (en) | 2011-05-18 | 2011-05-18 | Method for optimally displaying image shaded by barrier |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102194219B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4729016A (en) * | 1985-05-06 | 1988-03-01 | Eastman Kodak Company | Digital color image processing method and apparatus employing three color reproduction functions for adjusting both tone scale and color balance |
WO1998033323A1 (en) * | 1997-01-29 | 1998-07-30 | Levent Onural | Rule-based moving object segmentation |
EP1351489A2 (en) * | 2002-03-20 | 2003-10-08 | Eastman Kodak Company | Digital color image processing method |
CN1613091A (en) * | 2002-02-12 | 2005-05-04 | 松下电器产业株式会社 | Image processing device and image processing method |
CN101751690A (en) * | 2008-12-05 | 2010-06-23 | 国际商业机器公司 | System and method for photorealistic imaging using ambient occlusion |
-
2011
- 2011-05-18 CN CN201110128887.9A patent/CN102194219B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4729016A (en) * | 1985-05-06 | 1988-03-01 | Eastman Kodak Company | Digital color image processing method and apparatus employing three color reproduction functions for adjusting both tone scale and color balance |
WO1998033323A1 (en) * | 1997-01-29 | 1998-07-30 | Levent Onural | Rule-based moving object segmentation |
CN1613091A (en) * | 2002-02-12 | 2005-05-04 | 松下电器产业株式会社 | Image processing device and image processing method |
EP1351489A2 (en) * | 2002-03-20 | 2003-10-08 | Eastman Kodak Company | Digital color image processing method |
CN101751690A (en) * | 2008-12-05 | 2010-06-23 | 国际商业机器公司 | System and method for photorealistic imaging using ambient occlusion |
Also Published As
Publication number | Publication date |
---|---|
CN102194219B (en) | 2014-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3156970B1 (en) | Haze removal | |
US7869649B2 (en) | Image processing device, image processing method, program, storage medium and integrated circuit | |
CN105005758B (en) | Image processing apparatus | |
CN105654437A (en) | Enhancement method for low-illumination image | |
US9591282B2 (en) | Image processing method, image processing device, and electronic apparatus | |
CN104182949B (en) | Image inking and fusing method and system based on histogram feature point registration | |
CN108376391A (en) | A kind of intelligence infrared image scene Enhancement Method | |
EP3094081A1 (en) | Infrared camera and infrared lamp brightness adjustment method therefor | |
CN103531175A (en) | Method and system for adjusting brightness uniformity of screen of splicing display device | |
US8971611B2 (en) | Image process device, image process method, and image process program | |
MX2022000354A (en) | Video decoding method and apparatus, and video encoding method and apparatus. | |
US20190172186A1 (en) | Image tuning device and method | |
TWI616859B (en) | Pixel driving method and panel driving circuit | |
US9959606B2 (en) | Method for acquiring histogram, method for dynamically adjusting luminance and image processing apparatus | |
US20120154545A1 (en) | Image processing apparatus and method for human computer interaction | |
CN102194219B (en) | Method for optimally displaying image shaded by barrier | |
CN101790101B (en) | Method and device for adjusting image saturation | |
EP3044753B1 (en) | Method and apparatus for assigning colours to an image | |
CN104378532B (en) | A method of inhibiting image flicker striped | |
Jung et al. | Depth map based image enhancement using color stereopsis | |
US11030725B2 (en) | Noise-cancelling filter for video images | |
US20090169103A1 (en) | Method of correcting false-color pixel in digital image | |
CN104282256A (en) | Method and system for regulating refreshing frequency of display screen according to light frequency of lamplight source | |
Kolchaev et al. | Adaptive system of image processing | |
US9805634B2 (en) | Display panel and image display method to increase brightness in a 3D image display mode |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140507 Termination date: 20170518 |