WO2022205010A1 - Three-dimensional image processing method and apparatus, and storage medium and electronic device - Google Patents

Three-dimensional image processing method and apparatus, and storage medium and electronic device Download PDF

Info

Publication number
WO2022205010A1
WO2022205010A1 PCT/CN2021/084151 CN2021084151W WO2022205010A1 WO 2022205010 A1 WO2022205010 A1 WO 2022205010A1 CN 2021084151 W CN2021084151 W CN 2021084151W WO 2022205010 A1 WO2022205010 A1 WO 2022205010A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixel
area
mixed sub
pixel value
sub
Prior art date
Application number
PCT/CN2021/084151
Other languages
French (fr)
Chinese (zh)
Inventor
杨亚军
Original Assignee
深圳市立体通科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市立体通科技有限公司 filed Critical 深圳市立体通科技有限公司
Priority to PCT/CN2021/084151 priority Critical patent/WO2022205010A1/en
Publication of WO2022205010A1 publication Critical patent/WO2022205010A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/10Processing, recording or transmission of stereoscopic or multi-view image signals
    • H04N13/106Processing image signals
    • H04N13/122Improving the 3D impression of stereoscopic images by modifying image signal contents, e.g. by filtering or adding monoscopic depth cues
    • H04N13/125Improving the 3D impression of stereoscopic images by modifying image signal contents, e.g. by filtering or adding monoscopic depth cues for crosstalk reduction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/30Image reproducers
    • H04N13/302Image reproducers for viewing without the aid of special glasses, i.e. using autostereoscopic displays
    • H04N13/305Image reproducers for viewing without the aid of special glasses, i.e. using autostereoscopic displays using lenticular lenses, e.g. arrangements of cylindrical lenses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/30Image reproducers
    • H04N13/302Image reproducers for viewing without the aid of special glasses, i.e. using autostereoscopic displays
    • H04N13/317Image reproducers for viewing without the aid of special glasses, i.e. using autostereoscopic displays using slanted parallax optics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/30Image reproducers
    • H04N13/324Colour aspects

