技术领域technical field
本发明涉及显示技术,尤其涉及一种显示处理方法及装置、终端。The present invention relates to display technology, in particular to a display processing method and device, and a terminal.
背景技术Background technique
采用柱镜光栅技术的裸眼3D装置,在进行竖屏观看的时候,柱镜光栅中的各个柱状透镜的排列方向(以下简称为柱镜光栅的方向)与人眼方向(也即两眼确定的方向)平行;在进行横屏观看的时候,柱镜光栅的方向与人眼方向垂直。The naked-eye 3D device adopting the lenticular technology, when viewing the vertical screen, the arrangement direction of each lenticular lens in the lenticular lens (hereinafter referred to as the direction of the lenticular lens) is closely related to the direction of the human eye (that is, the direction determined by two eyes). direction) parallel; when viewed in landscape mode, the direction of the lenticular lens grating is perpendicular to the direction of the human eye.
其中,在进行横屏观看的时候,将左右格式的视频源的每一帧图像数据进行交织排序后,透过柱镜光栅对光的折射作用,将不同的显示内容折射到空间中不同的地方,光线到达人眼时显示的内容被分开,人眼接收到两幅含有视差的图像,这样便产生了裸眼3D的立体效果。Among them, when viewing in horizontal screen, after interleaving and sorting each frame of image data of left and right format video sources, through the refraction effect of lenticular grating on light, different display contents are refracted to different places in space , when the light reaches the human eye, the displayed content is separated, and the human eye receives two images containing parallax, thus producing a stereoscopic effect of naked-eye 3D.
在进行竖屏观看的时候,柱镜光栅的方向与人眼方向平行,同样因为柱镜光栅对光的折射作用,将不同的显示内容折射到空间中不同的地方,人眼只能看到一半的画面,垂直分辨率损失了一半。对于单像素的横线会存在在某些角度看不到的问题,对于双像素或多像素的横向会存在一半的横线像素看不到的问题,导致人眼在观看的时候非常不适应,字体横线粗细发生变化,字体边缘粗糙等问题。When viewing on a vertical screen, the direction of the lenticular lens is parallel to the direction of the human eye. Also because of the refraction of the lenticular lens to light, different display content is refracted to different places in the space, and the human eye can only see half of it. , the vertical resolution is lost by half. For single-pixel horizontal lines, there will be problems that cannot be seen at certain angles, and for double-pixel or multi-pixel horizontal lines, there will be a problem that half of the horizontal line pixels cannot be seen, which makes human eyes very uncomfortable when viewing. The thickness of the horizontal line of the font changes, and the edges of the font are rough.
发明内容Contents of the invention
为解决上述技术问题,本发明实施例提供了一种显示处理方法及装置、终端,至少解决了具有光栅结构的屏幕在显示二维图像时垂直分辨率损失的问题。In order to solve the above-mentioned technical problems, embodiments of the present invention provide a display processing method, device, and terminal, which at least solve the problem of loss of vertical resolution when a screen with a grating structure displays two-dimensional images.
本发明实施例提供了一种显示处理方法,所述方法包括:An embodiment of the present invention provides a display processing method, the method comprising:
检测当前屏幕的显示模式,其中,所述屏幕为具有光栅结构的显示装置;Detecting the display mode of the current screen, wherein the screen is a display device with a grating structure;
在确定所述显示模式为二维显示模式时,将待显示图像的帧图像的垂直分辨率压缩后复制至M行后进行显示。When it is determined that the display mode is the two-dimensional display mode, the vertical resolution of the frame image of the image to be displayed is compressed and copied to M lines for display.
本发明实施例还提供了一种显示处理方法,所述方法包括:An embodiment of the present invention also provides a display processing method, the method comprising:
检测当前屏幕的显示模式,其中,所述屏幕为具有光栅结构的显示装置;Detecting the display mode of the current screen, wherein the screen is a display device with a grating structure;
在确定所述显示模式为二维显示模式时,将待显示图像的帧图像的垂直分辨率进行补偿后进行显示。When it is determined that the display mode is the two-dimensional display mode, the vertical resolution of the frame image of the image to be displayed is compensated and then displayed.
本发明实施例还提供了一种显示处理方法,应用于具有光栅结构的显示屏幕,所述方法包括:An embodiment of the present invention also provides a display processing method applied to a display screen with a grating structure, the method comprising:
确定待显示图像的显示模式;Determine the display mode of the image to be displayed;
在确定所述显示模式为二维显示模式时,将所述待显示图像的帧图像的垂直分辨率进行补偿后进行显示。When it is determined that the display mode is a two-dimensional display mode, the vertical resolution of the frame image of the image to be displayed is compensated and then displayed.
本发明实施例还提供了一种显示处理方法,所述方法包括:An embodiment of the present invention also provides a display processing method, the method comprising:
将待显示图像的帧图像沿屏幕上列方向的分辨率压缩至1/N倍,N≥2,其中,所述屏幕具有光栅结构,所述列方向为与所述光栅结构垂直的方向;Compressing the resolution of the frame image of the image to be displayed along the column direction on the screen to 1/N times, N≥2, wherein the screen has a grating structure, and the column direction is a direction perpendicular to the grating structure;
将所述帧图像压缩后的每行像素复制至M行相同像素,M≥2;Copy each row of pixels after the frame image is compressed to M rows of the same pixels, M≥2;
显示所述待显示图像。Display the image to be displayed.
本发明实施例中,所述将待显示图像的帧图像沿屏幕上列方向的分辨率压缩至1/N倍之前,所述方法还包括:In the embodiment of the present invention, before compressing the resolution of the frame image of the image to be displayed along the column direction on the screen to 1/N times, the method further includes:
确定所述屏幕当前的显示模式是第一显示模式;其中所述第一显示模式为二维显示模式。It is determined that the current display mode of the screen is a first display mode; wherein the first display mode is a two-dimensional display mode.
本发明实施例中,所述确定所述屏幕当前的显示模式是第一显示模式,包括:In the embodiment of the present invention, the determining that the current display mode of the screen is the first display mode includes:
检测终端的位姿参数;Detect the pose parameters of the terminal;
根据所述位姿参数,判断所述屏幕的显示模式是否为所述第一显示模式。According to the pose parameters, it is judged whether the display mode of the screen is the first display mode.
本发明实施例中,所述确定所述屏幕当前的显示模式是第一显示模式,包括:In the embodiment of the present invention, the determining that the current display mode of the screen is the first display mode includes:
获得设置操作;get set operation;
基于所述设置操作,判断所述屏幕的显示模式是否为所述第一显示模式。Based on the setting operation, it is judged whether the display mode of the screen is the first display mode.
本发明实施例中,所述显示所述待显示图像包括将所述光栅结构的每一光栅对应所述M行相同像素。In the embodiment of the present invention, the displaying the image to be displayed includes associating each grating of the grating structure with the M rows of identical pixels.
本发明实施例中,M为大于或等于2的偶数。In the embodiment of the present invention, M is an even number greater than or equal to 2.
本发明实施例中,M小于或等于N。In the embodiment of the present invention, M is less than or equal to N.
本发明实施例中,所述将待显示图像的帧图像沿屏幕上列方向的分辨率压缩至1/N倍时,采用以下任意一种压缩算法进行压缩:In the embodiment of the present invention, when compressing the resolution of the frame image of the image to be displayed along the upper column direction of the screen to 1/N times, any of the following compression algorithms is used for compression:
二次线性插值、三次卷积算法、两次立方算法。Quadratic Linear Interpolation, Cubic Convolution Algorithm, Bicubic Algorithm.
本发明实施例中,所述将所述帧图像压缩后的每行像素复制至M行相同像素时,采用以下任意一种编码算法进行复制:In the embodiment of the present invention, when copying each row of pixels after the frame image compression to M rows of the same pixels, any of the following encoding algorithms is used for copying:
内存拷贝、指针直接访问、图形处理器GPU图像合成。Memory copy, pointer direct access, graphics processor GPU image synthesis.
本发明实施例提供的显示处理装置,包括:The display processing device provided by the embodiment of the present invention includes:
检测单元,用于检测当前屏幕的显示模式,其中,所述屏幕为具有光栅结构的显示装置;a detection unit, configured to detect the display mode of the current screen, wherein the screen is a display device with a grating structure;
图像处理单元,用于在确定所述显示模式为二维显示模式时,将待显示图像的帧图像的垂直分辨率压缩后复制至M行后进行显示。The image processing unit is configured to, when it is determined that the display mode is a two-dimensional display mode, compress the vertical resolution of the frame image of the image to be displayed and copy it to M lines for display.
本发明另一实施例提供的显示处理装置,包括:A display processing device provided by another embodiment of the present invention includes:
检测单元,用于检测当前屏幕的显示模式,其中,所述屏幕为具有光栅结构的显示装置;a detection unit, configured to detect the display mode of the current screen, wherein the screen is a display device with a grating structure;
图像处理单元,用于在确定所述显示模式为二维显示模式时,将待显示图像的帧图像的垂直分辨率进行补偿后进行显示。The image processing unit is configured to, when it is determined that the display mode is a two-dimensional display mode, compensate the vertical resolution of the frame image of the image to be displayed before displaying it.
本发明另一实施例提供的显示处理装置,应用于具有光栅结构的显示屏幕,所述装置包括:A display processing device provided by another embodiment of the present invention is applied to a display screen with a grating structure, and the device includes:
确定单元,用于确定待显示图像的显示模式;a determining unit, configured to determine a display mode of the image to be displayed;
图像处理单元,用于在确定所述显示模式为二维显示模式时,将所述待显示图像的帧图像的垂直分辨率进行补偿后进行显示。The image processing unit is configured to, when it is determined that the display mode is a two-dimensional display mode, compensate the vertical resolution of the frame image of the image to be displayed before displaying it.
本发明另一实施例提供的显示处理装置,包括:A display processing device provided by another embodiment of the present invention includes:
压缩单元,用于将待显示图像的帧图像沿屏幕上列方向的分辨率压缩至1/N倍,N≥2,其中,所述屏幕具有光栅结构,所述列方向为与所述光栅结构垂直的方向;A compression unit, configured to compress the resolution of the frame image of the image to be displayed along the column direction on the screen to 1/N times, N≥2, wherein the screen has a grating structure, and the column direction is the same as the grating structure vertical direction;
编码单元,用于将所述帧图像压缩后的每行像素复制至M行相同像素,M≥2;A coding unit, configured to copy each line of pixels after compression of the frame image to M lines of the same pixels, M≥2;
显示单元,用于显示所述待显示图像。A display unit, configured to display the image to be displayed.
本发明实施例中,所述装置还包括:In an embodiment of the present invention, the device further includes:
确定单元,用于确定所述屏幕当前的显示模式是第一显示模式;其中所述第一显示模式为二维显示模式。A determining unit, configured to determine that the current display mode of the screen is a first display mode; wherein the first display mode is a two-dimensional display mode.
本发明实施例中,所述确定单元包括:In the embodiment of the present invention, the determination unit includes:
检测单元,用于检测终端的位姿参数;a detection unit, configured to detect pose parameters of the terminal;
第一判断单元,用于根据所述位姿参数,判断所述屏幕的显示模式是否为所述第一显示模式。A first judging unit, configured to judge whether the display mode of the screen is the first display mode according to the pose parameters.
本发明实施例中,所述装置还包括:In an embodiment of the present invention, the device further includes:
获取单元,用于获得设置操作;Acquisition unit, used to obtain the set operation;
第二判断单元,用于基于所述设置操作,判断所述屏幕的显示模式是否为所述第一显示模式。A second judging unit, configured to judge whether the display mode of the screen is the first display mode based on the setting operation.
本发明实施例中,所述光栅结构为柱镜光栅。In the embodiment of the present invention, the grating structure is a lenticular grating.
本发明实施例中,所述显示所述待显示图像包括将所述光栅结构的每一光栅对应所述M行相同像素。In the embodiment of the present invention, the displaying the image to be displayed includes associating each grating of the grating structure with the M rows of identical pixels.
本发明实施例中,M为大于或等于2的偶数。In the embodiment of the present invention, M is an even number greater than or equal to 2.
本发明实施例中,M小于或等于N。In the embodiment of the present invention, M is less than or equal to N.
本发明实施例中,所述压缩单元,具体用于:采用以下任意一种压缩算法进行压缩:In the embodiment of the present invention, the compression unit is specifically configured to: use any of the following compression algorithms for compression:
二次线性插值、三次卷积算法、两次立方算法。Quadratic Linear Interpolation, Cubic Convolution Algorithm, Bicubic Algorithm.
本发明实施例中,所述编码单元,具体用于:采用以下任意一种编码算法进行复制:In the embodiment of the present invention, the encoding unit is specifically configured to: use any of the following encoding algorithms for copying:
内存拷贝、指针直接访问、GPU图像合成。Memory copy, pointer direct access, GPU image synthesis.
本发明实施例提供的终端,包括:处理器、屏幕;其中,所述屏幕具有光栅结构;The terminal provided by the embodiment of the present invention includes: a processor and a screen; wherein, the screen has a grating structure;
所述处理器,用于将待显示图像的帧图像沿屏幕上列方向的分辨率压缩至1/N倍,N≥2,其中,所述屏幕具有光栅结构,所述列方向为与所述光栅结构垂直的方向;将所述帧图像压缩后的每行像素复制至M行相同像素,M≥2;The processor is configured to compress the resolution of the frame image of the image to be displayed along the column direction on the screen to 1/N times, N≥2, wherein the screen has a grating structure, and the column direction is the same as the The direction vertical to the grating structure; copying each row of pixels after the frame image compression to M rows of the same pixels, M≥2;
所述屏幕,用于显示所述待显示图像。The screen is used to display the image to be displayed.
本发明实施例的技术方案中,将待显示图像的帧图像沿屏幕上的列方向的分辨率压缩至1/N倍,再将压缩后的图像的每行像素复制M行后显示。解决了具有3D裸眼显示屏幕的装置在显示二维图像时显示分辨率缺失的问题,避免了因此引起的用户使用不适的问题。In the technical solution of the embodiment of the present invention, the resolution of the frame image of the image to be displayed along the column direction on the screen is compressed to 1/N times, and then each row of pixels of the compressed image is copied to M rows for display. The invention solves the problem of lack of display resolution when a device with a 3D naked-eye display screen displays a two-dimensional image, and avoids the problem of user discomfort caused thereby.
进一步的,采用本发明实施例的技术方案,在检测当前屏幕的显示模式为二维显示模式时,将待显示图像的帧图像的垂直分辨率压缩后复制至M行后进行显示。对于具有3D裸眼显示屏幕的终端,能够在3D模式下正常观看裸眼3D效果,并且在非3D显示模式下,可以到达与非3D裸眼显示屏幕的普通终端同样的2D屏幕显示效果,具有较高的用户体验。Further, by adopting the technical solution of the embodiment of the present invention, when the display mode of the current screen is detected as the two-dimensional display mode, the vertical resolution of the frame image of the image to be displayed is compressed and copied to M lines for display. For a terminal with a 3D naked-eye display screen, it can normally watch the naked-eye 3D effect in 3D mode, and in the non-3D display mode, it can achieve the same 2D screen display effect as a normal terminal with a non-3D naked-eye display screen, which has a higher user experience.
附图说明Description of drawings
附图以示例而非限制的方式大体示出了本文中所讨论的各个实施例。The drawings generally illustrate the various embodiments discussed herein, by way of example and not limitation.
图1为狭缝光栅的显示原理图;Figure 1 is a schematic diagram of the display of the slit grating;
图2为柱镜光栅的显示原理图一Figure 2 is the schematic diagram 1 of the display of the lenticular lens grating
图3为竖屏状态下的像素示意图一;FIG. 3 is a schematic diagram of pixels in a vertical screen state;
图4为横屏显示下的像素示意图一;Fig. 4 is a schematic diagram of pixels under horizontal screen display 1;
图5为柱状透镜的示意图;Fig. 5 is the schematic diagram of lenticular lens;
图6为本发明实施例的显示处理方法的流程示意图一;FIG. 6 is a first schematic flowchart of a display processing method according to an embodiment of the present invention;
图7为本发明实施例的显示处理方法的流程示意图二;FIG. 7 is a second schematic flow diagram of a display processing method according to an embodiment of the present invention;
图8为本发明实施例的显示处理方法的流程示意图三;FIG. 8 is a third schematic flowchart of a display processing method according to an embodiment of the present invention;
图9为本发明实施例的显示处理方法的流程示意图四;FIG. 9 is a fourth schematic flowchart of a display processing method according to an embodiment of the present invention;
图10为本发明实施例的图像处理过程中的像素示意图;FIG. 10 is a schematic diagram of pixels in an image processing process according to an embodiment of the present invention;
图11为本发明实施例的终端坐标系图;Fig. 11 is a terminal coordinate system diagram of an embodiment of the present invention;
图12为本发明实施例的显示处理装置的结构组成示意图;FIG. 12 is a schematic diagram of the structure and composition of a display processing device according to an embodiment of the present invention;
图13为本发明实施例的终端的硬件组成示意图一;FIG. 13 is a first schematic diagram of a hardware composition of a terminal according to an embodiment of the present invention;
图14为本发明实施例的终端的硬件组成示意图二;FIG. 14 is a second schematic diagram of hardware composition of a terminal according to an embodiment of the present invention;
图15为本发明实施例的柱镜光栅的显示原理图二;Fig. 15 is the second schematic diagram of the display of the lenticular lens grating according to the embodiment of the present invention;
图16为本发明实施例的终端的硬件组成示意图三;FIG. 16 is a third schematic diagram of hardware composition of a terminal according to an embodiment of the present invention;
图17为本发明实施例的显示处理方法的流程示意图五;FIG. 17 is a schematic flow diagram V of a display processing method according to an embodiment of the present invention;
图18为本发明实施例的显示处理方法的流程示意图六;FIG. 18 is a sixth schematic flowchart of a display processing method according to an embodiment of the present invention;
图19为本发明实施例的显示处理方法的流程示意图七。FIG. 19 is a seventh schematic flowchart of a display processing method according to an embodiment of the present invention.
具体实施方式Detailed ways
为了能够更加详尽地了解本发明实施例的特点与技术内容,下面结合附图对本发明实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本发明实施例。In order to understand the characteristics and technical contents of the embodiments of the present invention in more detail, the implementation of the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. The attached drawings are only for reference and description, and are not intended to limit the embodiments of the present invention.
现实世界是一个三维空间,除去时间这一维度,现实世界是由长度、宽度和高度三个维度组成,而现有的显示设备大多数都只能显示二维信息,并不能带给人真实的三维感觉。为了使显示的物体和场景具有深度感(也就是3D),技术人员纷纷对3D显示技术展开研究。The real world is a three-dimensional space. Excluding the dimension of time, the real world is composed of three dimensions: length, width and height. However, most of the existing display devices can only display two-dimensional information and cannot bring people real Three-dimensional feeling. In order to make displayed objects and scenes have a sense of depth (that is, 3D), technical personnel have conducted research on 3D display technology.
对于三维世界而言,人眼观看物体时看到的图像具有位差,两幅图像之间的偏差称之为视差(disparity/parallax)。正是这种视差,使人们能区别物体的远近,并获得立体感。根据视差值的不同,视差又可分为正视差(positive parallax),负视差(negativeparallax)和零视差(zero parallax)。当用户在观看时,正视差使人产生物体深入屏幕的感觉;负视差使人产生物体悬浮于屏幕外的感觉;零视差是正视差和负视差的分界,物体刚好被投射到屏幕上,即零平面。For the three-dimensional world, the images seen by human eyes when viewing objects have disparity, and the deviation between two images is called disparity (parallax). It is this kind of parallax that enables people to distinguish the distance of objects and obtain a sense of three-dimensionality. According to different parallax values, parallax can be divided into positive parallax (positive parallax), negative parallax (negative parallax) and zero parallax (zero parallax). When the user is watching, positive parallax makes people feel that the object goes deep into the screen; negative parallax makes people feel that the object is floating outside the screen; zero parallax is the boundary between positive and negative parallax, and the object is just projected on the screen, that is, zero flat.
人的大脑可以将映入双眼的两幅具有视差的图像,经视神经中枢的融合反射,以及视觉心理反应便可产生三维立体感觉。利用这个原理,可以将两幅具有视差的左右图像通过显示器显示,将其分别送给左右眼,从而获得3D感。The human brain can reflect two images with parallax reflected in the eyes, and through the fusion reflection of the optic nerve center and the visual psychological reaction, a three-dimensional stereoscopic feeling can be produced. Utilizing this principle, two left and right images with parallax can be displayed on the display and sent to the left and right eyes respectively, thereby obtaining a 3D sense.
裸眼3D显示的原理一般是通过光栅(如狭缝光栅、柱镜光栅)将显示器,也即屏幕显示的图像进行分光,从而使人眼接收到不同的图像,这样便实现了3D显示。The principle of naked-eye 3D display is generally to split the display, that is, the image displayed on the screen, through a grating (such as a slit grating, a lenticular grating), so that the human eye receives different images, thus realizing 3D display.
狭缝光栅显示器通过在显示面板前方放置一个参数合适的狭缝光栅,对显示的内容进行遮挡,在经过一定距离后,到达人眼的光线便可被分开,双眼接收到两幅含有视差的图像,如图1所示。The slit grating display blocks the displayed content by placing a slit grating with suitable parameters in front of the display panel. After a certain distance, the light rays reaching the human eyes can be separated, and the two eyes receive two images with parallax ,As shown in Figure 1.
柱镜光栅显示器与狭缝光栅显示器同理,只是实现的方式由狭缝换成了透镜,透镜通过对光的折射作用,将不同的显示内容折射到空间中不同的地方,到达人眼时显示的内容被分开,人眼接收到两幅含有视差的图像,这样便产生了立体效果,如图2所示。The lenticular grating display is the same as the slit grating display, except that the realization method is changed from a slit to a lens. The lens refracts different display contents to different places in the space through the refraction of light, and displays when it reaches the human eye. The content of is separated, and the human eye receives two images with parallax, thus producing a stereoscopic effect, as shown in Figure 2.
基于以上所述,裸眼立体显示基于立体视觉原理,通过改进立体显示器,以特定光学遮挡和光路传播控制的方式,实现将含有视差的图像分别传送到人的左右眼睛,进而观看到立体影像。Based on the above, glasses-free stereoscopic display is based on the principle of stereoscopic vision. By improving the stereoscopic display, the images containing parallax can be transmitted to the left and right eyes of the person respectively by means of specific optical occlusion and optical path propagation control, and then the stereoscopic image can be viewed.
裸眼3D显示处理装置,需要人眼的方向与柱镜光栅的方向垂直,即横屏观看的时候才能够看到裸眼3D的效果,当人眼的方向与柱镜光栅的方向平行,即竖屏观看的时候只能看到2D的效果,且竖着看的时候垂直分辨率损失一半。Glasses-free 3D display processing device requires the direction of the human eye to be perpendicular to the direction of the lenticular grating, that is, the naked-eye 3D effect can only be seen when viewing the horizontal screen. When the direction of the human eye is parallel to the direction of the lenticular grating, that is, the vertical screen Only 2D effects can be seen when viewing, and the vertical resolution is lost by half when viewed vertically.
这里,屏幕的分辨率通过水平分辨率和垂直分辨率来描述,其中,水平是指与人眼平行的方向,垂直是指与人眼垂直的方向,比如,1920×1080分辨率的屏幕,竖着看的时候,垂直方向的分辨率(也即沿列方向的分辨率)是1920,水平方向(也即沿行方向的分辨率)的分辨率是1080,如图3所示的竖屏方向,如图4所示的横屏方向。其中,屏幕的表面具有柱镜光栅,柱镜光栅由多个柱状透镜组成,参照图5,柱状透镜的方向(也即柱镜光栅的方向)为屏幕的行方向。在一示例中,每个柱状透镜下面有两行的像素。Here, the resolution of the screen is described by horizontal resolution and vertical resolution, where horizontal refers to the direction parallel to human eyes, and vertical refers to the direction perpendicular to human eyes. For example, for a screen with a resolution of 1920×1080, vertical When looking at it, the resolution in the vertical direction (that is, the resolution along the column direction) is 1920, and the resolution in the horizontal direction (that is, the resolution along the row direction) is 1080, as shown in Figure 3 in the vertical screen direction , in landscape orientation as shown in Figure 4. Wherein, the surface of the screen has a lenticular lens grating, and the lenticular lens grating is composed of a plurality of lenticular lenses. Referring to FIG. 5 , the direction of the lenticular lens (that is, the direction of the lenticular lens grating) is the row direction of the screen. In one example, there are two rows of pixels under each lenticular lens.
本发明实施例的技术方案,提供了一种具体3D显示屏的装置在2D显示模式下的图像处理算法,当柱镜光栅的方向与人眼方向垂直时,可以看到裸眼3D效果;当柱镜光栅的方向与人眼方向平行时,可以看到普通的2D效果,并且解决了垂直分辨率损失一半的问题。The technical solution of the embodiment of the present invention provides an image processing algorithm for a specific 3D display device in 2D display mode. When the direction of the lenticular grating is perpendicular to the direction of the human eye, the naked-eye 3D effect can be seen; When the direction of the mirror grating is parallel to the direction of the human eye, ordinary 2D effects can be seen, and the problem of losing half of the vertical resolution is solved.
图6为本发明实施例的显示处理方法的流程示意图一,如图6所示,所述显示处理方法包括:FIG. 6 is a first schematic flow chart of a display processing method according to an embodiment of the present invention. As shown in FIG. 6 , the display processing method includes:
步骤601:将待显示图像的帧图像沿屏幕上列方向的分辨率压缩至1/N倍,N≥2,其中,所述屏幕具有光栅结构,所述列方向为与所述光栅结构垂直的方向。Step 601: Compress the resolution of the frame image of the image to be displayed along the column direction on the screen to 1/N times, N≥2, wherein the screen has a grating structure, and the column direction is perpendicular to the grating structure direction.
所述将待显示图像的帧图像沿屏幕上列方向的分辨率压缩至1/N倍之前,所述方法还包括:Before compressing the resolution of the frame image of the image to be displayed along the column direction on the screen to 1/N times, the method further includes:
确定所述屏幕当前的显示模式是第一显示模式;其中所述第一显示模式为二维显示模式。It is determined that the current display mode of the screen is a first display mode; wherein the first display mode is a two-dimensional display mode.
本发明实施例中,所述确定所述屏幕当前的显示模式是第一显示模式,包括:In the embodiment of the present invention, the determining that the current display mode of the screen is the first display mode includes:
检测终端的位姿参数;根据所述位姿参数,判断所述屏幕的显示模式是否为所述第一显示模式。Detecting pose parameters of the terminal; judging whether the display mode of the screen is the first display mode according to the pose parameters.
在一示例中,位姿参数为角度Angle,参照图11,通过加速度传感器检测Angle的计算方法如下:In one example, the pose parameter is the angle Angle. Referring to FIG. 11 , the calculation method of detecting Angle through the acceleration sensor is as follows:
Angle=-arcsin(z/Magnitude)×RADIANS_TO_DEGREES;Angle=-arcsin(z/Magnitude)×RADIANS_TO_DEGREES;
其中,RADIANS_TO_DEGREES=180/π;Among them, RADIANS_TO_DEGREES = 180/π;
x,y,z为加速度传感器三轴方向的加速度值。 x, y, z are the acceleration values in the three-axis direction of the acceleration sensor.
其中,Angle的值范围为[-90°,90°],-90°表示横屏朝上方向,0°表示垂直方向,90°表示横屏朝下方向。Among them, the value range of Angle is [-90°,90°], -90° indicates the upward direction of the horizontal screen, 0° indicates the vertical direction, and 90° indicates the downward direction of the horizontal screen.
本发明实施例中,所述确定所述屏幕当前的显示模式是第一显示模式,包括:In the embodiment of the present invention, the determining that the current display mode of the screen is the first display mode includes:
获得设置操作;基于所述设置操作,判断所述屏幕的显示模式是否为所述第一显示模式。A setting operation is obtained; based on the setting operation, it is judged whether the display mode of the screen is the first display mode.
本发明实施例中,第一显示模式是指二维显示模式,在具体实现时,二维显示模式也即横屏显示模式;相对地,屏幕还具有第二显示模式,其中,第二显示模式是指三维显示模式,具体实现时,三维显示模也即竖屏显示模式。In the embodiment of the present invention, the first display mode refers to the two-dimensional display mode. In actual implementation, the two-dimensional display mode is also the horizontal screen display mode; relatively, the screen also has a second display mode, wherein the second display mode Refers to the three-dimensional display mode. In actual implementation, the three-dimensional display mode is also the vertical screen display mode.
本发明实施例中,所述显示所述待显示图像包括将所述光栅结构的每一光栅对应所述M行相同像素。In the embodiment of the present invention, the displaying the image to be displayed includes associating each grating of the grating structure with the M rows of identical pixels.
本发明实施例中,所述光栅为柱镜光栅。In the embodiment of the present invention, the grating is a lenticular grating.
在一具体实施方式中,M为大于或等于2的偶数。M小于或等于N。In a specific embodiment, M is an even number greater than or equal to 2. M is less than or equal to N.
这里,以M为2为例,光栅结构的每一光栅就对应2行相同的像素,由于像素相同,因而可以弥补垂直分辨率损失一半的问题。当然,M还可以为4、6等其他偶数,这可以根据光栅结构的每一光栅对应的行数而确定。Here, taking M as 2 as an example, each grating of the grating structure corresponds to 2 rows of identical pixels. Since the pixels are the same, the problem of losing half of the vertical resolution can be compensated. Of course, M can also be other even numbers such as 4 and 6, which can be determined according to the number of rows corresponding to each grating of the grating structure.
M=N时,帧图像处理之前和处理之后的像素点相同,因而具有相同的显示区域。当M小于N时,帧图像处理之后的像素点少于处理之前的像素点,这种情况下,帧图像处理之后的显示区域相对于处理之前缩小了,可以方便用户单手操作。When M=N, the frame image has the same pixel points before and after processing, and thus has the same display area. When M is smaller than N, the number of pixels after frame image processing is less than that before processing. In this case, the display area after frame image processing is smaller than that before processing, which is convenient for users to operate with one hand.
本发明实施例中,所述将待显示图像的帧图像沿屏幕上列方向的分辨率压缩至1/N倍时,采用以下任意一种压缩算法进行压缩:In the embodiment of the present invention, when compressing the resolution of the frame image of the image to be displayed along the upper column direction of the screen to 1/N times, any of the following compression algorithms is used for compression:
二次线性插值、三次卷积算法、两次立方算法。Quadratic Linear Interpolation, Cubic Convolution Algorithm, Bicubic Algorithm.
本发明实施例中,基于所述目标图像的内容,确定所采用的压缩算法。在一具体示例中,可以根据不同的显示内容(图片、文字)采用不同的压缩算法,以达到最佳的用户体验效果。比如,在2D显示模式下,简单文字浏览时,采用二次线性插值算法,以达到性能最优的前提下满足文字效果阅读;在2D显示模式下,图库浏览时,采用两次立方算法,增加压缩算法处理,以达到效果优先。In the embodiment of the present invention, the compression algorithm adopted is determined based on the content of the target image. In a specific example, different compression algorithms may be used according to different display contents (pictures, texts) to achieve the best user experience effect. For example, in the 2D display mode, when browsing simple text, the quadratic linear interpolation algorithm is used to meet the text effect reading under the premise of optimal performance; The compression algorithm is processed to achieve the effect first.
在一具体示例中,将一帧画面通过采样压缩的方法,将垂直分辨率压缩一半,水平分辨率保持不变。例如,针对1920×1080分辨率的图像,竖屏情况下,1920像素点代表垂直分辨率,1080像素点代表水平分辨率;将每一帧1920×1080的图像通过一定的算法采样压缩为960×1080的图像。In a specific example, a frame of picture is compressed by sampling, and the vertical resolution is compressed by half, while the horizontal resolution remains unchanged. For example, for an image with a resolution of 1920×1080, in the case of a vertical screen, 1920 pixels represent the vertical resolution, and 1080 pixels represent the horizontal resolution; each frame of 1920×1080 image is sampled and compressed to 960× by a certain algorithm 1080p images.
参照图10,将垂直分辨率从1920压缩到960,水平方向分辨率保持不变。通过这一步的压缩算法得到了一帧960×1080分辨率的图像。Referring to Figure 10, the vertical resolution is compressed from 1920 to 960, and the horizontal resolution remains unchanged. Through the compression algorithm in this step, a frame of 960×1080 resolution image is obtained.
步骤602:将所述帧图像压缩后的每行像素复制至M行相同像素,M≥2;显示所述待显示图像。Step 602: Copy each row of pixels after the compression of the frame image to M rows of identical pixels, M≥2; display the image to be displayed.
本发明实施例中,所述将所述帧图像压缩后的每行像素复制至M行相同像素时,采用以下任意一种编码算法进行复制:In the embodiment of the present invention, when copying each row of pixels after the frame image compression to M rows of the same pixels, any of the following encoding algorithms is used for copying:
内存拷贝、指针直接访问、GPU图像合成。Memory copy, pointer direct access, GPU image synthesis.
参照图10,将压缩处理得到的每一帧960×1080的图像,再次经过倍行(doubleline)的编码方式得到1920×1080的图像,输入到显示屏进行显示。Referring to FIG. 10 , the 960×1080 image of each frame obtained through the compression process is again encoded by doubleline to obtain a 1920×1080 image, which is input to the display screen for display.
在一具体示例中,将压缩得到的一帧960×1080分辨率的图像按行分为960张1×1080像素的图像;其次,960张单行像素的图像,采用倍行(double line)的方式重新编码组合成一副1920×1080分辨率的图像进行显示。In a specific example, a compressed image with a resolution of 960×1080 is divided into 960 images of 1×1080 pixels by row; secondly, the 960 images of a single row of pixels are double-lined Re-encode and combine to form a 1920×1080 resolution image for display.
本发明实施例仅以1920×1080分辨率进行举例,比如对于2K 2560×1440,或者4K4096×2160等其他分辨率也同样适用。The embodiment of the present invention only takes 1920×1080 resolution as an example, for example, other resolutions such as 2K 2560×1440 or 4K 4096×2160 are also applicable.
图7为本发明实施例的显示处理方法的流程示意图二,如图7所示,所述显示处理方法包括:FIG. 7 is a second schematic flow diagram of a display processing method according to an embodiment of the present invention. As shown in FIG. 7 , the display processing method includes:
步骤701:检测手机是否处在竖屏或2D显示模式。Step 701: Detect whether the mobile phone is in portrait or 2D display mode.
步骤702:当处于竖屏或2D显示模式下,对每一帧显示图像进行压缩处理,其中,垂直分辨率压缩一半,水平分辨率保持不变。Step 702: When in the vertical screen or 2D display mode, perform compression processing on each frame of the display image, wherein the vertical resolution is compressed by half, and the horizontal resolution remains unchanged.
本发明实施例中,垂直分辨率是指帧图像沿屏幕上的列方向的分辨率,水平分辨率是指帧图像沿屏幕上的行方向的分辨率。In the embodiment of the present invention, the vertical resolution refers to the resolution of the frame image along the column direction on the screen, and the horizontal resolution refers to the resolution of the frame image along the row direction on the screen.
步骤703:对压缩后的图像,采用倍行的算法进行重新编码,将编码后的图像刷新到屏幕进行显示。Step 703: The compressed image is re-encoded using the multi-line algorithm, and the encoded image is refreshed to the screen for display.
本发明实施例中,检测手机是否处于横竖屏的状态,除了通过三轴加速度传感器外,还可以通过其他的菜单的方式直接切换2D和3D显示模式,参照图8和图9所示。In the embodiment of the present invention, to detect whether the mobile phone is in the state of horizontal or vertical screen, in addition to the three-axis acceleration sensor, it is also possible to directly switch between 2D and 3D display modes through other menus, as shown in Figure 8 and Figure 9.
图8为本发明实施例的显示处理方法的流程示意图三,如图8所示,所述显示处理方法包括:FIG. 8 is a third schematic flowchart of a display processing method according to an embodiment of the present invention. As shown in FIG. 8 , the display processing method includes:
步骤801:通过加速度检测手机是否处在2D显示模式,是时,执行步骤802,否时,执行步骤804。Step 801: Detect whether the mobile phone is in the 2D display mode through the acceleration, if yes, execute step 802, and if no, execute step 804.
参照图11,加速度检测横竖屏的角度计算方法如下:Referring to Figure 11, the angle calculation method for acceleration detection horizontal and vertical screens is as follows:
Angle=-arcsin(z/Magnitude)×RADIANS_TO_DEGREES;Angle=-arcsin(z/Magnitude)×RADIANS_TO_DEGREES;
其中,RADIANS_TO_DEGREES=180/π;Among them, RADIANS_TO_DEGREES = 180/π;
x,y,z为加速度传感器三轴方向的加速度值。 x, y, z are the acceleration values in the three-axis direction of the acceleration sensor.
其中,Andle的值范围为[-90°,90°],-90°表示横屏朝上方向,0°表示垂直方向,90°表示横屏朝下方向。Among them, the value range of Andle is [-90°,90°], -90° indicates the upward direction of the horizontal screen, 0° indicates the vertical direction, and 90° indicates the downward direction of the horizontal screen.
步骤802:对每一帧显示图像进行压缩处理,其中,垂直分辨率压缩一半,水平分辨率保持不变。Step 802: Perform compression processing on each frame of display image, wherein the vertical resolution is compressed by half, and the horizontal resolution remains unchanged.
步骤803:对压缩后的图像,采用倍行的算法进行重新编码,将编码后的图像刷新到屏幕进行显示。Step 803: The compressed image is re-encoded using the multi-line algorithm, and the encoded image is refreshed to the screen for display.
步骤804:3D显示处理流程。Step 804: 3D display processing flow.
图9为本发明实施例的显示处理方法的流程示意图四,如图9所示,所述显示处理方法包括:FIG. 9 is a schematic flow diagram IV of a display processing method according to an embodiment of the present invention. As shown in FIG. 9, the display processing method includes:
步骤901:通过设置菜单强制设置为2D显示模式。Step 901: Forcibly set to 2D display mode through the setting menu.
步骤902:对每一帧显示图像进行压缩处理,其中,垂直分辨率压缩一半,水平分辨率保持不变。Step 902: Perform compression processing on each frame of display image, wherein the vertical resolution is compressed by half, and the horizontal resolution remains unchanged.
本发明实施例中,垂直分辨率是指帧图像沿屏幕上的列方向的分辨率,水平分辨率是指帧图像沿屏幕上的行方向的分辨率。In the embodiment of the present invention, the vertical resolution refers to the resolution of the frame image along the column direction on the screen, and the horizontal resolution refers to the resolution of the frame image along the row direction on the screen.
步骤903:对压缩后的图像,采用倍行的算法进行重新编码,将编码后的图像刷新到屏幕进行显示。Step 903: The compressed image is re-encoded using the multi-line algorithm, and the encoded image is refreshed to the screen for display.
本发明实施例中,对压缩后的图像进行重新编码时,除了对实时显示的每一帧图像进行编码处理外,同样可以采用通过检测2D或3D不同显示模式情况下,通过预制不同模式下的资源文件图像,其中,2D模式下的资源图像采用倍行(double line)的方式进行处理,当检测到2D显示模式下时,加载2D显示模式下的资源文件即可。In the embodiment of the present invention, when re-encoding the compressed image, in addition to encoding each frame of image displayed in real time, it is also possible to detect different display modes of 2D or 3D, and to prefabricate images in different modes. The resource file image, wherein the resource image in the 2D mode is processed in a double line manner, and when the 2D display mode is detected, the resource file in the 2D display mode can be loaded.
目前,柱镜光栅中的柱状透镜都是在一个透镜下面包含两行像素,如图5所示。在后续的技术发展中,如果一个透镜下面包含四行像素或更多行的像素时,可以采用类似倍行(double line)的编码方式。Currently, the lenticular lenses in the lenticular lens grating contain two rows of pixels under one lens, as shown in FIG. 5 . In subsequent technical development, if a lens contains four or more rows of pixels, a coding method similar to double line can be used.
图12为本发明实施例的显示处理装置的结构组成示意图,如图12所示,所述装置包括:Fig. 12 is a schematic diagram of the structural composition of a display processing device according to an embodiment of the present invention. As shown in Fig. 12, the device includes:
压缩单元1201,用于将待显示图像的帧图像沿屏幕上列方向的分辨率压缩至1/N倍,N≥2,其中,所述屏幕具有光栅结构,所述列方向为与所述光栅结构垂直的方向;Compression unit 1201, configured to compress the resolution of the frame image of the image to be displayed along the column direction on the screen to 1/N times, N≥2, wherein the screen has a grating structure, and the column direction is the same as the grating structure. the vertical direction of the structure;
编码单元1202,用于将所述帧图像压缩后的每行像素复制至M行相同像素,M≥2;Encoding unit 1202, configured to copy each row of pixels after compression of the frame image to M rows of identical pixels, where M≥2;
显示单元1203,用于显示所述待显示图像。The display unit 1203 is configured to display the image to be displayed.
本发明实施例中,所述装置还包括:确定单元1204,用于确定所述屏幕当前的显示模式是第一显示模式;其中所述第一显示模式为二维显示模式。In the embodiment of the present invention, the device further includes: a determining unit 1204, configured to determine that the current display mode of the screen is a first display mode; wherein the first display mode is a two-dimensional display mode.
本发明实施例中,所述确定单元包括:In the embodiment of the present invention, the determination unit includes:
检测单元,用于检测终端的位姿参数;a detection unit, configured to detect pose parameters of the terminal;
第一判断单元,用于根据所述位姿参数,判断所述屏幕的显示模式是否为所述第一显示模式。A first judging unit, configured to judge whether the display mode of the screen is the first display mode according to the pose parameters.
本发明实施例中,所述确定单元包括:In the embodiment of the present invention, the determination unit includes:
获取单元,用于获得设置操作;Acquisition unit, used to obtain the set operation;
第二判断单元,用于基于所述设置操作,判断所述屏幕的显示模式是否为所述第一显示模式。A second judging unit, configured to judge whether the display mode of the screen is the first display mode based on the setting operation.
本发明实施例中,所述光栅结构为柱镜光栅。In the embodiment of the present invention, the grating structure is a lenticular grating.
本发明实施例中,所述显示所述待显示图像包括将所述光栅结构的每一光栅对应所述M行相同像素。In the embodiment of the present invention, the displaying the image to be displayed includes associating each grating of the grating structure with the M rows of identical pixels.
本发明实施例中,M为大于或等于2的偶数。。In the embodiment of the present invention, M is an even number greater than or equal to 2. .
本发明实施例中,M小于或等于N。In the embodiment of the present invention, M is less than or equal to N.
本发明实施例中,所述压缩单元1201,具体用于:采用以下任意一种压缩算法进行压缩:In the embodiment of the present invention, the compression unit 1201 is specifically configured to: use any of the following compression algorithms for compression:
二次线性插值、三次卷积算法、两次立方算法。Quadratic Linear Interpolation, Cubic Convolution Algorithm, Bicubic Algorithm.
本发明实施例中,所述编码单元1202,具体用于:采用以下任意一种编码算法进行复制:In the embodiment of the present invention, the encoding unit 1202 is specifically configured to: use any of the following encoding algorithms for copying:
内存拷贝、指针直接访问、GPU图像合成。Memory copy, pointer direct access, GPU image synthesis.
本领域技术人员应当理解,图12所示的显示处理装置中的各单元的实现功能可参照前述显示处理方法的相关描述而理解。图12所示的显示处理装置中的各单元的功能可通过运行于处理器上的程序而实现,也可通过具体的逻辑电路而实现。Those skilled in the art should understand that the functions implemented by each unit in the display processing device shown in FIG. 12 can be understood with reference to the relevant description of the display processing method. The functions of each unit in the display processing device shown in FIG. 12 can be realized by a program running on the processor, or can be realized by a specific logic circuit.
本发明实施例的显示处理装置可以设置在终端中,图13、14为本发明实施例的终端的硬件组成示意图。The display processing apparatus in the embodiment of the present invention may be set in a terminal, and FIGS. 13 and 14 are schematic diagrams of the hardware composition of the terminal in the embodiment of the present invention.
如图13所示,加速度传感器模块用来确定终端屏幕的显示模式,如2D显示模式和3D显示模式。加速度传感器将检测得到的结果传输给处理器,处理器根据检测结果对图像进行相应的处理,如在2D显示模式下进行压缩编码处理,将结果输出给3D显示模块。存储模块用于存储图像或者中间数据等。As shown in FIG. 13 , the acceleration sensor module is used to determine the display mode of the terminal screen, such as 2D display mode and 3D display mode. The acceleration sensor transmits the detection result to the processor, and the processor performs corresponding processing on the image according to the detection result, such as compressing and encoding processing in the 2D display mode, and outputs the result to the 3D display module. The storage module is used to store images or intermediate data, etc.
如图14所示,透镜、3D显示信号处理器和2D的液晶显示器(LCD,Liquid CrystalDisplay)模组一起组成3D模组,3D模组和其他组件,如扬声器、通信模组等一起组成终端,如手机、平板电脑、笔记本等。As shown in Figure 14, the lens, 3D display signal processor and 2D liquid crystal display (LCD, Liquid Crystal Display) module together form a 3D module, and the 3D module and other components, such as speakers and communication modules, together form a terminal. Such as mobile phones, tablets, notebooks, etc.
如图15所示,2D显示模式下,柱状透镜的方向与人眼方向平行时,当人眼在A点观看时,只能看到红色像素的“横像素”,当人眼在B点观看时,只能看到蓝色像素的“横像素”,当红色和蓝色的横像素不一样,或者存在单像素的情况下,人眼由A点从上至下移到B点时,虽然显示的是一帧画面,但是存在看到的内容不一致,造成人眼不适感。经过本发明实施例的图像处理后,当红色和蓝色的横像素一样,人眼由A点从上至下移到B点时,显示的是一帧画面,同时人眼看到的内容一致,不会存在不适应感。As shown in Figure 15, in 2D display mode, when the direction of the lenticular lens is parallel to the direction of the human eye, when the human eye looks at point A, only the "horizontal pixel" of the red pixel can be seen; when the human eye looks at point B , only the "horizontal pixels" of blue pixels can be seen. When the red and blue horizontal pixels are different, or there is a single pixel, when the human eye moves from point A to point B from top to bottom, although What is displayed is a frame of picture, but there are inconsistencies in the content seen, which causes discomfort to the human eye. After the image processing of the embodiment of the present invention, when the red and blue horizontal pixels are the same, and the human eye moves from point A to point B from top to bottom, a frame of picture is displayed, and the content seen by the human eye is consistent. There will be no discomfort.
图16为本发明实施例的终端的结构组成示意图,如图16所示,所述终端包括:处理器1601、屏幕1602;其中,所述屏幕1602具有光栅结构;FIG. 16 is a schematic diagram of the structural composition of a terminal according to an embodiment of the present invention. As shown in FIG. 16, the terminal includes: a processor 1601 and a screen 1602; wherein, the screen 1602 has a grating structure;
所述处理器1601,用于将待显示图像的帧图像沿屏幕上列方向的分辨率压缩至1/N倍,N≥2,其中,所述屏幕具有光栅结构,所述列方向为与所述光栅结构垂直的方向;将所述帧图像压缩后的每行像素复制至M行相同像素,M≥2;The processor 1601 is configured to compress the resolution of the frame image of the image to be displayed along the column direction on the screen to 1/N times, N≥2, wherein the screen has a grating structure, and the column direction is the same as the column direction The vertical direction of the grating structure; copy each line of pixels after the frame image compression to M lines of the same pixels, M≥2;
所述屏幕1602,用于显示所述待显示图像。The screen 1602 is used to display the image to be displayed.
本发明实施例中,所述处理器1601,还用于在将待显示图像的帧图像沿屏幕上列方向的分辨率压缩至1/N倍之前,确定所述屏幕当前的显示模式是第一显示模式;其中所述第一显示模式为二维显示模式。In the embodiment of the present invention, the processor 1601 is further configured to determine that the current display mode of the screen is the first before compressing the resolution of the frame image of the image to be displayed along the column direction of the screen to 1/N times. Display mode; wherein the first display mode is a two-dimensional display mode.
所述终端还包括:The terminal also includes:
加速度传感器1603,用于检测终端的位姿参数;The acceleration sensor 1603 is used to detect the pose parameters of the terminal;
所述处理器1601,还用于根据所述位姿参数,判断所述屏幕的显示模式是否为所述第一显示模式。The processor 1601 is further configured to determine whether the display mode of the screen is the first display mode according to the pose parameters.
本发明实施例中,所述终端还包括:In the embodiment of the present invention, the terminal further includes:
输入装置1604,用于获得设置操作;Input device 1604, used for obtaining setting operation;
所述处理器1601,还用于基于所述设置操作,判断所述屏幕的显示模式是否为所述第一显示模。The processor 1601 is further configured to determine whether the display mode of the screen is the first display mode based on the setting operation.
本发明实施例中,所述显示所述待显示图像包括将所述光栅结构的每一光栅对应所述M行相同像素。In the embodiment of the present invention, the displaying the image to be displayed includes associating each grating of the grating structure with the M rows of identical pixels.
本发明实施例中,M为大于或等于2的偶数。In the embodiment of the present invention, M is an even number greater than or equal to 2.
本发明实施例中,M小于或等于N。In the embodiment of the present invention, M is less than or equal to N.
本发明实施例中,所述将待显示图像的帧图像沿屏幕上列方向的分辨率压缩至1/N倍时,采用以下任意一种压缩算法进行压缩:In the embodiment of the present invention, when compressing the resolution of the frame image of the image to be displayed along the upper column direction of the screen to 1/N times, any of the following compression algorithms is used for compression:
二次线性插值、三次卷积算法、两次立方算法。Quadratic Linear Interpolation, Cubic Convolution Algorithm, Bicubic Algorithm.
本发明实施例中,所述将所述帧图像压缩后的每行像素复制至M行相同像素时,采用以下任意一种编码算法进行复制:In the embodiment of the present invention, when copying each row of pixels after the frame image compression to M rows of the same pixels, any of the following encoding algorithms is used for copying:
内存拷贝、指针直接访问、GPU图像合成。Memory copy, pointer direct access, GPU image synthesis.
本发明实施例还提供一种显示处理方法,如图17所示,所述方法包括:The embodiment of the present invention also provides a display processing method, as shown in FIG. 17 , the method includes:
步骤1701:检测当前屏幕的显示模式,其中,所述屏幕为具有光栅结构的显示装置。Step 1701: Detect the display mode of the current screen, wherein the screen is a display device with a grating structure.
步骤1702:在确定所述显示模式为二维显示模式时,将待显示图像的帧图像的垂直分辨率压缩后复制至M行后进行显示。Step 1702: When it is determined that the display mode is the 2D display mode, compress the vertical resolution of the frame image of the image to be displayed and copy it to M lines for display.
对应地,本发明实施例还提供一种显示处理装置,所述装置包括:Correspondingly, an embodiment of the present invention also provides a display processing device, the device comprising:
检测单元,用于检测当前屏幕的显示模式,其中,所述屏幕为具有光栅结构的显示装置;a detection unit, configured to detect the display mode of the current screen, wherein the screen is a display device with a grating structure;
图像处理单元,用于在确定所述显示模式为二维显示模式时,将待显示图像的帧图像的垂直分辨率压缩后复制至M行后进行显示。The image processing unit is configured to, when it is determined that the display mode is a two-dimensional display mode, compress the vertical resolution of the frame image of the image to be displayed and copy it to M lines for display.
本发明实施例中,垂直分辨率是指帧图像沿屏幕上的列方向的分辨率。本领域技术人员应当理解,将待显示图像的帧图像的垂直分辨率压缩后复制至M行后进行显示的具体处理过程可参照本发明实施例上述任意所述的显示处理方法进行理解。In the embodiment of the present invention, the vertical resolution refers to the resolution of the frame image along the column direction on the screen. Those skilled in the art should understand that the specific processing process of compressing the vertical resolution of the frame image to be displayed and copying it to M lines for display can be understood with reference to any of the display processing methods described above in the embodiments of the present invention.
本发明实施例还提供一种显示处理方法,如图18所示,所述方法包括:The embodiment of the present invention also provides a display processing method, as shown in FIG. 18, the method includes:
步骤1801:检测当前屏幕的显示模式,其中,所述屏幕为具有光栅结构的显示装置。Step 1801: Detect the display mode of the current screen, wherein the screen is a display device with a grating structure.
步骤1802:在确定所述显示模式为二维显示模式时,将待显示图像的帧图像的垂直分辨率进行补偿后进行显示。Step 1802: When it is determined that the display mode is the two-dimensional display mode, display after the vertical resolution of the frame image of the image to be displayed is compensated.
对应地,本发明实施例还提供一种显示处理装置,所述装置包括:Correspondingly, an embodiment of the present invention also provides a display processing device, the device comprising:
检测单元,用于检测当前屏幕的显示模式,其中,所述屏幕为具有光栅结构的显示装置;a detection unit, configured to detect the display mode of the current screen, wherein the screen is a display device with a grating structure;
图像处理单元,用于在确定所述显示模式为二维显示模式时,将待显示图像的帧图像的垂直分辨率进行补偿后进行显示。The image processing unit is configured to, when it is determined that the display mode is a two-dimensional display mode, compensate the vertical resolution of the frame image of the image to be displayed before displaying it.
本发明实施例中,垂直分辨率是指帧图像沿屏幕上的列方向的分辨率。本领域技术人员应当理解,将待显示图像的帧图像的垂直分辨率进行补偿后进行显示具体为:将待显示图像的帧图像的垂直分辨率压缩后复制至M行后进行显示,具体的处理过程可参照本发明实施例上述任意所述的显示处理方法进行理解。In the embodiment of the present invention, the vertical resolution refers to the resolution of the frame image along the column direction on the screen. Those skilled in the art should understand that displaying after compensating the vertical resolution of the frame image of the image to be displayed is specifically: compressing the vertical resolution of the frame image of the image to be displayed and copying it to M lines before displaying, the specific processing The process can be understood with reference to any of the display processing methods described above in the embodiments of the present invention.
本发明实施例还提供一种显示处理方法,应用于具有光栅结构的显示屏幕,如图19所示,所述方法包括:An embodiment of the present invention also provides a display processing method, which is applied to a display screen with a grating structure, as shown in FIG. 19 , the method includes:
步骤1901:确定待显示图像的显示模式。Step 1901: Determine the display mode of the image to be displayed.
步骤1902:在确定所述显示模式为二维显示模式时,将所述待显示图像的帧图像的垂直分辨率进行补偿后进行显示。Step 1902: When it is determined that the display mode is a two-dimensional display mode, display after the vertical resolution of the frame image of the image to be displayed is compensated.
对应地,本发明实施例还提供一种显示处理装置,所述装置包括:Correspondingly, an embodiment of the present invention also provides a display processing device, the device comprising:
确定单元,用于确定待显示图像的显示模式;a determining unit, configured to determine a display mode of the image to be displayed;
图像处理单元,用于在确定所述显示模式为二维显示模式时,将所述待显示图像的帧图像的垂直分辨率进行补偿后进行显示。The image processing unit is configured to, when it is determined that the display mode is a two-dimensional display mode, compensate the vertical resolution of the frame image of the image to be displayed before displaying it.
本发明实施例中,垂直分辨率是指帧图像沿屏幕上的列方向的分辨率。本领域技术人员应当理解,将待显示图像的帧图像的垂直分辨率进行补偿后进行显示具体为:将待显示图像的帧图像的垂直分辨率压缩后复制至M行后进行显示,具体的处理过程可参照本发明实施例上述任意所述的显示处理方法进行理解。In the embodiment of the present invention, the vertical resolution refers to the resolution of the frame image along the column direction on the screen. Those skilled in the art should understand that displaying after compensating the vertical resolution of the frame image of the image to be displayed is specifically: compressing the vertical resolution of the frame image of the image to be displayed and copying it to M lines before displaying, the specific processing The process can be understood with reference to any of the display processing methods described above in the embodiments of the present invention.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611021748.5ACN108076208B (en) | 2016-11-15 | 2016-11-15 | Display processing method and device and terminal |
| PCT/CN2017/111052WO2018090923A1 (en) | 2016-11-15 | 2017-11-15 | Display processing method and device, and terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611021748.5ACN108076208B (en) | 2016-11-15 | 2016-11-15 | Display processing method and device and terminal |
| Publication Number | Publication Date |
|---|---|
| CN108076208Atrue CN108076208A (en) | 2018-05-25 |
| CN108076208B CN108076208B (en) | 2021-01-01 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201611021748.5AActiveCN108076208B (en) | 2016-11-15 | 2016-11-15 | Display processing method and device and terminal |
| Country | Link |
|---|---|
| CN (1) | CN108076208B (en) |
| WO (1) | WO2018090923A1 (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2020057139A1 (en)* | 2018-09-17 | 2020-03-26 | 深圳Tcl新技术有限公司 | Image display method and apparatus, and smart television and readable storage medium |
| CN112882672A (en)* | 2021-02-26 | 2021-06-01 | 京东方科技集团股份有限公司 | Near-eye display control method and device and near-eye display equipment |
| CN112929637A (en)* | 2019-12-05 | 2021-06-08 | 北京芯海视界三维科技有限公司 | Method for realizing 3D image display and 3D display equipment |
| CN113012636A (en)* | 2021-05-25 | 2021-06-22 | 北京芯海视界三维科技有限公司 | Time schedule controller and display device |
| CN113012621A (en)* | 2021-05-25 | 2021-06-22 | 北京芯海视界三维科技有限公司 | Time schedule controller and display device |
| WO2022247647A1 (en)* | 2021-05-25 | 2022-12-01 | 北京芯海视界三维科技有限公司 | Timing controller and display device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005134663A (en)* | 2003-10-30 | 2005-05-26 | Asahi Glass Co Ltd | Multi-function display device and switching liquid crystal panel for slit mask formation used in the device |
| CN101374244A (en)* | 2007-08-21 | 2009-02-25 | 株式会社东芝 | Stereoscopic image display device |
| CN102932646A (en)* | 2011-08-10 | 2013-02-13 | 上海易维视科技有限公司 | Multi-view display method and system of two-dimensional image |
| CN103002295A (en)* | 2011-09-08 | 2013-03-27 | 上海易维视科技有限公司 | Method and system for displaying two-dimensional images on multi-view three-dimensional display equipment for naked eyes |
| CN105575345A (en)* | 2014-10-13 | 2016-05-11 | 青岛海信电器股份有限公司 | Image display method and image display device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| GB2415850A (en)* | 2004-06-29 | 2006-01-04 | Sharp Kk | Multiple view directional display operable in two orientations. |
| CN101304540B (en)* | 2008-06-19 | 2010-06-02 | 浙江大学 | General Stereoscopic Image Synthesis Method Based on Lenticular LCD Autostereoscopic Display Device |
| CN101540927A (en)* | 2009-04-29 | 2009-09-23 | 安徽华东光电技术研究所 | Stereoscopic image generating method of grating LCD digital high-definition stereoscopic television |
| JP5621501B2 (en)* | 2010-10-19 | 2014-11-12 | ソニー株式会社 | Stereoscopic display device and stereoscopic display method |
| CN102186091B (en)* | 2011-01-25 | 2012-12-05 | 天津大学 | Grating-based video pixel arrangement method for multi-view stereoscopic mobile phone |
| JP2014522505A (en)* | 2011-06-01 | 2014-09-04 | コーニンクレッカ フィリップス エヌ ヴェ | Stereoscopic display with improved vertical resolution |
| CN102385816B (en)* | 2011-11-22 | 2013-04-10 | 吉林大学 | Manufacture method of slit grating for LED (Light Emitting Display) screen naked-eye stereo display |
| CN102572489A (en)* | 2012-02-27 | 2012-07-11 | 友达光电股份有限公司 | Control method for two-dimensional and three-dimensional display |
| CN102801999B (en)* | 2012-07-19 | 2015-03-04 | 天津大学 | Synthetizing algorithm based on naked eye three-dimensional displaying technology |
| CN102843569B (en)* | 2012-08-31 | 2017-06-16 | 上海易维视科技有限公司 | A kind of Automatic multiple-viewpoint stereoscopic display |
| CN103402108A (en)* | 2013-07-30 | 2013-11-20 | 上海易维视科技有限公司 | Multi-viewpoint 3D (3-dimensional) format arrangement method |
| CN104020573B (en)* | 2014-06-04 | 2016-03-23 | 四川大学 | A multi-viewpoint 3D display device based on orthogonal polarization directional backlight |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005134663A (en)* | 2003-10-30 | 2005-05-26 | Asahi Glass Co Ltd | Multi-function display device and switching liquid crystal panel for slit mask formation used in the device |
| CN101374244A (en)* | 2007-08-21 | 2009-02-25 | 株式会社东芝 | Stereoscopic image display device |
| CN102932646A (en)* | 2011-08-10 | 2013-02-13 | 上海易维视科技有限公司 | Multi-view display method and system of two-dimensional image |
| CN103002295A (en)* | 2011-09-08 | 2013-03-27 | 上海易维视科技有限公司 | Method and system for displaying two-dimensional images on multi-view three-dimensional display equipment for naked eyes |
| CN105575345A (en)* | 2014-10-13 | 2016-05-11 | 青岛海信电器股份有限公司 | Image display method and image display device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2020057139A1 (en)* | 2018-09-17 | 2020-03-26 | 深圳Tcl新技术有限公司 | Image display method and apparatus, and smart television and readable storage medium |
| US11178313B2 (en) | 2018-09-17 | 2021-11-16 | Shenzhen Tcl New Technology Co., Ltd. | Image display method, image display device, smart TV and readable storage medium |
| WO2021110026A1 (en)* | 2019-12-05 | 2021-06-10 | 视觉技术创投私人有限公司 | Method for realizing 3d image display, and 3d display device |
| CN112929637A (en)* | 2019-12-05 | 2021-06-08 | 北京芯海视界三维科技有限公司 | Method for realizing 3D image display and 3D display equipment |
| US20220417494A1 (en)* | 2019-12-05 | 2022-12-29 | Beijing Ivisual 3d Technology Co., Ltd. | Method for realizing 3d image display, and 3d display device |
| EP4068780A4 (en)* | 2019-12-05 | 2023-12-20 | Beijing Ivisual 3D Technology Co., Ltd. | Method for realizing 3d image display, and 3d display device |
| CN112882672A (en)* | 2021-02-26 | 2021-06-01 | 京东方科技集团股份有限公司 | Near-eye display control method and device and near-eye display equipment |
| CN112882672B (en)* | 2021-02-26 | 2024-01-23 | 京东方科技集团股份有限公司 | Near-eye display control method and device and near-eye display equipment |
| CN113012636A (en)* | 2021-05-25 | 2021-06-22 | 北京芯海视界三维科技有限公司 | Time schedule controller and display device |
| CN113012621A (en)* | 2021-05-25 | 2021-06-22 | 北京芯海视界三维科技有限公司 | Time schedule controller and display device |
| WO2022247646A1 (en)* | 2021-05-25 | 2022-12-01 | 北京芯海视界三维科技有限公司 | Timing controllers and display device |
| WO2022247645A1 (en)* | 2021-05-25 | 2022-12-01 | 北京芯海视界三维科技有限公司 | Timing controller and display device |
| WO2022247647A1 (en)* | 2021-05-25 | 2022-12-01 | 北京芯海视界三维科技有限公司 | Timing controller and display device |
| Publication number | Publication date |
|---|---|
| WO2018090923A1 (en) | 2018-05-24 |
| CN108076208B (en) | 2021-01-01 |
| Publication | Publication Date | Title |
|---|---|---|
| US8791989B2 (en) | Image processing apparatus, image processing method, recording method, and recording medium | |
| US8675048B2 (en) | Image processing apparatus, image processing method, recording method, and recording medium | |
| CN108076208A (en) | A kind of display processing method and device, terminal | |
| US9159135B2 (en) | Systems, methods, and computer program products for low-latency warping of a depth map | |
| CN104040457B (en) | Mobile display device | |
| US20170280133A1 (en) | Stereo image recording and playback | |
| US20180184066A1 (en) | Light field retargeting for multi-panel display | |
| US20130027389A1 (en) | Making a two-dimensional image into three dimensions | |
| CN103236074B (en) | A kind of 2D/3D image processing method and device | |
| US9495795B2 (en) | Image recording device, three-dimensional image reproducing device, image recording method, and three-dimensional image reproducing method | |
| JP2011090400A (en) | Image display device, method, and program | |
| US8368690B1 (en) | Calibrator for autostereoscopic image display | |
| CN105704479A (en) | Interpupillary distance measuring method and system for 3D display system and display device | |
| CN105763865A (en) | Naked eye 3D augmented reality method and device based on transparent liquid crystals | |
| KR20140089860A (en) | Display apparatus and display method thereof | |
| US20230283759A1 (en) | System and method for presenting three-dimensional content | |
| US9007404B2 (en) | Tilt-based look around effect image enhancement method | |
| CN116325720B (en) | Dynamic resolution of depth conflicts in telepresence | |
| CN116450002A (en) | VR image processing method and device, electronic device and readable storage medium | |
| CN114815286B (en) | Method, device and equipment for determining parameters of full parallax three-dimensional light field display system | |
| US9674501B2 (en) | Terminal for increasing visual comfort sensation of 3D object and control method thereof | |
| CN103873842A (en) | Display method and display device | |
| US20240121373A1 (en) | Image display method and 3d display system | |
| US9547933B2 (en) | Display apparatus and display method thereof | |
| KR20120063349A (en) | Converting method, device and system for 3d stereoscopic cartoon, recording medium for the same |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |