A kind of stereoscopic image generating method of grating LCD digital high-definition stereoscopic television
Technical field
The present invention relates to a kind of aligning method of stereo-picture sub-pixel, be specifically related to a kind of stereoscopic image generating method of grating LCD digital high-definition stereoscopic television.
Background technology
Digital high-definition television HDTV, development in recent years is rapid, wherein adopts Display Techniques such as plasma, LCD.Digital TV in high resolution has the clear wash rice of picture, and effective area is big, the image advantage that do not distort, but the image frame of its demonstration remains the plane picture of 2D.By the free 3 D display technology that develops rapidly, on HDTV, install one deck grating additional, again image source is carried out some processing and just can make common HDTV become the digital high-definition stereoscopic TV that can show stereopsis.
Free 3 D display technology just can not make the observer see the image with stereo display effect owing to it does not need to wear anaglyph spectacles, extremely numerous researchers' concern in recent years.At present developed the product of various stereo displays, dull and stereotyped coverage, stripe grating, prismatic mirror and holographic demonstration etc. have wherein been arranged.Compare with other free 3 D display technology, raster pattern stereo display is with advantages such as its product handling ease, stereoeffect are good, and development becomes the main developing direction of free 3 D display technology rapidly.
The raster type free 3 stereoscopic display device is made by install grating additional on the 2D flat-panel display devices, can be divided into rear-mounted two kinds of grating forward type and grating, the forward type grating is placed between display screen and the observer, and rear-mounted grating is placed between the backlight and display screen of flat-panel display devices.Grating can be divided into several again, and slit grating is arranged, cylindrical lens raster and dot matrix grating, and wherein the dot matrix grating is used less.Every kind of grating all is the effect of the image light beam split playing display device is sent, uses corresponding light beam to enter people's left eye and right eye respectively, utilizes people's binocular parallax, and the observer can see illusory stereo-picture.Slit grating is made of the transparent lines in a rule opaque black lines interval, is commonly called as the black light grid, and the light part of display device is blocked by slit grating, causes the luminance loss.Cylindrical lens raster is utilized the refraction principle of lens to light, the luminance loss who does not cause display device.
The raster type free 3 stereoscopic display device will be expected the stereoeffect that is really true to life, it is only not enough to have only grating to divide, also require the different points of view of original 2D image from imaging object, generally need the image of N different points of view for the free stereo display equipment of N viewpoint (N>=2), N viewpoint has parallactic shift in the horizontal direction.Pixel from the 2D image of different points of view is rearranged the back to be play on free stereo display equipment and just can produce stereoeffect.
At present, the coloured image pixel all horizontally be made up of RGB (red, green, blue) three primary colors is represented on computers.Pixel generally is square, and therefore, each sub-pixel of RGB all is that the ratio of width to height is 1: 3 a little rectangle on display plane.
The observer observes in different viewpoints and sees different stereo-pictures, and the number of viewpoint certainly will influence the resolution of synthetic stereo-picture.The resolution of the many more synthetic stereo images of viewpoint is low more.And the image iff each viewpoint that is arranged in parallel in the horizontal direction must cause the unbalance of horizontal resolution and vertical resolution, reduces observer's comfort.Can adopt tilting this problem that solves of grating, the direction of grating fringe and the vertical direction shape of free stereo display equipment are had a certain degree, and grating brings another problem after tilting, originally square pixel not in same grating fringe, must to constitute square pixel sub pixel rearrange make same pixel sub-pixel in same grating fringe.To rearranging of sub-pixel is exactly main contents of the present invention.
In sum, have following technical problem in the prior art: after grating was tilting, original square pixels was not in same grating fringe.
Summary of the invention
The object of the present invention is to provide a kind of aligning method of stereo-picture sub-pixel, solve the not problem in same grating fringe of the original square pixels in the tilting back of grating.
The present invention also aims to provide a kind of stereoscopic image generating method of grating LCD digital high-definition stereoscopic television.
Technical scheme is as follows:
A kind of aligning method of stereo-picture sub-pixel is arranged sub-pixel R, the sub-pixel G of same pixel, sub-pixel B to be filled in the same grating fringe.
Adopt following steps:
(1) the tilting angle θ of the relative vertical direction of grating;
(2) arrange and be filled in the same grating fringe along sub-pixel R, sub-pixel G, the sub-pixel B of this tilt angle theta same pixel RGB.
Described grating included angle θ is according to actual needs between the 0-90 degree.
Described grating included angle θ is 9.4623 degree.
The resolution of display terminal is determined the resolution in each viewpoint image source by the viewpoint number, and stereopsis is divided into identical with viewpoint resolution object block, and object block constitutes the array of a row and column.
With the described red sub-pixel R Nr row Nc that is expert at is basic point, and the green sub-pixels G of same pixel is filled to ranks, and (Nr+x, Nc+y), the blue subpixels B of same pixel is filled to ranks (Nr+x ', Nc+y ').
With the described red sub-pixel R Nr row Nc that is expert at is basic point, the green sub-pixels G of same pixel be filled to ranks (Nr+2, Nc+1), the blue subpixels B of same pixel be filled to ranks (Nr+4, Nc+2).
A kind of stereoscopic image generating method of grating LCD digital high-definition stereoscopic television, adopt following steps:
Determine the angle theta of grating and stereoscopic television LCD panel vertical direction;
Determine the position of the sub-pixel of each pixel on the image, sub-pixel R, sub-pixel G, the sub-pixel B with same pixel arranges and is filled in the same grating fringe along this tilt angle theta.
Before determining angle theta, give grating LCD stereoscopic TV zoning, calculate the resolution in each viewpoint image source according to the display resolution of grating LCD stereoscopic television LCD panel; Then, according to the resolution of viewpoint image, the stereopsis identical with the stereoscopic television LCD panel display resolution is divided into the object block identical with viewpoint resolution.
The viewpoint number is N=8, corresponding each visual point image of stereoscopic TV is divided into 8 zones of 4 row, 2 row, then calculate the horizontal resolution Wv=three-dimensional display horizontal resolution W/4 of visual point image, the vertical resolution Hv=three-dimensional display vertical resolution H/2 of visual point image.
The object block of one 4 * 2 pixel of the corresponding stereopsis of each pixel of viewpoint image, stereo-picture is divided into Wb * Hb object block, and promptly the ranks number of stereopsis object block is identical with the resolution of each visual point image.
With the described red sub-pixel R Nr row Nc that is expert at is basic point, and the green sub-pixels G of same pixel is filled to ranks, and (Nr+x, Nc+y), the blue subpixels B of same pixel is filled to ranks (Nr+x ', Nc+y ').
Described grating included angle θ is 9.4623 degree, is basic point with the described red sub-pixel R Nr row Nc that is expert at, the green sub-pixels G of same pixel be filled to ranks (Nr+2, Nc+1), the blue subpixels B of same pixel be filled to ranks (Nr+4, Nc+2).
Described grating is a cylindrical lens raster.
Wherein, realize that the whole process of various algorithms and filling arrangement is controlled by computer program, it can be multiple program in the state of the art and corresponding multiple means thereof.
Its technical scheme can be a kind of stereoscopic image generating method of grating LCD digital high-definition stereoscopic television further specifically, comprises following basic step:
Step 1: give grating LCD stereoscopic TV zoning, calculate the resolution in each viewpoint image source according to the display resolution of grating LCD stereoscopic television LCD panel;
Step 2:, the stereopsis identical with the stereoscopic television LCD panel display resolution is divided into the object block identical with viewpoint resolution according to the resolution of viewpoint image;
Step 3: the angle of determining grating and stereoscopic television LCD panel vertical direction;
Step 4: the position of each sub-pixel on corresponding target block on the stereopsis of determining each pixel on every viewpoint image.
Described step 1 " is given grating LCD stereoscopic TV zoning, is calculated the resolution in each viewpoint image source according to the display resolution of grating LCD stereoscopic television LCD panel; " be meant in order to satisfy the requirement with great visual angle of the wide shadow curtain of present TV, stereoscopic television LCD panel is divided into 8 zones of 2 row, 4 row.Adopt the image of 8 viewpoints in plane to generate a width of cloth stereopsis.The image of each viewpoint has horizontal W/4, the resolution of vertical H/2.This LCD panel zone division methods meets people's visual custom, not vertically (H), laterally (W) resolution is unbalance.According to this image that requires resolution to take, generate stereopsis through method disclosed by the invention, can obtain distortionless stereoeffect.
Described step 2 " according to the resolution of viewpoint image; will the stereopsis identical with the stereoscopic television LCD panel display resolution be divided into the object block identical with viewpoint resolution " is meant for the correspondence of multi-view image and target stereopsis pixel and sub-pixel is described, stereopsis is become the object block identical with many viewpoint image resolution, the number of object block is that H/2 is capable on the stereopsis, the W/4 row.
9.4623 ° of the angles of grating fringe and stereoscopic television LCD panel vertical direction when described step 3 " is determined the angle of grating and stereoscopic television LCD panel vertical direction " and be meant to produce the stereopsis that not have distortion, and the order of pressing this angle direction filling sub-pixel.Be the Nr row Nc basic point of being expert at red sub-pixel R, green sub-pixels G be filled in ranks (Nr+2, Nc+1), blue subpixels be filled in ranks (Nr+4, Nc+2).
Described step 4 " is determined the position of each sub-pixel on corresponding target block on the stereopsis of each pixel on every viewpoint image " and is meant according to the order of filling sub-pixel shown in the accompanying drawing 4.Show as on the visual point image the capable N row of a M object block on the corresponding stereo-picture of the capable N row of a M red sub-pixel R, sub-pixel G and sub-pixel B fill according to the described fill method of claim 4.The change in location rule of each sub-pixel R of each viewpoint on object block is to reappear according to 4X2 object block.
Description of drawings
Fig. 1 is that digital high-definition stereoscopic television LCD panel area dividing of the present invention and many viewpoint image are arranged schematic diagram.
Fig. 2 is that grating fringe of the present invention is placed schematic diagram.
Fig. 3 is that stereopsis sub-pixel of the present invention is filled schematic diagram.
Fig. 4 is the ordering schematic diagram of many viewpoint image of the present invention sub-pixel on stereopsis.
Reference numeral among the figure: 1---LCD panel 2---viewpoint image 3---object block 14---object block 2
5---fill path
Embodiment
Describe the present invention with reference to the accompanying drawings below, it is a kind of preferred embodiment in the numerous embodiments of the present invention.
Synthetic in order to realize high efficiency stereo-picture, and reach stereoscopic visual effect preferably, the present invention proposes a kind of simple and practical image combining method, this method is by synthetic stereo image of computer program.The main contents of composition algorithm are exactly that the RGB sub-pixel that will form the image of each viewpoint is filled in the stereo-picture by algorithm logic and goes.The composition algorithm process is as follows:
For convenience of description, be defined as follows variable:
Three-dimensional display horizontal resolution: W;
Three-dimensional display vertical resolution: H;
The horizontal resolution of visual point image: Wv;
The vertical resolution of visual point image: Hv;
Multi-view image viewpoint number: N;
Three-dimensional display zoning line number: Nx;
Three-dimensional display zoning columns: Ny;
The horizontal direction object block number of stereo-picture: Wb;
The vertical direction object block number of stereo-picture: Hb;
It is synthetic that the present invention can be achieved through the following technical solutions stereo-picture:
(1) gives grating LCD stereoscopic TV zoning, calculate the resolution in each viewpoint image source according to the display resolution of grating LCD stereoscopic television LCD panel
Present digital high-definition television widescreen LCD that adopt 16: 9, the present invention chooses viewpoint number N=8, and three-dimensional display is divided into eight zones of 4X2, the image of each corresponding viewpoint in zone more.With the TV LCD panel upper left corner is starting point, presses row major and gives region labeling, and the image of corresponding first viewpoint in zone, the upper left corner (1,1) is followed successively by LCD panel zone and visual point image work correspondence by row major.Therefore the resolution of each visual point image is:
Wv=W/4;
Hv=H/2;
(2) according to the resolution of viewpoint image, the stereopsis identical with the stereoscopic television LCD panel display resolution is divided into the object block identical with viewpoint resolution
Stereopsis has the resolution identical with the LCD panel.The object block of a 4X2 pixel of the corresponding stereo-picture of each pixel of viewpoint image.Therefore, can be divided into WbXHb object block to stereo-picture.Therefore, the ranks number of stereopsis object block is identical with the resolution of each visual point image, that is: Wb=W/4, Hb=H/2.An object block of the corresponding stereo-picture of first sub-pixel R of each pixel of many viewpoint image.
(3) determine the angle of grating and stereoscopic television LCD panel vertical direction
For with being filled in the single grating fringe of each pixel of visual point image, can simplify padding to a suitable angle with grating is tilting.The present invention selects the definite hypotenuse of the inclination angle selection of grating fringe twice long with the minor face of a sub-pixel rectangle and the length length of side and the angle of LCD panel vertical direction, calculates the angle of grating fringe and stereo display plane vertical direction:
θ=tan
-1(1/6)=9.4623°
Select the angle in the following formula to eliminate the interference of light that causes because of the slit between the LCD panel sub-pixel.In order to guarantee the RGB sub-pixel by from left to right arranging, the incline direction choosing of grating fringe is tilted to the left simultaneously.The layout of grating fringe as shown in Figure 2.
(4) determine the position of each sub-pixel on corresponding target block on the stereopsis of each pixel on every viewpoint image
After grating is tilting, was square at sub-pixel on the visual point image originally and transformed on the stereo-picture sub-pixel by grating fringe direction hash.As shown in Figure 3.
For the view picture stereo-picture, the filling of each object block can not be filled in proper order by the label of figure three-dimensional display multi-view image.In order to make the observer produce stereoscopic vision in different positions and angle when watching stereo-picture, stereo-picture enters observer's two eye pattern pictures behind grating beam splitting parallax should equate.The arrangement mode of each visual point image sub-pixel is as shown in Figure 4 on first object block of Que Dinging thus.
With the grating slope direction is the path, fills complete stereo-picture, synthetic finishing.
With LCD panel plane 2D resolution is that the digital high-definition stereoscopic TV of 1920X1080 is an example, according to inclination angle shown in the accompanying drawing 2 grating is installed.The resolution that calculates visual point image is Wv=[1920/4]=480, Hv=[1080/2]=540, wherein [] representative rounds operation, gathers multi-view image according to this resolution, and visual point image is carried out mark in proper order by accompanying drawing 1 view respectively.
With resolution is that 1920X1080 target stereo-picture is divided object block, total Wb=Wv=480 row, the capable object block of Hb=Hv=540.
At first fill first object block.Get first pixel on first visual point image, it is that basic point is filled that each pixel is filled with sub-pixel R, in accompanying drawing 4 first object block, find out the first visual point image R sub-pixel label location, then first sub-pixel R on first visual point image is filled up, according to the grating fringe direction, second sub-pixel G is filled in following two delegation's next columns of first sub-pixel R, and the 3rd sub-pixel B is filled in the following two row next columns of G.The rest may be inferred, fills whole stereo-picture.According to said method He Cheng stereo-picture can be obtained good stereoeffect.
In conjunction with the accompanying drawings the present invention has been carried out exemplary description above; obviously specific implementation of the present invention is not subjected to the restriction of aforesaid way; as long as the various improvement of having adopted method design of the present invention and technical scheme to carry out; or directly apply to other occasion without improvement, all within protection scope of the present invention.