Definitions

  • the present invention relates to the field of naked-eye 3D technology, and more particularly, to a three-dimensional image processing method, device, storage medium and electronic device.
  • the core difficulty of naked-eye 3D technology is to reasonably reduce or eliminate the crosstalk between the left and right eye views.
  • the combination of human eye tracking technology can keep the eyes in the correct viewing area, the crosstalk situation has been greatly improved, and the 3D imaging quality has also improved.
  • the naked-eye 3D content adopts the left and right source images staggered.
  • the grating will form a left and right view dividing line, which will split the left and right source images.
  • a 3D stereoscopic image is formed in the brain.
  • the display screen is composed of numerous RGB light-emitting sub-pixels, and each light-emitting area can only select one of the color commands in the left and right source images for display.
  • all single RGB light-emitting sub-pixels that are connected to the left and right source images will be forcibly divided by the view dividing line generated by the raster, resulting in the left view may carry part of the right source image information, and the right view may also carry part of the left source. image information, which eventually leads to crosstalk in 3D stereoscopic images.
  • the set of single RGB light-emitting sub-pixel display areas divided by the left and right view dividing lines in all source images is called a crosstalk area.
  • the prior art solution is to reduce the number of grating slits as much as possible and expand the grating slit gap, thereby reducing the crosstalk area caused by grating segmentation.
  • the prior art solution has complex algorithms, low image processing efficiency, and poor image edge fullness.
  • the technical problem to be solved by the present invention is to provide a three-dimensional image processing method, device, storage medium and electronic device in view of the above-mentioned defects of the prior art.
  • the technical scheme adopted by the present invention to solve the technical problem is: constructing a three-dimensional image processing method, comprising the following steps:
  • S1 Simulate the layout of the three-dimensional image through the layout algorithm
  • S2 Calculate the area P1 of each mixed sub-pixel in the crosstalk area in the left view and the area P2 in the right view;
  • the area comparison result includes: the area P1 of the mixed sub-pixel located in the left view is larger than the area P2 of the right view, and the area P1 of the mixed sub-pixel located in the left view is smaller than The area P2 located in the right view, or the area P1 located in the left view of the mixed sub-pixel is equal to the area P2 located in the right view.
  • the step S5 specifically includes:
  • the pixel value t1 of the mixed sub-pixel located in the left view is given to the mixed sub-pixel in the final pixel value t when the sub-pixel is displayed in a layout;
  • the pixel value t2 of the mixed sub-pixel located in the right view is assigned to the final pixel value t when the mixed sub-pixel is displayed in a layout;
  • the present invention also provides a three-dimensional image processing device, comprising:
  • the simulation layout unit is used to simulate the layout of the three-dimensional image through the layout algorithm
  • a calculation unit configured to calculate the area P1 of each mixed sub-pixel in the crosstalk area in the left view and the area P2 in the right view;
  • an obtaining unit for obtaining the pixel value t1 of the mixed sub-pixel located in the left view and the pixel value t2 of the right view;
  • a comparison unit configured to compare the area P1 of the mixed sub-pixel located in the left view with the area P2 located in the right view to obtain an area comparison result
  • a pixel value determination unit configured to determine the final pixel to be assigned when the mixed sub-pixels are displayed when the mixed sub-pixels are displayed according to the area comparison result, the pixel value t1 of the mixed sub-pixel in the left view and the pixel value t2 in the right view value t.
  • the area comparison result includes: the area P1 of the mixed sub-pixel located in the left view is larger than the area P2 of the right view, and the area P1 of the mixed sub-pixel located in the left view is smaller than The area P2 located in the right view, or the area P1 located in the left view of the mixed sub-pixel is equal to the area P2 located in the right view.
  • the pixel value determination unit includes:
  • the first sub-determination unit is configured to assign the pixel value t1 of the mixed sub-pixel in the left view to the mixed sub-pixel arrangement when the area P1 of the mixed sub-pixel in the left view is greater than the area P2 of the right view The final pixel value t when displayed;
  • the second sub-determination unit is configured to assign the pixel value t2 of the mixed sub-pixel in the right view to the mixed sub-pixel layout when the area P2 of the mixed sub-pixel in the right view is greater than the area P1 of the left view The final pixel value t when displayed;
  • the third sub-determining unit is configured to, when the area P1 of the mixed sub-pixel located in the left view is equal to the area P2 of the right view, set the pixel value t1 of the mixed sub-pixel in the left view or the mixed sub-pixel in the right view.
  • the pixel value t2 of the view is assigned to the final pixel value t when the mixed sub-pixel arrangement is displayed.
  • the present invention also provides a storage medium, which stores a program, and when the program is executed by a processor, implements the above-mentioned three-dimensional image processing method.
  • the present invention also provides an electronic device, comprising:
  • a display panel for displaying the three-dimensional image processed by the processor
  • a spectroscopic device disposed on the display panel, is used for performing spectroscopic processing on the three-dimensional image displayed on the display panel.
  • the three-dimensional image processing method provided by the present invention does not need to replace the optical device (spectroscopy device), and only by arranging the mixed sub-pixels in the crosstalk area
  • the naked-eye 3D imaging quality can be improved by interfering with the pixel values during display.
  • the present invention is different from the prior art technology that uses the number of grating slits to expand the grating slit gap, thereby reducing the crosstalk area caused by the grating division.
  • the solution will not cause the user viewing angle to become smaller, the optimal viewing distance to be closer to the screen, and the range to become smaller.
  • the algorithm of the present invention is simple and efficient, and can obviously improve the fullness of the image edge.
  • Fig. 1 is a schematic diagram of naked-eye 3D layout display
  • Fig. 2 is the schematic diagram of naked eye 3D crosstalk area
  • 3 is a schematic diagram of a naked-eye 3D hybrid sub-pixel
  • FIG. 4 is a schematic flowchart of a three-dimensional image processing method provided by an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of the three-dimensional image processing apparatus provided in the fourth embodiment.
  • the naked-eye 3D content is displayed on the display screen by staggering the left and right source images.
  • the raster will form a view area dividing line (ie, the left and right view dividing line) to separate the left and right source images.
  • a 3D stereo image is formed in the brain.
  • FIG. 4 is a schematic flowchart of a three-dimensional image processing method provided by an embodiment of the present invention.
  • the three-dimensional image processing method includes the following steps:
  • S1 Simulate the layout of the three-dimensional image through the layout algorithm.
  • an existing layout algorithm can be used to simulate the layout of the three-dimensional image. That is, according to the specifications of the two-dimensional display screen, the specifications of the grating, the distance between the grating and the two-dimensional display screen, and the viewing distance of the user that needs to be matched, the corresponding matching pattern on the two-dimensional display screen in each grating period is calculated. Then, according to the number of viewpoints, confirm whether each sub-pixel in each image arrangement cycle corresponds to the left source image (left eye image) or the right source image (right eye image); finally, according to the left source image and right source image, The pixel value of each sub-pixel is simulated and assigned, that is, the simulated layout of the three-dimensional image is completed.
  • S2 Calculate the area P1 of each mixed sub-pixel in the left view and the area P2 of the right view in the crosstalk area.
  • the area P1 in the left view and the area P2 in the right view of each mixed sub-pixel in the crosstalk region can be calculated according to the specifications of the two-dimensional display screen and the specifications of the grating.
  • the area P1 in the left view and the area P2 in the right view area can be simulated and assigned to the corresponding sub-pixels respectively. Pixel value to ensure that the content of the left source image is in the left view, and the content of the right source image is in the right view.
  • each mixed sub-pixel in the crosstalk area can only select one of the color instructions in the left and right source images for display, that is, each mixed sub-pixel. Only one hue value and pixel value can be displayed, which will cause the user to see the right view information with the left eye or the left view information with the right eye when viewing, thereby forming crosstalk. Then, it is necessary to intervene the pixel values of the mixed sub-pixels through an algorithm to determine the final pixel value t that needs to be assigned when the mixed sub-pixels are displayed, thereby reducing crosstalk and improving the imaging quality of the three-dimensional image.
  • S4 Compare the area P1 of the mixed sub-pixel located in the left view with the area P2 located in the right view to obtain an area comparison result.
  • the area comparison results include: the area P1 of the mixed sub-pixel located in the left view is larger than the area P2 of the right view, the area P1 of the mixed sub-pixel located in the left view is smaller than the area P2 of the right view, or the mixed sub-pixel is located in the left view.
  • the area P1 is equal to the area P2 in the right view.
  • step S5 specifically includes: if the area P1 of the mixed sub-pixel located in the left view is greater than the area P2 of the right view, then assigning the pixel value t1 of the mixed sub-pixel located in the left view to the final result when the mixed sub-pixel is displayed in the layout.
  • Pixel value t if the area P2 of the mixed sub-pixel in the right view is greater than the area P1 in the left view, the pixel value t2 of the mixed sub-pixel in the right view is assigned to the final pixel value t when the mixed sub-pixel is displayed;
  • the area P1 of the sub-pixel in the left view is equal to the area P2 in the right view, then the pixel value t1 of the mixed sub-pixel in the left view or the pixel value t2 of the mixed sub-pixel in the right view is assigned to the final pixel of the mixed sub-pixel layout display. value t.
  • the three-dimensional image processing method adopts the loss reduction core method of taking large and discarding to improve the influence of the crosstalk area on the left and right views.
  • a single mixed sub-pixel is divided into two parts by the left and right view dividing line, , by comparing the respective areas of the two parts, retaining the pixel value of the part with a larger area after the mixed sub-pixel is divided, and directly discarding the color information of the part with a relatively small area; or, when the respective areas of the two parts are equal, keep the Any part of the pixel value can improve the influence of the crosstalk area on the left and right views, effectively improve the imaging quality of the three-dimensional image, the image edge is full, and the algorithm is simple and efficient.
  • the present invention further provides a three-dimensional image processing apparatus, and the three-dimensional image processing apparatus can be used to implement the three-dimensional image processing method disclosed in the embodiments of the present invention.
  • the three-dimensional image processing device includes:
  • the simulation layout unit 100 is used to simulate layout of the three-dimensional image through a layout algorithm.
  • the calculation unit 200 is configured to calculate the area P1 of each mixed sub-pixel located in the left view and the area P2 of the right view in the crosstalk area.
  • the obtaining unit 300 is configured to obtain the pixel value t1 of the mixed sub-pixel in the left view and the pixel value t2 in the right view.
  • the comparing unit 400 is configured to compare the area P1 of the mixed sub-pixel located in the left view with the area P2 located in the right view to obtain an area comparison result.
  • the pixel value determination unit 500 is configured to determine the final pixel value t to be assigned when displaying the mixed sub-pixel layout according to the area comparison result, the pixel value t1 of the mixed sub-pixel in the left view and the pixel value t2 in the right view.
  • the area comparison result includes: the area P1 of the mixed sub-pixel located in the left view is larger than the area P2 of the right view, the area P1 of the mixed sub-pixel located in the left view is smaller than the area P2 of the right view, or the mixed sub-pixel is located in the left view.
  • the area P1 of the view is equal to the area P2 of the right view.
  • the pixel value determination unit 500 includes:
  • the first sub-determination unit is used to assign the pixel value t1 of the mixed sub-pixel in the left view to the final pixel value when the mixed sub-pixel is displayed in the layout when the area P1 of the mixed sub-pixel in the left view is greater than the area P2 of the right view t.
  • the second sub-determination unit is configured to assign the pixel value t2 of the mixed sub-pixel in the right view to the final pixel value when the mixed sub-pixel is displayed in the layout when the area P2 of the mixed sub-pixel in the right view is greater than the area P1 of the left view t.
  • the third sub-determination unit is configured to assign the pixel value t1 of the mixed sub-pixel in the left view or the pixel value t2 of the mixed sub-pixel in the right view when the area P1 of the mixed sub-pixel in the left view is equal to the area P2 of the right view The final pixel value t when the mixed sub-pixel layout is displayed.
  • the present invention also provides a storage medium storing a program, and when the program is executed by a processor, the three-dimensional image processing method provided by any embodiment of the present invention is implemented.
  • the storage medium includes but is not limited to random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or technical fields Any other form of storage medium known in the art.
  • the present invention also provides an electronic device, comprising:
  • the processor is configured to load a program to execute the three-dimensional image processing method provided by any embodiment of the present invention.
  • the display panel is used to display the three-dimensional image processed by the processor.
  • the spectroscopic device is arranged on the display panel and is used for performing spectroscopic processing on the three-dimensional image displayed on the display panel.
  • the electronic devices include, but are not limited to, smart phones, computers, smart TVs, vehicle-mounted terminals, advertising machines, game consoles, etc., that is, terminals with the function of playing images or videos.
  • Three-dimensional images include 3D pictures, 3D videos, 3D games, and the like.
  • the spectroscopic device can be selected from a lenticular grating optical film, a barrier parallax grating optical film, etc.
  • the spectroscopic device can be integrated with the display panel or separately provided with the display panel.
  • the three-dimensional image processing method and processing device provided by the embodiments of the present invention achieve the effect of improving the naked-eye 3D imaging quality by intervening in the pixel values of each mixed sub-pixel arrangement in the crosstalk area, without replacing optical devices (beam splitting device), the cost is lower, and it does not affect its viewing angle and the closest viewing distance and range. Further, the three-dimensional image processing method provided by the embodiment of the present invention has a simple algorithm, high efficiency, and good image edge fullness.
  • RAM random access memory
  • ROM read only memory
  • EEPROM electrically programmable ROM
  • EEPly erasable programmable ROM registers
  • hard disk removable disk
  • CD-ROM compact disc-read only memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

