CN106937104A - Image processing method and device - Google Patents
Image processing method and device Download PDFInfo
- Publication number
- CN106937104A CN106937104A CN201511033139.7A CN201511033139A CN106937104A CN 106937104 A CN106937104 A CN 106937104A CN 201511033139 A CN201511033139 A CN 201511033139A CN 106937104 A CN106937104 A CN 106937104A
- Authority
- CN
- China
- Prior art keywords
- pixel
- transparency
- value
- 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.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 21
- 238000000034 method Methods 0.000 claims description 22
- 230000008859 change Effects 0.000 claims description 13
- 239000000463 material Substances 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 238000009877 rendering Methods 0.000 description 7
- 238000009738 saturating Methods 0.000 description 7
- 238000004590 computer program Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000007704 transition Effects 0.000 description 5
- 230000000007 visual effect Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 239000003086 colorant Substances 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 241001062009 Indigofera Species 0.000 description 1
- 230000004888 barrier function Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N13/00—Stereoscopic video systems; Multi-view video systems; Details thereof
- H04N13/10—Processing, recording or transmission of stereoscopic or multi-view image signals
- H04N13/106—Processing image signals
- H04N13/133—Equalising the characteristics of different image components, e.g. their average brightness or colour balance
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N13/00—Stereoscopic video systems; Multi-view video systems; Details thereof
- H04N13/10—Processing, recording or transmission of stereoscopic or multi-view image signals
- H04N13/106—Processing image signals
- H04N13/122—Improving 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 an image processing method and device, comprising the following steps: acquiring a left eye target image and a right eye target image for 3D display; determining preset area preset processing areas in the left eye target image and the right eye target image respectively; aiming at any one preset region preset processing region, regarding each pixel point in the preset processing region, taking the pixel point of which the absolute value of the difference between the pixel value and any one preset pixel value in N preset pixel values is greater than a threshold value as a first background pixel point, and changing the transparency of a first target pixel point adjacent to the first background pixel point in the preset processing region into first transparency, wherein the absolute value of the difference between the pixel value of the first target pixel point and any one preset pixel value in the N preset pixel values is less than or equal to the threshold value; and performing 3D display according to the processed left eye target image and the processed right eye target image.
Description
Technical field
The present invention relates to stereo display technique field, more particularly to a kind of image processing method and device.
Background technology
At present, bore hole 3D (3-dimensional, three-dimensional) Display Technique is more and more ripe, bore hole 3D Display Techniques
There are optical barrier type technology, lens pillar technology etc., special liquid crystal display, the special liquid crystal display are superimposed by regular display upper strata
The left eye of user and the viewable pictures of right eye can be allowed to separate, so as to allow user to see 3D images to different directions refraction image.
When being shown to image by bore hole 3D Display Techniques, because the image for showing is through the image of overcompression, meeting
Cause shortage of data, the edge of some regions in the picture can produce crenellated phenomena.For example, on bore hole 3D display devices,
If one web of display has the 3D rendering of word, the crenellated phenomena at the edge of character area can clearly, so as to be brought to user
Very bad viewing experience.
When at present for by bore hole 3D Display Technique display images, the crenellated phenomena occurred in image how is reduced, also
There is no preferable solution.
The content of the invention
The embodiment of the present invention provides a kind of image processing method and its device, is used to solve to show by bore hole 3D Display Techniques
Diagram as when, reduce image in occur crenellated phenomena.
The embodiment of the present invention provides a kind of image processing method, including:
Obtain for carrying out left eye target image and right eye target image that 3D shows;
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 pixel value and N number of presetted pixel value any one
Between presetted pixel value the absolute value of difference more than the pixel of threshold value as the first background pixel point, and by the default treatment
And pixel value adjacent with the first background pixel point and any one presetted pixel value in N number of presetted pixel value in region
Between difference pixel of the absolute value less than or equal to 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;
Or,
It is for each pixel in the default processing region, pixel value is any with N number of presetted pixel value
The absolute value of difference is less than or equal to the pixel of the threshold value as the second background pixel point between one presetted pixel value, and
By it is adjacent with the second background pixel point in the default processing region and with N number of presetted pixel value in any one is pre-
If between pixel value the absolute value of difference more than the pixel of the threshold value as the second target pixel points, and by second mesh
The transparency for marking pixel is changed to the pixel value that the second transparency, pixel value are changed to the second background pixel point;
3D is carried out according to the left eye target image and the right eye target image after the change transparency treatment to show
Show.
Optionally, transparency and the first object pixel of first transparency more than the first background pixel point
Minimum value and saturating with the first object pixel less than the transparency of the first background pixel point in the transparency of point
Maximum in lightness;
Second transparency is saturating with second target pixel points more than the transparency of the second background pixel point
In minimum value in lightness and the transparency less than the second background pixel point and the transparency of second target pixel points
Maximum.
Optionally, the transparency by the first object pixel is changed to the first transparency, including:
For any one of first object pixel adjacent with the first background pixel point, according to below equation
Determine the first transparency of first object pixel:
Wherein,It is first transparency,It is the transparency of the first background pixel point,It is described first
The transparency of target pixel points, K1More than 0 and less than 1.
Optionally, the transparency by second target pixel points is changed to the second transparency, including:
For any one second target pixel points adjacent with the second background pixel point, determined according to below equation
Second transparency of second target pixel points:
Wherein,It is second transparency,It is the transparency of the second background pixel point,It is described second
The transparency of target pixel points, K2More 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, and the device includes:
Acquiring unit, for obtaining for carrying out left eye target image and right eye target image that 3D shows;
Determining unit, for determining the default processing region in the left eye target image and the right eye target image;
Processing unit, for for each pixel in the default processing region, by pixel value and N number of presetted pixel
The absolute value of difference is more than the pixel of threshold value as the first background pixel point between any one presetted pixel value in value, and will
And pixel value adjacent with the first background pixel point is any one with N number of presetted pixel value in the default processing region
The absolute value of difference is less than or equal to the pixel of the threshold value as first object pixel between individual presetted pixel value, and will
The transparency of the first object pixel is changed to the first transparency, and N is positive integer;Or, for the default treatment region
Each pixel in domain, by between any one presetted pixel value in pixel value and N number of presetted pixel value difference it is exhausted
To value 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
In the threshold value pixel as the second target pixel points, and the transparency of second target pixel points is changed to second
Transparency, pixel value are changed to the pixel value of the second background pixel point;
Display unit, for according to the left eye target image and the right eye target after the change transparency treatment
Image carries out 3D and shows.
Optionally, transparency and the first object pixel of first transparency more than the first background pixel point
Minimum value and saturating with the first object pixel less than the transparency of the first background pixel point in the transparency of point
Maximum in lightness;
Second transparency is saturating with second target pixel points more than the transparency of the second background pixel point
In minimum value in lightness and the transparency less than the second background pixel point and the transparency of second target pixel points
Maximum.
Optionally, the processing unit specifically for:
For any one of first object pixel adjacent with the first background pixel point, according to below equation
Determine the first transparency of first object pixel:
Wherein,It is first transparency,It is the transparency of the first background pixel point,It is first mesh
Mark the transparency of pixel, K1More than 0 and less than 1.
Optionally, the processing unit specifically for:
For any one second target pixel points adjacent with the second background pixel point, determined according to below equation
Second transparency of second target pixel points:
Wherein,It is second transparency,It is the transparency of the second background pixel point,It is second mesh
Mark the transparency of pixel, K2More than 0 and less than 1.
Optionally, the processing unit specifically 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 for providing according to embodiments of the present invention, by determining left eye target image and right eye target image in
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, so that the transition in default processing region between neighbor pixel is more natural, mitigate
The crenellated phenomena when edge of the picture material in default processing region shows, so that obtain visual effect more preferably, while this
The method that inventive embodiments are provided is simpler, and processing speed is fast, operates also easier.
Brief description of the drawings
Fig. 1 is a kind of image processing method schematic flow sheet 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 processed without image processing method provided in an embodiment of the present invention;
Fig. 3 (b) is the picture processed by image processing method provided in an embodiment of the present invention;
Fig. 4 (a) is the picture processed without image processing method provided in an embodiment of the present invention;
Fig. 4 (b) is the picture processed by image processing method provided in an embodiment of the present invention;
Fig. 5 is a kind of image processing method schematic flow sheet provided in an embodiment of the present invention;
Fig. 6 is a kind of image processing method schematic flow sheet provided in an embodiment of the present invention;
Fig. 7 is a kind of image processing apparatus structural representation provided in an embodiment of the present invention.
Specific embodiment
To make the technical problem to be solved in the present invention, technical scheme and advantage clearer, below in conjunction with accompanying 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 represented with R (red, red), G (green, green), three Color Channels of B (blue, blue), it is of course also possible to use other
Color Channel is represented, in the embodiment of the present invention illustrative with three Color Channels of RGB.
In the embodiment of the present invention, left eye target image and right eye target image are to support 3D shows or bore hole 3D shows figure
Picture.
In the embodiment of the present invention, some picture materials are included in left eye target image and right eye target image, for example text
Word, when stereoscopic display is carried out by left eye target image and right eye target image, the sawtooth at the edge of these picture materials shows
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 for carrying out the left eye mesh that 3D shows
The edge of the above-mentioned picture material in logo image and right eye target image is processed, so as to effectively mitigate carry out stereoscopic display
When these picture materials edge crenellated phenomena.It is understood that above-mentioned picture material includes but is not limited to word.
Based on foregoing description, as shown in figure 1, for the embodiment of the present invention provides a kind of image processing method schematic flow sheet.
Referring to Fig. 1, the method includes:
Step 101:Obtain for carrying out left eye target image and right eye target image that 3D shows.
In this step, left eye target image can be the image corresponding to left eye during 3D show, and right eye target image can be with
Corresponding to the image of right eye in being shown for 3D.
Left eye target image and right eye target image can be prestored, and wait pending.
Include specific image content in left eye target image and right eye target image, for example, word.
It should be noted that in this step, can respectively obtain left eye target image and right eye target image, that is, obtain two
Open image.Certainly, because in most of solid film source, left eye target image and right eye target image are provided in a 3D figure
As upper, therefore, in this step, a 3D rendering also can be only obtained, the 3D rendering includes left eye target image and right eye mesh
Logo image.
Step 102:Determine the default processing region in the left eye target image and the right eye target image.
The default processing region generally needs to include the edge of specific image content that the usual default processing region is determined
To surround the region of the specific image content, its shape is not limited, and is chosen as rectangle.
In the embodiment of the present invention, the region that may there is crenellated phenomena in target image can be set as default treatment
Region.Specific volume, the default processing region generally needs to include the edge of specific image content, generally the default processing region
It is confirmed as surrounding the region of the specific image content, its shape is not limited, and is chosen as rectangle.
For example, the left eye target image and right eye target image for being got in step 101 are comprising text information
Image, the text information be specific image content, in this step default processing region be to include the region of these text informations,
For example surround the rectangular area of the text information.
Optionally, can also be using whole left eye target image as the default processing region in left eye target image, will be whole
Individual right eye target image as the default processing region in right eye target image.
Specifically, in this step, can respectively be existed according to the image configurations information of left eye target image and right eye target figure
Determine default processing region in left eye target image and right eye target image.
The pixel value list of N number of presetted pixel value can be included in image configurations information, the coordinate letter of processing region is preset
Breath etc..
Image configurations information can be stored separately in a file, can also store the illustrative structures in view data
In bag, the embodiment of the present invention is not limited this.
Image configurations information can be set by user, image configurations information can also be repaiied according to actual displayed effect
Change.
Image configurations information can also be configured by picture maker, and do so can protect the image configurations information will not
At will changed.
In the embodiment of the present invention, can also be after left eye target image and right eye target image be obtained, by target image
In may there is crenellated phenomena region be set as default processing region.For example, obtaining left eye target image and right eye target
After image, it is determined that including text information, then text information will be included in left eye target image and right eye target image
Region is used as default processing region.Or, can also be using the pixel value of pixel region within a preset range as default place
Reason region.
Optionally, can also be using whole left eye target image as the default processing region in left eye target image, will be whole
Individual right eye target image as the default processing region in right eye target image.
Step 103:For each pixel in the default processing region, by pixel value and N number of presetted pixel value
The absolute value of difference is more than the pixel of threshold value as the first background pixel point between any one presetted pixel value, and will be described
Any one is pre- in and pixel value adjacent with the first background pixel point and N number of presetted pixel value in default processing region
If the absolute value of difference is less than or equal to the pixel of the threshold value as first object pixel between pixel value, and will be described
The transparency of first object pixel is changed to the first transparency, and N is positive integer;Or, in the default processing region
Each pixel, by the absolute value of difference between any one presetted pixel value in pixel value and N number of presetted pixel 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 more 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 into second
Degree, pixel value are changed to the pixel value of the second background pixel point.
Said in principle, step 103, the edge of specific image content is actually found in default processing region, it is right
The edge is processed.In first way, first object pixel is the edge pixel point of specific image content, its picture
Element value for specific image content set in advance one of N number of pixel value or differ very little with this N number of pixel value, it is with first
Background pixel point is adjacent, and the first background pixel point is in non-particular image content, its pixel value and specific image set in advance
The N number of pixel value for holding 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.
After finding the edge of specific image content, say and the edge is processed.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, so as to alleviate spy
The crenellated phenomena when edge for determining picture material shows, so that it is more preferable to obtain visual effect.
Step 104:According to the left eye target image and the right eye target image after the change transparency treatment
3D is carried out to show.
Method provided in an embodiment of the present invention, the method and device for providing according to embodiments of the present invention, by determining left eye
First object pixel is saturating in default processing region in target image and right eye target image, and the default processing region of change
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, the crenellated phenomena when edge for alleviating the picture material in default processing region shows, so that
Obtain visual effect more preferably, while method provided in an embodiment of the present invention is simpler, processing speed is fast, operates also easier.
Specifically, in step 103, if default processing region has text information, N number of presetted pixel value can be default
The corresponding pixel value of text information in processing region.
After default processing region is determined, it is possible to which default processing region is processed.In order to mitigate default place
The crenellated phenomena that picture material in reason region is produced when showing, the embodiment of the present invention can be by various implementations to default
Processing region is processed, and is detailed below.
The first possible implementation:
Each pixel in the default processing region of step one, traversal, for any one pixel, however, it is determined that a picture
The absolute value of difference is more 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
Mark pixel, and go to step 2;Otherwise travel through next pixel.
For example, each pixel can use tri- colors of R, G, B in left eye target image and right eye target image
Passage is represented.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 of difference is more than threshold between any one default blue channel color value in chrominance channel color value and N number of presetted pixel value
It is poor between any one default red channel color value in value, the red channel color value of the pixel and N number of presetted pixel value
The absolute value of value is more than threshold value, the green channel color value of the pixel and any one default green in N number of presetted pixel value
The absolute value of difference is more than threshold value between passage color value.Also, any one pixel adjacent for the pixel, if
Determine the blue channel color value and any one default blue channel color value in N number of presetted pixel value of the adjacent pixel
Between difference absolute value be less than or equal to threshold value, the red channel color value of the adjacent pixel and N number of presetted pixel value
In between any one default red channel color value difference absolute value less than or equal to threshold value, the adjacent pixel it is green
In chrominance channel color value and N number of presetted pixel value between any one default green channel color value 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 used as first object pixel.
It should be noted that in the embodiment of the present invention, for how to travel through each pixel in default processing region simultaneously
Do not limit, each pixel in default processing region can be traveled through by the way of transversal scanning or longitudinal scanning, also may be used
With using each pixel in the default processing region of other modes traversal.Meanwhile, in the embodiment of the present invention, threshold value can basis
Actual conditions determine.For example threshold value can take 0, or any one number between 10 to 0.
Step 2, will be adjacent with the first background pixel point in the default processing region and pixel value is N number of pre- with described
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 presets treatment
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
The edge pixel point of the specific image content such as word constituted equal to all pixels point of the threshold value.First background pixel point
It is 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 more than the transparency and described first of the first background pixel point
Minimum value in the transparency of target pixel points and the transparency less than the first background pixel point and the first object picture
Maximum 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 order of the pixel of adjacent specific image content, transparency is incremented by or successively decreases.
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 may be located at any one number between 0.5 to 0.8.
Optionally, the first transparency can also by other means be determined.Specifically, being directed to and the first background pixel point
Any one adjacent first object pixel, can determine the first transparency of first object pixel according to below equation:
Wherein,It is first transparency,It is the transparency of the first background pixel point,It is the first object picture
The transparency of vegetarian refreshments, K1More 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, pixel 9 are 8 fields of pixel 5
Pixel, in the embodiment of the present invention, can using any pixel in 8 field pixels of pixel 5 as pixel 5 phase
Adjacent pixel.Meanwhile, pixel 2, pixel 4, pixel 6, pixel 8 are 4 field pixels of pixel 5, now also 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, can be by least one of 8 field pixels of the first background pixel point
Pixel as the first background pixel point neighbor pixel, it is also possible to by 4 field pixels of the first background pixel point
At least one pixel as the first background pixel point neighbor pixel.
In such scheme, by the transparency by the adjacent first object pixel of the first background pixel point is changed, so that
So that specific image content and background image content are (in the image i.e. outside specific image content area in default processing region
Hold) transition between neighbor pixel is more natural, the crenellated phenomena when edge for alleviating target area shows, so as to be regarded
Feel that effect is more preferable.
Second possible implementation:
Step one, all pixels point traveled through in the default processing region, however, it is determined that a pixel value for 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 more than between any one presetted pixel value in the pixel value and N number of presetted pixel value of the adjacent pixel of point
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 travel through next pixel.
Likewise, each pixel in default processing region can be traveled through by the way of transversal scanning or longitudinal scanning
Point, it would however also be possible to employ each pixel in the default processing region of other modes traversal.
Step 2, by it is adjacent with the second background pixel point in the default processing region and with N number of presetted pixel
In value between any one presetted pixel value difference absolute value more than the threshold value the second target pixel points transparency more
It is changed to the pixel value that the second transparency, pixel value are changed to the second background pixel point.
For any one second target pixel points in the pixel adjacent with the second background pixel point, by the second target
The pixel value of pixel is changed to the pixel value of the 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
Passage is represented.The blueness that the blue channel color value of second target pixel points is changed to the 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 the second background pixel point
Color value, the green channel face that the green channel color value of second target pixel points is changed to the second background pixel point
Colour.
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 more than 0, then the second background pixel point can be defined as the edge pixel point of specific image content;Edge pixel point reality
It is on border small by the absolute value of difference 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 more than the transparency and described second of the second background pixel point
Minimum value in the transparency of target pixel points and the transparency less than the second background pixel point and second target picture
Maximum in the transparency of vegetarian refreshments.
Optionally, the first transparency can also by other means be determined.Specifically, being directed to and the second background pixel point
The target pixel points of any one adjacent second, can also determine the second transparent of second target pixel points according to below equation
Degree:
Wherein,It is second transparency,It is the transparency of the second background pixel point,It is second target picture
The transparency of vegetarian refreshments, K2More 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 of the body
The neighbor pixel of scene vegetarian refreshments, it is also possible to make at least one of 4 field pixels of the second background pixel point pixel
It is the neighbor pixel of the second background pixel point.
In such scheme, by changing the transparency of the second target pixel points and by the pixel value of the second target pixel points
The pixel value of the second background pixel point is changed to, 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 show when crenellated phenomena, so as to obtain
Obtain more preferable visual effect.
It should be noted that so that specific image content is as word as an example, can also be according to default place in the embodiment of the present invention
The font attribute of text information determines still to use second possible reality using the first possible implementation in reason region
Existing mode processes 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 treatment;If it is determined that the font size of text information is more than default in default processing region
Font size and be overstriking font, then using the first possible default processing region of implementation treatment;If it is determined that default treatment region
The font size of text information is then processed more than presetting font size and not being overstriking font using second possible implementation in domain
Default processing region.
At step 104, directly entered according to the right eye target image after the left eye target image after treatment and treatment finally
Row 3D shows.
For example, it is the figure without the embodiment of the present invention such as shown in Fig. 3 (a) so that specific image content is as word as an example
The picture of the 3D rendering as shown in after disposal methods.The sawtooth at word edge is obvious in Fig. 3 (a).Such as Fig. 3 (b) institutes
Show, be the picture by the 3D rendering shown after image processing method provided in an embodiment of the present invention treatment.In Fig. 3 (b), according to
After the embodiment of the present invention is processed the picture, word edge becomes that comparing is round and smooth, has effectively eliminated the sawtooth at edge.
Again for example, it is display after the image processing method treatment without the embodiment of the present invention as shown in Fig. 4 (a)
The picture of 3D rendering.The sawtooth at word edge is obvious in Fig. 4 (a).It is to be carried by the embodiment of the present invention as shown in Fig. 4 (b)
The picture of the 3D rendering shown after the image processing method treatment of confession.In Fig. 4 (b), the picture is entered according to embodiments of the present invention
After row treatment, word edge becomes that comparing is round and smooth, has effectively eliminated the sawtooth at edge.
Below by the flow of specific embodiment detailed description.
As shown in figure 5, being a kind of image processing method schematic flow sheet 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:Default processing region is determined in left eye target image and right eye target image respectively.
Default processing region can be determined according to the coordinate information of the default processing region for prestoring.
Step 303:For any one default processing region, a pixel is therefrom determined;
Step 304:Judge poor between any one presetted pixel value in the pixel value and N number of presetted pixel value of the pixel
Whether the absolute value of value is more than threshold value, if so, then using the pixel is as the first background pixel point and goes to step 305;Otherwise
Go to step 307.
Step 305:It is determined that 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:According to formula (1) the determination first object pixel adjacent with the first background pixel point first is transparent
Degree.
First transparency can also be defined as the transparency and the first object more than the first background pixel point
Minimum value in the transparency of pixel and the transparency less than the first background pixel point and the first object pixel
Transparency in maximum value.
Step 307:Judge whether to have traveled through all of pixel in default processing region, if so, step 308 is then gone to,
Otherwise go to step 303.
Step 308:The right eye target image after left eye target image and treatment after being processed, and then according to this two
Image carries out stereoscopic display.
As shown in fig. 6, being a kind of image processing method schematic flow sheet 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:Default processing region is determined in left eye target image and right eye target image respectively.
Default processing region can be determined according to the coordinate information of the default processing region for prestoring.
Step 403:For any one default processing region, a pixel is therefrom determined;
Step 404:Judge poor between any one presetted pixel value in the pixel value and N number of presetted pixel value of the pixel
Whether the absolute value of value is more than threshold value, if it is not, then using the pixel is as the second background pixel point and goes to step 405;Otherwise
Go to step 407.
Step 405:It is determined that 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:According to formula (2) determination second target pixel points adjacent with the second background pixel point second is transparent
Degree, 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 defined as the transparency and second target more than the second background pixel point
Minimum value in the transparency of pixel and the transparency less than the second background pixel point and second target pixel points
Transparency in maximum value.
Step 407:Judge whether to have traveled through all of pixel in default processing region, if so, step 408 is then gone to,
Otherwise go to step 403.
Step 408:The right eye target image after left eye target image and treatment after being processed, and then according to this two
Image carries out stereoscopic display.
Based on identical technology design, the embodiment of the present invention also provides a kind of image processing apparatus structural representation, the dress
Put executable above method embodiment.
As shown in fig. 7, a kind of image processing apparatus structural representation provided in an embodiment of the present invention.
Referring to Fig. 7, the device includes:
Acquiring unit 501, for obtaining for carrying out left eye target image and right eye target image that 3D shows;
Determining unit 502, for determining the default treatment region in the left eye target image and the right eye target image
Domain;
Processing unit 503, it is for for each pixel in the default processing region, pixel value is default with N number of
The absolute value of difference is more than the pixel of threshold value as the first background pixel point between any one presetted pixel value in pixel value,
And will appoint in and pixel value adjacent with the first background pixel point in the default processing region and N number of presetted pixel value
The absolute value of difference is less than or equal to the pixel of the threshold value as first object pixel between one presetted pixel value of meaning,
And the transparency of the first object pixel is changed to the first transparency, N is positive integer;Or, for the default place
Each pixel in reason region, by difference between any one presetted pixel value in pixel value and N number of presetted pixel value
Absolute value less than or equal to the threshold value pixel as the second background pixel point, and will in the default processing region and
The second background pixel point is adjacent and the difference between any one presetted pixel value in N number of presetted pixel value absolute
Value is more than the pixel of the threshold value as the second target pixel points, and the transparency of second target pixel points is changed to
Second transparency, pixel value are changed to the pixel value of the second background pixel point;
Display unit 504, for according to the left eye target image and the right eye after the change transparency treatment
Target image carries out 3D and shows.
Optionally, transparency and the first object pixel of first transparency more than the first background pixel point
Minimum value and saturating with the first object pixel less than the transparency of the first background pixel point in the transparency of point
Maximum in lightness;
Second transparency is saturating with second target pixel points more than the transparency of the second background pixel point
In minimum value in lightness and the transparency less than the second background pixel point and the transparency of second target pixel points
Maximum.
Optionally, the processing unit 503 specifically for:
For any one of first object pixel adjacent with the first background pixel point, according to below equation
Determine the first transparency of first object pixel:
Wherein,It is first transparency,It is the transparency of the first background pixel point,It is described first
The transparency of target pixel points, K1More than 0 and less than 1.
Optionally, the processing unit 503 specifically for:
For any one second target pixel points adjacent with the second background pixel point, determined according to below equation
Second transparency of second target pixel points:
Wherein,It is second transparency,It is the transparency of the second background pixel point,It is described second
The transparency of target pixel points, K2More than 0 and less than 1.
Optionally, the processing unit 503 specifically 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 left eye target image and right eye target image in
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, so that the transition in default processing region between neighbor pixel is more natural, alleviate
The crenellated phenomena when edge of the picture material in default processing region shows, so that obtain visual effect more preferably, while this hair
The method that bright embodiment is provided is simpler, and processing speed is fast, operates also easier.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram are described.It should be understood that every first-class during flow chart and/or block diagram can be realized by computer program instructions
The combination of flow and/or square frame in journey and/or square frame and flow chart and/or block diagram.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices
The device of the function of being specified in present one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy
In determining the computer-readable memory that mode works so that instruction of the storage in the computer-readable memory is produced and include finger
Make the manufacture of device, the command device realize in one flow of flow chart or multiple one square frame of flow and/or block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented treatment, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described
Property concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to include excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification without deviating from model of the invention to the present invention
Enclose.So, if these modifications of the invention and modification belong within the scope of the claims in the present invention, then the present invention is also intended to
Comprising these changes and modification.
Claims (10)
1. a kind of image processing method, it is characterised in that the method includes:
Obtain for carrying out left eye target image and right eye target image that 3D shows;
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 pixel value and N number of presetted pixel value any one preset
Between pixel value the absolute value of difference more than the pixel of threshold value as the first background pixel point, and by the default processing region
In in and pixel value adjacent with the first background pixel point and N number of presetted pixel value between any one presetted pixel value
The absolute value of difference less than or equal to the threshold value pixel 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;
Or,
For each pixel in the default processing region, by pixel value and N number of presetted pixel value any one
Between presetted pixel value the absolute value of difference less than or equal to the pixel of the threshold value as the second background pixel point, and by institute
State it is adjacent with the second background pixel point in default processing region and with any one default picture in N number of presetted pixel value
The pixel of the absolute value more than the threshold value of difference be used as the second target pixel points between element value, and by second target picture
The transparency of vegetarian refreshments is changed to the pixel value that the second transparency, pixel value are changed to the second background pixel point;
3D is carried out according to the left eye target image and right eye target image after the more changed handling to show.
2. the method for claim 1, it is characterised in that first transparency is more than the first background pixel point
Minimum value in transparency and the transparency of the first object pixel and less than the transparency of the first background pixel point
With the maximum in the transparency of the first object pixel;
Second transparency is more than the transparency of the second background pixel point and the transparency of second target pixel points
In minimum value and the transparency less than the second background pixel point and the transparency of second target pixel points in most
Big value.
3. the method for claim 1, it is characterised in that the transparency by first object pixel is changed to first
Transparency, including:
For any one of first object pixel adjacent with the first background pixel point, determined according to below equation
First transparency of first object pixel:
Wherein,It is first transparency,It is the transparency of the first background pixel point,It is the first object picture
The transparency of vegetarian refreshments, K1More than 0 and less than 1.
4. the method for claim 1, it is characterised in that the transparency by second target pixel points is changed to
Second transparency, including:
For any one second target pixel points adjacent with the second background pixel point, according to below equation determines
Second transparency of the second target pixel points:
Wherein,It is second transparency,It is the transparency of the second background pixel point,It is second target picture
The transparency of vegetarian refreshments, K2More than 0 and less than 1.
5. the method as described in Claims 1-4 is any, it is characterised in that the left eye target image and the right eye target
Image is 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.
6. a kind of image processing apparatus, it is characterised in that the device includes:
Acquiring unit, for obtaining for carrying out left eye target image and right eye target image that 3D shows;
Determining unit, for determining the default processing region in the left eye target image and the right eye target image;
Processing unit, for for each pixel in the default processing region, by pixel value and N number of presetted pixel value
The absolute value of difference is more than the pixel of threshold value as the first background pixel point between any one presetted pixel value, and will be described
Any one is pre- in and pixel value adjacent with the first background pixel point and N number of presetted pixel value in default processing region
If the absolute value of difference is less than or equal to the pixel of the threshold value as first object pixel between pixel value, and will be described
The transparency of first object pixel is changed to the first transparency, and N is positive integer;Or, in the default processing region
Each pixel, by the absolute value of difference between any one presetted pixel value in pixel value and N number of presetted pixel 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 more 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 into second
Degree, pixel value are changed to the pixel value of the second background pixel point;
Display unit, for according to the left eye target image and the right eye target image after the change transparency treatment
3D is carried out to show.
7. device as claimed in claim 6, it is characterised in that first transparency is more than the first background pixel point
Minimum value in transparency and the transparency of the first object pixel and less than the transparency of the first background pixel point
With the maximum in the transparency of the first object pixel;
Second transparency is more than the transparency of the second background pixel point and the transparency of second target pixel points
In minimum value and the transparency less than the second background pixel point and the transparency of second target pixel points in most
Big value.
8. device as claimed in claim 6, it is characterised in that the processing unit specifically for:
For any one of first object pixel adjacent with the first background pixel point, determined according to below equation
First transparency of first object pixel:
Wherein,It is first transparency,It is the transparency of the first background pixel point,It is the first object picture
The transparency of vegetarian refreshments, K1More than 0 and less than 1.
9. device as claimed in claim 6, it is characterised in that the processing unit specifically for:
For any one second target pixel points adjacent with the second background pixel point, according to below equation determines
Second transparency of the second target pixel points:
Wherein,It is second transparency,It is the transparency of the second background pixel point,It is second target picture
The transparency of vegetarian refreshments, K2More than 0 and less than 1.
10. the device as described in claim 6 to 9 is any, it is characterised in that the left eye target image and the right eye target
Image is 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.
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 true CN106937104A (en) | 2017-07-07 |
CN106937104B 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 (11)
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 |
US20120062559A1 (en) * | 2010-09-10 | 2012-03-15 | Hae-Young Yun | Method for Converting Two-Dimensional Image Into Stereo-Scopic Image, Method for Displaying Stereo-Scopic Image and Stereo-Scopic Image Display Apparatus for Performing the Method for Displaying Stereo-Scopic Image |
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 |
-
2015
- 2015-12-31 CN CN201511033139.7A patent/CN106937104B/en active Active
Patent Citations (11)
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 |
US20120062559A1 (en) * | 2010-09-10 | 2012-03-15 | Hae-Young Yun | Method for Converting Two-Dimensional Image Into Stereo-Scopic Image, Method for Displaying Stereo-Scopic Image and Stereo-Scopic Image Display Apparatus for Performing the Method for Displaying Stereo-Scopic Image |
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 |
---|---|
CN106937104B (en) | 2019-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20060087556A1 (en) | Stereoscopic image display device | |
JP5615136B2 (en) | Stereoscopic image correction method, stereoscopic display device, and stereoscopic image generation device | |
CN104904201B (en) | The perspective transformations of the viewing orientation of graphical content based on tinter | |
KR101869872B1 (en) | Method of multi-view image formation and stereoscopic image display device using the same | |
JP6060329B2 (en) | Method for visualizing 3D image on 3D display device and 3D display device | |
JP5476910B2 (en) | Image generating apparatus, image generating method, and program | |
CN108573521B (en) | Real-time interactive naked eye 3D display method based on CUDA parallel computing framework | |
CN105763865A (en) | Naked eye 3D augmented reality method and device based on transparent liquid crystals | |
CN108076208B (en) | Display processing method and device and terminal | |
KR20170044953A (en) | Glassless 3d display apparatus and contorl method thereof | |
CN103369332A (en) | Image processing device, autostereoscopic display device, and image processing method | |
CN102098528A (en) | Method and device for converting planar image into stereoscopic image | |
CN102143371A (en) | Image processing apparatus, 3D display apparatus and image processing method | |
CN106937103B (en) | A kind of image processing method and device | |
CN106373537B (en) | A kind of method and device weakening display picture smear | |
CN103826114B (en) | Stereo display method and free stereo display apparatus | |
JP5496276B2 (en) | Video processing method and stereoscopic video display device | |
US10008008B2 (en) | Method and apparatus for assigning colours to an image | |
CN106528161A (en) | Terminal equipment, page display processing device and method | |
CN106937104A (en) | Image processing method and device | |
KR101991401B1 (en) | Method and apparatus for displaying augmented reality | |
KR101794492B1 (en) | System for displaying multiview image | |
JP2014150401A (en) | Display apparatus and program | |
CN106647062A (en) | Pixel structure, liquid crystal panel and stereoscopic display | |
KR101513999B1 (en) | Apparatus and method for creating 3dimensional image |
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 |