CN106937104B - A kind of image processing method and device - Google Patents

A kind of image processing method and device Download PDF

Info

Publication number
CN106937104B
CN106937104B CN201511033139.7A CN201511033139A CN106937104B CN 106937104 B CN106937104 B CN 106937104B CN 201511033139 A CN201511033139 A CN 201511033139A CN 106937104 B CN106937104 B CN 106937104B
Authority
CN
China
Prior art keywords
pixel
value
transparency
target image
background
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201511033139.7A
Other languages
Chinese (zh)
Other versions
CN106937104A (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.)
Shenzhen Super Technology Co Ltd
Original Assignee
SuperD 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 SuperD Co Ltd filed Critical SuperD Co Ltd
Priority to CN201511033139.7A priority Critical patent/CN106937104B/en
Publication of CN106937104A publication Critical patent/CN106937104A/en
Application granted granted Critical
Publication of CN106937104B publication Critical patent/CN106937104B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/10Processing, recording or transmission of stereoscopic or multi-view image signals
    • H04N13/106Processing image signals
    • H04N13/133Equalising the characteristics of different image components, e.g. their average brightness or colour balance
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/10Processing, recording or transmission of stereoscopic or multi-view image signals
    • H04N13/106Processing image signals
    • H04N13/122Improving the 3D impression of stereoscopic images by modifying image signal contents, e.g. by filtering or adding monoscopic depth cues

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Processing Or Creating Images (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The invention discloses a kind of image processing method and devices, comprising: obtains the left eye target image and right eye target image for carrying out 3D display;Determine that predeterminable area presets processing region in the left eye target image and the right eye target image respectively;Processing region is preset for any one predeterminable area, for each pixel in the default processing region, using the absolute value of difference is greater than the pixel of threshold value as the first background pixel point between any one presetted pixel value in pixel value and N number of presetted pixel value, and the transparency of first object pixel adjacent with first background pixel point in the default processing region is changed to the first transparency, wherein, the absolute value of difference is less than or equal to the threshold value between any one presetted pixel value in the pixel value of first object pixel and N number of presetted pixel value;According to treated, the right eye target image carries out 3D display to the left eye target image with treated.

Description

A kind of image processing method and device
Technical field
The present invention relates to stereo display technique field more particularly to a kind of image processing methods and device.
Background technique
Currently, naked eye 3D (3-dimensional, three-dimensional) display technology is more and more mature, naked eye 3D display technology There are optical barrier type technology, cylindrical lenses technology etc., by being superimposed special liquid crystal display, the special liquid crystal display on regular display upper layer The left eye of user and the viewable pictures of right eye can be allowed to separate, so that user be allowed to see 3D image to different directions refraction image.
When being shown by naked eye 3D display technology to image, since the image of display is the image through overcompression, meeting Lead to shortage of data, the edge of some regions in the picture can generate crenellated phenomena.For example, in naked eye 3D display equipment, If one web of display has the 3D rendering of text, the crenellated phenomena at the edge of character area can clearly, to bring to user Very bad viewing experience.
When at present for showing image by naked eye 3D display technology, the crenellated phenomena occurred in image how is reduced, also There is no preferable solution.
Summary of the invention
The embodiment of the present invention provides a kind of image processing method and its device, aobvious by naked eye 3D display technology to solve Diagram as when, reduce the crenellated phenomena that occurs in image.
The embodiment of the present invention provides a kind of image processing method, comprising:
Obtain the left eye target image and right eye target image for carrying out 3D display;
Determine the default processing region in the left eye target image and the right eye target image;
For each pixel in the default processing region, by any one in pixel value and N number of presetted pixel value The absolute value of difference is greater than the pixel of threshold value as the first background pixel point between presetted pixel value, and by the default processing And pixel value adjacent with first background pixel point and any one presetted pixel value in N number of presetted pixel value in region Between the absolute value of difference be less than or equal to the pixel of the threshold value as first object pixel, and by the first object The transparency of pixel is changed to the first transparency, and N is positive integer;
Alternatively,
It, will be any in pixel value and N number of presetted pixel value for each pixel in the default processing region Between one presetted pixel value the absolute value of difference be less than or equal to the threshold value pixel as the second background pixel point, and By it is adjacent with second background pixel point in the default processing region and with any one in N number of presetted pixel value it is pre- If the absolute value of difference is greater than the pixel of the threshold value as the second target pixel points between pixel value, and by second mesh The transparency of mark pixel is changed to the second transparency, pixel value is changed to the pixel value of second background pixel point;
It is aobvious that 3D is carried out according to the change transparency treated the left eye target image and the right eye target image Show.
Optionally, first transparency is greater than the transparency and the first object pixel of first background pixel point Minimum value in the transparency of point and be less than first background pixel point transparency and the first object pixel it is saturating Maximum value in lightness;
Second transparency is greater than the saturating of transparency and second target pixel points of second background pixel point Minimum value in lightness and it is less than in the transparency of second background pixel point and the transparency of second target pixel points Maximum value.
Optionally, the transparency by the first object pixel is changed to the first transparency, comprising:
For any one of first object pixel adjacent with first background pixel point, according to the following formula Determine the first transparency of first object pixel:
Wherein,For first transparency,For the transparency of first background pixel point,It is described first The transparency of target pixel points, K1Greater than 0 and less than 1.
Optionally, the transparency by second target pixel points is changed to the second transparency, comprising:
For any one second target pixel points adjacent with second background pixel point, determine according to the following formula Second transparency of second target pixel points:
Wherein,For second transparency,For the transparency of second background pixel point,It is described second The transparency of target pixel points, K2Greater than 0 and less than 1.
Optionally, the left eye target image and the right eye target image are the image comprising text information;
The default processing region is the region for including the text information;
N number of presetted pixel value is the corresponding pixel value of the text information.
The embodiment of the present invention provides a kind of image processing apparatus, which includes:
Acquiring unit, for obtaining left eye target image and right eye target image for carrying out 3D display;
Determination unit, for determining the default processing region in the left eye target image and the right eye target image;
Processing unit, each pixel for being directed in the default processing region, by pixel value and N number of presetted pixel The absolute value of difference is greater than the pixel of threshold value as the first background pixel point between any one presetted pixel value in value, and will In the default processing region and pixel value adjacent with first background pixel point with it is any one in N number of presetted pixel value Between a presetted pixel value the absolute value of difference be less than or equal to the threshold value pixel be used as first object pixel, and general The transparency of the first object pixel is changed to the first transparency, and N is positive integer;Alternatively, being directed to the default treatment region Each pixel in domain, by pixel value and N number of presetted pixel value between any one presetted pixel value difference it is exhausted To value be less than or equal to the threshold value pixel as the second background pixel point, and by the default processing region with it is described Second background pixel point is adjacent and absolute value of the difference between any one presetted pixel value in N number of presetted pixel value is big Second is changed to as the second target pixel points, and by the transparency of second target pixel points in the pixel of the threshold value Transparency, pixel value are changed to the pixel value of second background pixel point;
Display unit, for according to the change transparency treated the left eye target image and the right eye target Image carries out 3D display.
Optionally, first transparency is greater than the transparency and the first object pixel of first background pixel point Minimum value in the transparency of point and be less than first background pixel point transparency and the first object pixel it is saturating Maximum value in lightness;
Second transparency is greater than the saturating of transparency and second target pixel points of second background pixel point Minimum value in lightness and it is less than in the transparency of second background pixel point and the transparency of second target pixel points Maximum value.
Optionally, the processing unit is specifically used for:
For any one of first object pixel adjacent with first background pixel point, according to the following formula Determine the first transparency of first object pixel:
Wherein,For first transparency,For the transparency of first background pixel point,It is described first The transparency of target pixel points, K1Greater than 0 and less than 1.
Optionally, the processing unit is specifically used for:
For any one second target pixel points adjacent with second background pixel point, determine according to the following formula Second transparency of second target pixel points:
Wherein,For second transparency,For the transparency of second background pixel point,It is described second The transparency of target pixel points, K2Greater than 0 and less than 1.
Optionally, the processing unit is specifically used for:
The left eye target image and the right eye target image are the image comprising text information;
The default processing region is the region for including the text information;
N number of presetted pixel value is the corresponding pixel value of the text information.
The method and device provided according to embodiments of the present invention, by determining in left eye target image and right eye target image Default processing region, and change the transparency of first object pixel in default processing region, or change the second target picture The transparency and pixel value of vegetarian refreshments mitigate so that the transition in default processing region between neighbor pixel is more natural Crenellated phenomena when the edge display of the picture material in default processing region, so that it is more preferable to obtain visual effect, while this The method that inventive embodiments provide is simpler, and processing speed is fast, operates also easier.
Detailed description of the invention
Fig. 1 is a kind of image processing method flow diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of pixel relation schematic diagram provided in an embodiment of the present invention;
Fig. 3 (a) is the picture handled without image processing method provided in an embodiment of the present invention;
Fig. 3 (b) is the picture by image processing method provided in an embodiment of the present invention processing;
Fig. 4 (a) is the picture handled without image processing method provided in an embodiment of the present invention;
Fig. 4 (b) is the picture by image processing method provided in an embodiment of the present invention processing;
Fig. 5 is a kind of image processing method flow diagram provided in an embodiment of the present invention;
Fig. 6 is a kind of image processing method flow diagram provided in an embodiment of the present invention;
Fig. 7 is a kind of image processing apparatus structural schematic diagram provided in an embodiment of the present invention.
Specific embodiment
To keep the technical problem to be solved in the present invention, technical solution and advantage clearer, below in conjunction with attached drawing and tool Body embodiment is described in detail.
Firstly the need of explanation, in the embodiment of the present invention, each pixel in left eye target image and right eye target image Point can be indicated with three R (red, red), G (green, green), B (blue, blue) Color Channels, it is of course also possible to use other Color Channel indicates, is illustrated with three Color Channels of RGB in the embodiment of the present invention.
In the embodiment of the present invention, left eye target image and right eye target image are the figure for supporting 3D display or naked eye 3D display Picture.
It include some picture materials in left eye target image and right eye target image in the embodiment of the present invention, such as text Word, when carrying out stereoscopic display by left eye target image and right eye target image, the sawtooth at the edge of these picture materials is existing As obvious, the viewing experience of user is poor.
In view of this, the embodiment of the present invention provides a kind of image processing method, for the left eye mesh for carrying out 3D display The edge of above-mentioned picture material in logo image and right eye target image is handled, and is carrying out stereoscopic display to effectively mitigate When these picture materials edge crenellated phenomena.It is understood that above-mentioned picture material includes but is not limited to text.
Based on foregoing description, as shown in Figure 1, providing a kind of image processing method flow diagram for the embodiment of the present invention.
Referring to Fig. 1, this method comprises:
Step 101: obtaining the left eye target image and right eye target image for carrying out 3D display.
In this step, left eye target image can be the image that corresponds to left eye in 3D display, and right eye target image can be with For the image for corresponding to right eye in 3D display.
Left eye target image and right eye target image, which can be, to be stored in advance, and is waited to be processed.
It include specific image content in left eye target image and right eye target image, for example, text.
It should be noted that left eye target image and right eye target image can be obtained respectively in this step, that is, obtain two Open image.Certainly, since in most of three-dimensional film source, left eye target image and right eye target image are that setting is schemed in a 3D As upper, therefore, in this step, a 3D rendering can also be only obtained, includes left eye target image and right eye mesh in the 3D rendering Logo image.
Step 102: determining the default processing region in the left eye target image and the right eye target image.
The default processing region usually require include specific image content edge, usually this preset processing region and be determined For the region for surrounding the specific image content, shape is unlimited, is chosen as rectangle.
In the embodiment of the present invention, the region that there may be crenellated phenomena in target image can be set as to default processing Region.Specific volume, the default processing region usually require include specific image content edge, usually this preset processing region It is confirmed as surrounding the region of the specific image content, shape is unlimited, is chosen as rectangle.
For example, the left eye target image and right eye target image got in step 101 is comprising text information Image, the text information are specific image content, in this step default processing region be the region for including these text informations, Such as surround the rectangular area of the text information.
Optionally, can also be using entire left eye target image as the default processing region in left eye target image, it will be whole A right eye target image as the default processing region in right eye target image.
Specifically, can be existed respectively according to the image configurations information of left eye target image and right eye target figure in this step Default processing region is determined in left eye target image and right eye target image.
It may include the pixel value list of N number of presetted pixel value in image configurations information, preset the coordinate letter of processing region Breath etc..
Image configurations information can be stored separately in a file, can also be stored in the illustrative structures of image data In packet, the embodiment of the present invention does not limit this.
Image configurations information can also repair image configurations information according to actual displayed effect by user setting Change.
Image configurations information can also be configured by picture generator, and doing so can protect image configurations information will not At will modified.
It, can also be after obtaining left eye target image and right eye target image, by target image in the embodiment of the present invention In may have crenellated phenomena region be set as default processing region.For example, obtaining left eye target image and right eye target It after image, determines including text information, then will include text information in left eye target image and right eye target image Region is as default processing region.Alternatively, can also be using the region of the pixel value of pixel within a preset range as default place Manage region.
Optionally, can also be using entire left eye target image as the default processing region in left eye target image, it will be whole A right eye target image as the default processing region in right eye target image.
Step 103:, will be in pixel value and N number of presetted pixel value for each pixel in the default processing region The absolute value of difference is greater than the pixel of threshold value as the first background pixel point between any one presetted pixel value, and will be described And pixel value adjacent with first background pixel point and any one in N number of presetted pixel value are pre- in default processing region If between pixel value the absolute value of difference be less than or equal to the threshold value pixel as first object pixel, and will described in The transparency of first object pixel is changed to the first transparency, and N is positive integer;Alternatively, in the default processing region Each pixel, by pixel value and N number of presetted pixel value between any one presetted pixel value difference absolute value Less than or equal to the threshold value pixel as the second background pixel point, and by the default processing region with described second Background pixel point is adjacent and absolute value of the difference between any one presetted pixel value in N number of presetted pixel value is greater than institute The pixel of threshold value is stated as the second target pixel points, and it is transparent that the transparency of second target pixel points is changed to second Degree, pixel value are changed to the pixel value of second background pixel point.
It is said in principle, step 103, the edge of specific image content is actually found in default processing region, it is right The edge is handled.In first way, first object pixel is the edge pixel point of specific image content, picture Element value is one of N number of pixel value of preset specific image content or differs very little with this N number of pixel value, with first Background pixel point is adjacent, and the first background pixel point is non-particular image content, in pixel value and preset specific image The N number of pixel value held differs greatly.And in the second way, the second background pixel point is the edge pixel of specific image content Point, and the second target pixel points are the pixel of non-particular image content, it is adjacent with specific image content.
Behind the edge for finding specific image content, says and the edge is handled.The embodiment of the present invention is provided at two kinds Reason mode, first, the transparency of the edge pixel point of specific image content is modified, second, will be with specific image content The transparency and pixel value of the pixel of the adjacent non-particular image content of the pixel at edge are modified, to alleviate spy The crenellated phenomena when edge display of picture material is determined, so that it is more preferable to obtain visual effect.
Step 104: according to the change transparency treated the left eye target image and the right eye target image Carry out 3D display.
Method provided in an embodiment of the present invention, the method and device provided according to embodiments of the present invention, by determining left eye Default processing region in target image and right eye target image, and change the saturating of first object pixel in default processing region Lightness, or change the transparency and pixel value of the second target pixel points, so that adjacent pixel in default processing region Transition between point is more natural, alleviates the crenellated phenomena when edge display of the picture material in default processing region, thus It is more preferable to obtain visual effect, while method provided in an embodiment of the present invention is simpler, processing speed is fast, operates also easier.
Specifically, in step 103, presetting processing region, text information, N number of presetted pixel value can be default if it exists The corresponding pixel value of text information in processing region.
After determining default processing region, so that it may handle default processing region.In order to mitigate default place The crenellated phenomena that picture material in reason region generates when showing, the embodiment of the present invention can be by a variety of implementations to default Processing region is handled, and is detailed below.
The first possible implementation:
Step 1: each pixel in default processing region is traversed, for any one pixel, however, it is determined that a picture The absolute value of difference is greater than threshold value between any one presetted pixel value in the pixel value of vegetarian refreshments and N number of presetted pixel value, and should In the pixel value of the adjacent pixel of pixel and N number of presetted pixel value between any one presetted pixel value difference absolute value Less than or equal to threshold value, then using the pixel as the first background pixel point, using the adjacent pixel of the pixel as the first mesh Pixel is marked, and goes to step 2;Otherwise next pixel is traversed.
For example, each pixel can use tri- colors of R, G, B in left eye target image and right eye target image Channel indicates.For example, at this point for any one pixel in default processing region, however, it is determined that the indigo plant of the pixel The absolute value that any one in chrominance channel color value and N number of presetted pixel value presets difference between blue channel color value is greater than threshold It is poor between the default red channel color value of any one in value, the red channel color value of the pixel and N number of presetted pixel value The absolute value of value is greater than the default green of any one in threshold value, the green channel color value of the pixel and N number of presetted pixel value The absolute value of difference is greater than threshold value between the color value of channel.Also, for any one pixel adjacent with the pixel, if Determine the default blue channel color value of any one in the blue channel color value and N number of presetted pixel value of the adjacent pixel Between difference absolute value be less than or equal to threshold value, the adjacent pixel red channel color value and N number of presetted pixel value In between any one default red channel color value absolute value of difference be less than or equal to threshold value, the adjacent pixel it is green Any one in chrominance channel color value and N number of presetted pixel value preset green channel color value between difference absolute value be less than or Equal to threshold value, then using the pixel as the first background pixel point, and the adjacent pixel is as first object pixel.
It should be noted that in the embodiment of the present invention, for how to traverse each pixel in default processing region simultaneously It does not limit, each pixel in default processing region can be traversed by the way of transversal scanning or longitudinal scanning, it can also To traverse each pixel in default processing region using other modes.Meanwhile in the embodiment of the present invention, threshold value can basis Actual conditions determine.Such as threshold value can take 0, or any one number between 10 to 0.
Step 2: by the default processing region with first background pixel point adjacent and pixel value with it is described N number of pre- If the absolute value of difference is less than or equal to the first object pixel of the threshold value between any one presetted pixel value in pixel value The transparency of point is changed to the first transparency.
It should be noted that the first object pixel adjacent with the first background pixel point, actually default processing In region, be less than by the absolute value that pixel value is difference between any one presetted pixel value in N number of presetted pixel value or Equal to the edge pixel point for the specific image content such as text that all pixels point of the threshold value is constituted.First background pixel point For the pixel adjacent with the edge pixel point of the specific image content.
In the embodiment of the present invention, the first transparency can be greater than the transparency and described first of first background pixel point Minimum value in the transparency of target pixel points and transparency and the first object picture less than first background pixel point Maximum value in the transparency of vegetarian refreshments.I.e. according to the first background pixel point to first object pixel to first object pixel phase The sequence of the pixel of adjacent specific image content, transparency is increasing or decreasing.
For example, if the transparency of the first background pixel point is 0.5, the transparency of first object pixel is 0.8, this When, the first transparency can any one number between 0.5 to 0.8.
Optionally, the first transparency can also be determined by other means.Specifically, being directed to and first background pixel point Any one adjacent first object pixel can determine the first transparency of first object pixel according to the following formula:
Wherein,For first transparency,For the transparency of first background pixel point,For the first object The transparency of pixel, K1Greater than 0 and less than 1.Optionally, K1It is 0.5.
For example, as shown in Fig. 2, being a kind of pixel relation schematic diagram provided in an embodiment of the present invention.In Fig. 2, as Vegetarian refreshments 1, pixel 2, pixel 3, pixel 4, pixel 6, pixel 7, pixel 8,8 fields that pixel 9 is pixel 5 Pixel can be using any pixel in 8 field pixels of pixel 5 as the phase of pixel 5 in the embodiment of the present invention Adjacent pixel.Meanwhile pixel 2, pixel 4, pixel 6, pixel 8 are 4 field pixels of pixel 5, at this time may be used Using any pixel in the 4 field pixels by pixel 5 as the neighbor pixel of pixel 5.
That is, in the embodiment of the present invention, it can be by least one of the 8 field pixels of the first background pixel point Neighbor pixel of the pixel as first background pixel point, can also will be in 4 field pixels of the first background pixel point Neighbor pixel of at least one pixel as first background pixel point.
In above scheme, by the way that the transparency of the adjacent first object pixel of the first background pixel point will be changed, thus So that specific image content and background image content are (in the image i.e. except specific image content area in default processing region Hold) transition between neighbor pixel is more natural, the crenellated phenomena when edge display of target area is alleviated, to be regarded Feel that effect is more preferable.
Second of possible implementation:
Step 1: all pixels point in the traversal default processing region, however, it is determined that the pixel value of a pixel with The absolute value of difference is less than or equal to threshold value, and the pixel between any one presetted pixel value in N number of presetted pixel value The absolute value of difference is greater than between any one presetted pixel value in the pixel value of the adjacent pixel of point and N number of presetted pixel value Threshold value, then using the pixel as the second background pixel point, using the adjacent pixel of the pixel as the second target pixel points, And go to step 2;Otherwise next pixel is traversed.
Likewise, each pixel in default processing region can be traversed by the way of transversal scanning or longitudinal scanning Point can also traverse each pixel in default processing region using other modes.
Step 2: by it is adjacent with second background pixel point in the default processing region and with N number of presetted pixel The absolute value of difference is greater than the transparency of the second target pixel points of the threshold value more between any one presetted pixel value in value It is changed to the second transparency, pixel value is changed to the pixel value of second background pixel point.
For any one second target pixel points in the pixel adjacent with second background pixel point, by the second target The pixel value of pixel is changed to the pixel value of second background pixel point.
For example, each pixel can use tri- colors of R, G, B in left eye target image and right eye target image Channel indicates.The blue that the blue channel color value of second target pixel points is changed to second background pixel point is led to Road color value, the red channel that the red channel color value of second target pixel points is changed to second background pixel point Color value, the green channel face that the green channel color value of second target pixel points is changed to second background pixel point Color value.
It should be noted that if it is determined that in the pixel adjacent with the second background pixel point, the second target pixel points Quantity is greater than 0, then second background pixel point can be determined as to the edge pixel point of specific image content;Edge pixel point is real It is on border by the absolute value of difference is small between any one presetted pixel value in pixel value and N number of presetted pixel value In or equal to the threshold value all pixels point constitute specific image content edge pixel.Second target pixel points are The pixel adjacent with the edge pixel point of the specific image content.
In the embodiment of the present application, the second transparency can be greater than the transparency and described second of second background pixel point Minimum value in the transparency of target pixel points and the transparency and second target picture less than second background pixel point Maximum value in the transparency of vegetarian refreshments.
Optionally, the first transparency can also be determined by other means.Specifically, being directed to and second background pixel point Second target pixel points of any one adjacent can also determine that the second of second target pixel points is transparent according to the following formula Degree:
Wherein,For second transparency,For the transparency of second background pixel point,For second mesh Mark the transparency of pixel, K2Greater than 0 and less than 1.Optionally, K2It is 0.5.
Likewise, can be using at least one pixel of 8 field pixels of the second background pixel point as second back The neighbor pixel of scene vegetarian refreshments can also make at least one pixel in 4 field pixels of the second background pixel point For the neighbor pixel of second background pixel point.
In above scheme, by changing the transparency of the second target pixel points and by the pixel value of the second target pixel points It is changed to the pixel value of the second background pixel point, so that specific image content and background image content in default processing region Neighbor pixel between transition it is more natural, alleviate specific image content edge display when crenellated phenomena, to obtain Obtain better visual effect.
It should be noted that by taking specific image content is text as an example, it can also be according to default place in the embodiment of the present invention The font attribute of text information, which is determined, in reason region still uses second of possible reality using the first possible implementation Existing mode handles default processing region.
Specifically, if it is determined that the font size of text information is less than or equal to default font size in default processing region, then using the A kind of possible default processing region of implementation processing;If it is determined that the font size of text information is greater than default in default processing region Font size and be overstriking font, then handle default processing region using the first possible implementation;If it is determined that default treatment region The font size of text information is greater than default font size and is not overstriking font in domain, then using second of possible implementation processing Default processing region.
Finally at step 104, directly according to treated left eye target image and treated right eye target image into Row 3D display.
It for example, is the figure without the embodiment of the present invention as shown in Fig. 3 (a) by taking specific image content is text as an example The picture of 3D rendering as shown in after processing method processing.The sawtooth at text edge is obvious in Fig. 3 (a).Such as Fig. 3 (b) institute Show, for the picture of the 3D rendering shown after image processing method provided in an embodiment of the present invention processing.In Fig. 3 (b), according to After the embodiment of the present invention handles the picture, text edge becomes rounder and more smooth, has effectively eliminated the sawtooth at edge.
Again for example, as shown in Fig. 4 (a), for what is shown after the image processing method processing without the embodiment of the present invention The picture of 3D rendering.The sawtooth at text edge is obvious in Fig. 4 (a).As shown in Fig. 4 (b), to be mentioned by the embodiment of the present invention The picture of the 3D rendering shown after the image processing method processing of confession.In Fig. 4 (b), according to embodiments of the present invention to the picture into After row processing, text edge becomes rounder and more smooth, has effectively eliminated the sawtooth at edge.
Below by the process of specific embodiment detailed description.
As shown in figure 5, being a kind of image processing method flow diagram provided in an embodiment of the present invention.
Step 301: left eye target image and right eye target image are obtained by Photo Browser.
Step 302: determining default processing region in left eye target image and right eye target image respectively.
Default processing region can be determined with the coordinate information of default processing region according to the pre-stored data.
Step 303: for any one default processing region, therefrom determining a pixel;
Step 304: it is poor between any one presetted pixel value in the pixel value and N number of presetted pixel value of the pixel to judge Whether the absolute value of value is greater than threshold value, if so, the pixel as the first background pixel point and is gone to step 305;Otherwise Go to step 307.
Step 305: it determines and whether there is first object pixel in the pixel adjacent with the first background pixel point, if It is then to go to step 306, otherwise goes to step 307.
Step 306: transparent according to the first of formula (1) determining first object pixel adjacent with the first background pixel point Degree.
First transparency can also be determined as to the transparency and the first object greater than first background pixel point Minimum value in the transparency of pixel and transparency and the first object pixel less than first background pixel point Transparency in maximum value value.
Step 307: judge whether to have traversed pixel all in default processing region, if so, step 308 is gone to, Otherwise step 303 is gone to.
Step 308: obtaining treated left eye target image and treated right eye target image, and then according to this two Image carries out stereoscopic display.
As shown in fig. 6, being a kind of image processing method flow diagram provided in an embodiment of the present invention.
Step 401: left eye target image and right eye target image are obtained by Photo Browser.
Step 402: determining default processing region in left eye target image and right eye target image respectively.
Default processing region can be determined with the coordinate information of default processing region according to the pre-stored data.
Step 403: for any one default processing region, therefrom determining a pixel;
Step 404: it is poor between any one presetted pixel value in the pixel value and N number of presetted pixel value of the pixel to judge Whether the absolute value of value is greater than threshold value, if it is not, the pixel as the second background pixel point and is then gone to step 405;Otherwise Go to step 407.
Step 405: it determines and whether there is the second target pixel points in the pixel adjacent with the second background pixel point, if It is then to go to step 406, otherwise goes to step 407.
Step 406: transparent according to the second of formula (2) determining second target pixel points adjacent with the second background pixel point It spends, and the pixel value of second target pixel points adjacent with the second background pixel point is changed to the pixel of the second background pixel point Value.
Second transparency can also be determined as to the transparency and second target greater than second background pixel point Minimum value in the transparency of pixel and the transparency and second target pixel points less than second background pixel point Transparency in maximum value value.
Step 407: judge whether to have traversed pixel all in default processing region, if so, step 408 is gone to, Otherwise step 403 is gone to.
Step 408: obtaining treated left eye target image and treated right eye target image, and then according to this two Image carries out stereoscopic display.
Based on the same technical idea, the embodiment of the present invention also provides a kind of image processing apparatus structural schematic diagram, the dress Set executable above method embodiment.
As shown in fig. 7, a kind of image processing apparatus structural schematic diagram provided in an embodiment of the present invention.
Referring to Fig. 7, which includes:
Acquiring unit 501, for obtaining left eye target image and right eye target image for carrying out 3D display;
Determination unit 502, for determining the default treatment region in the left eye target image and the right eye target image Domain;
Processing unit 503, for for each pixel in the default processing region, pixel value to be preset with N number of The absolute value of difference is greater than the pixel of threshold value as the first background pixel point between any one presetted pixel value in pixel value, And it will appoint in adjacent and pixel value and N number of presetted pixel value in the default processing region with first background pixel point The absolute value of difference is less than or equal to the pixel of the threshold value as first object pixel between presetted pixel value of anticipating, And the transparency of the first object pixel is changed to the first transparency, N is positive integer;Alternatively, being directed to the default place Each pixel in region is managed, by difference between any one presetted pixel value in pixel value and N number of presetted pixel value Absolute value be less than or equal to the threshold value pixel as the second background pixel point, and will in the default processing region and Second background pixel point is adjacent and the difference between any one presetted pixel value in N number of presetted pixel value absolute The pixel that value is greater than the threshold value is changed to as the second target pixel points, and by the transparency of second target pixel points Second transparency, pixel value are changed to the pixel value of second background pixel point;
Display unit 504, for according to the change transparency treated the left eye target image and the right eye Target image carries out 3D display.
Optionally, first transparency is greater than the transparency and the first object pixel of first background pixel point Minimum value in the transparency of point and be less than first background pixel point transparency and the first object pixel it is saturating Maximum value in lightness;
Second transparency is greater than the saturating of transparency and second target pixel points of second background pixel point Minimum value in lightness and it is less than in the transparency of second background pixel point and the transparency of second target pixel points Maximum value.
Optionally, the processing unit 503 is specifically used for:
For any one of first object pixel adjacent with first background pixel point, according to the following formula Determine the first transparency of first object pixel:
Wherein,For first transparency,For the transparency of first background pixel point,It is described first The transparency of target pixel points, K1Greater than 0 and less than 1.
Optionally, the processing unit 503 is specifically used for:
For any one second target pixel points adjacent with second background pixel point, determine according to the following formula Second transparency of second target pixel points:
Wherein,For second transparency,For the transparency of second background pixel point,It is described The transparency of two target pixel points, K2Greater than 0 and less than 1.
Optionally, the processing unit 503 is specifically used for:
The left eye target image and the right eye target image are the image comprising text information;
The default processing region is the region for including the text information;
N number of presetted pixel value is the corresponding pixel value of the text information.
Image processing apparatus provided in an embodiment of the present invention, by determining in left eye target image and right eye target image Default processing region, and change the transparency of first object pixel in default processing region, or change the second object pixel The transparency and pixel value of point alleviate so that the transition in default processing region between neighbor pixel is more natural Crenellated phenomena when the edge display of the picture material in default processing region, so that it is more preferable to obtain visual effect, while this hair The method that bright embodiment provides is simpler, and processing speed is fast, operates also easier.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from model of the invention by those skilled in the art It encloses.If then the present invention is also intended in this way, these modifications and changes of the present invention belongs within the scope of the claims in the present invention It includes these modifications and variations.

Claims (6)

1. a kind of image processing method, which is characterized in that this method comprises:
Obtain the left eye target image and right eye target image for carrying out 3D display;
Determine the default processing region in the left eye target image and the right eye target image;
For each pixel in the default processing region, pixel value and any one in N number of presetted pixel value are preset The absolute value of difference is greater than the pixel of threshold value as the first background pixel point between pixel value, and by the default processing region In in and pixel value adjacent with first background pixel point and N number of presetted pixel value between any one presetted pixel value The absolute value of difference is less than or equal to the pixel of the threshold value as first object pixel, and by the first object pixel The transparency of point is changed to the first transparency, and N is positive integer;Wherein, first transparency is greater than first background pixel The transparency of point is with the minimum value in the transparency of the first object pixel and saturating less than first background pixel point Maximum value in lightness and the transparency of the first object pixel;
Alternatively,
For each pixel in the default processing region, pixel value and any one in N number of presetted pixel value are preset The absolute value of difference is less than or equal to the pixel of the threshold value as the second background pixel point between pixel value, and will be described pre- If it is adjacent with second background pixel point in processing region and with any one presetted pixel value in N number of presetted pixel value Between the absolute value of difference be greater than the pixel of the threshold value as the second target pixel points, and by second target pixel points Transparency be changed to the second transparency, pixel value is changed to the pixel value of second background pixel point, N is positive integer;Its In, second transparency is greater than in the transparency of second background pixel point and the transparency of second target pixel points Minimum value and be less than second background pixel point transparency and second target pixel points transparency in maximum Value;
3D display is carried out according to change treated the left eye target image and right eye target image.
2. a kind of image processing method, which is characterized in that this method comprises:
Obtain the left eye target image and right eye target image for carrying out 3D display;
Determine the default processing region in the left eye target image and the right eye target image;
For each pixel in the default processing region, pixel value and any one in N number of presetted pixel value are preset The absolute value of difference is greater than the pixel of threshold value as the first background pixel point between pixel value, and by the default processing region In in and pixel value adjacent with first background pixel point and N number of presetted pixel value between any one presetted pixel value The absolute value of difference is less than or equal to the pixel of the threshold value as first object pixel, and by the first object pixel The transparency of point is changed to the first transparency, and N is positive integer;The transparency by first object pixel is changed to first thoroughly Lightness, comprising: for any one of first object pixel adjacent with first background pixel point, according to following public affairs Formula determines the first transparency of first object pixel:Wherein,It is transparent for described first Degree,For the transparency of first background pixel point,For the transparency of the first object pixel, K1It is greater than 0 and small In 1;
Alternatively,
For each pixel in the default processing region, pixel value and any one in N number of presetted pixel value are preset The absolute value of difference is less than or equal to the pixel of the threshold value as the second background pixel point between pixel value, and will be described pre- If it is adjacent with second background pixel point in processing region and with any one presetted pixel value in N number of presetted pixel value Between the absolute value of difference be greater than the pixel of the threshold value as the second target pixel points, and by second target pixel points Transparency be changed to the second transparency, pixel value is changed to the pixel value of second background pixel point, N is positive integer;Institute It states and the transparency of second target pixel points is changed to the second transparency, comprising: be directed to and second background pixel point Second target pixel points of any one adjacent determine the second transparency of second target pixel points according to the following formula:Wherein,For second transparency,For the transparent of second background pixel point Degree,For the transparency of second target pixel points, K2Greater than 0 and less than 1.
3. method according to claim 1 or 2, which is characterized in that the left eye target image and the right eye target image For the image comprising text information;
The default processing region is the region for including the text information;
N number of presetted pixel value is the corresponding pixel value of the text information.
4. a kind of image processing apparatus, which is characterized in that the device includes:
Acquiring unit, for obtaining left eye target image and right eye target image for carrying out 3D display;
Determination unit, for determining the default processing region in the left eye target image and the right eye target image;
Processing unit will be in pixel value and N number of presetted pixel value for for each pixel in the default processing region The absolute value of difference is greater than the pixel of threshold value as the first background pixel point between any one presetted pixel value, and will be described And pixel value adjacent with first background pixel point and any one in N number of presetted pixel value are pre- in default processing region If between pixel value the absolute value of difference be less than or equal to the threshold value pixel as first object pixel, and will described in The transparency of first object pixel is changed to the first transparency, and N is positive integer;Wherein, first transparency is greater than described The transparency of first background pixel point is with the minimum value in the transparency of the first object pixel and less than first back Maximum value in the transparency of scene vegetarian refreshments and the transparency of the first object pixel;Alternatively, being directed to the default processing Each pixel in region, by pixel value and N number of presetted pixel value between any one presetted pixel value difference it is absolute Value is less than or equal to the pixel of the threshold value as the second background pixel point, and by the default processing region with described the Two background pixel points are adjacent and absolute value of the difference between any one presetted pixel value in N number of presetted pixel value is greater than The pixel of the threshold value is changed to second thoroughly as the second target pixel points, and by the transparency of second target pixel points Lightness, pixel value are changed to the pixel value of second background pixel point, and N is positive integer;Wherein, second transparency is greater than Minimum value in the transparency of the transparency of second background pixel point and second target pixel points and it is less than described the Maximum value in the transparency of the transparency of two background pixel points and second target pixel points;
Display unit, for according to the change transparency treated the left eye target image and the right eye target image Carry out 3D display.
5. a kind of image processing apparatus, which is characterized in that the device includes:
Acquiring unit, for obtaining left eye target image and right eye target image for carrying out 3D display;
Determination unit, for determining the default processing region in the left eye target image and the right eye target image;
Processing unit will be in pixel value and N number of presetted pixel value for for each pixel in the default processing region The absolute value of difference is greater than the pixel of threshold value as the first background pixel point between any one presetted pixel value, and will be described And pixel value adjacent with first background pixel point and any one in N number of presetted pixel value are pre- in default processing region If between pixel value the absolute value of difference be less than or equal to the threshold value pixel as first object pixel, and will described in The transparency of first object pixel is changed to the first transparency, and N is positive integer;The processing unit is specifically used for: for The adjacent any one of first object pixel of first background pixel point determines first object picture according to the following formula First transparency of vegetarian refreshments:Wherein,For first transparency,It is described first The transparency of background pixel point,For the transparency of the first object pixel, K1Greater than 0 and less than 1;
Alternatively, the processing unit is used for, for each pixel in default processing region, by pixel value with it is described N number of pre- If the absolute value of difference is less than or equal to the pixel of the threshold value as the between any one presetted pixel value in pixel value Two background pixel points, and by it is adjacent with second background pixel point in the default processing region and with N number of default picture The absolute value of difference is greater than the pixel of the threshold value as the second object pixel between any one presetted pixel value in element value Point, and the transparency of second target pixel points is changed to the second transparency, pixel value is changed to the second background picture The pixel value of vegetarian refreshments, N are positive integer;The processing unit is specifically used for: appointing for adjacent with second background pixel point One the second target pixel points of meaning, determine the second transparency of second target pixel points according to the following formula:Wherein,For second transparency,For the transparent of second background pixel point Degree,For the transparency of second target pixel points, K2Greater than 0 and less than 1;
Display unit, for according to the change transparency treated the left eye target image and the right eye target image Carry out 3D display.
6. device as described in claim 4 or 5, which is characterized in that the left eye target image and the right eye target image For the image comprising text information;
The default processing region is the region for including the text information;
N number of presetted pixel value is the corresponding pixel value of the text information.
CN201511033139.7A 2015-12-31 2015-12-31 A kind of image processing method and device Active CN106937104B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511033139.7A CN106937104B (en) 2015-12-31 2015-12-31 A kind of image processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511033139.7A CN106937104B (en) 2015-12-31 2015-12-31 A kind of image processing method and device

Publications (2)

Publication Number Publication Date
CN106937104A CN106937104A (en) 2017-07-07
CN106937104B true CN106937104B (en) 2019-03-26

Family

ID=59444388

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511033139.7A Active CN106937104B (en) 2015-12-31 2015-12-31 A kind of image processing method and device

Country Status (1)

Country Link
CN (1) CN106937104B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101268700A (en) * 2005-09-22 2008-09-17 派尔高公司 Method and apparatus for superimposing characters on video
CN102165496A (en) * 2008-09-25 2011-08-24 皇家飞利浦电子股份有限公司 Three dimensional image data processing
CN102202224A (en) * 2011-06-22 2011-09-28 清华大学 Caption flutter-free method and apparatus used for plane video stereo transition
EP2391140A2 (en) * 2010-05-31 2011-11-30 Samsung Electronics Co., Ltd. Display apparatus and display method thereof
CN102752482A (en) * 2011-04-20 2012-10-24 乐金显示有限公司 Method of removing jagging of stereoscopic image and stereoscopic image display device using the same
CN102790891A (en) * 2011-05-16 2012-11-21 乐金显示有限公司 Image processing method and stereoscopic image display device using the same
CN102857781A (en) * 2012-09-27 2013-01-02 深圳市掌网立体时代视讯技术有限公司 Anti-aliasing method and anti-aliasing device in image compression
CN103136723A (en) * 2011-11-29 2013-06-05 方正国际软件(北京)有限公司 Image sawtooth removing method and system
WO2013089183A1 (en) * 2011-12-15 2013-06-20 シャープ株式会社 Image processing device, image processing method, computer program, recording medium, and stereoscopic image display device
CN104200427A (en) * 2014-09-17 2014-12-10 厦门美图之家科技有限公司 Method for eliminating edge sawteeth of images

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101704685B1 (en) * 2010-09-10 2017-02-09 삼성디스플레이 주식회사 Method for converting stereo-scopic image, method for displaying stereo-scopic image using the same and the stereo-scopic image displaying device for performing the method for displaying stereo-scopic image

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101268700A (en) * 2005-09-22 2008-09-17 派尔高公司 Method and apparatus for superimposing characters on video
CN102165496A (en) * 2008-09-25 2011-08-24 皇家飞利浦电子股份有限公司 Three dimensional image data processing
EP2391140A2 (en) * 2010-05-31 2011-11-30 Samsung Electronics Co., Ltd. Display apparatus and display method thereof
CN102752482A (en) * 2011-04-20 2012-10-24 乐金显示有限公司 Method of removing jagging of stereoscopic image and stereoscopic image display device using the same
CN102790891A (en) * 2011-05-16 2012-11-21 乐金显示有限公司 Image processing method and stereoscopic image display device using the same
CN102202224A (en) * 2011-06-22 2011-09-28 清华大学 Caption flutter-free method and apparatus used for plane video stereo transition
CN103136723A (en) * 2011-11-29 2013-06-05 方正国际软件(北京)有限公司 Image sawtooth removing method and system
WO2013089183A1 (en) * 2011-12-15 2013-06-20 シャープ株式会社 Image processing device, image processing method, computer program, recording medium, and stereoscopic image display device
CN102857781A (en) * 2012-09-27 2013-01-02 深圳市掌网立体时代视讯技术有限公司 Anti-aliasing method and anti-aliasing device in image compression
CN104200427A (en) * 2014-09-17 2014-12-10 厦门美图之家科技有限公司 Method for eliminating edge sawteeth of images

Also Published As

Publication number Publication date
CN106937104A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
US10067349B2 (en) Method of adapting a virtual reality helmet
WO2021169307A1 (en) Makeup try-on processing method and apparatus for face image, computer device, and storage medium
CN106971165B (en) A kind of implementation method and device of filter
US20060087556A1 (en) Stereoscopic image display device
TWI542190B (en) Method and system for encoding a 3d image signal, encoded 3d image signal, method and system for decoding a 3d image signal
JP2020533710A (en) Image stitching method and device, storage medium
JP2013522699A5 (en)
TW201505420A (en) Content-aware display adaptation methods
JP5476910B2 (en) Image generating apparatus, image generating method, and program
US20130027389A1 (en) Making a two-dimensional image into three dimensions
CN108076208B (en) Display processing method and device and terminal
KR20170044953A (en) Glassless 3d display apparatus and contorl method thereof
US11783445B2 (en) Image processing method, device and apparatus, image fitting method and device, display method and apparatus, and computer readable medium
EP2590418A1 (en) Dynamic depth image adjusting device and method thereof
CN106937103B (en) A kind of image processing method and device
JP2019186762A (en) Video generation apparatus, video generation method, program, and data structure
CN103400565A (en) Interface blocked refreshing method based on GDI (Graphics Device Interface)
JP2012010047A5 (en)
CN111913343B (en) Panoramic image display method and device
CN106528161A (en) Terminal equipment, page display processing device and method
CN106937104B (en) A kind of image processing method and device
CN102663665B (en) Display method and edit method of stereo image graphic label with adaptive depth
CN109766530B (en) Method and device for generating chart frame, storage medium and electronic equipment
JP2014150401A (en) Display apparatus and program
TWI541761B (en) Image processing method and electronic device thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20180726

Address after: 518052 Room 201, building A, Qian Wan Road, Shenzhen Nanshan District cooperation zone, Qianhai, Shenzhen, Guangdong

Applicant after: Shenzhen super Technology Co., Ltd.

Address before: 518053 East Guangdong H-1 101, overseas Chinese Town Road, Nanshan District, Shenzhen.

Applicant before: Shenzhen SuperD Photoelectronic Co., Ltd.

GR01 Patent grant
GR01 Patent grant