A three-dimensional image processing method and apparatus, and a storage medium and an electronic device. The method comprises: S1, performing simulated image arrangement on a three-dimensional image by means of an image arrangement algorithm; S2, with regard to each mixed sub-pixel in a crosstalk region, calculating the area P1 thereof in a left view and the area P2 thereof in a right view; S3, acquiring a pixel value t1 of the mixed sub-pixel in the left view and a pixel value t2 thereof in the right view; S4, comparing the area P1 of the mixed sub-pixel in the left view with the area P2 thereof in the right view, so as to obtain an area comparison result; and S5, according to the area comparison result, the pixel value t1 of the mixed sub-pixel in the left view and the pixel value t2 thereof in the right view, determining a final pixel value t that needs to be assigned to the mixed sub-pixel during image arrangement display. According to the method, by means of intervening in a pixel value of each mixed sub-pixel in a crosstalk region during image arrangement display, the influence of the crosstalk region on left and right views can be alleviated, the algorithm is simple and efficient, and an image edge has a good fullness, thereby effectively improving the naked-eye 3D imaging quality.

Description

三维图像处理方法、装置、存储介质及电子设备Three-dimensional image processing method, device, storage medium and electronic device 技术领域technical field
本发明涉及裸眼3D技术领域,更具体地说,涉及一种三维图像处理方法、装置、存储介质及电子设备。The present invention relates to the field of naked-eye 3D technology, and more particularly, to a three-dimensional image processing method, device, storage medium and electronic device.
背景技术Background technique
裸眼3D技术的核心难点是合理地降低或者消除左右眼视图的串扰,目前结合人眼跟踪技术可以让人眼始终保持在正确的视区范围内,串扰情况有了较大改善,3D成像质量也有一定提升,然而,在正常的视区内依然存在串扰区域。裸眼3D内容采用左右源图交错排列,3D内容在播放时,光栅会形成一条左右视图分割线,将左右源图进行割裂分离,左右眼在正确视区内看到对应的左右视图后,便在大脑中形成3D立体图像。The core difficulty of naked-eye 3D technology is to reasonably reduce or eliminate the crosstalk between the left and right eye views. At present, the combination of human eye tracking technology can keep the eyes in the correct viewing area, the crosstalk situation has been greatly improved, and the 3D imaging quality has also improved. Certainly improved, however, there are still areas of crosstalk within the normal viewing area. The naked-eye 3D content adopts the left and right source images staggered. When the 3D content is playing, the grating will form a left and right view dividing line, which will split the left and right source images. A 3D stereoscopic image is formed in the brain.
理论上,左源图与左视图、右源图与右视图保持一致就不会产生串扰现象。在现有的科技发展下,显示屏由无数RGB发光子像素组成,而每一个发光面积只能选择左右源图中其中一个色彩指令进行显示。技术实现的实际操作中,左右源图接轨的所有单个RGB发光子像素都会被光栅产生的视图分割线强行分割,造成的左视图可能会携带部分右源图信息,右视图也可能携带部分左源图信息,最终导致3D立体图像产生串扰。其中,所有源图中被左右视图分割线分割的单个RGB发光子像素显示区域的集合称为串扰区域。Theoretically, if the left source image is consistent with the left view and the right source image with the right view, crosstalk will not occur. Under the current technological development, the display screen is composed of numerous RGB light-emitting sub-pixels, and each light-emitting area can only select one of the color commands in the left and right source images for display. In the actual operation of the technical implementation, all single RGB light-emitting sub-pixels that are connected to the left and right source images will be forcibly divided by the view dividing line generated by the raster, resulting in the left view may carry part of the right source image information, and the right view may also carry part of the left source. image information, which eventually leads to crosstalk in 3D stereoscopic images. Among them, the set of single RGB light-emitting sub-pixel display areas divided by the left and right view dividing lines in all source images is called a crosstalk area.
现有技术方案是通过尽可能减少光栅的狭缝数量,扩大光栅狭缝间隙,从而减少被光栅分割造成的串扰区域,然而现有技术方案算法复杂,图像处理效率低,图像边缘饱满度差。The prior art solution is to reduce the number of grating slits as much as possible and expand the grating slit gap, thereby reducing the crosstalk area caused by grating segmentation. However, the prior art solution has complex algorithms, low image processing efficiency, and poor image edge fullness.
技术问题technical problem
本发明要解决的技术问题在于,针对现有技术的上述缺陷,提供一种三维图像处理方法、装置、存储介质及电子设备。The technical problem to be solved by the present invention is to provide a three-dimensional image processing method, device, storage medium and electronic device in view of the above-mentioned defects of the prior art.
技术解决方案technical solutions
本发明解决其技术问题所采用的技术方案是:构造一种三维图像处理方法,包括以下步骤:The technical scheme adopted by the present invention to solve the technical problem is: constructing a three-dimensional image processing method, comprising the following steps:
S1:通过排图算法对三维图像进行模拟排图;S1: Simulate the layout of the three-dimensional image through the layout algorithm;
S2:计算串扰区域内各混合子像素位于左视图的面积P1和位于右视图的面积P2;S2: Calculate the area P1 of each mixed sub-pixel in the crosstalk area in the left view and the area P2 in the right view;
S3:获取所述混合子像素位于左视图的像素值t1和位于右视图的像素值t2;S3: Obtain the pixel value t1 of the mixed sub-pixel in the left view and the pixel value t2 in the right view;
S4:将所述混合子像素位于左视图的面积P1与位于右视图的面积P2进行比较,获得面积比较结果;S4: Compare the area P1 of the mixed sub-pixel located in the left view with the area P2 located in the right view to obtain an area comparison result;
S5:根据所述面积比较结果、所述混合子像素位于左视图的像素值t1和位于右视图的像素值t2,确定所述混合子像素排图显示时需赋予的最终像素值t。S5: According to the area comparison result, the pixel value t1 of the mixed sub-pixel in the left view and the pixel value t2 in the right view, determine the final pixel value t to be assigned when the mixed sub-pixel layout is displayed.
在本发明所述的三维图像处理方法中,所述面积比较结果包括:所述混合子像素位于左视图的面积P1大于位于右视图的面积P2、所述混合子像素位于左视图的面积P1小于位于右视图的面积P2、或者所述混合子像素位于左视图的面积P1等于位于右视图的面积P2。In the three-dimensional image processing method of the present invention, the area comparison result includes: the area P1 of the mixed sub-pixel located in the left view is larger than the area P2 of the right view, and the area P1 of the mixed sub-pixel located in the left view is smaller than The area P2 located in the right view, or the area P1 located in the left view of the mixed sub-pixel is equal to the area P2 located in the right view.
在本发明所述的三维图像处理方法中,所述步骤S5具体包括:In the three-dimensional image processing method of the present invention, the step S5 specifically includes:
若所述混合子像素位于左视图的面积P1大于位于右视图的面积P2,则将所述混合子像素位于左视图的像素值t1赋予所述混合子像素排图显示时的最终像素值t;If the area P1 of the mixed sub-pixel located in the left view is greater than the area P2 of the right view, the pixel value t1 of the mixed sub-pixel located in the left view is given to the mixed sub-pixel in the final pixel value t when the sub-pixel is displayed in a layout;
若所述混合子像素位于右视图的面积P2大于位于左视图的面积P1,则将所述混合子像素位于右视图的像素值t2赋予所述混合子像素排图显示时的最终像素值t;If the area P2 of the mixed sub-pixel located in the right view is greater than the area P1 of the left view, the pixel value t2 of the mixed sub-pixel located in the right view is assigned to the final pixel value t when the mixed sub-pixel is displayed in a layout;
若所述混合子像素位于左视图的面积P1等于位于右视图的面积P2,则将所述混合子像素位于左视图的像素值t1或者所述混合子像素位于右视图的像素值t2赋予所述混合子像素排图显示时的最终像素值t。If the area P1 of the mixed sub-pixel in the left view is equal to the area P2 in the right view, assign the pixel value t1 of the mixed sub-pixel in the left view or the pixel value t2 of the mixed sub-pixel in the right view to the The final pixel value t when the mixed sub-pixel layout is displayed.
本发明还提供一种三维图像处理装置,包括:The present invention also provides a three-dimensional image processing device, comprising:
模拟排图单元,用于通过排图算法对三维图像进行模拟排图;The simulation layout unit is used to simulate the layout of the three-dimensional image through the layout algorithm;
计算单元,用于计算串扰区域内各混合子像素位于左视图的面积P1和位于右视图的面积P2;a calculation unit, configured to calculate the area P1 of each mixed sub-pixel in the crosstalk area in the left view and the area P2 in the right view;
获取单元,用于获取所述混合子像素位于左视图的像素值t1和位于右视图的像素值t2;an obtaining unit for obtaining the pixel value t1 of the mixed sub-pixel located in the left view and the pixel value t2 of the right view;
比较单元,用于将所述混合子像素位于左视图的面积P1与位于右视图的面积P2进行比较,获得面积比较结果;a comparison unit, configured to compare the area P1 of the mixed sub-pixel located in the left view with the area P2 located in the right view to obtain an area comparison result;
像素值确定单元,用于根据所述面积比较结果、所述混合子像素位于左视图的像素值t1和位于右视图的像素值t2,确定所述混合子像素排图显示时需赋予的最终像素值t。A pixel value determination unit, configured to determine the final pixel to be assigned when the mixed sub-pixels are displayed when the mixed sub-pixels are displayed according to the area comparison result, the pixel value t1 of the mixed sub-pixel in the left view and the pixel value t2 in the right view value t.
在本发明所述的三维图像处理装置中,所述面积比较结果包括:所述混合子像素位于左视图的面积P1大于位于右视图的面积P2、所述混合子像素位于左视图的面积P1小于位于右视图的面积P2、或者所述混合子像素位于左视图的面积P1等于位于右视图的面积P2。In the three-dimensional image processing device of the present invention, the area comparison result includes: the area P1 of the mixed sub-pixel located in the left view is larger than the area P2 of the right view, and the area P1 of the mixed sub-pixel located in the left view is smaller than The area P2 located in the right view, or the area P1 located in the left view of the mixed sub-pixel is equal to the area P2 located in the right view.
在本发明所述的三维图像处理装置中,所述像素值确定单元包括:In the three-dimensional image processing device of the present invention, the pixel value determination unit includes:
第一子确定单元,用于在所述混合子像素位于左视图的面积P1大于位于右视图的面积P2,则将所述混合子像素位于左视图的像素值t1赋予所述混合子像素排图显示时的最终像素值t;The first sub-determination unit is configured to assign the pixel value t1 of the mixed sub-pixel in the left view to the mixed sub-pixel arrangement when the area P1 of the mixed sub-pixel in the left view is greater than the area P2 of the right view The final pixel value t when displayed;
第二子确定单元,用于在所述混合子像素位于右视图的面积P2大于位于左视图的面积P1,则将所述混合子像素位于右视图的像素值t2赋予所述混合子像素排图显示时的最终像素值t;The second sub-determination unit is configured to assign the pixel value t2 of the mixed sub-pixel in the right view to the mixed sub-pixel layout when the area P2 of the mixed sub-pixel in the right view is greater than the area P1 of the left view The final pixel value t when displayed;
第三子确定单元,用于在所述混合子像素位于左视图的面积P1等于位于右视图的面积P2,则将所述混合子像素位于左视图的像素值t1或者所述混合子像素位于右视图的像素值t2赋予所述混合子像素排图显示时的最终像素值t。The third sub-determining unit is configured to, when the area P1 of the mixed sub-pixel located in the left view is equal to the area P2 of the right view, set the pixel value t1 of the mixed sub-pixel in the left view or the mixed sub-pixel in the right view The pixel value t2 of the view is assigned to the final pixel value t when the mixed sub-pixel arrangement is displayed.
本发明还提供一种存储介质,其存储有程序,所述程序被处理器执行时实现如上所述的三维图像处理方法。The present invention also provides a storage medium, which stores a program, and when the program is executed by a processor, implements the above-mentioned three-dimensional image processing method.
本发明还提供一种电子设备,包括:The present invention also provides an electronic device, comprising:
存储器,用于存储程序;memory for storing programs;
处理器,用于加载所述程序,以执行如上所述的三维图像处理方法;a processor for loading the program to execute the above three-dimensional image processing method;
显示面板,用于显示所述处理器处理后的三维图像;a display panel for displaying the three-dimensional image processed by the processor;
分光装置,设置在所述显示面板上,用于对所述显示面板显示的三维图像进行分光处理。A spectroscopic device, disposed on the display panel, is used for performing spectroscopic processing on the three-dimensional image displayed on the display panel.
有益效果beneficial effect
实施本发明的三维图像处理方法、装置、存储介质及电子设备,具有以下有益效果:本发明提供的三维图像处理方法无需替换光学器件(分光装置),仅通过对串扰区域各混合子像素排图显示时的像素值进行干预,即可提高裸眼3D的成像质量,而且,本发明不同于现有技术通过光栅的狭缝数量,扩大光栅狭缝间隙,从而减少被光栅分割造成的串扰区域的技术方案,不会造成用户观看可视角度变小,最佳可视距离离屏幕变近,范围变小的问题。另外,本发明算法简单,效率高,可以明显提升图像边缘饱满度。Implementing the three-dimensional image processing method, device, storage medium and electronic device of the present invention has the following beneficial effects: the three-dimensional image processing method provided by the present invention does not need to replace the optical device (spectroscopy device), and only by arranging the mixed sub-pixels in the crosstalk area The naked-eye 3D imaging quality can be improved by interfering with the pixel values during display. Moreover, the present invention is different from the prior art technology that uses the number of grating slits to expand the grating slit gap, thereby reducing the crosstalk area caused by the grating division. The solution will not cause the user viewing angle to become smaller, the optimal viewing distance to be closer to the screen, and the range to become smaller. In addition, the algorithm of the present invention is simple and efficient, and can obviously improve the fullness of the image edge.
附图说明Description of drawings
下面将结合附图及实施例对本发明作进一步说明,附图中:The present invention will be further described below in conjunction with the accompanying drawings and embodiments, in which:
图1是裸眼3D排图显示的示意图;Fig. 1 is a schematic diagram of naked-eye 3D layout display;
图2是裸眼3D串扰区域的示意图;Fig. 2 is the schematic diagram of naked eye 3D crosstalk area;
图3是裸眼3D混合子像素的示意图;3 is a schematic diagram of a naked-eye 3D hybrid sub-pixel;
图4是本发明实施例提供的三维图像处理方法的流程示意图;4 is a schematic flowchart of a three-dimensional image processing method provided by an embodiment of the present invention;
图5是实施例四提供的三维图像处理装置的结构示意图。FIG. 5 is a schematic structural diagram of the three-dimensional image processing apparatus provided in the fourth embodiment.
本发明的最佳实施方式BEST MODE FOR CARRYING OUT THE INVENTION
为了对本发明的技术特征、目的和效果有更加清楚的理解,现对照附图详细说明本发明的具体实施方式。In order to have a clearer understanding of the technical features, objects and effects of the present invention, the specific embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
为清楚说明本发明的技术方案,下面结合图1、图2、图3说明裸眼3D技术中的一些相关概念。In order to clearly illustrate the technical solutions of the present invention, some related concepts in the naked-eye 3D technology are described below with reference to FIG. 1 , FIG. 2 , and FIG. 3 .
如图1所示,裸眼3D内容采用左右源图交错排列的方式在显示屏上排图显示,3D内容在播放时,光栅会形成一条视区分割线(即左右视图分割线)将左右源图进行割裂分离,左右眼在正确视区内看到对应的左右视图后,便在大脑中形成3D立体图像。As shown in Figure 1, the naked-eye 3D content is displayed on the display screen by staggering the left and right source images. When the 3D content is played, the raster will form a view area dividing line (ie, the left and right view dividing line) to separate the left and right source images. After splitting and separation, after the left and right eyes see the corresponding left and right views in the correct visual area, a 3D stereo image is formed in the brain.
然而,如图2所示,现有的裸眼3D技术方案在设置光栅时,由于贴合精度以及避免摩尔纹的问题,通常采用倾斜设置。采用倾斜设计时,左右源图接轨处的所有单个RGB发光子像素(红色、绿色、蓝色发光子像素)都会被光栅产生的视图分割线强行分割,造成的左视图可能会携带部分右源图信息,右视图也可能携带部分左源图信息,从而导致本应分别进入用户左右眼的图像均带有另一个眼睛所应接收的图像,最终导致3D立体图像产生串扰,用户会产生眩晕感,使用体验差。其中,所有源图中被视区分割线分割的单个RGB发光子像素显示区域的集合称为串扰区域,也称为混合区域。串扰区域内的子像素称为混合子像素。However, as shown in FIG. 2 , when arranging gratings in the existing naked-eye 3D technical solutions, due to the problems of fitting accuracy and avoiding moiré, an oblique arrangement is usually adopted. When the inclined design is adopted, all single RGB light-emitting sub-pixels (red, green, and blue light-emitting sub-pixels) where the left and right source images meet will be forcibly divided by the view dividing line generated by the grating, resulting in that the left view may carry part of the right source image. information, the right view may also carry part of the left source image information, so that the images that should enter the user's left and right eyes contain the images that the other eye should receive, which eventually leads to crosstalk in the 3D stereo image, and the user will feel dizzy. Poor experience. Wherein, the set of single RGB light-emitting sub-pixel display areas divided by the view area dividing line in all source images is called a crosstalk area, also called a mixed area. Subpixels within the crosstalk region are called hybrid subpixels.
进一步地,如图3所示,混合子像素被视区分割线分割后,其位于左视图的面积用P1表示,其位于右视图的面积用P2表示。Further, as shown in FIG. 3 , after the mixed sub-pixel is divided by the view area dividing line, its area in the left view is represented by P1, and its area in the right view is represented by P2.
下面结合实施例详细说明本发明的三维图像处理方法。The three-dimensional image processing method of the present invention will be described in detail below with reference to the embodiments.
参考图4,图4为本发明实施例提供的三维图像处理方法的流程示意图。Referring to FIG. 4 , FIG. 4 is a schematic flowchart of a three-dimensional image processing method provided by an embodiment of the present invention.
如图4所示,该三维图像处理方法,包括以下步骤:As shown in Figure 4, the three-dimensional image processing method includes the following steps:
S1:通过排图算法对三维图像进行模拟排图。S1: Simulate the layout of the three-dimensional image through the layout algorithm.
具体的,可通过现有排图算法对三维图像进行模拟排图。即,首先根据二维显示屏的规格,光栅的规格,光栅与二维显示屏放置距离的远近,需要匹配的用户观看距离,计算出每个光栅周期内二维显示屏上对应匹配的排图周期;然后,根据视点的多少,确认每个排图周期内的各子像素对应为左源图(左眼图像)还是右源图(右眼图像);最后根据左源图和右源图,对各个子像素的像素值进行模拟赋值,即完成三维图像的模拟排图。Specifically, an existing layout algorithm can be used to simulate the layout of the three-dimensional image. That is, according to the specifications of the two-dimensional display screen, the specifications of the grating, the distance between the grating and the two-dimensional display screen, and the viewing distance of the user that needs to be matched, the corresponding matching pattern on the two-dimensional display screen in each grating period is calculated. Then, according to the number of viewpoints, confirm whether each sub-pixel in each image arrangement cycle corresponds to the left source image (left eye image) or the right source image (right eye image); finally, according to the left source image and right source image, The pixel value of each sub-pixel is simulated and assigned, that is, the simulated layout of the three-dimensional image is completed.
S2:计算串扰区域内各混合子像素位于左视图的面积P1和位于右视图的面积P2。S2: Calculate the area P1 of each mixed sub-pixel in the left view and the area P2 of the right view in the crosstalk area.
具体的,可以根据二维显示屏的规格以及光栅的规格计算串扰区域内各混合子像素位于左视图的面积P1和位于右视图的面积P2。Specifically, the area P1 in the left view and the area P2 in the right view of each mixed sub-pixel in the crosstalk region can be calculated according to the specifications of the two-dimensional display screen and the specifications of the grating.
S3:获取混合子像素位于左视图的像素值t1和位于右视图的像素值t2。S3: Obtain the pixel value t1 of the mixed sub-pixel in the left view and the pixel value t2 in the right view.
可以理解的,由于是模拟排图,因此串扰区域内的每一个混合子像素被视区分割线分割后,其位于左视图的面积P1和位于右视区的面积P2均可分别模拟赋予相应的像素值,以确保左视图内均为左源图的内容,右视图内均为右源图的内容。It can be understood that because it is an analog layout, after each mixed sub-pixel in the crosstalk area is divided by the view area dividing line, the area P1 in the left view and the area P2 in the right view area can be simulated and assigned to the corresponding sub-pixels respectively. Pixel value to ensure that the content of the left source image is in the left view, and the content of the right source image is in the right view.
然而,二维显示屏实际进行显示时,RGB发光子像素本身不可分割,因此串扰区域内的每一个混合子像素只能选择左右源图中其中一个色彩指令进行显示,也即每一个混合子像素只能显示一个色相值和像素值,这样就会导致用户在观看时,左眼看到右视图信息,或者右眼看到左视图信息,从而形成串扰。那么便需要通过算法对混合子像素的像素值进行干预,以确定混合子像素排图显示时所需要赋予的最终像素值t,从而降低串扰,提高三维图像的成像质量。However, when the 2D display screen is actually displayed, the RGB light-emitting sub-pixels themselves are inseparable, so each mixed sub-pixel in the crosstalk area can only select one of the color instructions in the left and right source images for display, that is, each mixed sub-pixel. Only one hue value and pixel value can be displayed, which will cause the user to see the right view information with the left eye or the left view information with the right eye when viewing, thereby forming crosstalk. Then, it is necessary to intervene the pixel values of the mixed sub-pixels through an algorithm to determine the final pixel value t that needs to be assigned when the mixed sub-pixels are displayed, thereby reducing crosstalk and improving the imaging quality of the three-dimensional image.
S4:将混合子像素位于左视图的面积P1与位于右视图的面积P2进行比较,获得面积比较结果。S4: Compare the area P1 of the mixed sub-pixel located in the left view with the area P2 located in the right view to obtain an area comparison result.
具体的,面积比较结果包括:混合子像素位于左视图的面积P1大于位于右视图的面积P2、混合子像素位于左视图的面积P1小于位于右视图的面积P2、或者混合子像素位于左视图的面积P1等于位于右视图的面积P2。Specifically, the area comparison results include: the area P1 of the mixed sub-pixel located in the left view is larger than the area P2 of the right view, the area P1 of the mixed sub-pixel located in the left view is smaller than the area P2 of the right view, or the mixed sub-pixel is located in the left view. The area P1 is equal to the area P2 in the right view.
S5:根据面积比较结果、混合子像素位于左视图的像素值t1和位于右视图的像素值t2,确定混合子像素排图显示时需赋予的最终像素值t。S5: According to the area comparison result, the pixel value t1 of the mixed sub-pixel in the left view and the pixel value t2 in the right view, determine the final pixel value t to be assigned when the mixed sub-pixel arrangement is displayed.
一些实施例中,步骤S5具体包括:若混合子像素位于左视图的面积P1大于位于右视图的面积P2,则将混合子像素位于左视图的像素值t1赋予混合子像素排图显示时的最终像素值t;若混合子像素位于右视图的面积P2大于位于左视图的面积P1,则将混合子像素位于右视图的像素值t2赋予混合子像素排图显示时的最终像素值t;若混合子像素位于左视图的面积P1等于位于右视图的面积P2,则将混合子像素位于左视图的像素值t1或者混合子像素位于右视图的像素值t2赋予混合子像素排图显示时的最终像素值t。具体的,当混合子像素位于左视图的面积P1大于位于右视图的面积P2时,则该混合子像素排图显示时的最终像素值t取t1,即t=t1。当混合子像素位于左视图的面积P1小于位于右视图的面积P2时,则该混合子像素排图显示时的最终像素值t取t2,即t=t2。当混合子像素位于左视图的面积P1等于位于右视图的面积P2时,则该混合子像素排图显示时的最终像素值t取t1或者t2,即t=t1,或者t=t2。In some embodiments, step S5 specifically includes: if the area P1 of the mixed sub-pixel located in the left view is greater than the area P2 of the right view, then assigning the pixel value t1 of the mixed sub-pixel located in the left view to the final result when the mixed sub-pixel is displayed in the layout. Pixel value t; if the area P2 of the mixed sub-pixel in the right view is greater than the area P1 in the left view, the pixel value t2 of the mixed sub-pixel in the right view is assigned to the final pixel value t when the mixed sub-pixel is displayed; The area P1 of the sub-pixel in the left view is equal to the area P2 in the right view, then the pixel value t1 of the mixed sub-pixel in the left view or the pixel value t2 of the mixed sub-pixel in the right view is assigned to the final pixel of the mixed sub-pixel layout display. value t. Specifically, when the area P1 of the mixed sub-pixel in the left view is larger than the area P2 in the right view, the final pixel value t of the mixed sub-pixel in the layout display is t1, that is, t=t1. When the area P1 of the mixed sub-pixel in the left view is smaller than the area P2 in the right view, the final pixel value t of the mixed sub-pixel in the layout display is t2, that is, t=t2. When the area P1 of the mixed sub-pixel in the left view is equal to the area P2 in the right view, the final pixel value t when the mixed sub-pixel is displayed in a layout is t1 or t2, that is, t=t1, or t=t2.
可以理解地,本发明实施例的三维图像处理方法,通过采用取大弃小的减损核心方法以改善串扰区域对左右视图的影响,当单个混合子像素被左右视图分割线分割成两个部分后,通过比较两部分各自的面积,保留该混合子像素被分割后面积较大这一部分的像素值,直接丢弃相对面积较小部分的色彩信息;或者,当两部分各自的面积相等时,则保留其中任意一部分的像素值,从而实现了对串扰区域对左右视图的影响的改善,有效提升三维图像的成像质量,图像边缘饱满度好,且算法简单,效率高。It can be understood that the three-dimensional image processing method according to the embodiment of the present invention adopts the loss reduction core method of taking large and discarding to improve the influence of the crosstalk area on the left and right views. When a single mixed sub-pixel is divided into two parts by the left and right view dividing line, , by comparing the respective areas of the two parts, retaining the pixel value of the part with a larger area after the mixed sub-pixel is divided, and directly discarding the color information of the part with a relatively small area; or, when the respective areas of the two parts are equal, keep the Any part of the pixel value can improve the influence of the crosstalk area on the left and right views, effectively improve the imaging quality of the three-dimensional image, the image edge is full, and the algorithm is simple and efficient.
基于以上实施例所提供的三维图像处理方法,本发明还提供一种三维图像处理装置,该三维图像处理装置可以用于实现本发明实施例公开的三维图像处理方法。Based on the three-dimensional image processing method provided by the above embodiments, the present invention further provides a three-dimensional image processing apparatus, and the three-dimensional image processing apparatus can be used to implement the three-dimensional image processing method disclosed in the embodiments of the present invention.
具体的,如图5所示,该三维图像处理装置包括:Specifically, as shown in FIG. 5 , the three-dimensional image processing device includes:
模拟排图单元100,用于通过排图算法对三维图像进行模拟排图。The simulation layout unit 100 is used to simulate layout of the three-dimensional image through a layout algorithm.
计算单元200,用于计算串扰区域内各混合子像素位于左视图的面积P1和位于右视图的面积P2。The calculation unit 200 is configured to calculate the area P1 of each mixed sub-pixel located in the left view and the area P2 of the right view in the crosstalk area.
获取单元300,用于获取混合子像素位于左视图的像素值t1和位于右视图的像素值t2。The obtaining unit 300 is configured to obtain the pixel value t1 of the mixed sub-pixel in the left view and the pixel value t2 in the right view.
比较单元400,用于将混合子像素位于左视图的面积P1与位于右视图的面积P2进行比较,获得面积比较结果。The comparing unit 400 is configured to compare the area P1 of the mixed sub-pixel located in the left view with the area P2 located in the right view to obtain an area comparison result.
像素值确定单元500,用于根据面积比较结果、混合子像素位于左视图的像素值t1和位于右视图的像素值t2,确定混合子像素排图显示时需赋予的最终像素值t。The pixel value determination unit 500 is configured to determine the final pixel value t to be assigned when displaying the mixed sub-pixel layout according to the area comparison result, the pixel value t1 of the mixed sub-pixel in the left view and the pixel value t2 in the right view.
一些实施例中,面积比较结果包括:混合子像素位于左视图的面积P1大于位于右视图的面积P2、混合子像素位于左视图的面积P1小于位于右视图的面积P2、或者混合子像素位于左视图的面积P1等于位于右视图的面积P2。In some embodiments, the area comparison result includes: the area P1 of the mixed sub-pixel located in the left view is larger than the area P2 of the right view, the area P1 of the mixed sub-pixel located in the left view is smaller than the area P2 of the right view, or the mixed sub-pixel is located in the left view. The area P1 of the view is equal to the area P2 of the right view.
进一步地,一些实施例中,像素值确定单元500包括:Further, in some embodiments, the pixel value determination unit 500 includes:
第一子确定单元,用于在混合子像素位于左视图的面积P1大于位于右视图的面积P2,则将混合子像素位于左视图的像素值t1赋予混合子像素排图显示时的最终像素值t。The first sub-determination unit is used to assign the pixel value t1 of the mixed sub-pixel in the left view to the final pixel value when the mixed sub-pixel is displayed in the layout when the area P1 of the mixed sub-pixel in the left view is greater than the area P2 of the right view t.
第二子确定单元,用于在混合子像素位于右视图的面积P2大于位于左视图的面积P1,则将混合子像素位于右视图的像素值t2赋予混合子像素排图显示时的最终像素值t。The second sub-determination unit is configured to assign the pixel value t2 of the mixed sub-pixel in the right view to the final pixel value when the mixed sub-pixel is displayed in the layout when the area P2 of the mixed sub-pixel in the right view is greater than the area P1 of the left view t.
第三子确定单元,用于在混合子像素位于左视图的面积P1等于位于右视图的面积P2,则将混合子像素位于左视图的像素值t1或者混合子像素位于右视图的像素值t2赋予混合子像素排图显示时的最终像素值t。The third sub-determination unit is configured to assign the pixel value t1 of the mixed sub-pixel in the left view or the pixel value t2 of the mixed sub-pixel in the right view when the area P1 of the mixed sub-pixel in the left view is equal to the area P2 of the right view The final pixel value t when the mixed sub-pixel layout is displayed.
本发明还提供一种存储介质,其存储有程序,程序被处理器执行时实现如本发明任一实施例提供的三维图像处理方法。其中存储介质包括但不限于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质。The present invention also provides a storage medium storing a program, and when the program is executed by a processor, the three-dimensional image processing method provided by any embodiment of the present invention is implemented. The storage medium includes but is not limited to random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or technical fields Any other form of storage medium known in the art.
本发明还提供一种电子设备,包括:The present invention also provides an electronic device, comprising:
存储器,用于存储程序。memory for storing programs.
处理器,用于加载程序,以执行本发明任一实施例提供的三维图像处理方法。The processor is configured to load a program to execute the three-dimensional image processing method provided by any embodiment of the present invention.
显示面板,用于显示处理器处理后的三维图像。The display panel is used to display the three-dimensional image processed by the processor.
分光装置,设置在显示面板上,用于对显示面板显示的三维图像进行分光处理。The spectroscopic device is arranged on the display panel and is used for performing spectroscopic processing on the three-dimensional image displayed on the display panel.
作为选择,电子设备包括但不限于智能手机、电脑、智能电视、车载终端、广告机、游戏机等,即具有播放图像或视频功能的终端即可。三维图像包括3D图片、3D视频、3D游戏等。分光装置可以选用柱镜光栅光学膜、屏障视差光栅光学膜等,分光装置可以与显示面板集成式设置,也可以与显示面板分立式设置。柱镜光栅光学膜、屏障视差光栅光学膜的结构可以参考现有技术,这里不再赘述。Alternatively, the electronic devices include, but are not limited to, smart phones, computers, smart TVs, vehicle-mounted terminals, advertising machines, game consoles, etc., that is, terminals with the function of playing images or videos. Three-dimensional images include 3D pictures, 3D videos, 3D games, and the like. The spectroscopic device can be selected from a lenticular grating optical film, a barrier parallax grating optical film, etc. The spectroscopic device can be integrated with the display panel or separately provided with the display panel. For the structures of the lenticular grating optical film and the barrier parallax grating optical film, reference may be made to the prior art, which will not be repeated here.
综上,本发明实施例提供的三维图像处理方法、处理装置,通过对串扰区域各混合子像素排图显示时的像素值进行干预,以达到提高裸眼3D的成像质量的效果,无需替换光学器件(分光装置),成本更低,且不影响其可视角和最近视距及范围。进一步地,本发明实施例提供的三维图像处理方法算法简单、效率高,图像边缘饱满度好。To sum up, the three-dimensional image processing method and processing device provided by the embodiments of the present invention achieve the effect of improving the naked-eye 3D imaging quality by intervening in the pixel values of each mixed sub-pixel arrangement in the crosstalk area, without replacing optical devices (beam splitting device), the cost is lower, and it does not affect its viewing angle and the closest viewing distance and range. Further, the three-dimensional image processing method provided by the embodiment of the present invention has a simple algorithm, high efficiency, and good image edge fullness.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals may further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two, in order to clearly illustrate the possibilities of hardware and software. Interchangeability, the above description has generally described the components and steps of each example in terms of functionality. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of a method or algorithm described in conjunction with the embodiments disclosed herein may be directly implemented in hardware, a software module executed by a processor, or a combination of the two. Software modules can be placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other in the technical field. in any other known form of storage medium.
以上实施例只为说明本发明的技术构思及特点,其目的在于让熟悉此项技术的人士能够了解本发明的内容并据此实施,并不能限制本发明的保护范围。凡跟本发明权利要求范围所做的均等变化与修饰,均应属于本发明权利要求的涵盖范围。 The above embodiments are only intended to illustrate the technical concept and characteristics of the present invention, and the purpose is to enable those skilled in the art to understand the content of the present invention and implement accordingly, and cannot limit the protection scope of the present invention. All equivalent changes and modifications made with the scope of the claims of the present invention shall fall within the scope of the claims of the present invention. 

