CN102194219B - Method for optimally displaying image shaded by barrier - Google Patents

Method for optimally displaying image shaded by barrier Download PDF

Info

Publication number
CN102194219B
CN102194219B CN201110128887.9A CN201110128887A CN102194219B CN 102194219 B CN102194219 B CN 102194219B CN 201110128887 A CN201110128887 A CN 201110128887A CN 102194219 B CN102194219 B CN 102194219B
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.)
Expired - Fee Related
Application number
CN201110128887.9A
Other languages
Chinese (zh)
Other versions
CN102194219A (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201110128887.9A priority Critical patent/CN102194219B/en
Publication of CN102194219A publication Critical patent/CN102194219A/en
Application granted granted Critical
Publication of CN102194219B publication Critical patent/CN102194219B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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

A kind of by the optimization display packing of barrier shielded image
Technical field
The present invention relates to 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 subject to the impact of extraneous factor.Such as there being the barriers such as railing before image, can block parts of images, have influence on color, shape of image etc., thereby affect the display effect of integral image.
Current image processing techniques, when processing is blocked image, mainly contains two kinds of methods: a kind of is to process as much as possible obstructions chart picture, and the image that makes to be blocked can more completely show; Another kind is the demonstration of adjusting the image that is blocked, to reduce barrier, blocks the impact bringing.Because above-mentioned two kinds of methods are to process separately obstructions chart picture or the image that is blocked, or require a great deal of time and energy, or the effect of processing 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 obstacle figure and the figure that is blocked are carried out to overall treatment, and the figure that makes to be blocked under minimum change obtains better display effect.
In order to realize above-mentioned object, adopt following technical scheme:
By an optimization display packing for barrier shielded image, describedly by barrier shielded image, comprised be blocked figure and obstacle figure, described method comprises:
S1 is divided into obstacle figure the piece of several equal densities;
S2 is divided into several monochromatic plates by obstacle figure, and each monochromatic plate has single look;
S3 changes the color of the figure that is blocked according to obstacle figure;
S4 finely tunes lines and the edge of the figure that is blocked according to obstacle figure.
In such scheme, cut apart described in step S1 and adopt artificial cutting, Kmeans algorithm, compression algorithm or Histogram-based.
Described in step S2, divide and adopt with the following method:
Individual element point reads the color parameter of obstacle figure, contrasts the color parameter of adjacent two pixels, if difference is greater than preset value, is divided into different monochromatic plates, otherwise is divided into same monochromatic plate.
Described step S1 also comprises whether disturbance in judgement figure comprises the piece of several equal densities, directly carry out in this way next step, otherwise just carry out cutting operation, described step S2 also comprises whether disturbance in judgement figure is divided into several monochromatic plates, directly carry out in this way next step, otherwise just carry out division operation.
After step S2 completes, if the single look of monochromatic plate is assertive colours, first single look is treated to gradient color, then carries out step S3, described assertive colours is lightness in HSB pattern higher than 65% color.
The processing procedure of described gradient color comprises:
Determine the HSB mode parameter of described single look;
Color using described single look as starting point;
Select the phase advancing coloud nearside of a single look as the color of terminal;
One side of determining monochromatic plate is starting point, and its opposite side is terminal, from origin-to-destination, carries out color gradient, forms gradient color.
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 obtaining after 65%.
Step S3 adopts CIE method, according to the color of obstacle figure and density, the color change of the figure that is blocked is become to color of object, and the density of described obstacle figure refers to that obstacle figure accounts for by the ratio of barrier shielded image.
Described color of object adopts CIE method to be obtained by following formula in 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 the lines of the figure that makes to be blocked and edge penetration are to the position of closing on.
After step S4 completes, if having living space, place the figure not being blocked, the figure not being blocked is placed on and is blocked figure around.
Compared with prior art, the present invention is cut apart, is divided obstacle figure, again according to the obstacle figure after processing to the figure adjustment that is blocked, obstacle figure and the figure that is blocked are carried out to overall treatment, the figure that makes to be blocked under minimum change obtains better display effect.
Accompanying drawing explanation
Fig. 1 is general flow chart of the present invention;
Fig. 2 is the image of the obstacle figure of equal density;
Fig. 3 for choosing color of object in CIE color diagram;
Fig. 4 is blocked figure not by fuzzy image;
Fig. 5 is blocked figure by the image after fuzzy.
Embodiment
Below in conjunction with accompanying drawing, the invention will be further described.
Main-process stream of the present invention as shown in Figure 1, is analyzed below step by step.
(1) obstacle figure is divided into the piece of several equal densities.
In by barrier shielded image, together with obstacle figure partly overlaps with the figure that is blocked.If obstacle pattern density is unequal, not to be evenly distributed on image, some part of the figure that may cause being blocked is blocked by full wafer, and this part can not be shown out completely.
Be illustrated in figure 2 the obstacle figure of equal density, although obstacle figure is thickly dotted point, be distributed in entire image, due to equal density, the content that can't have influence on the figure that is blocked shows.Observer can be well understood to the content of the figure that is blocked.If obstacle figure concentrates on image middle part, although other parts are completely unobstructed, the part being blocked shows not out completely, also has influence on the content that observer understands demonstration.
Cut apart the method that 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 computer video again.
(2) obstacle figure is divided into several monochromatic plates.
In by barrier shielded image, together with obstacle figure partly overlaps with the figure that is blocked, and before obstacle figure is positioned at the figure that is blocked in picture material, the color of obstacle figure can have influence on the actual color that observer sees the figure that is blocked.
While dividing monochromatic plate, individual element point reads the color parameter of obstacle figure, contrasts the color parameter of adjacent two pixels, if difference is greater than preset value, is divided into different monochromatic plates, otherwise is divided into same monochromatic plate.
(3) whether the color of disturbance in judgement figure is assertive colours.
If obstacle graphic color is too distinct, observer with the aid of pictures as time can easily leave look and print, thereby the color of figure is observed in impact.For example see for a long time bright-coloured green, can in eye, leave green look and print, seeing that afterwards other color relation can deduct green, also can affect eyes distinguishing other color.If so the color of obstacle figure is assertive colours, need assertive colours to adjust.
(4) assertive colours is processed into gradient color.
By revising saturation degree and the brightness in assertive colours HSB pattern, saturation degree is reduced, brightness is lower than 65%, obtain the phase advancing coloud nearside of assertive colours, using assertive colours and phase advancing coloud nearside as the color of starting point and terminal again, obstacle figure is carried out to color gradient, thereby form gradient color.
(5) change the color of the figure that is blocked.
The color of obstacle figure is different with observer's position, can observer be seen to be blocked the color of figure and actual color to produce deviation, and observer's position changes, therefore can only change according to the color of obstacle figure the color of the figure that is blocked.
As shown in Figure 3, find the color dot C of the color dot B of obstacle figure and the figure that is blocked in CIE color diagram, the color of the point on BC extended line and the color that B is ordered all can obtain the color that C is ordered with certain proportion allotment.According to the density of obstacle figure, obstacle figure accounts for the ratio of whole image, uses formula below:
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 obtaining 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 BC extended line.If the color of object calculating has been pointed out CIE color diagram region, suitably adjust obstacle figure and the color of the figure that is blocked, color of object point is fallen in the region of CIE color diagram.
(6) finely tune lines and the edge of the figure that is blocked.
Be blocked some lines or the edge of figure may be lived by obstacle graph shealtering completely, causes showing.By fine setting be blocked lines and the edge of figure, the fuzzy position of closing on that is penetrated into of the figure that makes to be blocked.
Image as shown in Figure 4, the figure that is blocked seems discontinuous owing to being subject to blocking of obstacle figure, and lines seem stiff.As shown in Figure 5, finely tune lines and the edge of the figure that is blocked, the figure that makes to be blocked is fuzzy, and it is many that image has just seemed coherent nature.
(7) judge whether to have living space and place the figure not being blocked.
If be blocked, figure around has living space and places the figure not being blocked, and the figure not being blocked is placed on and is blocked figure around.Observer, by the part for being blocked in the figure not being blocked and the figure that is blocked, can carry out association to the whole figure that is blocked, thereby understands better the content of the figure that is blocked.

Claims (8)

1. by an optimization display packing for barrier shielded image, describedly by barrier shielded image, comprised be blocked figure and obstacle figure, it is characterized in that, described method comprises:
S1 is divided into obstacle figure the piece of several equal densities;
S2 is divided into several monochromatic plates by obstacle figure, and each monochromatic plate has single look;
S3 changes the color of the figure that is blocked according to obstacle figure;
S4 finely tunes lines and the edge of the figure that is blocked according to obstacle figure;
Step S3 adopts CIE method, according to the color of obstacle figure and density, the color change of the figure that is blocked is become to color of object, and the density of described obstacle figure refers to that obstacle figure accounts for by the ratio of barrier shielded image;
Described color of object adopts CIE method to be obtained by following formula in 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.
2. optimization display packing according to claim 1, is characterized in that, cuts apart described in step S1 and adopts artificial cutting, Kmeans algorithm, compression algorithm or Histogram-based.
3. optimization display packing according to claim 1, is characterized in that, divides described in step S2 and adopts with the following method:
Individual element point reads the color parameter of obstacle figure, contrasts the color parameter of adjacent two pixels, if difference is greater than preset value, is divided into different monochromatic plates, otherwise is divided into same monochromatic plate; If the single look of monochromatic plate is assertive colours, first single look is treated to gradient color, then carries out step S3, described assertive colours is lightness in HSB pattern higher than 65% color.
4. optimization display packing according to claim 1, it is characterized in that, described step S1 also comprises whether disturbance in judgement figure comprises the piece of several equal densities, directly carry out in this way next step, otherwise just carry out cutting operation, described step S2 also comprises whether disturbance in judgement figure is divided into several monochromatic plates, directly carries out in this way next step, otherwise just carries out division operation.
5. optimization display packing according to claim 3, is characterized in that, the processing procedure of described gradient color comprises:
Determine the HSB mode parameter of described single look;
Color using described single look as starting point;
Select the phase advancing coloud nearside of a single look as the color of terminal;
One side of determining monochromatic plate is starting point, and its opposite side is terminal, from origin-to-destination, carries out color gradient, forms gradient color.
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 obtaining after 65%.
7. 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 the lines of the figure that makes to be blocked and edge penetration are to the position of closing on.
8. optimization display packing according to claim 1, is characterized in that, after step S4 completes, if having living space, places the figure not being blocked, and the figure not being blocked is placed on and is blocked figure around.
CN201110128887.9A 2011-05-18 2011-05-18 Method for optimally displaying image shaded by barrier Expired - Fee Related CN102194219B (en)

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 CN102194219A (en) 2011-09-21
CN102194219B true 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 (4)

* Cited by examiner, † Cited by third party
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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TR199700058A3 (en) * 1997-01-29 1998-08-21 Onural Levent Moving object segmentation based on rules.

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
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
CN102194219A (en) 2011-09-21

Similar Documents

Publication Publication Date Title
US9591282B2 (en) Image processing method, image processing device, and electronic apparatus
US8971611B2 (en) Image process device, image process method, and image process program
US7894684B2 (en) Visual processing device, visual processing method, program, display device, and integrated circuit
US20170091911A1 (en) Image processing system and computer-readable recording medium
US7869649B2 (en) Image processing device, image processing method, program, storage medium and integrated circuit
CN105654437A (en) Enhancement method for low-illumination image
US20150022518A1 (en) Image process device, image process method, and image process program
EP3094081A1 (en) Infrared camera and infrared lamp brightness adjustment method therefor
US8369624B2 (en) Image processing apparatus, image processing method, program of image processing method, and recording medium having program of image processing method recorded thereon
US9275440B2 (en) Image processing device and image processing method
KR102150960B1 (en) Apparatus and method for processing image
MX2022000354A (en) Video decoding method and apparatus, and video encoding method and apparatus.
US20120134574A1 (en) Image processing apparatus, display apparatus, image processing method and image processing program
US10832388B2 (en) Image tuning device and method
RU2654501C2 (en) Chroma subsampling
CN105809638A (en) Image processing method and apparatus
US9959606B2 (en) Method for acquiring histogram, method for dynamically adjusting luminance and image processing apparatus
CN105681686A (en) Image processing method and system
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
US8965109B2 (en) Gamut control method for improving image performance of parallax barrier S3D display
Jung et al. Depth map based image enhancement using color stereopsis
US11030725B2 (en) Noise-cancelling filter for video images
CN115474316A (en) Method and device for controlling atmosphere lamp, electronic equipment and storage medium

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

Granted publication date: 20140507

Termination date: 20170518

CF01 Termination of patent right due to non-payment of annual fee