A kind of method of regulating the 3D rendering effect that shows through the right and left eyes image blendTechnical field
The present invention relates to 3D rendering and show the field, relate in particular to a kind of method of regulating the 3D rendering effect that shows through the right and left eyes image blend.
Background technology
3D (Three Dimensions; Promptly three-dimensional) technology is exactly to be implemented on the basis of original two-dimensional image to increase one dimension; The object seen of our eyes is three-dimensional at ordinary times; Differentiation about not only having on the plane also has the differentiation of front and back, distance, so feel that the object of seeing is three-dimensional.Produce this relief process: eyes are in observing scene; Because two eyes are at a distance of about 60mm, can be from two different viewed scenery, two images that arrive soon are also inequality; Will form parallax; Brain to two observed have nuance image handle, just formed far and near different depth effect, be three-dimensional sensation thereby produce scenery.
3D technical development in recent years is rapid; 3D The Application of Technology scope is expansion gradually also; Have towards the exploitation and the making of the culture and arts series products of visual performance classes such as video display animation, animation, recreation; Have towards the design and the production of physical products in kind such as automobile, aircraft, household electrical appliances, furniture, also have towards the emulation of the mutual virtual reality of human and environment and simulate etc.Specifically comprise: 3D software industry, 3D hardware industry, digital entertainment industry, manufacturing industry, building industry, virtual reality, geographical letter GIS, 3D the Internet or the like.
By the 3D film that people knew is exactly to utilize people's eyes to watch the film of the produced stereoeffect of different parallax of motion picture screen angle and convergence function making.Two width of cloth pictures overlap in the screen during this motion picture projection; Special glasses or curtain previous irradiation shape half-cone lenticulation through spectators make spectators' left eye see the picture of taking from LOOK LEFT, and right eye is seen the picture of taking from LOOK RIGHT; Convergence function through eyes synthesizes stereoscopic vision image.
In the prior art, the effect that 3D rendering shows is unsatisfactory, and the 3D film is because two parallax can make brain produce three-dimensional sensation; Eye's lens will correspondingly be regulated when the image distance changes, and when parallax exceeds safe range, promptly the far and near distance that changes of the image of right and left eyes is when excessive; Human eye can't adapt to focusing control change; So under the situation of watching the 3D film for a long time, human eye can produce fatigue because of adapting to the parallax variation rapidly, even dizzy.
Summary of the invention
For addressing the above problem; The embodiment of the invention provides a kind of method of regulating the 3D rendering effect that shows through the right and left eyes image blend; Parallax through two eye pattern pictures about regulating parallax and making avoids people watching the 3D film to cause the sensation of eye fatigue for a long time within safe range.
For achieving the above object, the embodiment of the invention provides a kind of and has shown the method for regulating the 3D rendering effect through the right and left eyes image blend, may further comprise the steps:
Receive left-eye image and eye image;
Through hybrid algorithm said left-eye image and eye image are carried out processes pixel and mixed display, said processes pixel is specially, and said left-eye image and eye image account for 50% pixel value respectively;
Result according to said mixed display regulates said left-eye image and said eye image;
Receive the result and the output of said adjusting.
Said mixed display is specially:
Through the Difference algorithm said left-eye image and eye image pixel value difference are shown that with mixed mode the pixel value something in common shows with grey.
Said result according to said mixed display regulates said left-eye image and said eye image and is specially:
About two eye patterns come out as the difference mark, something in common shows the degree of depth with correcting image with grey, the object of different depth about to form the parallax of image in two different, the degree of depth through correcting image just can be adjusted to parallax within the safe range.
Compared with prior art, embodiments of the invention have the following advantages: through receiving left-eye image and eye image; Through hybrid algorithm said left-eye image and eye image are carried out processes pixel and mixed display, said processes pixel is specially, and said left-eye image and eye image account for 50% pixel value respectively; Client is regulated said left-eye image and said eye image according to the result of said mixed display; Receive the also output of result of said adjusting, the display effect that realizes regulating 3D rendering overcomes people's eyes when watching the 3D film and can't adapt to parallax and change and the tired problem of generation because of exceeding safe range.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the embodiment of the invention, a kind of flow chart that shows the method for regulating the 3D rendering effect through the right and left eyes image blend.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Embodiments of the invention provide a kind of and shown the method for regulating the 3D rendering effect through the right and left eyes image blend, and are as shown in Figure 1, specifically may further comprise the steps:
Step s101, reception left-eye image and eye image;
Simple eye image can only be the image on plane, can't form third dimension, so 3D imaging just must need to receive and handle the data of left-eye image and eye image two paths, through about two parallax formation third dimension.
Step s102, through hybrid algorithm said left-eye image and eye image are carried out processes pixel and mixed display, said processes pixel is specially, and said left-eye image and eye image account for 50% pixel value respectively;
Said hybrid algorithm specifically comprises:
Two image respectively accounts for half the pixel value and mixes about output, makes the stack that on monitor window, can directly see two observed images, and observed figure of eyes just.
Because people's images of left and right eyes has spacing, cause two visual angle to have fine distinction, and the scenery displacement a little that such difference can let two eyes observe respectively.Exactly because the displacement of parallax, the organic synthesis through people's brain has just produced three-dimensional visual effect.Usually in the process of handling image, can only see the data of single pass 1920*540 pixel value, but in the 3D film, need the data of two passages, the i.e. data of 1920*1080 pixel value.Therefore will through hybrid algorithm with about two data superpose, just to about the mixing that respectively accounts for half pixel value of two eye pattern pictures.
Said mixed display is specially:
Through the Difference algorithm said left-eye image and eye image pixel value difference are shown that with mixed mode the pixel value something in common shows with grey.
Step s103, said left-eye image and said eye image are regulated according to the result of said mixed display;
Said result according to said mixed display regulates said left-eye image and said eye image and is specially:
About two eye patterns come out as the difference mark, something in common shows the degree of depth with correcting image with grey, the object of different depth about to form the parallax of image in two different, the degree of depth through correcting image just can be adjusted to parallax within the safe range.Brain can reflect the degree of depth and the distance of object according to the difference of this parallax, is adjusted in the safe disparity range, guarantees that disparity range does not exceed safe range.
Step s104, the result who receives said adjusting and output.
Through mixed display parallax being adjusted to when just handling 3D rendering within the safe range is the data of two passages of separate processes, also will data be exported through a passage after handling.
The present invention has realized following beneficial effect: through receiving left-eye image and eye image; Through hybrid algorithm said left-eye image and eye image are carried out processes pixel and mixed display, said processes pixel is specially, and said left-eye image and eye image account for 50% pixel value respectively; Client is regulated said left-eye image and said eye image according to the result of said mixed display; Receive the also output of result of said adjusting, the display effect that realizes regulating 3D rendering overcomes people's eyes when watching the 3D film and can't adapt to parallax and change and the tired problem of generation because of exceeding safe range.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product is stored in the storage medium, comprises that some instructions are with so that a computer equipment (can be personal computer, server or the network equipment etc.) is carried out the described method of each embodiment of the present invention.
The above only is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.