Claims (8)

  1. 一种三维图像处理方法,其特征在于,包括以下步骤:A three-dimensional image processing method, comprising the following steps:
    S1:通过排图算法对三维图像进行模拟排图;S1: Simulate the layout of the three-dimensional image through the layout algorithm;
    S2:计算串扰区域内各混合子像素位于左视图的面积P1和位于右视图的面积P2;S2: Calculate the area P1 of each mixed sub-pixel in the crosstalk area in the left view and the area P2 in the right view;
    S3:获取所述混合子像素位于左视图的像素值t1和位于右视图的像素值t2;S3: Obtain the pixel value t1 of the mixed sub-pixel in the left view and the pixel value t2 in the right view;
    S4:将所述混合子像素位于左视图的面积P1与位于右视图的面积P2进行比较,获得面积比较结果;S4: Compare the area P1 of the mixed sub-pixel located in the left view with the area P2 located in the right view to obtain an area comparison result;
    S5:根据所述面积比较结果、所述混合子像素位于左视图的像素值t1和位于右视图的像素值t2,确定所述混合子像素排图显示时需赋予的最终像素值t。S5: According to the area comparison result, the pixel value t1 of the mixed sub-pixel in the left view and the pixel value t2 in the right view, determine the final pixel value t to be assigned when the mixed sub-pixel layout is displayed.
  2. 根据权利要求1所述的三维图像处理方法,其特征在于,所述面积比较结果包括:所述混合子像素位于左视图的面积P1大于位于右视图的面积P2、所述混合子像素位于左视图的面积P1小于位于右视图的面积P2、或者所述混合子像素位于左视图的面积P1等于位于右视图的面积P2。The three-dimensional image processing method according to claim 1, wherein the area comparison result comprises: the area P1 of the mixed sub-pixel located in the left view is larger than the area P2 of the right view, and the mixed sub-pixel is located in the left view. The area P1 of the mixed sub-pixel is smaller than the area P2 of the right view, or the area P1 of the mixed sub-pixels located in the left view is equal to the area P2 of the right view.
  3. 根据权利要求2所述的三维图像处理方法,其特征在于,所述步骤S5具体包括:The three-dimensional image processing method according to claim 2, wherein the step S5 specifically comprises:
    若所述混合子像素位于左视图的面积P1大于位于右视图的面积P2,则将所述混合子像素位于左视图的像素值t1赋予所述混合子像素排图显示时的最终像素值t;If the area P1 of the mixed sub-pixel located in the left view is greater than the area P2 of the right view, then assign the pixel value t1 of the mixed sub-pixel in the left view to the final pixel value t when the mixed sub-pixel is displayed in a layout;
    若所述混合子像素位于右视图的面积P2大于位于左视图的面积P1,则将所述混合子像素位于右视图的像素值t2赋予所述混合子像素排图显示时的最终像素值t;If the area P2 of the mixed sub-pixel located in the right view is greater than the area P1 of the left view, the pixel value t2 of the mixed sub-pixel located in the right view is assigned to the final pixel value t when the mixed sub-pixel is displayed in a layout;
    若所述混合子像素位于左视图的面积P1等于位于右视图的面积P2,则将所述混合子像素位于左视图的像素值t1或者所述混合子像素位于右视图的像素值t2赋予所述混合子像素排图显示时的最终像素值t。If the area P1 of the mixed sub-pixel in the left view is equal to the area P2 in the right view, assign the pixel value t1 of the mixed sub-pixel in the left view or the pixel value t2 of the mixed sub-pixel in the right view to the The final pixel value t when the mixed sub-pixel layout is displayed.
  4. 一种三维图像处理装置,其特征在于,包括:A three-dimensional image processing device, comprising:
    模拟排图单元,用于通过排图算法对三维图像进行模拟排图;The simulation layout unit is used to simulate the layout of the three-dimensional image through the layout algorithm;
    计算单元,用于计算串扰区域内各混合子像素位于左视图的面积P1和位于右视图的面积P2;a calculation unit, configured to calculate the area P1 of each mixed sub-pixel in the crosstalk area in the left view and the area P2 in the right view;
    获取单元,用于获取所述混合子像素位于左视图的像素值t1和位于右视图的像素值t2;an obtaining unit for obtaining the pixel value t1 of the mixed sub-pixel located in the left view and the pixel value t2 of the right view;
    比较单元,用于将所述混合子像素位于左视图的面积P1与位于右视图的面积P2进行比较,获得面积比较结果;a comparison unit, configured to compare the area P1 of the mixed sub-pixel located in the left view with the area P2 located in the right view to obtain an area comparison result;
    像素值确定单元,用于根据所述面积比较结果、所述混合子像素位于左视图的像素值t1和位于右视图的像素值t2,确定所述混合子像素排图显示时需赋予的最终像素值t。A pixel value determination unit, configured to determine the final pixel to be assigned when the mixed sub-pixels are displayed when the mixed sub-pixels are displayed according to the area comparison result, the pixel value t1 of the mixed sub-pixel in the left view and the pixel value t2 in the right view value t.
  5. 根据权利要求4所述的三维图像处理装置,其特征在于,所述面积比较结果包括:所述混合子像素位于左视图的面积P1大于位于右视图的面积P2、所述混合子像素位于左视图的面积P1小于位于右视图的面积P2、或者所述混合子像素位于左视图的面积P1等于位于右视图的面积P2。The three-dimensional image processing apparatus according to claim 4, wherein the area comparison result comprises: the area P1 of the mixed sub-pixel located in the left view is larger than the area P2 of the right view, and the mixed sub-pixel is located in the left view. The area P1 of the mixed sub-pixel is smaller than the area P2 of the right view, or the area P1 of the mixed sub-pixels located in the left view is equal to the area P2 of the right view.
  6. 根据权利要求5所述的三维图像处理装置,其特征在于,所述像素值确定单元包括:The three-dimensional image processing device according to claim 5, wherein the pixel value determination unit comprises:
    第一子确定单元,用于在所述混合子像素位于左视图的面积P1大于位于右视图的面积P2,则将所述混合子像素位于左视图的像素值t1赋予所述混合子像素排图显示时的最终像素值t;The first sub-determination unit is configured to assign the pixel value t1 of the mixed sub-pixel in the left view to the mixed sub-pixel arrangement when the area P1 of the mixed sub-pixel in the left view is greater than the area P2 of the right view The final pixel value t when displayed;
    第二子确定单元,用于在所述混合子像素位于右视图的面积P2大于位于左视图的面积P1,则将所述混合子像素位于右视图的像素值t2赋予所述混合子像素排图显示时的最终像素值t;The second sub-determination unit is configured to assign the pixel value t2 of the mixed sub-pixel in the right view to the mixed sub-pixel layout when the area P2 of the mixed sub-pixel in the right view is greater than the area P1 of the left view The final pixel value t when displayed;
    第三子确定单元,用于在所述混合子像素位于左视图的面积P1等于位于右视图的面积P2,则将所述混合子像素位于左视图的像素值t1或者所述混合子像素位于右视图的像素值t2赋予所述混合子像素排图显示时的最终像素值t。The third sub-determining unit is configured to, when the area P1 of the mixed sub-pixel in the left view is equal to the area P2 in the right view, set the pixel value t1 of the mixed sub-pixel in the left view or the mixed sub-pixel in the right view The pixel value t2 of the view is assigned to the final pixel value t when the mixed sub-pixel arrangement is displayed.
  7. 一种存储介质,其存储有程序,其特征在于,所述程序被处理器执行时实现如权利要求1-3任一项所述的三维图像处理方法。A storage medium storing a program, characterized in that, when the program is executed by a processor, the three-dimensional image processing method according to any one of claims 1-3 is implemented.
  8. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    存储器,用于存储程序;memory for storing programs;
    处理器,用于加载所述程序,以执行如权利要求1-3任一项所述的三维图像处理方法;a processor for loading the program to execute the three-dimensional image processing method according to any one of claims 1-3;
    显示面板,用于显示所述处理器处理后的三维图像;a display panel for displaying the three-dimensional image processed by the processor;
    分光装置,设置在所述显示面板上,用于对所述显示面板显示的三维图像进行分光处理A spectroscopic device, arranged on the display panel, for performing spectroscopic processing on the three-dimensional image displayed on the display panel
    .
PCT/CN2021/084151 2021-03-30 2021-03-30 Three-dimensional image processing method and apparatus, and storage medium and electronic device WO2022205010A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/084151 WO2022205010A1 (en) 2021-03-30 2021-03-30 Three-dimensional image processing method and apparatus, and storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/084151 WO2022205010A1 (en) 2021-03-30 2021-03-30 Three-dimensional image processing method and apparatus, and storage medium and electronic device

Publications (1)

Publication Number Publication Date
WO2022205010A1 true WO2022205010A1 (en) 2022-10-06

Family

ID=83455465

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/084151 WO2022205010A1 (en) 2021-03-30 2021-03-30 Three-dimensional image processing method and apparatus, and storage medium and electronic device

Country Status (1)

Country Link
WO (1) WO2022205010A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104965308A (en) * 2015-08-05 2015-10-07 京东方科技集团股份有限公司 Three-dimensional display device and display method thereof
CN105704473A (en) * 2016-02-01 2016-06-22 李应樵 Method for quickly generating images for multi-view three-dimensional display screen by use of templates
CN107347152A (en) * 2016-05-06 2017-11-14 深圳超多维光电子有限公司 The determination method, apparatus and electronic equipment at the grating inclination angle of bore hole 3D display equipment
CN108036929A (en) * 2017-12-27 2018-05-15 上海玮舟微电子科技有限公司 A kind of detection method of display device row graph parameter, apparatus and system
US20190318678A1 (en) * 2018-04-16 2019-10-17 Oculus Vr, Llc Translating color selector layer for display resolution enhancement

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104965308A (en) * 2015-08-05 2015-10-07 京东方科技集团股份有限公司 Three-dimensional display device and display method thereof
CN105704473A (en) * 2016-02-01 2016-06-22 李应樵 Method for quickly generating images for multi-view three-dimensional display screen by use of templates
CN107347152A (en) * 2016-05-06 2017-11-14 深圳超多维光电子有限公司 The determination method, apparatus and electronic equipment at the grating inclination angle of bore hole 3D display equipment
CN108036929A (en) * 2017-12-27 2018-05-15 上海玮舟微电子科技有限公司 A kind of detection method of display device row graph parameter, apparatus and system
US20190318678A1 (en) * 2018-04-16 2019-10-17 Oculus Vr, Llc Translating color selector layer for display resolution enhancement

Similar Documents

Publication Publication Date Title
JP5011316B2 (en) Rendering the output image
JP5150255B2 (en) View mode detection
US8208011B2 (en) Stereoscopic display apparatus
CN106604018B (en) 3D display device and control method thereof
CN100565589C (en) The apparatus and method that are used for depth perception
US9020238B2 (en) Stereoscopic image generation method and stereoscopic image generation system
JP6060329B2 (en) Method for visualizing 3D image on 3D display device and 3D display device
US20090109127A1 (en) Three-Dimensional Image Display Device and a Displaying Method Thereof
EP1982309A2 (en) On the fly hardware based interdigitation
WO2012094076A9 (en) Morphological anti-aliasing (mlaa) of a re-projection of a two-dimensional image
US20140192170A1 (en) Model-Based Stereoscopic and Multiview Cross-Talk Reduction
US8619094B2 (en) Morphological anti-aliasing (MLAA) of a re-projection of a two-dimensional image
KR20120010404A (en) Multi-view display system and method using color consistent selective sub-pixel rendering
CN114554174B (en) Naked eye three-dimensional image measuring system, image processing method and device and display equipment
CN112801921B (en) 3D image processing optimization method and device, storage medium and electronic equipment
WO2022205010A1 (en) Three-dimensional image processing method and apparatus, and storage medium and electronic device
KR20170098235A (en) A method, apparatus and system for reducing crosstalk of auto stereoscopic displays
JP2003196682A (en) Stereoscopic image generating information, information storage medium, and stereoscopic image generating device
CN112801920B (en) Three-dimensional image crosstalk optimization method and device, storage medium and electronic equipment
CN114283259A (en) Three-dimensional image processing method, device, storage medium and electronic equipment
CN114879377A (en) Parameter determination method, device and equipment of horizontal parallax three-dimensional light field display system
Li et al. On adjustment of stereo parameters in multiview synthesis for planar 3D displays
KR20100043751A (en) Method for rendering
Jung et al. Parallel view synthesis programming for free viewpoint television
CN104935910B (en) A kind of method and apparatus of 3-D view correction

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21933690

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE