CN107734322B - Image display method and device for naked eye 3D display terminal and terminal - Google Patents
Image display method and device for naked eye 3D display terminal and terminal Download PDFInfo
- Publication number
- CN107734322B CN107734322B CN201711128954.0A CN201711128954A CN107734322B CN 107734322 B CN107734322 B CN 107734322B CN 201711128954 A CN201711128954 A CN 201711128954A CN 107734322 B CN107734322 B CN 107734322B
- Authority
- CN
- China
- Prior art keywords
- display mode
- angular velocity
- eye
- display
- naked
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 120
- 238000002156 mixing Methods 0.000 claims description 204
- 230000008569 process Effects 0.000 claims description 80
- 238000004590 computer program Methods 0.000 claims description 10
- 238000001514 detection method Methods 0.000 claims description 3
- 230000008859 change Effects 0.000 description 18
- 230000007423 decrease Effects 0.000 description 16
- 230000000694 effects Effects 0.000 description 16
- 230000003068 static effect Effects 0.000 description 6
- 230000007704 transition Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 3
- 239000004973 liquid crystal related substance Substances 0.000 description 3
- 230000001131 transforming effect Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 230000035772 mutation Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Landscapes
- Controls And Circuits For Display Device (AREA)
- Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
- Processing Or Creating Images (AREA)
Abstract
本发明提供了一种用于裸眼3D显示终端的图像显示方法、装置及终端,该方法包括:以第一显示模式对图像内容进行显示;确定是否将第一显示模式切换为第二显示模式,其中,第一显示模式为3D显示模式和2D显示模式中的一种,第二显示模式为3D显示模式和2D显示模式中的另一种;当确定将第一显示模式切换为第二显示模式时,以渐变显示模式对图像内容进行显示,从而将第一显示模式经由渐变显示模式切换为第二显示模式。因此,本发明的方案,避免了裸眼3D显示终端在3D显示模式和2D显示模式之间进行切换时,由于送入用户眼睛的内容产生突变而使用户眼睛感到不适,提升了用户的观看体验。
The present invention provides an image display method, device and terminal for a naked-eye 3D display terminal. The method includes: displaying image content in a first display mode; determining whether to switch the first display mode to a second display mode, Wherein, the first display mode is one of 3D display mode and 2D display mode, and the second display mode is the other one of 3D display mode and 2D display mode; when it is determined to switch the first display mode to the second display mode When the image content is displayed in the gradient display mode, the first display mode is switched to the second display mode via the gradient display mode. Therefore, the solution of the present invention avoids discomfort to the user's eyes due to sudden changes in the content sent to the user's eyes when the naked-eye 3D display terminal switches between the 3D display mode and the 2D display mode, thereby improving the user's viewing experience.
Description
技术领域technical field
本发明涉及3D系统控制领域,尤其涉及一种用于裸眼3D显示终端的图像显示方法、装置及终端。The present invention relates to the field of 3D system control, and in particular, to an image display method, device and terminal for a naked-eye 3D display terminal.
背景技术Background technique
裸眼3D显示技术能够给用户提供非常好的3D立体视觉观看体验。裸眼3D显示终端一般包括相对设置的显示面板和分光装置,在裸眼3D显示终端上进行裸眼3D显示时,首先对立体图像进行排图,即将左眼图像(简称左图)和右眼图像(简称右图)按照一定规则排列显示在显示面板上,同时配合设置在显示面板上的分光装置的分光作用,将左眼图像送入用户的左眼,将右眼图像送入用户的右眼,从而使用户观看到3D影像。The naked-eye 3D display technology can provide users with a very good 3D stereoscopic viewing experience. The naked-eye 3D display terminal generally includes a display panel and a light splitting device arranged oppositely. When the naked-eye 3D display is performed on the naked-eye 3D display terminal, the stereoscopic images are first arranged, that is, the left-eye image (referred to as the left image) and the right-eye image (referred to as the left image). The right picture) is arranged and displayed on the display panel according to certain rules, and at the same time, the left eye image is sent to the user's left eye, and the right eye image is sent to the user's right eye, so as to cooperate with the light splitting effect of the light splitting device arranged on the display panel. Allow users to watch 3D images.
目前,市面上的大部分裸眼3D显示终端均兼容有3D显示模式和2D显示模式,可以根据用户的实际观看需要,在3D显示模式和2D显示模式之间进行切换。但是,对于相同的图像源,例如同一部电影,在以3D显示模式进行显示时,送入用户左眼为左图,送入用户右眼的为右图,在以2D显示模式进行显示时,送入用户左眼和右眼的均为左图或者右图,因此,在3D显示模式和2D显示模式之间进行切换时,由于送入用户其中一只眼睛的内容突变,例如从3D显示模式切换到2D显示模式,送入用户左眼的内容由左图突变为右图;而从2D显示模式切换到3D显示模式,送入用户左眼的内容由右图变为左图,从而使得用户眼睛很不舒服,进而降低了用户的观看体验。At present, most naked-eye 3D display terminals on the market are compatible with a 3D display mode and a 2D display mode, and can switch between the 3D display mode and the 2D display mode according to the actual viewing needs of the user. However, for the same image source, such as the same movie, when displayed in 3D display mode, the left image is sent to the user's left eye, and the right image is sent to the user's right eye. When displayed in 2D display mode, The images sent to the user's left and right eyes are either left or right images. Therefore, when switching between the 3D display mode and the 2D display mode, the content sent to one of the user's eyes is suddenly changed, for example, from the 3D display mode. When switching to 2D display mode, the content sent to the user's left eye changes from the left image to the right image; while switching from 2D display mode to 3D display mode, the content sent to the user's left eye changes from the right image to the left image, which makes the user Eyes are uncomfortable, which in turn degrades the user's viewing experience.
发明内容SUMMARY OF THE INVENTION
本发明的实施例提供了一种用于裸眼3D显示终端的图像显示方法、装置及终端,以解决现有技术中裸眼3D显示终端在3D显示模式和2D显示模式之间进行切换时,由于送入用户眼睛的内容产生突变使用户眼睛感到不适从而降低用户的观看体验的问题。Embodiments of the present invention provide an image display method, device and terminal for a naked-eye 3D display terminal, so as to solve the problem that when the naked-eye 3D display terminal switches between the 3D display mode and the 2D display mode in the prior art, due to the The sudden change of the content entering the user's eyes makes the user's eyes feel uncomfortable, thereby reducing the user's viewing experience.
本发明的实施例提供了一种用于裸眼3D显示终端的图像显示方法,包括:An embodiment of the present invention provides an image display method for a naked-eye 3D display terminal, including:
以第一显示模式对图像内容进行显示;displaying the image content in the first display mode;
确定是否将所述第一显示模式切换为第二显示模式,其中,所述第一显示模式为3D显示模式和2D显示模式中的一种,所述第二显示模式为3D显示模式和2D显示模式中的另一种;Determine whether to switch the first display mode to a second display mode, wherein the first display mode is one of a 3D display mode and a 2D display mode, and the second display mode is a 3D display mode and a 2D display mode another of the modes;
当确定将所述第一显示模式切换为所述第二显示模式时,以渐变显示模式对所述图像内容进行显示,从而将所述第一显示模式经由所述渐变显示模式切换为所述第二显示模式。When it is determined to switch the first display mode to the second display mode, the image content is displayed in a gradient display mode, so that the first display mode is switched to the first display mode via the gradient display mode Two display modes.
其中,上述方案中,所述以渐变显示模式对所述图像内容进行显示包括:Wherein, in the above solution, the displaying the image content in a gradient display mode includes:
获取所述图像内容的左眼视图和右眼视图的混合图像;obtaining a mixed image of a left-eye view and a right-eye view of the image content;
将所述混合图像作为目标左眼视图,将所述右眼视图作为目标右眼视图,或者,将所述混合图像作为目标右眼视图,将所述左眼视图作为目标左眼视图,根据所述目标左眼视图和所述目标右眼视图进行裸眼立体显示。Take the mixed image as the target left eye view and the right eye view as the target right eye view, or take the mixed image as the target right eye view and take the left eye view as the target left eye view, according to the The left-eye view of the target and the right-eye view of the target are displayed in a naked-eye stereoscopic manner.
其中,上述方案中,所述确定是否将所述第一显示模式切换为第二显示模式的步骤,包括:Wherein, in the above solution, the step of determining whether to switch the first display mode to the second display mode includes:
获取裸眼3D显示终端的第一运动状态信息;acquiring first motion state information of the naked-eye 3D display terminal;
根据所述第一运动状态信息确定是否将所述第一显示模式切换为所述第二显示模式;Determine whether to switch the first display mode to the second display mode according to the first motion state information;
或者or
检测裸眼3D显示终端是否接收到显示模式切换指令;Detect whether the naked-eye 3D display terminal receives a display mode switching instruction;
当检测到所述裸眼3D显示终端接收到显示模式切换指令时,确定将所述第一显示模式切换为所述第二显示模式。When it is detected that the naked-eye 3D display terminal receives a display mode switching instruction, it is determined to switch the first display mode to the second display mode.
其中,上述方案中,Among them, in the above scheme,
所述第一运动状态信息包括所述裸眼3D显示终端的角速度信息;The first motion state information includes angular velocity information of the naked-eye 3D display terminal;
所述第一显示模式为3D显示模式,且所述第二显示模式为2D显示模式,所述根据所述第一运动状态信息确定是否将所述第一显示模式切换为所述第二显示模式的步骤,包括:The first display mode is a 3D display mode, and the second display mode is a 2D display mode, and determining whether to switch the first display mode to the second display mode according to the first motion state information steps, including:
根据所述裸眼3D显示终端的角速度信息,确定目标角速度;Determine the target angular velocity according to the angular velocity information of the naked-eye 3D display terminal;
确定所述目标角速度的绝对值是否大于或等于第一预设阈值;determining whether the absolute value of the target angular velocity is greater than or equal to a first preset threshold;
当所述目标角速度的绝对值大于或等于所述第一预设阈值时,确定将所述第一显示模式切换为所述第二显示模式;When the absolute value of the target angular velocity is greater than or equal to the first preset threshold, determining to switch the first display mode to the second display mode;
和/或and / or
所述第一显示模式为2D显示模式,且所述第二显示模式为3D显示模式,所述根据所述第一运动状态信息确定是否将所述第一显示模式切换为所述第二显示模式的步骤,包括:The first display mode is a 2D display mode, and the second display mode is a 3D display mode, and determining whether to switch the first display mode to the second display mode according to the first motion state information steps, including:
根据所述裸眼3D显示终端的角速度信息,确定目标角速度;Determine the target angular velocity according to the angular velocity information of the naked-eye 3D display terminal;
确定所述目标角速度的绝对值是否小于第二预设阈值;determining whether the absolute value of the target angular velocity is less than a second preset threshold;
当所述目标角速度的绝对值小于所述第二预设阈值时,确定将所述第一显示模式切换为所述第二显示模式。When the absolute value of the target angular velocity is smaller than the second preset threshold, it is determined to switch the first display mode to the second display mode.
其中,上述方案中,Among them, in the above scheme,
所述角速度信息包括所述裸眼3D显示终端绕Y方向旋转的第二角速度,所述根据所述裸眼3D显示终端的角速度信息,确定目标角速度的步骤,包括:The angular velocity information includes the second angular velocity of the naked-eye 3D display terminal rotating around the Y direction, and the step of determining the target angular velocity according to the angular velocity information of the naked-eye 3D display terminal includes:
将所述第二角速度确定为目标角速度;determining the second angular velocity as a target angular velocity;
或者or
所述角速度信息包括所述裸眼3D显示终端绕X方向旋转的第一角速度、绕Y方向旋转的第二角速度,所述根据所述裸眼3D显示终端的角速度信息,确定目标角速度的步骤,包括:The angular velocity information includes a first angular velocity of the naked-eye 3D display terminal rotating around the X direction and a second angular velocity of the naked-eye 3D display terminal rotating around the Y direction. The step of determining the target angular velocity according to the angular velocity information of the naked-eye 3D display terminal includes:
将所述第一角速度和所述第二角速度的平方和的算术平方根,确定为目标角速度;The arithmetic square root of the sum of the squares of the first angular velocity and the second angular velocity is determined as the target angular velocity;
或者or
所述角速度信息包括所述裸眼3D显示终端绕X方向旋转的第一角速度、绕Y方向旋转的第二角速度、绕Z方向旋转的第三角速度,所述根据所述裸眼3D显示终端的角速度信息,确定目标角速度的步骤,包括:The angular velocity information includes a first angular velocity of the naked-eye 3D display terminal rotating around the X direction, a second angular velocity of rotating around the Y direction, and a third angular velocity of rotating around the Z direction, and the angular velocity information of the naked-eye 3D display terminal according to the naked-eye 3D display terminal. , the steps of determining the target angular velocity include:
对所述第一角速度、所述第二角速度和所述第三角速度进行加权求和处理,获得目标角速度;performing weighted summation processing on the first angular velocity, the second angular velocity and the third angular velocity to obtain a target angular velocity;
其中,所述X方向为与所述裸眼3D显示终端的宽度方向平行的方向,所述Y方向为与所述裸眼3D显示终端的长度方向平行的方向,所述Z方向为与所述裸眼3D显示终端的屏幕垂直的方向。The X direction is a direction parallel to the width direction of the naked eye 3D display terminal, the Y direction is a direction parallel to the length direction of the naked eye 3D display terminal, and the Z direction is a direction parallel to the naked eye 3D display terminal Displays the vertical orientation of the terminal's screen.
其中,上述方案中,所述获取所述图像内容的左眼视图和右眼视图的混合图像的步骤,包括:Wherein, in the above solution, the step of obtaining the mixed image of the left-eye view and the right-eye view of the image content includes:
确定图像渐变混合系数;Determine the image gradient blending coefficient;
根据如下公式,获取所述图像内容中的左眼视图和右眼视图的混合图像:Obtain the mixed image of the left-eye view and the right-eye view in the image content according to the following formula:
f(x,y)=g(x,y)×(1-α)+h(x,y)×α;f(x,y)=g(x,y)×(1-α)+h(x,y)×α;
其中,f(x,y)表示所述混合图像中坐标为(x,y)的像素的像素值,g(x,y)表示所述左眼视图和所述右眼视图中的一者中坐标为(x,y)的像素的像素值,h(x,y)表示所述左眼视图和所述右眼视图的另一者中坐标为(x,y)的像素的像素值,α表示所述图像渐变混合系数,0≤α≤1。Wherein, f(x, y) represents the pixel value of the pixel whose coordinates are (x, y) in the mixed image, and g(x, y) represents one of the left-eye view and the right-eye view the pixel value of the pixel whose coordinates are (x, y), h(x, y) represents the pixel value of the pixel whose coordinates are (x, y) in the other of the left-eye view and the right-eye view, α Indicates the gradient blending coefficient of the image, 0≤α≤1.
其中,上述方案中,所述确定图像渐变混合系数的步骤,包括:Wherein, in the above scheme, the step of determining the image gradient mixing coefficient includes:
获取裸眼3D显示终端的第二运动状态信息,并根据所述第二运动状态信息,确定图像渐变混合系数;acquiring second motion state information of the naked-eye 3D display terminal, and determining an image gradient mixing coefficient according to the second motion state information;
或者or
根据预先设定的时间间隔和渐变步长,确定图像渐变混合系数。Determine the image gradient blending coefficient according to the preset time interval and gradient step size.
其中,上述方案中,所述第二运动状态信息包括所述裸眼3D显示终端的角速度信息;Wherein, in the above solution, the second motion state information includes angular velocity information of the naked-eye 3D display terminal;
所述获取裸眼3D显示终端的第二运动状态信息,并根据所述第二运动状态信息,确定图像渐变混合系数的步骤,包括:The step of acquiring the second motion state information of the naked-eye 3D display terminal, and determining the image gradient mixing coefficient according to the second motion state information, includes:
每隔预设时间间隔获取所述裸眼3D显示终端的角速度信息;acquiring the angular velocity information of the naked-eye 3D display terminal every preset time interval;
根据所述裸眼3D显示终端的角速度信息,确定比较参数;Determine a comparison parameter according to the angular velocity information of the naked-eye 3D display terminal;
如果所述第一显示模式为3D显示模式,且所述第二显示模式为2D显示模式,则当所述比较参数处于第三预设阈值与第四预设阈值之间时,根据所述比较参数,获得图像渐变混合系数,直到获得的所述比较参数大于或等于所述第四预设阈值,和/或,如果所述第一显示模式为2D显示模式,且所述第二显示模式为3D显示模式,则当所述比较参数处于第三预设阈值与第四预设阈值之间时,根据所述比较参数,获得图像渐变混合系数,直到获得的所述比较参数连续小于所述第三预设阈值的次数达到预设次数。If the first display mode is a 3D display mode and the second display mode is a 2D display mode, when the comparison parameter is between the third preset threshold and the fourth preset threshold, according to the comparison parameter, obtain the image gradient mixing coefficient, until the obtained comparison parameter is greater than or equal to the fourth preset threshold, and/or, if the first display mode is a 2D display mode, and the second display mode is In the 3D display mode, when the comparison parameter is between the third preset threshold and the fourth preset threshold, an image gradient mixing coefficient is obtained according to the comparison parameter, until the obtained comparison parameter is continuously smaller than the third preset threshold. The number of times that the three preset thresholds reach the preset number of times.
其中,上述方案中,所述根据所述裸眼3D显示终端的角速度信息,确定比较参数的步骤,包括:Wherein, in the above solution, the step of determining the comparison parameter according to the angular velocity information of the naked-eye 3D display terminal includes:
根据每一次获取到的所述裸眼3D显示终端的角速度信息,确定目标角速度;Determine the target angular velocity according to the angular velocity information of the naked-eye 3D display terminal obtained each time;
将所述目标角速度的绝对值确定为比较参数,或者,对最近获得的第一预设数量的所述目标角速度进行加权求和处理,并将所述加权求和处理后得到的数值的绝对值确定为比较参数。Determine the absolute value of the target angular velocity as a comparison parameter, or perform a weighted summation process on the most recently obtained first preset number of the target angular velocity, and calculate the absolute value of the numerical value obtained after the weighted summation process Determined as a comparison parameter.
其中,上述方案中,Among them, in the above scheme,
所述角速度信息包括所述裸眼3D显示终端绕Y方向旋转的第二角速度,The angular velocity information includes the second angular velocity of the naked-eye 3D display terminal rotating around the Y direction,
所述根据每一次获取到的所述裸眼3D显示终端的角速度信息,确定目标角速度的步骤,包括:The step of determining the target angular velocity according to the angular velocity information of the naked-eye 3D display terminal obtained each time includes:
将每一次获取到的所述第二角速度确定为目标角速度;Determining the second angular velocity obtained every time as the target angular velocity;
或者or
所述角速度信息包括所述裸眼3D显示终端绕X方向旋转的第一角速度、绕Y方向旋转的第二角速度,所述根据每一次获取到的所述裸眼3D显示终端的角速度信息,确定目标角速度的步骤,包括:The angular velocity information includes a first angular velocity of the naked-eye 3D display terminal rotating around the X direction and a second angular velocity of the naked-eye 3D display terminal rotating around the Y direction, and the target angular velocity is determined according to the angular velocity information of the naked-eye 3D display terminal obtained each time. steps, including:
将每一次获取到的所述第一角速度和所述第二角速度的平方和的算术平方根,确定为目标角速度;The arithmetic square root of the sum of the squares of the first angular velocity and the second angular velocity obtained each time is determined as the target angular velocity;
或者or
所述角速度信息包括所述角速度信息包括所述裸眼3D显示终端绕X方向旋转的第一角速度、绕Y方向旋转的第二角速度、绕Z方向旋转的第三角速度,所述根据每一次获取到的所述裸眼3D显示终端的角速度信息,确定目标角速度的步骤,包括:The angular velocity information includes the angular velocity information including the first angular velocity of the naked-eye 3D display terminal rotating around the X direction, the second angular velocity of rotating around the Y direction, and the third angular velocity of rotating around the Z direction. The angular velocity information of the naked-eye 3D display terminal, the steps of determining the target angular velocity include:
对每一次获取到的所述第一角速度、所述第二角速度和所述第三角速度进行加权求和处理,获得目标角速度;Perform a weighted summation process on the first angular velocity, the second angular velocity and the third angular velocity obtained each time to obtain a target angular velocity;
其中,所述X方向为与所述裸眼3D显示终端的宽度方向平行的方向,所述Y方向为与所述裸眼3D显示终端的长度方向平行的方向,所述Z方向为与所述裸眼3D显示终端的屏幕垂直的方向。The X direction is a direction parallel to the width direction of the naked eye 3D display terminal, the Y direction is a direction parallel to the length direction of the naked eye 3D display terminal, and the Z direction is a direction parallel to the naked eye 3D display terminal Displays the vertical orientation of the terminal's screen.
其中,上述方案中,所述根据所述比较参数,获得图像渐变混合系数的步骤,包括:Wherein, in the above scheme, the step of obtaining the image gradient mixing coefficient according to the comparison parameter includes:
根据预设公式得到参考系数,并将所述参考系数确定为本次获得的图像渐变混合系数;According to the preset formula obtaining a reference coefficient, and determining the reference coefficient as the image gradient mixing coefficient obtained this time;
或者,or,
根据预设公式得到参考系数,并将所述参考系数与上一次获得的图像渐变混合系数中的较大者作为本次获得的图像渐变混合系数;According to the preset formula Obtain a reference coefficient, and use the larger of the reference coefficient and the image gradient mixing coefficient obtained last time as the image gradient mixing coefficient obtained this time;
其中,β表示所述参考系数,γ表示所述比较参数,Δx表示第一预设值。Wherein, β represents the reference coefficient, γ represents the comparison parameter, and Δx represents the first preset value.
其中,上述方案中,所述根据预先设定的时间间隔和渐变步长,确定图像渐变混合系数的步骤,包括:Wherein, in the above solution, the step of determining the image gradient mixing coefficient according to the preset time interval and gradient step size includes:
将所述图像渐变混合系数从初始值为1开始,每隔预先设定的时间间隔减小所述渐变步长,直到所述图像渐变混合系数减小到0为止;Starting from an initial value of 1 for the image gradient blending coefficient, and reducing the gradient step size every preset time interval, until the image gradient blending coefficient decreases to 0;
或者or
将所述图像渐变混合系数从初始值为0开始,每隔预先设定的时间间隔增大所述渐变步长,直到所述图像渐变混合系数增大到1为止。The image gradient blending coefficient is started from an initial value of 0, and the gradient step size is increased every preset time interval until the image gradient blending coefficient increases to 1.
其中,上述方案中,以渐变显示模式对所述图像内容进行显示的过程中,所述方法还包括:Wherein, in the above solution, in the process of displaying the image content in a gradient display mode, the method further includes:
确定是否从所述渐变显示模式切换回所述第一显示模式;determining whether to switch from the gradient display mode back to the first display mode;
当确定从所述渐变显示模式切换回所述第一显示模式时,恢复至以所述第一显示模式对图像内容进行显示。When it is determined to switch back to the first display mode from the gradient display mode, the display of the image content in the first display mode is restored.
其中,上述方案中,当所述第一显示模式为2D显示模式时,所述以第一显示模式对图像内容进行显示的步骤,包括:Wherein, in the above solution, when the first display mode is a 2D display mode, the step of displaying the image content in the first display mode includes:
从图像内容中的左眼视图和右眼视图中选取一幅进行2D显示;Select one of the left eye view and right eye view in the image content for 2D display;
或者or
从图像内容中的左眼视图和右眼视图中选取一幅同时作为目标左眼视图和目标右眼视图;Select one of the left eye view and right eye view in the image content as the target left eye view and the target right eye view at the same time;
根据所述目标左眼视图和所述目标右眼视图进行裸眼立体显示;performing naked-eye stereoscopic display according to the target left-eye view and the target right-eye view;
和/或,and / or,
当所述第二显示模式为2D显示模式,在切换为所述第二显示模式时,以所述第二显示模式对图像内容进行显示;When the second display mode is a 2D display mode, when switching to the second display mode, the image content is displayed in the second display mode;
所述以所述第二显示模式对图像内容进行显示包括:The displaying the image content in the second display mode includes:
从图像内容中的左眼视图和右眼视图中选取一幅进行2D显示;Select one of the left eye view and right eye view in the image content for 2D display;
或者or
从图像内容中的左眼视图和右眼视图中选取一幅同时作为目标左眼视图和目标右眼视图;Select one of the left eye view and right eye view in the image content as the target left eye view and the target right eye view at the same time;
根据所述目标左眼视图和所述目标右眼视图进行裸眼立体显示。Naked-eye stereoscopic display is performed according to the target left-eye view and the target right-eye view.
本发明的实施例还提供了一种用于裸眼3D显示终端的图像显示装置,包括:Embodiments of the present invention also provide an image display device for a naked-eye 3D display terminal, including:
显示模块,用于以第一显示模式对图像内容进行显示;a display module for displaying image content in a first display mode;
切换决策模块,用于确定是否将所述第一显示模式切换为第二显示模式,其中,所述第一显示模式为3D显示模式和2D显示模式中的一种,所述第二显示模式为3D显示模式和2D显示模式中的另一种;A switching decision module, configured to determine whether to switch the first display mode to a second display mode, wherein the first display mode is one of a 3D display mode and a 2D display mode, and the second display mode is Another of 3D display mode and 2D display mode;
所述显示模块还用于当确定将所述第一显示模式切换为所述第二显示模式时,以渐变显示模式对所述图像内容进行显示,从而将所述第一显示模式经由所述渐变显示模式切换为所述第二显示模式。The display module is further configured to display the image content in a gradient display mode when it is determined to switch the first display mode to the second display mode, so as to switch the first display mode through the gradient The display mode is switched to the second display mode.
其中,上述方案中,所述显示模块包括:Wherein, in the above scheme, the display module includes:
混合图像获取子模块,用于获取所述图像内容的左眼视图和右眼视图的混合图像;a mixed image acquisition submodule for acquiring a mixed image of the left-eye view and the right-eye view of the image content;
裸眼立体显示子模块,用于将所述混合图像作为目标左眼视图,将所述右眼视图作为目标右眼视图,或者,将所述混合图像作为目标右眼视图,将所述左眼视图作为目标左眼视图,根据所述目标左眼视图和所述目标右眼视图进行裸眼立体显示。A naked-eye stereoscopic display sub-module, configured to use the mixed image as the target left-eye view and the right-eye view as the target right-eye view, or use the mixed image as the target right-eye view, and use the left-eye view as the target view As the target left-eye view, naked-eye stereoscopic display is performed according to the target left-eye view and the target right-eye view.
其中,上述方案中,所述切换决策模块包括:Wherein, in the above scheme, the handover decision module includes:
第一运动状态信息获取子模块,用于获取裸眼3D显示终端的第一运动状态信息;a first motion state information acquisition submodule, configured to acquire the first motion state information of the naked-eye 3D display terminal;
第一切换决策子模块,用于根据所述第一运动状态信息确定是否将所述第一显示模式切换为所述第二显示模式;a first switching decision sub-module, configured to determine whether to switch the first display mode to the second display mode according to the first motion state information;
或者or
切换指令检测子模块,用于检测裸眼3D显示终端是否接收到显示模式切换指令;The switching instruction detection sub-module is used to detect whether the naked-eye 3D display terminal receives the display mode switching instruction;
第二切换决策子模块,用于当检测到所述裸眼3D显示终端接收到显示模式切换指令时,确定将所述第一显示模式切换为所述第二显示模式。The second switching decision sub-module is configured to determine to switch the first display mode to the second display mode when it is detected that the naked-eye 3D display terminal receives a display mode switching instruction.
其中,上述方案中,所述第一运动状态信息包括所述裸眼3D显示终端的角速度信息;Wherein, in the above solution, the first motion state information includes angular velocity information of the naked-eye 3D display terminal;
所述第一显示模式为3D显示模式,且所述第二显示模式为2D显示模式,所述第一切换决策子模块包括:The first display mode is a 3D display mode, and the second display mode is a 2D display mode, and the first switching decision sub-module includes:
目标角速度确定单元,用于根据所述裸眼3D显示终端的角速度信息,确定目标角速度;a target angular velocity determination unit, configured to determine the target angular velocity according to the angular velocity information of the naked-eye 3D display terminal;
第一阈值判断单元,用于确定所述目标角速度的绝对值是否大于或等于第一预设阈值;a first threshold judgment unit, configured to determine whether the absolute value of the target angular velocity is greater than or equal to a first preset threshold;
第一切换单元,用于当所述目标角速度的绝对值大于或等于所述第一预设阈值时,确定将所述第一显示模式切换为所述第二显示模式;a first switching unit, configured to determine to switch the first display mode to the second display mode when the absolute value of the target angular velocity is greater than or equal to the first preset threshold;
和/或and / or
所述第一显示模式为2D显示模式,且所述第二显示模式为3D显示模式,所述第一切换决策子模块包括:The first display mode is a 2D display mode, and the second display mode is a 3D display mode, and the first switching decision sub-module includes:
目标角速度确定单元,用于根据所述裸眼3D显示终端的角速度信息,确定目标角速度;a target angular velocity determination unit, configured to determine the target angular velocity according to the angular velocity information of the naked-eye 3D display terminal;
第二阈值判断单元,用于确定所述目标角速度的绝对值是否小于第二预设阈值;a second threshold judgment unit, configured to determine whether the absolute value of the target angular velocity is less than a second preset threshold;
第二切换单元,用于当所述目标角速度的绝对值小于所述第二预设阈值时,确定将所述第一显示模式切换为所述第二显示模式。A second switching unit, configured to determine to switch the first display mode to the second display mode when the absolute value of the target angular velocity is smaller than the second preset threshold.
其中,上述方案中,Among them, in the above scheme,
所述角速度信息包括所述裸眼3D显示终端绕Y方向旋转的第二角速度,所述目标角速度确定单元具体用于:The angular velocity information includes the second angular velocity of the naked-eye 3D display terminal rotating around the Y direction, and the target angular velocity determination unit is specifically used for:
将所述第二角速度确定为目标角速度;determining the second angular velocity as a target angular velocity;
或者or
所述角速度信息包括所述裸眼3D显示终端绕X方向旋转的第一角速度、绕Y方向旋转的第二角速度,所述目标角速度确定单元具体用于:The angular velocity information includes a first angular velocity of the naked-eye 3D display terminal rotating around the X direction and a second angular velocity of the naked-eye 3D display terminal rotating around the Y direction, and the target angular velocity determination unit is specifically used for:
将所述第一角速度和所述第二角速度的平方和的算术平方根,确定为目标角速度;The arithmetic square root of the sum of the squares of the first angular velocity and the second angular velocity is determined as the target angular velocity;
或者or
所述角速度信息包括所述裸眼3D显示终端绕X方向旋转的第一角速度、绕Y方向旋转的第二角速度、绕Z方向旋转的第三角速度,所述目标角速度确定单元具体用于:The angular velocity information includes the first angular velocity of the naked-eye 3D display terminal rotating around the X direction, the second angular velocity of rotating around the Y direction, and the third angular velocity of rotating around the Z direction, and the target angular velocity determination unit is specifically used for:
对所述第一角速度、所述第二角速度和所述第三角速度进行加权求和处理,获得目标角速度;performing weighted summation processing on the first angular velocity, the second angular velocity and the third angular velocity to obtain a target angular velocity;
其中,所述X方向为与所述裸眼3D显示终端的宽度方向平行的方向,所述Y方向为与所述裸眼3D显示终端的长度方向平行的方向,所述Z方向为与所述裸眼3D显示终端的屏幕垂直的方向。The X direction is a direction parallel to the width direction of the naked eye 3D display terminal, the Y direction is a direction parallel to the length direction of the naked eye 3D display terminal, and the Z direction is a direction parallel to the naked eye 3D display terminal Displays the vertical orientation of the terminal's screen.
其中,上述方案中,所述混合图像获取子模块包括:Wherein, in the above scheme, the hybrid image acquisition sub-module includes:
系数确定单元,用于确定图像渐变混合系数;a coefficient determination unit, used for determining an image gradient mixing coefficient;
混合图像确定单元,用于根据如下公式,获取所述图像内容中的左眼视图和右眼视图的混合图像:f(x,y)=g(x,y)×(1-α)+h(x,y)×α;A mixed image determination unit, configured to obtain a mixed image of the left-eye view and the right-eye view in the image content according to the following formula: f(x,y)=g(x,y)×(1-α)+h (x,y)×α;
其中,f(x,y)表示所述混合图像中坐标为(x,y)的像素的像素值,g(x,y)表示所述左眼视图和所述右眼视图中的一者中坐标为(x,y)的像素的像素值,h(x,y)表示所述左眼视图和所述右眼视图的另一者中坐标为(x,y)的像素的像素值,α表示所述图像渐变混合系数,0≤α≤1。Wherein, f(x, y) represents the pixel value of the pixel whose coordinates are (x, y) in the mixed image, and g(x, y) represents one of the left-eye view and the right-eye view the pixel value of the pixel whose coordinates are (x, y), h(x, y) represents the pixel value of the pixel whose coordinates are (x, y) in the other of the left-eye view and the right-eye view, α Indicates the gradient blending coefficient of the image, 0≤α≤1.
其中,上述方案中,所述系数确定单元包括:Wherein, in the above scheme, the coefficient determination unit includes:
第一确定子单元,用于获取裸眼3D显示终端的第二运动状态信息,并根据所述第二运动状态信息,确定图像渐变混合系数;a first determination subunit, configured to acquire second motion state information of the naked-eye 3D display terminal, and determine an image gradient mixing coefficient according to the second motion state information;
或者or
第二确定子单元,用于根据预先设定的时间间隔和渐变步长,确定图像渐变混合系数。The second determination subunit is used for determining the image gradient mixing coefficient according to the preset time interval and gradient step size.
其中,上述方案中,所述第二运动状态信息包括所述裸眼3D显示终端的角速度信息;Wherein, in the above solution, the second motion state information includes angular velocity information of the naked-eye 3D display terminal;
所述第一确定子单元具体用于:The first determination subunit is specifically used for:
每隔预设时间间隔获取所述裸眼3D显示终端的角速度信息;acquiring the angular velocity information of the naked-eye 3D display terminal every preset time interval;
根据所述裸眼3D显示终端的角速度信息,确定比较参数;Determine a comparison parameter according to the angular velocity information of the naked-eye 3D display terminal;
如果所述第一显示模式为3D显示模式,且所述第二显示模式为2D显示模式,则当所述比较参数处于第三预设阈值与第四预设阈值之间时,根据所述比较参数,获得图像渐变混合系数,直到获得的所述比较参数大于或等于所述第四预设阈值,和/或,如果所述第一显示模式为2D显示模式,且所述第二显示模式为3D显示模式,则当所述比较参数处于第三预设阈值与第四预设阈值之间时,根据所述比较参数,获得图像渐变混合系数,直到获得的所述比较参数连续小于所述第三预设阈值的次数达到预设次数。If the first display mode is a 3D display mode and the second display mode is a 2D display mode, when the comparison parameter is between the third preset threshold and the fourth preset threshold, according to the comparison parameter, obtain the image gradient mixing coefficient, until the obtained comparison parameter is greater than or equal to the fourth preset threshold, and/or, if the first display mode is a 2D display mode, and the second display mode is In the 3D display mode, when the comparison parameter is between the third preset threshold and the fourth preset threshold, an image gradient mixing coefficient is obtained according to the comparison parameter, until the obtained comparison parameter is continuously smaller than the third preset threshold. The number of times that the three preset thresholds reach the preset number of times.
其中,上述方案中,所述第一确定子单元在根据所述裸眼3D显示终端的角速度信息,确定比较参数时,具体用于:Wherein, in the above solution, when determining the comparison parameter according to the angular velocity information of the naked-eye 3D display terminal, the first determination subunit is specifically used for:
根据每一次获取到的所述裸眼3D显示终端的角速度信息,确定目标角速度;Determine the target angular velocity according to the angular velocity information of the naked-eye 3D display terminal obtained each time;
将所述目标角速度的绝对值确定为比较参数,或者,对最近获得的第一预设数量的所述目标角速度进行加权求和处理,并将所述加权求和处理后得到的数值的绝对值确定为比较参数。Determine the absolute value of the target angular velocity as a comparison parameter, or perform a weighted summation process on the most recently obtained first preset number of the target angular velocity, and calculate the absolute value of the numerical value obtained after the weighted summation process Determined as a comparison parameter.
其中,上述方案中,Among them, in the above scheme,
所述角速度信息包括所述裸眼3D显示终端绕Y方向旋转的第二角速度,所述第一确定子单元在根据每一次获取到的所述裸眼3D显示终端的角速度信息,确定目标角速度时,具体用于:The angular velocity information includes the second angular velocity of the naked-eye 3D display terminal rotating around the Y direction. Used for:
将每一次获取到的所述第二角速度确定为目标角速度;Determining the second angular velocity obtained every time as the target angular velocity;
或者or
所述角速度信息包括所述裸眼3D显示终端绕X方向旋转的第一角速度、绕Y方向旋转的第二角速度,所述第一确定子单元在根据每一次获取到的所述裸眼3D显示终端的角速度信息,确定目标角速度时,具体用于:The angular velocity information includes a first angular velocity of the naked-eye 3D display terminal rotating around the X direction and a second angular velocity of the naked-eye 3D display terminal rotating around the Y direction. Angular velocity information, when determining the target angular velocity, it is specifically used for:
将每一次获取到的所述第一角速度和所述第二角速度的平方和的算术平方根,确定为目标角速度;The arithmetic square root of the sum of the squares of the first angular velocity and the second angular velocity obtained each time is determined as the target angular velocity;
或者or
所述角速度信息包括所述角速度信息包括所述裸眼3D显示终端绕X方向旋转的第一角速度、绕Y方向旋转的第二角速度、绕Z方向旋转的第三角速度,所述第一确定子单元在根据每一次获取到的所述裸眼3D显示终端的角速度信息,确定目标角速度时,具体用于:The angular velocity information includes the angular velocity information including the first angular velocity of the naked-eye 3D display terminal rotating around the X direction, the second angular velocity of rotating around the Y direction, and the third angular velocity of rotating around the Z direction. The first determination subunit When determining the target angular velocity according to the angular velocity information of the naked-eye 3D display terminal obtained each time, it is specifically used for:
对每一次获取到的所述第一角速度、所述第二角速度和所述第三角速度进行加权求和处理,获得目标角速度;Perform a weighted summation process on the first angular velocity, the second angular velocity and the third angular velocity obtained each time to obtain a target angular velocity;
其中,所述X方向为与所述裸眼3D显示终端的宽度方向平行的方向,所述Y方向为与所述裸眼3D显示终端的长度方向平行的方向,所述Z方向为与所述裸眼3D显示终端的屏幕垂直的方向。The X direction is a direction parallel to the width direction of the naked eye 3D display terminal, the Y direction is a direction parallel to the length direction of the naked eye 3D display terminal, and the Z direction is a direction parallel to the naked eye 3D display terminal Displays the vertical orientation of the terminal's screen.
其中,上述方案中,所述第一确定子单元在根据所述比较参数,获得图像渐变混合系数时,具体用于:Wherein, in the above solution, when obtaining the image gradient mixing coefficient according to the comparison parameter, the first determination subunit is specifically used for:
根据预设公式得到参考系数,并将所述参考系数确定为本次获得的图像渐变混合系数;According to the preset formula obtaining a reference coefficient, and determining the reference coefficient as the image gradient mixing coefficient obtained this time;
或者,or,
根据预设公式得到参考系数,并将所述参考系数与上一次获得的图像渐变混合系数中的较大者作为本次获得的图像渐变混合系数;According to the preset formula Obtain a reference coefficient, and use the larger of the reference coefficient and the image gradient mixing coefficient obtained last time as the image gradient mixing coefficient obtained this time;
其中,β表示所述参考系数,γ表示所述比较参数,Δx表示第一预设值。Wherein, β represents the reference coefficient, γ represents the comparison parameter, and Δx represents the first preset value.
其中,上述方案中,所述第二确定子单元具体用于:Wherein, in the above solution, the second determination subunit is specifically used for:
将所述图像渐变混合系数从初始值为1开始,每隔预先设定的时间间隔减小所述渐变步长,直到所述图像渐变混合系数减小到0为止;Starting from an initial value of 1 for the image gradient blending coefficient, and reducing the gradient step size every preset time interval, until the image gradient blending coefficient decreases to 0;
或者or
将所述图像渐变混合系数从初始值为0开始,每隔预先设定的时间间隔增大所述渐变步长,直到所述图像渐变混合系数增大到1为止。The image gradient blending coefficient is started from an initial value of 0, and the gradient step size is increased every preset time interval until the image gradient blending coefficient increases to 1.
其中,上述方案中,所述显示模块还用于:Wherein, in the above scheme, the display module is also used for:
确定是否从所述渐变显示模式切换回所述第一显示模式;determining whether to switch from the gradient display mode back to the first display mode;
当确定从所述渐变显示模式切换回所述第一显示模式时,恢复至以所述第一显示模式对图像内容进行显示。When it is determined to switch back to the first display mode from the gradient display mode, the display of the image content in the first display mode is restored.
其中,上述方案中,当所述第一显示模式为2D显示模式时,所述显示模块在以第一显示模式对图像内容进行显示时,具体用于:Wherein, in the above solution, when the first display mode is the 2D display mode, when the display module displays the image content in the first display mode, it is specifically used for:
从图像内容中的左眼视图和右眼视图中选取一幅进行2D显示;Select one of the left eye view and right eye view in the image content for 2D display;
或者or
从图像内容中的左眼视图和右眼视图中选取一幅同时作为目标左眼视图和目标右眼视图;Select one of the left eye view and right eye view in the image content as the target left eye view and the target right eye view at the same time;
根据所述目标左眼视图和所述目标右眼视图进行裸眼立体显示;performing naked-eye stereoscopic display according to the target left-eye view and the target right-eye view;
和/或,and / or,
当所述第二显示模式为2D显示模式,在切换为所述第二显示模式时,所述显示模块还用于以所述第二显示模式对图像内容进行显示;When the second display mode is a 2D display mode, when switching to the second display mode, the display module is further configured to display image content in the second display mode;
所述显示模块在以所述第二显示模式对图像内容进行显示时,具体用于:When the display module displays the image content in the second display mode, it is specifically used for:
从图像内容中的左眼视图和右眼视图中选取一幅进行2D显示;Select one of the left eye view and right eye view in the image content for 2D display;
或者or
从图像内容中的左眼视图和右眼视图中选取一幅同时作为目标左眼视图和目标右眼视图;Select one of the left eye view and right eye view in the image content as the target left eye view and the target right eye view at the same time;
根据所述目标左眼视图和所述目标右眼视图进行裸眼立体显示。Naked-eye stereoscopic display is performed according to the target left-eye view and the target right-eye view.
本发明的实施例还提供了一种裸眼3D显示终端,包括:Embodiments of the present invention also provide a naked-eye 3D display terminal, including:
处理器、存储器和显示器;processor, memory and display;
存储器,用于存储可被执行的计算机程序;memory for storing computer programs that can be executed;
所述处理器调用所述存储器中的计算机程序执行以下步骤:The processor invokes a computer program in the memory to perform the following steps:
控制所述显示器以第一显示模式对图像内容进行显示;controlling the display to display the image content in the first display mode;
确定是否将所述第一显示模式切换为第二显示模式,其中,所述第一显示模式为3D显示模式和2D显示模式中的一种,所述第二显示模式为3D显示模式和2D显示模式中的另一种;Determine whether to switch the first display mode to a second display mode, wherein the first display mode is one of a 3D display mode and a 2D display mode, and the second display mode is a 3D display mode and a 2D display mode another of the modes;
当确定将所述第一显示模式切换为所述第二显示模式时,控制所述显示器以渐变显示模式对所述图像内容进行显示,从而将所述第一显示模式经由所述渐变显示模式切换为所述第二显示模式。When it is determined to switch the first display mode to the second display mode, the display is controlled to display the image content in a gradient display mode, so that the first display mode is switched via the gradient display mode for the second display mode.
本发明的实施例还提供了一种计算机可读存储介质,包括计算机程序,所述计算机程序可被处理器执行以完成以下步骤:Embodiments of the present invention also provide a computer-readable storage medium, comprising a computer program, and the computer program can be executed by a processor to complete the following steps:
以第一显示模式对图像内容进行显示;displaying the image content in the first display mode;
确定是否将所述第一显示模式切换为第二显示模式,其中,所述第一显示模式为3D显示模式和2D显示模式中的一种,所述第二显示模式为3D显示模式和2D显示模式中的另一种;Determine whether to switch the first display mode to a second display mode, wherein the first display mode is one of a 3D display mode and a 2D display mode, and the second display mode is a 3D display mode and a 2D display mode another of the modes;
当确定将所述第一显示模式切换为所述第二显示模式时,以渐变显示模式对所述图像内容进行显示,从而将所述第一显示模式经由所述渐变显示模式切换为所述第二显示模式。When it is determined to switch the first display mode to the second display mode, the image content is displayed in a gradient display mode, so that the first display mode is switched to the first display mode via the gradient display mode Two display modes.
本发明实施例的有益效果是:The beneficial effects of the embodiments of the present invention are:
本发明的实施例,在裸眼3D显示终端以3D显示模式或者2D显示模式中的任一种显示模式对图像内容进行显示的过程中,能够在确定出需要在3D显示模式与2D显示模式之间进行切换时,以渐变显示模式对图像内容进行显示,从而逐渐改变用户左右眼中至少一只眼睛所看到的内容,将该部分内容从3D显示模式对应的内容逐渐转变成2D显示模式对应的内容,或者从2D显示模式对应的内容逐渐变成3D显示模式对应的内容,避免了裸眼3D显示终端在3D显示模式和2D显示模式之间进行切换时,由于送入用户眼睛的内容产生突变而使用户眼睛感到不适,提升了用户的观看体验。In the embodiment of the present invention, in the process of displaying the image content by the naked-eye 3D display terminal in either the 3D display mode or the 2D display mode, it is possible to determine the need between the 3D display mode and the 2D display mode. When switching, the image content is displayed in a gradient display mode, thereby gradually changing the content seen by at least one eye of the user's left and right eyes, and gradually transforming the part of the content from the content corresponding to the 3D display mode to the content corresponding to the 2D display mode , or gradually change from the content corresponding to the 2D display mode to the content corresponding to the 3D display mode, avoiding the sudden change of the content sent to the user's eyes when the naked-eye 3D display terminal switches between the 3D display mode and the 2D display mode. The user's eyes feel uncomfortable, which improves the user's viewing experience.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the drawings that are used in the description of the embodiments of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention. , for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative labor.
图1表示本发明实施例的用于裸眼3D显示终端的图像显示方法的流程图;FIG. 1 shows a flowchart of an image display method for a naked-eye 3D display terminal according to an embodiment of the present invention;
图2表示本发明实施例的用于裸眼3D显示终端的图像显示装置的结构框图;FIG. 2 shows a structural block diagram of an image display device for a naked-eye 3D display terminal according to an embodiment of the present invention;
图3表示本发明实施例的裸眼3D显示终端的结构框图;FIG. 3 shows a structural block diagram of a naked-eye 3D display terminal according to an embodiment of the present invention;
图4表示本发明实施例的用于裸眼3D显示终端的图像显示方法的具体实时方式的流程图之一;4 shows one of the flow charts of a specific real-time manner of an image display method for a naked-eye 3D display terminal according to an embodiment of the present invention;
图5表示本发明实施例的用于裸眼3D显示终端的图像显示方法的具体实时方式的流程图之二;FIG. 5 shows the second flow chart of a specific real-time manner of an image display method for a naked-eye 3D display terminal according to an embodiment of the present invention;
图6表示本发明实施例的用于裸眼3D显示终端的图像显示方法的具体实时方式的流程图之三;FIG. 6 shows the third flowchart of a specific real-time manner of an image display method for a naked-eye 3D display terminal according to an embodiment of the present invention;
图7表示本发明的实施例中根据裸眼3D显示终端的运动状态信息确定的目标角速度随时间的变化示意图。FIG. 7 is a schematic diagram showing the variation of the target angular velocity with time determined according to the motion state information of the naked-eye 3D display terminal in the embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
为了更好的理解本发明,首先对本发明实施例的裸眼3D显示终端进行简要介绍。本发明实施例中的裸眼3D显示终端中包括显示器,与常规显示器不同,该裸眼3D显示终端的显示器包括显示屏和设置在显示屏上的分光器件。其中,显示屏用来显示图像,例如可以为常规2D的显示面板,如液晶显示器(Liquid Crystal Display,简称LCD)面板,有机发光二极管(Organic Light-Emitting Diode,简称OLED)面板,分光器件用来对显示屏显示的图像进行分光处理,该分光器件例如可以为光栅,该光栅可以为能够实现分光作用的任意一种光栅,例如现有技术中裸眼3D显示终端所使用的任意一种光栅,例如狭缝光栅或透镜光栅,具体例如液晶狭缝光栅、液晶透镜光栅、UV-LENS光栅、金属狭缝光栅等。本发明对此不做限定。本发明实施例的裸眼3D显示终端可以为显示器、手机、平板电脑、个人电脑、一体机等任意一种图像显示终端,本发明对此不做限定。For a better understanding of the present invention, a brief introduction to the naked-eye 3D display terminal according to the embodiment of the present invention will be given first. The naked-eye 3D display terminal in the embodiment of the present invention includes a display. Different from a conventional display, the display of the naked-eye 3D display terminal includes a display screen and a light splitting device disposed on the display screen. The display screen is used to display images, for example, a conventional 2D display panel, such as a Liquid Crystal Display (LCD) panel, an Organic Light-Emitting Diode (OLED) panel, and a spectroscopic device used for Perform spectroscopic processing on the image displayed on the display screen. The spectroscopic device can be, for example, a grating, and the grating can be any kind of grating that can realize light splitting, such as any kind of grating used in naked-eye 3D display terminals in the prior art, such as Slit grating or lens grating, for example, liquid crystal slit grating, liquid crystal lens grating, UV-LENS grating, metal slit grating, and the like. The present invention does not limit this. The naked-eye 3D display terminal in the embodiment of the present invention may be any image display terminal such as a monitor, a mobile phone, a tablet computer, a personal computer, and an all-in-one computer, which is not limited in the present invention.
本领域技术人员所公知的,3D图像源的每帧立体图像均包括左眼视图和右眼视图,在进行裸眼3D显示时,要将左眼视图和右眼视图按照一定的规则组合排列在显示面板上(即排图),配合分光器件的分光作用,将左眼视图送到用户左眼,将右眼视图送到用户右眼。As known to those skilled in the art, each frame of stereoscopic image of a 3D image source includes a left-eye view and a right-eye view. When performing naked-eye 3D display, the left-eye view and the right-eye view should be combined and arranged in the display according to certain rules. On the panel (that is, the layout), the left eye view is sent to the user's left eye, and the right eye view is sent to the user's right eye in coordination with the light splitting effect of the light splitting device.
本发明的实施例提供了一种用于裸眼3D显示终端的图像显示方法,如图1所示,该方法包括:An embodiment of the present invention provides an image display method for a naked-eye 3D display terminal. As shown in FIG. 1 , the method includes:
步骤101:以第一显示模式对图像内容进行显示。Step 101: Display the image content in a first display mode.
其中,第一显示模式为3D显示模式和2D显示模式中的其中一种。当第一显示模式为2D显示模式时,步骤101可包括:The first display mode is one of a 3D display mode and a 2D display mode. When the first display mode is the 2D display mode,
从图像内容中的左眼视图和右眼视图中选取一幅进行2D显示;Select one of the left eye view and right eye view in the image content for 2D display;
或者or
从图像内容中的左眼视图和右眼视图中选取一幅同时作为目标左眼视图和目标右眼视图;Select one of the left eye view and right eye view in the image content as the target left eye view and the target right eye view at the same time;
根据目标左眼视图和目标右眼视图进行裸眼立体显示。Naked-eye stereoscopic display is performed according to the target left eye view and the target right eye view.
其中,目标左眼视图用于送入用户的左眼,目标右眼视图用于送入用户的右眼。Wherein, the target left eye view is used for feeding into the user's left eye, and the target right eye view is used for feeding into the user's right eye.
即裸眼3D显示终端处于2D显示模式中时,可以直接采用2D显示方式达到2D显示效果,也可以采用裸眼立体显示方式达到2D显示效果。其中,采用裸眼立体显示方式达到2D显示效果时,需要将送入用户左眼和右眼的视图设置为同一幅,如均为左眼视图,或者均为右眼视图。That is, when the naked-eye 3D display terminal is in the 2D display mode, the 2D display mode can be directly adopted to achieve the 2D display effect, and the naked-eye stereoscopic display mode can also be adopted to achieve the 2D display effect. Wherein, when the naked-eye stereoscopic display method is used to achieve the 2D display effect, the views sent to the left eye and the right eye of the user need to be set to the same one, for example, both are left-eye views or both are right-eye views.
步骤102:确定是否将第一显示模式切换为第二显示模式。Step 102: Determine whether to switch the first display mode to the second display mode.
其中,第一显示模式为3D显示模式和2D显示模式中的一种,第二显示模式为3D显示模式和2D显示模式中的另一种。因此,本发明的实施例,可以实现由2D显示模式切换到3D显示模式,也可以实现由3D显示模式切换到2D显示模式。The first display mode is one of a 3D display mode and a 2D display mode, and the second display mode is another one of a 3D display mode and a 2D display mode. Therefore, in the embodiments of the present invention, it is possible to switch from the 2D display mode to the 3D display mode, and also to switch from the 3D display mode to the 2D display mode.
优选地,步骤102包括:Preferably,
获取裸眼3D显示终端的第一运动状态信息;acquiring first motion state information of the naked-eye 3D display terminal;
根据第一运动状态信息确定是否将第一显示模式切换为第二显示模式;Determine whether to switch the first display mode to the second display mode according to the first motion state information;
或者or
检测裸眼3D显示终端是否接收到显示模式切换指令;Detect whether the naked-eye 3D display terminal receives a display mode switching instruction;
当检测到裸眼3D显示终端接收到显示模式切换指令时,确定将第一显示模式切换为第二显示模式。When it is detected that the naked-eye 3D display terminal receives a display mode switching instruction, it is determined to switch the first display mode to the second display mode.
即本发明的实施例中,可以根据指示裸眼3D显示终端的运动状态的运动状态信息自动在2D显示模式和3D显示模式之间互相切换,例如,当裸眼3D显示终端快速运动或者大幅度剧烈运动时,将3D显示模式切换为2D显示模式,当裸眼3D显示终端剧烈运动恢复至静止时,将2D显示模式切换为3D显示模式。也可以根据裸眼3D显示终端接收到的显示模式指令触发在2D显示模式和3D显示模式之间互相切换。其中,用户可通过触控、语音等多种可行方式下发显示模式切换指令。That is, in the embodiment of the present invention, it is possible to automatically switch between the 2D display mode and the 3D display mode according to the motion state information indicating the motion state of the naked-eye 3D display terminal. For example, when the naked-eye 3D display terminal moves rapidly or moves violently When the 3D display mode is switched to the 2D display mode, when the naked-eye 3D display terminal moves violently and returns to stillness, the 2D display mode is switched to the 3D display mode. The switching between the 2D display mode and the 3D display mode can also be triggered according to the display mode instruction received by the naked-eye 3D display terminal. Among them, the user can issue a display mode switching instruction through various feasible methods such as touch and voice.
其中,根据裸眼3D显示终端的运动状态信息进行显示模式的自动切换,能够使得裸眼3D显示终端在不同运动状态下,自动以不同的显示模式进行显示,从而在裸眼3D显示终端的不同运动状态下,也能够呈现出令人眼舒适的显示效果。Among them, the automatic switching of the display mode according to the motion state information of the naked-eye 3D display terminal can make the naked-eye 3D display terminal automatically display in different display modes under different motion states, so that under different motion states of the naked-eye 3D display terminal , can also present an eye-friendly display effect.
另外,显示模式切换指令为用户在裸眼3D显示终端中输入的指令,则根据裸眼3D显示终端接收到的显示模式指令进行显示模式的切换,使得裸眼3D显示终端可以根据用户实际观看需求,进行显示模式的切换,进一步满足不同用户的观看要求。In addition, the display mode switching instruction is an instruction input by the user in the naked-eye 3D display terminal, and the display mode is switched according to the display mode instruction received by the naked-eye 3D display terminal, so that the naked-eye 3D display terminal can display according to the actual viewing needs of the user. Mode switching to further meet the viewing requirements of different users.
优选地,第一运动状态信息包括裸眼3D显示终端的角速度信息;Preferably, the first motion state information includes angular velocity information of the naked-eye 3D display terminal;
在第一显示模式为3D显示模式,且第二显示模式为2D显示模式时,根据第一运动状态信息确定是否将第一显示模式切换为第二显示模式的步骤,可包括:When the first display mode is a 3D display mode and the second display mode is a 2D display mode, the step of determining whether to switch the first display mode to the second display mode according to the first motion state information may include:
根据裸眼3D显示终端的角速度信息,确定目标角速度;Determine the target angular velocity according to the angular velocity information of the naked-eye 3D display terminal;
确定目标角速度的绝对值是否大于或等于第一预设阈值;determining whether the absolute value of the target angular velocity is greater than or equal to a first preset threshold;
当目标角速度的绝对值大于或等于第一预设阈值时,确定将第一显示模式切换为第二显示模式。When the absolute value of the target angular velocity is greater than or equal to the first preset threshold, it is determined to switch the first display mode to the second display mode.
在第一显示模式为2D显示模式,且第二显示模式为3D显示模式时,根据第一运动状态信息确定是否将第一显示模式切换为第二显示模式的步骤,可包括:When the first display mode is a 2D display mode and the second display mode is a 3D display mode, the step of determining whether to switch the first display mode to the second display mode according to the first motion state information may include:
根据裸眼3D显示终端的角速度信息,确定目标角速度;Determine the target angular velocity according to the angular velocity information of the naked-eye 3D display terminal;
确定目标角速度的绝对值是否小于第二预设阈值;determining whether the absolute value of the target angular velocity is less than a second preset threshold;
当目标角速度的绝对值小于第二预设阈值时,确定将第一显示模式切换为第二显示模式。When the absolute value of the target angular velocity is smaller than the second preset threshold, it is determined to switch the first display mode to the second display mode.
进一步的,为了避免误差,在确定目标角速度的绝对值小于第二预设阈值时,进一步确定目标角速度的绝对值连续小于第二预设阈值的次数是否已经达到预设阈值,当目标角速度的绝对值连续小于第二预设阈值的次数达到预设阈值时,确定将第一显示模式切换为第二显示模式(即将2D显示模式切换为3D显示模式)。Further, in order to avoid errors, when it is determined that the absolute value of the target angular velocity is smaller than the second preset threshold, it is further determined whether the number of times the absolute value of the target angular velocity is continuously smaller than the second preset threshold has reached the preset threshold, when the absolute value of the target angular velocity is smaller than the second preset threshold. When the number of times the value is continuously smaller than the second preset threshold reaches the preset threshold, it is determined to switch the first display mode to the second display mode (ie, switch the 2D display mode to the 3D display mode).
由上述可知,当根据裸眼3D显示终端的角度信息确定的目标速度的绝对值大于或等于第一预设阈值时,则确定将3D显示模式切换为2D显示模式;当根据裸眼3D显示终端的角速度信息确定的目标角速度的绝对值小于第二预设阈值时,则确定将2D显示模式切换为3D显示模式。It can be seen from the above that when the absolute value of the target speed determined according to the angle information of the naked-eye 3D display terminal is greater than or equal to the first preset threshold, it is determined to switch the 3D display mode to the 2D display mode; When the absolute value of the target angular velocity determined by the information is smaller than the second preset threshold, it is determined to switch the 2D display mode to the 3D display mode.
进一步地可选的,角速度信息包括裸眼3D显示终端绕Y方向旋转的第二角速度,根据裸眼3D显示终端的角速度信息,确定目标角速度的步骤,包括:将第二角速度确定为目标角速度;Further optionally, the angular velocity information includes the second angular velocity of the naked-eye 3D display terminal rotating around the Y direction, and the step of determining the target angular velocity according to the angular velocity information of the naked-eye 3D display terminal includes: determining the second angular velocity as the target angular velocity;
进一步地可选的,角速度信息包括裸眼3D显示终端绕X方向旋转的第一角速度、绕Y方向旋转的第二角速度,根据裸眼3D显示终端的角速度信息,确定目标角速度的步骤,包括:将第一角速度和第二角速度的平方和的算术平方根,确定为目标角速度;Further optionally, the angular velocity information includes the first angular velocity of the naked-eye 3D display terminal rotating around the X direction and the second angular velocity of the naked-eye 3D display terminal rotating around the Y direction, and the step of determining the target angular velocity according to the angular velocity information of the naked-eye 3D display terminal includes: The arithmetic square root of the sum of the squares of the first angular velocity and the second angular velocity is determined as the target angular velocity;
进一步地可选的,角速度信息包括裸眼3D显示终端绕X方向旋转的第一角速度、绕Y方向旋转的第二角速度、绕Z方向旋转的第三角速度,根据裸眼3D显示终端的角速度信息,确定目标角速度的步骤,包括:对第一角速度、第二角速度和第三角速度进行加权求和处理,获得目标角速度;Further optionally, the angular velocity information includes the first angular velocity of the naked-eye 3D display terminal rotating around the X direction, the second angular velocity of rotating around the Y direction, and the third angular velocity of rotating around the Z direction. According to the angular velocity information of the naked-eye 3D display terminal, determine The step of the target angular velocity includes: performing weighted summation processing on the first angular velocity, the second angular velocity and the third angular velocity to obtain the target angular velocity;
其中,X方向为与裸眼3D显示终端的宽度方向平行的方向,Y方向为与裸眼3D显示终端的长度方向平行的方向,Z方向为与裸眼3D显示终端的屏幕垂直的方向。The X direction is the direction parallel to the width direction of the naked eye 3D display terminal, the Y direction is the direction parallel to the length direction of the naked eye 3D display terminal, and the Z direction is the direction perpendicular to the screen of the naked eye 3D display terminal.
即本发明的实施例中,可以根据裸眼3D显示终端绕X方向旋转的第一角速度、绕Y方向旋转的第二角速度、绕Z方向旋转的第三角速度中的至少一者,确定目标角速度。That is, in the embodiment of the present invention, the target angular velocity can be determined according to at least one of the first angular velocity of the naked-eye 3D display terminal rotating around the X direction, the second angular velocity of rotating around the Y direction, and the third angular velocity of rotating around the Z direction.
其中,具体地,上述对第一角速度、第二角速度和第三角速度进行加权求和处理,获得目标角速度的步骤,包括:Wherein, specifically, the above-mentioned steps of performing weighted summation processing on the first angular velocity, the second angular velocity and the third angular velocity to obtain the target angular velocity include:
获取裸眼3D显示终端的屏幕状态;Get the screen status of the naked-eye 3D display terminal;
当屏幕状态为横屏状态时,根据第一预设公式ω1=a1×ωX+b1×ωY+c1×ωZ,获得横屏状态下的目标角速度ω1;When the screen state is the landscape state, according to the first preset formula ω1=a1× ωX +b1× ωY +c1× ωZ , obtain the target angular velocity ω1 in the landscape state;
当屏幕状态为竖屏状态时,根据第二预设公式ω2=a2×ωX+b2×ωY+c2×ωZ,获得竖屏状态下目标角速度ω2;When the screen state is the vertical screen state, obtain the target angular velocity ω2 in the vertical screen state according to the second preset formula ω2=a2× ωX +b2× ωY +c2× ωZ ;
其中,ωX表示第一角速度,ωY表示第二角速度,ωZ表示第三角速度;Among them, ω X represents the first angular velocity, ω Y represents the second angular velocity, and ω Z represents the third angular velocity;
a1、b1、c1分别表示在横屏状态下第一角速度的权重值、第二角速度的权重值以及第三角速度的权重值;a1, b1, and c1 respectively represent the weight value of the first angular velocity, the weight value of the second angular velocity and the weight value of the third angular velocity in the horizontal screen state;
a2、b2、c2分别表示在竖屏状态下第一角速度的权重值、第二角速度的权重值以及第三角速度的权重值。a2, b2, and c2 respectively represent the weight value of the first angular velocity, the weight value of the second angular velocity, and the weight value of the third angular velocity in the vertical screen state.
裸眼3D显示终端在不同的屏幕显示方向,即在横屏状态和纵屏状态,不同方向的旋转对于显示效果的影响不同,因此,可根据屏幕显示方向设置上述权重值,横屏方向和纵屏方向各个角速度的权重值可不同。例如,横屏显示时,a1:b1:c1=8:1:1,而纵屏显示时,a2:b2:c2=1:8:1。In different screen display orientations of the naked-eye 3D display terminal, that is, in the landscape state and the portrait state, the rotation in different directions has different effects on the display effect. Therefore, the above weight value can be set according to the screen display orientation, landscape orientation and portrait orientation. The weight value of each angular velocity in each direction may be different. For example, when displaying in landscape, a1:b1:c1=8:1:1, and when displaying in portrait, a2:b2:c2=1:8:1.
步骤103:当确定将第一显示模式切换为第二显示模式时,以渐变显示模式对图像内容进行显示,从而将第一显示模式经由渐变显示模式切换为第二显示模式。Step 103: When it is determined to switch the first display mode to the second display mode, display the image content in the gradient display mode, thereby switching the first display mode to the second display mode via the gradient display mode.
其中,渐变显示模式即为逐渐改变用户左右眼中至少一只眼睛所看到的内容,使得将该部分内容从第一显示模式对应的内容逐渐转变成第二显示模式对应的内容。因此,本发明的实施例,能够避免裸眼3D显示终端在3D显示模式和2D显示模式之间进行切换时,由于送入用户眼睛的内容产生突变而使用户眼睛感到不适,提升了用户的观看体验。The gradient display mode is to gradually change the content seen by at least one of the left and right eyes of the user, so that the part of the content is gradually transformed from the content corresponding to the first display mode to the content corresponding to the second display mode. Therefore, the embodiments of the present invention can prevent the user's eyes from feeling uncomfortable when the naked-eye 3D display terminal switches between the 3D display mode and the 2D display mode due to the sudden change of the content sent to the user's eyes, thereby improving the user's viewing experience .
另外,当第二显示模式为2D显示模式,在切换为第二显示模式时,以第二显示模式对图像内容进行显示;则以第二显示模式对图像内容进行显示包括:In addition, when the second display mode is the 2D display mode, when switching to the second display mode, displaying the image content in the second display mode; then displaying the image content in the second display mode includes:
从图像内容中的左眼视图和右眼视图中选取一幅进行2D显示;Select one of the left eye view and right eye view in the image content for 2D display;
或者or
从图像内容中的左眼视图和右眼视图中选取一幅同时作为目标左眼视图和目标右眼视图;Select one of the left eye view and right eye view in the image content as the target left eye view and the target right eye view at the same time;
根据目标左眼视图和目标右眼视图进行裸眼立体显示。Naked-eye stereoscopic display is performed according to the target left eye view and the target right eye view.
其中,目标左眼视图用于送入用户的左眼,目标右眼视图用于送入用户的右眼。Wherein, the target left eye view is used for feeding into the user's left eye, and the target right eye view is used for feeding into the user's right eye.
即裸眼3D显示终端处于2D显示模式中时,可以直接采用2D显示方式达到2D显示效果,也可以采用裸眼立体显示方式达到2D显示效果。其中,采用裸眼立体显示方式达到2D显示效果时,需要将送入用户左眼和右眼的视图设置为同一幅,如均为左眼视图,或者均为右眼视图。That is, when the naked-eye 3D display terminal is in the 2D display mode, the 2D display mode can be directly adopted to achieve the 2D display effect, and the naked-eye stereoscopic display mode can also be adopted to achieve the 2D display effect. Wherein, when the naked-eye stereoscopic display method is used to achieve the 2D display effect, the views sent to the left eye and the right eye of the user need to be set to the same one, for example, both are left-eye views or both are right-eye views.
优选地,上述以渐变显示模式对图像内容进行显示,包括Preferably, the above-mentioned displaying of the image content in a gradient display mode includes:
获取图像内容的左眼视图和右眼视图的混合图像;Get the mixed image of the left eye view and right eye view of the image content;
将混合图像作为目标左眼视图,将右眼视图作为目标右眼视图,或者,将混合图像作为目标右眼视图,将左眼视图作为目标左眼视图,根据目标左眼视图和目标右眼视图进行裸眼立体显示。Use the mixed image as the target left eye view and the right eye view as the target right eye view, or, use the mixed image as the target right eye view and the left eye view as the target left eye view, according to the target left eye view and the target right eye view Perform naked-eye stereoscopic display.
即左眼视图和右眼视图的混合图像,可以作为目标左眼视图送入用户的左眼,也可以作为右眼视图送入用户的右眼。That is, the mixed image of the left-eye view and the right-eye view may be sent to the user's left eye as the target left-eye view, or may be sent to the user's right eye as the right-eye view.
本领域技术人员所公知的,3D图像源的每帧立体图像均包括左眼视图和右眼视图,在常规裸眼3D显示时,将左眼视图和右眼视图按照一定的规则组合排列在显示面板上(即排图),配合分光器件的分光作用,将左眼视图送到用户左眼,将右眼视图送到用户右眼。本发明实施例中,为了方便描述和便于区分,将3D图像源即图像内容中的左眼视图和右眼视图分别称为左眼视图和右眼视图,而排图时的视图,即送入用户左眼和右眼的视图称为目标左眼视图和目标右眼视图。As is known to those skilled in the art, each frame of stereoscopic image of a 3D image source includes a left-eye view and a right-eye view. During conventional naked-eye 3D display, the left-eye view and the right-eye view are combined and arranged on the display panel according to certain rules. On the top (ie, the layout), with the light splitting effect of the light splitting device, the left eye view is sent to the user's left eye, and the right eye view is sent to the user's right eye. In this embodiment of the present invention, for the convenience of description and distinction, the 3D image source, that is, the left-eye view and the right-eye view in the image content, are respectively referred to as the left-eye view and the right-eye view, and the view during layout is the input The views of the user's left eye and right eye are referred to as the target left eye view and the target right eye view.
在获取混合图像后,将利用混合图像进行裸眼3D显示,例如,将混合图像作为目标左眼视图,将右眼视图作为目标右眼视图,对混合图像和右眼视图进行排图显示,将混合图像送入用户左眼,将右眼视图送入用户右眼,从而实现根据混合图像和右眼视图进行裸眼立体显示。当然,还可以将混合图像作为目标右眼视图,将左眼视图作为目标左眼视图,根据混合图像和左眼视图进行排图显示,即将混合图像送入用户右眼,将左眼视图送入用户左眼,从而实现根据混合图像和左眼视图进行裸眼立体显示。After the mixed image is acquired, the mixed image will be used for naked-eye 3D display. For example, the mixed image is used as the target left-eye view, and the right-eye view is used as the target right-eye view. The image is sent to the left eye of the user, and the view of the right eye is sent to the right eye of the user, so as to realize the naked-eye stereoscopic display based on the mixed image and the right eye view. Of course, the mixed image can also be used as the target right eye view, and the left eye view can be used as the target left eye view, and the layout display can be performed according to the mixed image and the left eye view, that is, the mixed image is sent to the user's right eye, and the left eye view is sent to The user's left eye, so as to realize the naked-eye stereoscopic display according to the mixed image and the left eye view.
优选地,上述获取图像内容的左眼视图和右眼视图的混合图像的步骤,包括:Preferably, the above-mentioned step of obtaining the mixed image of the left-eye view and the right-eye view of the image content includes:
确定图像渐变混合系数;Determine the image gradient blending coefficient;
根据如下公式,获取图像内容中的左眼视图和右眼视图的混合图像:f(x,y)=g(x,y)×(1-α)+h(x,y)×α;Obtain the mixed image of the left-eye view and the right-eye view in the image content according to the following formula: f(x,y)=g(x,y)×(1-α)+h(x,y)×α;
其中,f(x,y)表示混合图像中坐标为(x,y)的像素的像素值,g(x,y)表示左眼视图和右眼视图中的一者中坐标为(x,y)的像素的像素值,h(x,y)表示左眼视图和右眼视图的另一者中坐标为(x,y)的像素的像素值,α表示图像渐变混合系数,0≤α≤1。Among them, f(x, y) represents the pixel value of the pixel whose coordinates are (x, y) in the mixed image, and g(x, y) represents one of the left eye view and the right eye view whose coordinates are (x, y) ), h(x, y) represents the pixel value of the pixel whose coordinates are (x, y) in the other of the left-eye view and the right-eye view, α represents the image gradient blending coefficient, 0≤α≤ 1.
其中,当g(x,y)表示左眼视图坐标为(x,y)的像素的像素值,h(x,y)表示右眼视图中坐标为(x,y)的像素的像素值时,图像渐变混合系数表示右眼视图在混合图像中所占的比值;当g(x,y)表示右眼视图坐标为(x,y)的像素的像素值,h(x,y)表示左眼视图中坐标为(x,y)的像素的像素值时,图像渐变混合系数表示左眼视图在混合图像中所占的比值。Among them, when g(x, y) represents the pixel value of the pixel whose coordinates are (x, y) in the left eye view, and h(x, y) represents the pixel value of the pixel whose coordinates are (x, y) in the right eye view , the image gradient mixing coefficient represents the ratio of the right eye view in the mixed image; when g(x, y) represents the pixel value of the pixel whose right eye view coordinate is (x, y), h(x, y) represents the left eye view. When the pixel value of the pixel whose coordinates are (x, y) in the eye view, the image gradient blending coefficient represents the ratio of the left eye view in the blended image.
另外,像素值即为RGB值。其中,RGB值包括R值、G值和B值,则在计算混合图像中各个坐标位置处的像素值时,分别对R值、G值和B值进行计算。In addition, the pixel value is the RGB value. Wherein, the RGB value includes the R value, the G value and the B value. When the pixel value at each coordinate position in the mixed image is calculated, the R value, the G value and the B value are calculated respectively.
进一步地,上述确定图像渐变混合系数的步骤,包括:Further, the above-mentioned step of determining the gradient mixing coefficient of the image includes:
获取裸眼3D显示终端的第二运动状态信息,并根据第二运动状态信息,确定图像渐变混合系数;acquiring second motion state information of the naked-eye 3D display terminal, and determining an image gradient mixing coefficient according to the second motion state information;
或者or
根据预先设定的时间间隔和渐变步长,确定图像渐变混合系数。Determine the image gradient blending coefficient according to the preset time interval and gradient step size.
即在本发明的实施例中,图像渐变混合系数存在如下两种确定方式:That is, in the embodiment of the present invention, the image gradient mixing coefficient has the following two determination methods:
第一种:根据裸眼3D显示终端的运动状态信息进行确定;The first type: determine according to the motion state information of the naked-eye 3D display terminal;
第二种:根据预先设定的时间间隔和渐变步长进行确定。The second: Determined according to the preset time interval and gradient step size.
另外,在本发明的实施例中,确定裸眼3D显示终端是否从第一显示模式切换为第二显示模式的方式存在如下两种:In addition, in the embodiment of the present invention, there are two ways to determine whether the naked-eye 3D display terminal is switched from the first display mode to the second display mode:
第一种:根据裸眼3D显示终端的运动状态信息进行确定;The first type: determine according to the motion state information of the naked-eye 3D display terminal;
第二种:根据裸眼3D显示终端接收到的显示模式切换指令进行确定。The second type: determine according to the display mode switching instruction received by the naked-eye 3D display terminal.
由上述可知,上述裸眼3D显示终端是否从第一显示模式切换为第二显示模式的两种方式,与图像渐变混合系数的两种确定方式可以自由组合,从而得到不同的实现方案。其中的两种较佳的组合方案如下:It can be seen from the above that the above two methods of whether the naked-eye 3D display terminal is switched from the first display mode to the second display mode and the two methods of determining the image gradient mixing coefficient can be freely combined to obtain different implementation solutions. Two of the preferred combinations are as follows:
方案一:根据裸眼3D显示终端的运动状态信息,确定是否将第一显示模式切换为第二显示模式,当确定将第一显示模式切换为第二显示模式时,根据裸眼3D显示终端的运动状态信息,确定图像渐变混合系数,从而根据确定出来的图像渐变混合系数,得到左眼视图和右眼视图的混合图像,进而将该混合图像与右眼视图一起进行裸眼立体显示,或者将该混合图像与左眼视图一起进行裸眼立体显示。Scheme 1: Determine whether to switch the first display mode to the second display mode according to the motion state information of the naked-eye 3D display terminal, and when it is determined to switch the first display mode to the second display mode, according to the motion state of the naked-eye 3D display terminal information to determine the image gradient mixing coefficient, so as to obtain a mixed image of the left-eye view and the right-eye view according to the determined image gradient mixing coefficient, and then perform the naked-eye stereoscopic display of the mixed image and the right-eye view together, or the mixed image Naked eye stereoscopic display together with left eye view.
方案二:检测裸眼3D显示终端是否接收到显示模式切换指令,当检测到裸眼3D显示终端接收到显示模式切换指令时,根据预先设定的时间间隔和渐变步长,确定图像渐变混合系数,从而根据确定出来的图像渐变混合系数,得到左眼视图和右眼视图的混合图像,进而将该混合图像与右眼视图一起进行裸眼立体显示,或者将该混合图像与左眼视图一起进行裸眼立体显示。Option 2: Detect whether the naked-eye 3D display terminal has received a display mode switching instruction, and when it is detected that the naked-eye 3D display terminal has received a display mode switching instruction, determine the image gradient mixing coefficient according to the preset time interval and gradient step, so as to According to the determined image gradient mixing coefficient, a mixed image of the left-eye view and the right-eye view is obtained, and then the mixed image and the right-eye view are displayed together with naked-eye stereoscopic display, or the mixed image and the left-eye view are displayed together with naked-eye stereoscopic .
此外,第一方面:根据裸眼3D显示终端的运动状态信息确定图像渐变混合系数的具体过程如下:In addition, the first aspect: the specific process of determining the image gradient mixing coefficient according to the motion state information of the naked-eye 3D display terminal is as follows:
第二运动状态信息包括裸眼3D显示终端的角速度信息;上述获取裸眼3D显示终端的第二运动状态信息,并根据第二运动状态信息,确定图像渐变混合系数的步骤,包括:The second motion state information includes the angular velocity information of the naked-eye 3D display terminal; the above-mentioned steps of acquiring the second motion state information of the naked-eye 3D display terminal and determining the image gradient mixing coefficient according to the second motion state information include:
每隔预设时间间隔获取裸眼3D显示终端的角速度信息;Acquire the angular velocity information of the naked-eye 3D display terminal every preset time interval;
根据裸眼3D显示终端的角速度信息,确定比较参数;Determine the comparison parameters according to the angular velocity information of the naked-eye 3D display terminal;
如果第一显示模式为3D显示模式,且第二显示模式为2D显示模式,则当比较参数处于第三预设阈值与第四预设阈值之间时,根据比较参数,获得图像渐变混合系数,直到获得的比较参数大于或等于第四预设阈值,和/或,如果第一显示模式为2D显示模式,且第二显示模式为3D显示模式,则当比较参数处于第三预设阈值与第四预设阈值之间时,根据比较参数,获得图像渐变混合系数,直到获得的比较参数连续小于第三预设阈值的次数达到预设次数。If the first display mode is a 3D display mode and the second display mode is a 2D display mode, when the comparison parameter is between the third preset threshold and the fourth preset threshold, the image gradient mixing coefficient is obtained according to the comparison parameter, Until the obtained comparison parameter is greater than or equal to the fourth preset threshold, and/or, if the first display mode is a 2D display mode and the second display mode is a 3D display mode, when the comparison parameter is between the third preset threshold and the first When it is between four preset thresholds, the image gradient mixing coefficient is obtained according to the comparison parameter, until the number of times that the obtained comparison parameter is continuously smaller than the third preset threshold reaches a preset number of times.
其中,在3D显示模式到2D显示模式的切换过程中,每隔预设时间间隔获取一次裸眼3D显示终端的角速度信息,并根据本次获取的角速度信息,确定出一比较参数,若该比较参数处于第三预设阈值与第四预设阈值之间,则可以根据该比较参数得到图像渐变混合系数,直到某一次得到的比较参数大于或等于第四预设阈值,则停止计算图像渐变混合系数,即开始以2D显示模式进行显示。Among them, in the process of switching from the 3D display mode to the 2D display mode, the angular velocity information of the naked-eye 3D display terminal is acquired at preset time intervals, and a comparison parameter is determined according to the angular velocity information acquired this time. If the comparison parameter is between the third preset threshold and the fourth preset threshold, the image gradient mixing coefficient can be obtained according to the comparison parameter, and the calculation of the image gradient mixing coefficient is stopped until the obtained comparison parameter is greater than or equal to the fourth preset threshold. , that is, it starts to display in 2D display mode.
另外,在2D显示模式到3D显示模式的切换过程中,每隔预设时间间隔获取一次裸眼3D显示终端的角速度信息,并根据本次获取的角速度信息,确定出一比较参数,若该比较参数处于第三预设阈值与第四预设阈值之间,则可以根据该比较参数得到图像渐变混合系数,直到连续预设次数得到的比较参数小于第三预设阈值,则停止计算图像渐变混合系数,即开始以3D显示模式进行显示。In addition, in the process of switching from the 2D display mode to the 3D display mode, the angular velocity information of the naked-eye 3D display terminal is obtained every preset time interval, and a comparison parameter is determined according to the angular velocity information obtained this time. If the comparison parameter is between the third preset threshold and the fourth preset threshold, the image gradient mixing coefficient can be obtained according to the comparison parameter, until the comparison parameter obtained by consecutive preset times is smaller than the third preset threshold, then stop calculating the image gradient mixing coefficient , that is, it starts to display in 3D display mode.
优选地,根据裸眼3D显示终端的角速度信息,确定比较参数的步骤,包括:Preferably, the step of determining the comparison parameter according to the angular velocity information of the naked-eye 3D display terminal includes:
根据每一次获取到的裸眼3D显示终端的角速度信息,确定目标角速度;Determine the target angular velocity according to the angular velocity information of the naked-eye 3D display terminal obtained each time;
将目标角速度的绝对值确定为比较参数,或者,对最近获得的第一预设数量的目标角速度进行加权求和处理,并将加权求和处理后得到的数值的绝对值确定为比较参数。Determine the absolute value of the target angular velocity as the comparison parameter, or perform a weighted summation process on the first preset number of target angular velocities obtained recently, and determine the absolute value of the value obtained after the weighted summation process as the comparison parameter.
即本发明的实施例中,比较参数的确定方式存在如下两种:That is, in the embodiment of the present invention, there are the following two ways for determining the comparison parameter:
第一种:将每隔预设时间间隔获取的裸眼3D显示终端的角速度信息确定的目标角速度的绝对值直接作为比较参数;The first type: the absolute value of the target angular velocity determined by the angular velocity information of the naked-eye 3D display terminal obtained every preset time interval is directly used as a comparison parameter;
第二种:将最近多次获得的目标角速度的加权求和后的数值的绝对值,确定为比较参数。The second type: Determine the absolute value of the weighted and summed value of the target angular velocity obtained many times recently as the comparison parameter.
其中,由于后续的图像渐变混合系数是根据比较参数确定的,所以,比较参数的上述第二种确定方式,能够避免突变的角速度信息导致图像渐变混合系数产生较大偏差,进而避免根据图像渐变混合系数得到的混合图像的突变。Among them, since the subsequent image gradient mixing coefficient is determined according to the comparison parameter, the above-mentioned second method of determining the comparison parameter can avoid the sudden change of angular velocity information causing a large deviation of the image gradient mixing coefficient, thereby avoiding the image gradient mixing. Coefficient of mutation of the resulting blended image.
进一步地,角速度信息包括裸眼3D显示终端绕Y方向旋转的第二角速度,上述根据每一次获取到的裸眼3D显示终端的角速度信息,确定目标角速度的步骤,包括:将每一次获取到的第二角速度确定为目标角速度;Further, the angular velocity information includes the second angular velocity of the naked-eye 3D display terminal rotating around the Y direction, and the above-mentioned step of determining the target angular velocity according to the angular velocity information of the naked-eye 3D display terminal obtained each time includes: The angular velocity is determined as the target angular velocity;
或者or
角速度信息包括裸眼3D显示终端绕X方向旋转的第一角速度、绕Y方向旋转的第二角速度,上述根据每一次获取到的裸眼3D显示终端的角速度信息,确定目标角速度的步骤,包括:将每一次获取到的第一角速度和第二角速度的平方和的算术平方根,确定为目标角速度;The angular velocity information includes the first angular velocity of the naked-eye 3D display terminal rotating around the X direction and the second angular velocity of the naked-eye 3D display terminal rotating around the Y direction. The arithmetic square root of the sum of the squares of the first angular velocity and the second angular velocity obtained at one time is determined as the target angular velocity;
或者or
角速度信息包括角速度信息包括裸眼3D显示终端绕X方向旋转的第一角速度、绕Y方向旋转的第二角速度、绕Z方向旋转的第三角速度,上述根据每一次获取到的裸眼3D显示终端的角速度信息,确定目标角速度的步骤,包括:The angular velocity information includes the angular velocity information including the first angular velocity of the naked-eye 3D display terminal rotating around the X direction, the second angular velocity of rotating around the Y direction, and the third angular velocity of rotating around the Z direction. The above-mentioned angular velocity of the naked-eye 3D display terminal obtained every time information, the steps to determine the target angular velocity include:
对每一次获取到的第一角速度、第二角速度和第三角速度进行加权求和处理,获得目标角速度;Perform a weighted summation process on the first angular velocity, the second angular velocity and the third angular velocity obtained each time to obtain the target angular velocity;
其中,X方向为与裸眼3D显示终端的宽度方向平行的方向,Y方向为与裸眼3D显示终端的长度方向平行的方向,Z方向为与裸眼3D显示终端的屏幕垂直的方向。The X direction is the direction parallel to the width direction of the naked eye 3D display terminal, the Y direction is the direction parallel to the length direction of the naked eye 3D display terminal, and the Z direction is the direction perpendicular to the screen of the naked eye 3D display terminal.
即本发明的实施例中,可以根据裸眼3D显示终端绕X方向旋转的第一角速度、绕Y方向旋转的第二角速度、绕Z方向旋转的第三角速度中的至少一者,确定目标角速度。That is, in the embodiment of the present invention, the target angular velocity can be determined according to at least one of the first angular velocity of the naked-eye 3D display terminal rotating around the X direction, the second angular velocity of rotating around the Y direction, and the third angular velocity of rotating around the Z direction.
其中,具体地,上述对每一次获取到的第一角速度、第二角速度和第三角速度进行加权求和处理,获得目标角速度的步骤,包括:Specifically, the above-mentioned steps of performing a weighted summation process on the first angular velocity, the second angular velocity and the third angular velocity obtained each time to obtain the target angular velocity include:
获取裸眼3D显示终端的屏幕状态;Get the screen status of the naked-eye 3D display terminal;
当屏幕状态为横屏状态时,根据第一预设公式ω1=a1×ωX+b1×ωY+c1×ωZ,获得横屏状态下的目标角速度ω1;When the screen state is the landscape state, according to the first preset formula ω1=a1× ωX +b1× ωY +c1× ωZ , obtain the target angular velocity ω1 in the landscape state;
当屏幕状态为竖屏状态时,根据第二预设公式ω2=a2×ωX+b2×ωY+c2×ωZ,获得竖屏状态下目标角速度ω2;When the screen state is the vertical screen state, obtain the target angular velocity ω2 in the vertical screen state according to the second preset formula ω2=a2× ωX +b2× ωY +c2× ωZ ;
其中,ωX表示第一角速度,ωY表示第二角速度,ωZ表示第三角速度;Among them, ω X represents the first angular velocity, ω Y represents the second angular velocity, and ω Z represents the third angular velocity;
a1、b1、c1分别表示在横屏状态下第一角速度的权重值、第二角速度的权重值以及第三角速度的权重值;a1, b1, and c1 respectively represent the weight value of the first angular velocity, the weight value of the second angular velocity and the weight value of the third angular velocity in the horizontal screen state;
a2、b2、c2分别表示在竖屏状态下第一角速度的权重值、第二角速度的权重值以及第三角速度的权重值。a2, b2, and c2 respectively represent the weight value of the first angular velocity, the weight value of the second angular velocity, and the weight value of the third angular velocity in the vertical screen state.
另外,由上述可知,根据第二运动状态信息,确定图像渐变混合系数的过程中,存在“根据第二运动状态信息中包括的裸眼3D显示终端的角速度信息,确定目标角速度”的过程。而在步骤102中确定是否将第一显示模式切换为第二显示模式的过程中,存在根据“第一运动状态信息包括裸眼3D显示终端的角速度信息,确定目标角速度的过程”。其中,这两个确定目标角速度的具体过程可以相同,也可以不同,可以仅仅获取一次目标角速度,从而在步骤102中,和在步骤103使用即可。即在确定图像渐变混合系数的过程中应用的目标角速度,可以是“确定是否将第一显示模式切换为第二显示模式”时所应用的目标角速度,也可以是根据裸眼3D显示终端的角速度信息,采用相同或者不同的算法重新计算的。In addition, it can be seen from the above that in the process of determining the image gradient mixing coefficient according to the second motion state information, there is a process of "determining the target angular velocity according to the angular velocity information of the naked-eye 3D display terminal included in the second motion state information". In the process of determining whether to switch the first display mode to the second display mode in
优选地,上述根据比较参数,获得图像渐变混合系数的步骤,包括:Preferably, the above-mentioned step of obtaining the image gradient mixing coefficient according to the comparison parameter includes:
根据预设公式得到参考系数,并将参考系数确定为本次获得的图像渐变混合系数;According to the preset formula Obtain the reference coefficient, and determine the reference coefficient as the image gradient mixing coefficient obtained this time;
或者,or,
根据预设公式得到参考系数,并将参考系数与上一次获得的图像渐变混合系数中的较大者作为本次获得的图像渐变混合系数;According to the preset formula Obtain the reference coefficient, and use the larger of the reference coefficient and the image gradient mixing coefficient obtained last time as the image gradient mixing coefficient obtained this time;
其中,β表示参考系数,γ表示比较参数,Δx表示第一预设值。Wherein, β represents a reference coefficient, γ represents a comparison parameter, and Δx represents a first preset value.
即无论在3D显示模式到2D显示模式的切换过程中,还是在2D显示模式到3D显示模式的切换过程中,均可以采用如下两种方式确定图像渐变混合系数:That is, no matter in the process of switching from 3D display mode to 2D display mode, or in the process of switching from 2D display mode to 3D display mode, the following two methods can be used to determine the image gradient mixing coefficient:
第一种:将每隔预设时间间隔得到的参考系数减小第一预设值后的结果作为本次的图像渐变混合系数;The first type: the reference coefficient obtained at every preset time interval is reduced by the first preset value as the current image gradient mixing coefficient;
第二种:将每隔预设时间间隔得到的参考系数减小第一预设值后,与上一次得到的图像渐变混合系数进行比较,将二者中较大者作为本次的图像渐变混合系数。The second: after reducing the reference coefficient obtained at every preset time interval by the first preset value, compare it with the image gradient mixing coefficient obtained last time, and use the larger of the two as the current image gradient mixing. coefficient.
其中,采用上述第二种方式确定图像渐变混合系数,能够避免在渐变显示模式过程中出现画面出现抖动。Wherein, adopting the above-mentioned second method to determine the image gradation mixing coefficient can avoid the occurrence of picture jitter in the process of the gradation display mode.
具体地,当以上述第二种方式确定图像渐变混合系数时,举例而言,设第一预设值为0.2,则若在3D显示模式到2D显示模式的切换过程中,例如:Specifically, when the image gradient blending coefficient is determined in the above-mentioned second manner, for example, the first preset value is set to 0.2, and in the process of switching from the 3D display mode to the 2D display mode, for example:
第一次得到的比较参数为0.8,则本次的图像渐变混合系数为0.6;The comparison parameter obtained for the first time is 0.8, then the gradient blending coefficient of this image is 0.6;
第二次得到的比较参数为0.85,则本次的图像渐变混合系数为0.85-0.2与上次的图像渐变混合系数0.6中的较大者,即为0.65;The comparison parameter obtained for the second time is 0.85, then the larger of the image gradient mixing coefficient of this time is 0.85-0.2 and the last image gradient mixing coefficient 0.6, which is 0.65;
第三次得到的比较参数为0.7,则本次的图像渐变混合系数为0.7-0.2与上次的图像渐变混合系数0.65中的较大者,即为0.65;The comparison parameter obtained for the third time is 0.7, then the image gradient blending coefficient of this time is 0.7-0.2 and the previous image gradient blending coefficient of 0.65, whichever is greater, which is 0.65;
第四次得到的比较参数为0.85,则本次的图像渐变混合系数为0.85-0.2与上次的图像渐变混合系数0.65中的较大者,即为0.65。If the comparison parameter obtained for the fourth time is 0.85, the current image gradient blending coefficient is 0.85-0.2 and the previous image gradient blending coefficient of 0.65, whichever is greater, which is 0.65.
因此,在3D显示模式到2D显示模式的切换过程中,即使裸眼3D显示终端的运动出现波动,而导致获得的比较参数出现波动,通过上述第二种方式确定的图像渐变混合系数也不会受到影响,从而有效地防止了画面的抖动。Therefore, during the switching process from the 3D display mode to the 2D display mode, even if the motion of the naked-eye 3D display terminal fluctuates, resulting in fluctuations in the obtained comparison parameters, the image gradient mixing coefficient determined by the second method above will not be affected. Influence, thus effectively preventing the shaking of the picture.
当然,在3D显示模式到2D显示模式的切换过程中,以上两种根据比较参数确定图像混合渐变系数的方式,是以图像渐变混合系数随裸眼3D显示终端的角速度逐渐增大为例进行说明的,但可以理解的是,本发明不限于此,在3D显示模式到2D显示模式的切换过程中,图像渐变混合系数逐渐减小亦可以,即无论图像渐变混合系数如何渐变,总的原则在于,使得进行裸眼立体显示的目标左眼视图和目标右眼视图越来越接近,假设混合图像作为目标左眼视图,那么图像渐变混合系数的渐变需要使得混合图像越来越接近右眼视图。Of course, in the process of switching from the 3D display mode to the 2D display mode, the above two methods of determining the image blending gradient coefficient according to the comparison parameters are described by taking the example that the image gradient blending coefficient gradually increases with the angular velocity of the naked-eye 3D display terminal. , but it can be understood that the present invention is not limited to this. During the switching process from the 3D display mode to the 2D display mode, the image gradient blending coefficient can be gradually reduced, that is, no matter how the image gradient blending coefficient changes, the general principle is: The target left-eye view and the target right-eye view for naked-eye stereo display are made closer and closer. Assuming that the mixed image is used as the target left-eye view, the gradient of the image gradient mixing coefficient needs to make the mixed image closer to the right-eye view.
此外,在3D显示模式到2D显示模式的切换过程中,裸眼3D显示终端的运动可能逐渐变得剧烈,则在此期间图像渐变混合系数呈增大或减小趋势,从而使得混合图像中左眼视图和右眼视图中其中一幅视图所占的比例增多。具体地,当混合图像作为目标右眼视图,图像渐变混合系数表示左眼视图在混合图像中所占比例时,在3D显示模式到2D显示模式的过渡过程中,混合图像中左眼视图所占比例逐渐增多,混合图像越来越接近左眼视图,则切换到2D显示模式时,送入用户左眼和右眼的图像均是左眼视图;当混合图像作为目标右眼视图,图像渐变混合系数表示右眼视图在混合图像中所占比例时,在3D显示模式到2D显示模式的过渡过程中,混合图像中右眼视图所占比例逐渐减小,混合图像越来越接近左眼视图,则切换到2D显示模式时,送入用户左眼和右眼的图像均是左眼视图;当混合图像作为目标左眼视图,图像渐变混合系数表示右眼视图在混合图像中所占比例时,在3D显示模式到2D显示模式的过渡过程中,混合图像中右眼视图所占比例逐渐增多,混合图像越来越接近右眼视图,则切换到2D显示模式时,送入用户左眼和右眼的图像均是右眼视图。当混合图像作为目标左眼视图,图像渐变混合系数表示左眼视图在混合图像中所占比例时,在3D显示模式到2D显示模式的过渡过程中,混合图像中左眼视图所占比例逐渐减小,混合图像越来越接近右眼视图,则切换到2D显示模式时,送入用户左眼和右眼的图像均是右眼视图。由此可知,在3D显示模式到2D显示模式的过渡过程中,按照最终2D显示的视图在混合图像中所占比例逐渐增多的趋势进行过渡,进而使得人眼感到舒适。In addition, during the switching process from the 3D display mode to the 2D display mode, the motion of the naked-eye 3D display terminal may gradually become violent, and during this period, the gradient blending coefficient of the image tends to increase or decrease, so that the left eye in the blended image tends to increase or decrease. The proportion of one of the views and the right eye view is increased. Specifically, when the mixed image is used as the target right-eye view, and the image gradient blending coefficient represents the proportion of the left-eye view in the mixed image, during the transition from 3D display mode to 2D display mode, the left-eye view in the mixed image occupies the proportion of the left-eye view. The proportion gradually increases, and the mixed image is getting closer and closer to the left eye view. When switching to 2D display mode, the images sent to the user's left eye and right eye are both left eye views; when the mixed image is used as the target right eye view, the images are gradually mixed. When the coefficient represents the proportion of the right eye view in the mixed image, during the transition from 3D display mode to 2D display mode, the proportion of the right eye view in the mixed image gradually decreases, and the mixed image gets closer and closer to the left eye view. When switching to 2D display mode, the images sent to the user's left and right eyes are both left-eye views; when the mixed image is used as the target left-eye view, and the image gradient blending coefficient indicates the proportion of the right-eye view in the mixed image, During the transition from 3D display mode to 2D display mode, the proportion of the right eye view in the mixed image gradually increases, and the mixed image is getting closer and closer to the right eye view. The images of the eyes are all right eye views. When the mixed image is used as the target left-eye view, and the image gradient blending coefficient indicates the proportion of the left-eye view in the mixed image, the proportion of the left-eye view in the mixed image gradually decreases during the transition from 3D display mode to 2D display mode. small, the mixed image is getting closer and closer to the right eye view, then when switching to 2D display mode, the images sent to the user's left eye and right eye are both the right eye view. It can be seen that, in the transition process from the 3D display mode to the 2D display mode, the transition is performed according to the trend that the proportion of the final 2D displayed view in the mixed image gradually increases, thereby making the human eye feel comfortable.
另外,具体地,当以上述第二种方式确定图像渐变混合系数时,举例而言,设第一预设值为0.2,则若在2D显示模式到3D显示模式的切换过程中,例如:In addition, specifically, when the image gradient blending coefficient is determined in the above-mentioned second manner, for example, the first preset value is set to 0.2, then in the process of switching from the 2D display mode to the 3D display mode, for example:
第一次得到的比较参数为0.8,则本次的图像渐变混合系数为0.6;The comparison parameter obtained for the first time is 0.8, then the gradient blending coefficient of this image is 0.6;
第二次得到的比较参数为0.7,则本次的图像渐变混合系数为0.7-0.2与上次的图像渐变混合系数0.6中的较大者,即为0.6;If the comparison parameter obtained for the second time is 0.7, the larger of the gradient blending coefficient of the current image is 0.7-0.2 and the gradient blending coefficient of the previous image 0.6, which is 0.6;
第三次得到的比较参数为0.72,则本次的图像渐变混合系数为0.72-0.2与上次的图像渐变混合系数0.6中的较大者,即为0.6;The comparison parameter obtained for the third time is 0.72, then the larger of the image gradient mixing coefficient of this time is 0.72-0.2 and the last image gradient mixing coefficient 0.6, which is 0.6;
第四次得到的比较参数为0.7,则本次的图像渐变混合系数为0.7-0.2与上次的图像渐变混合系数0.6中的较大者,即为0.6。If the comparison parameter obtained for the fourth time is 0.7, the image gradient mixing coefficient of this time is 0.7-0.2 and the larger of the previous image gradient mixing coefficient 0.6, which is 0.6.
因此,在2D显示模式到3D显示模式的切换过程中,即使裸眼3D显示终端的运动出现波动,而导致获得的比较参数出现波动,通过上述第二种方式确定的图像渐变混合系数也不会受到影响,从而有效地防止了画面的抖动。Therefore, during the switching process from the 2D display mode to the 3D display mode, even if the motion of the naked-eye 3D display terminal fluctuates, resulting in fluctuations in the obtained comparison parameters, the image gradient mixing coefficient determined by the second method above will not be affected. Influence, thus effectively preventing the shaking of the picture.
此外,裸眼3D显示终端在运动中,人眼对于观看接近2D的图像更舒服,所以在2D显示模式到3D显示模式的切换过程中,使得图像渐变混合系数取相邻两次获得的最大值,从而使得混合图像更接近于2D图像,进而使得人眼感到更加舒适。In addition, when the naked-eye 3D display terminal is in motion, the human eye is more comfortable for viewing images close to 2D. Therefore, in the process of switching from 2D display mode to 3D display mode, the image gradient blending coefficient takes the maximum value obtained twice adjacently. Therefore, the mixed image is closer to the 2D image, which makes the human eye feel more comfortable.
第二方面,根据预先设定的时间间隔和渐变步长,确定图像渐变混合系数的具体过程如下:In the second aspect, according to the preset time interval and gradient step, the specific process of determining the gradient blending coefficient of the image is as follows:
上述根据预先设定的时间间隔和渐变步长,确定图像渐变混合系数的步骤,包括:The above steps of determining the gradient blending coefficient of the image according to the preset time interval and gradient step include:
将图像渐变混合系数从初始值开始,每隔预先设定的时间间隔减小渐变步长。例如,将图像渐变混合系数从初始值为1开始,每隔预先设定的时间间隔减小渐变步长,直到图像渐变混合系数减小到0为止;Start the image gradient blending coefficient from the initial value, and decrease the gradient step size every preset time interval. For example, start the image gradient blending coefficient from an initial value of 1, and reduce the gradient step size every preset time interval until the image gradient blending coefficient decreases to 0;
或者or
将图像渐变混合系数从初始值开始,每隔预先设定的时间间隔增大渐变步长。例如,将图像渐变混合系数从初始值为0开始,每隔预先设定的时间间隔增大渐变步长,直到图像渐变混合系数增大到1为止。Start the image gradient blending coefficient from the initial value, and increase the gradient step size every preset time interval. For example, start the image gradient blending coefficient from an initial value of 0, and increase the gradient step size every preset time interval until the image gradient blending coefficient increases to 1.
每次减小或增大的渐变步长,可以相同或者不同。The gradient step size for each decrease or increase can be the same or different.
其中,当图像渐变混合系数表示左眼视图在混合图像中所占的比值,混合图像作为目标右眼视图,且2D显示模式显示的是左眼视图时,在2D显示模式到3D显示模式的切换过程中,图像渐变混合系数从初始值为1开始,每隔预先设定的时间间隔减小渐变步长,直到图像渐变混合系数减小到0为止,混合图像渐变为右眼视图;在3D显示模式到2D显示模式的切换过程中,图像渐变混合系数从初始值为0开始,每隔预先设定的时间间隔增大渐变步长,直到图像渐变混合系数增大到1为止,混合图像渐变为左眼视图。Among them, when the image gradient mixing coefficient represents the ratio of the left-eye view in the mixed image, the mixed image is used as the target right-eye view, and the 2D display mode displays the left-eye view, the switch from 2D display mode to 3D display mode During the process, the image gradient blending coefficient starts from the initial value of 1, and the gradient step is reduced at every preset time interval until the image gradient blending coefficient decreases to 0, and the blended image is gradually changed to the right eye view; in the 3D display In the process of switching from mode to 2D display mode, the image gradient blending coefficient starts from the initial value of 0, and increases the gradient step size every preset time interval until the image gradient blending coefficient increases to 1, and the blended image gradually changes to Left eye view.
当图像渐变混合系数表示左眼视图在混合图像中所占的比值,混合图像作为目标左眼视图,且2D显示模式显示的是右眼视图时,在2D显示模式到3D显示模式的切换过程中,图像渐变混合系数从初始值为0开始,每隔预先设定的时间间隔增大渐变步长,直到图像渐变混合系数增大到1为止,混合图像渐变为左眼视图;在3D显示模式到2D显示模式的切换过程中,图像渐变混合系数从初始值为1开始,每隔预先设定的时间间隔减小渐变步长,直到图像渐变混合系数减小到0为止,混合图像渐变为右眼视图。When the image gradient mixing coefficient represents the ratio of the left-eye view in the mixed image, the mixed image is used as the target left-eye view, and the 2D display mode displays the right-eye view, during the switching process from the 2D display mode to the 3D display mode , the image gradient blending coefficient starts from the initial value of 0, and increases the gradient step size every preset time interval until the image gradient blending coefficient increases to 1, and the blended image gradually changes to the left eye view; in 3D display mode to During the switching process of the 2D display mode, the image gradient blending coefficient starts from the initial value of 1, and reduces the gradient step size every preset time interval until the image gradient blending coefficient decreases to 0, and the blended image gradually changes to the right eye. view.
当图像渐变混合系数表示右眼视图在混合图像中所占的比值,混合图像作为目标左眼视图,且2D显示模式显示的是右眼视图时,在2D显示模式到3D显示模式的切换过程中,图像渐变混合系数从初始值为1开始,每隔预先设定的时间间隔减小渐变步长,直到图像渐变混合系数减小到0为止,混合图像渐变为左眼视图;在3D显示模式到2D显示模式的切换过程中,图像渐变混合系数从初始值为0开始,每隔预先设定的时间间隔增大渐变步长,直到图像渐变混合系数增大到1为止,混合图像渐变为右眼视图。When the image gradient mixing coefficient represents the ratio of the right-eye view in the mixed image, the mixed image is used as the target left-eye view, and the 2D display mode displays the right-eye view, during the switching process from the 2D display mode to the 3D display mode , the image gradient blending coefficient starts from the initial value of 1, and reduces the gradient step size every preset time interval until the image gradient blending coefficient decreases to 0, and the blended image gradually changes to the left eye view; in 3D display mode to During the switching process of the 2D display mode, the image gradient blending coefficient starts from the initial value of 0, and increases the gradient step size every preset time interval until the image gradient blending coefficient increases to 1, and the blended image gradually changes to the right eye. view.
当图像渐变混合系数表示右眼视图在混合图像中所占的比值,混合图像作为目标右眼视图,且2D显示模式显示的是左眼视图时,在2D显示模式到3D显示模式的切换过程中,图像渐变混合系数从初始值为0开始,每隔预先设定的时间间隔增大渐变步长,直到图像渐变混合系数增大到1为止,混合图像渐变为右眼视图;在3D显示模式到2D显示模式的切换过程中,图像渐变混合系数从初始值为1开始,每隔预先设定的时间间隔减小渐变步长,直到图像渐变混合系数减小到0为止,混合图像渐变为左眼视图。When the image gradient mixing coefficient represents the ratio of the right-eye view in the mixed image, the mixed image is used as the target right-eye view, and the 2D display mode displays the left-eye view, during the switching process from the 2D display mode to the 3D display mode , the image gradient blending coefficient starts from the initial value of 0, and increases the gradient step size every preset time interval until the image gradient blending coefficient increases to 1, and the blended image gradually changes to the right eye view; in 3D display mode to During the switching process of the 2D display mode, the image gradient blending coefficient starts from the initial value of 1, and the gradient step is reduced at every preset time interval until the image gradient blending coefficient decreases to 0, and the blended image gradually changes to the left eye. view.
此外,优选地,以渐变显示模式对图像内容进行显示的过程中,本发明的实施例还包括:In addition, preferably, in the process of displaying the image content in the gradient display mode, the embodiment of the present invention further includes:
确定是否从渐变显示模式切换回第一显示模式;determine whether to switch from the gradient display mode back to the first display mode;
当确定从渐变显示模式切换回第一显示模式时,恢复至以第一显示模式对图像内容进行显示。When it is determined to switch from the gradient display mode back to the first display mode, the display of the image content in the first display mode is restored.
其中,上述确定是否从渐变显示模式切换回第一显示模式的步骤,具体包括:Wherein, the above-mentioned step of determining whether to switch from the gradient display mode to the first display mode specifically includes:
获取裸眼3D显示终端的第三运动状态信息;Obtain the third motion state information of the naked-eye 3D display terminal;
判断第三运动状态信息是否满足预设条件;determining whether the third motion state information satisfies a preset condition;
当第三运动状态信息满足预设条件时,确定从渐变显示模式切换回第一显示模式。When the third motion state information satisfies the preset condition, it is determined to switch from the gradient display mode back to the first display mode.
即在根据裸眼3D显示终端的运动状态信息,切换裸眼3D显示终端的显示模式时,还存在如下两种情况:That is, when the display mode of the naked-eye 3D display terminal is switched according to the motion state information of the naked-eye 3D display terminal, there are the following two situations:
情况一:裸眼3D显示终端从2D显示模式进入了渐变显示模式,最终并未进入3D显示模式,而是返回到了2D显示模式;Case 1: The naked-eye 3D display terminal enters the gradient display mode from the 2D display mode, and finally does not enter the 3D display mode, but returns to the 2D display mode;
情况二:裸眼3D显示终端从3D显示模式进入了渐变显示模式,最终并未进入2D显示模式,而是返回到了3D显示模式。Case 2: The naked-eye 3D display terminal enters the gradient display mode from the 3D display mode, and finally does not enter the 2D display mode, but returns to the 3D display mode.
其中,上述第三运动状态信息包括裸眼3D显示终端的角速度信息,该角速度信息包括裸眼3D显示终端绕X方向旋转的第一角速度、绕Y方向旋转的第二角速度、绕Z方向旋转的第三角速度中的至少一者,则根据裸眼3D显示终端的角速度信息,可以确定出一目标角速度,进而判断该目标角速度是否满足预设条件,当该目标角速度满足预设条件时,表示裸眼3D显示终端需要从渐变显示模式返回第一显示模式(即2D显示模式或3D显示模式)。其中,根据裸眼3D显示终端的角速度信息,确定目标角速度的具体过程如前文,此处不再赘述。The third motion state information includes angular velocity information of the naked-eye 3D display terminal, and the angular velocity information includes the first angular velocity of the naked-eye 3D display terminal rotating around the X direction, the second angular velocity rotating around the Y direction, and the third angular velocity rotating around the Z direction. At least one of the speeds, then according to the angular velocity information of the naked-eye 3D display terminal, a target angular velocity can be determined, and then it is judged whether the target angular velocity satisfies the preset condition, and when the target angular velocity satisfies the preset condition, it means that the naked-eye 3D display terminal It is required to return from the gradient display mode to the first display mode (ie 2D display mode or 3D display mode). The specific process of determining the target angular velocity according to the angular velocity information of the naked-eye 3D display terminal is as described above, and will not be repeated here.
具体地,当根据裸眼3D显示终端的角速度信息确定的目标角速度大于第二预设阈值时,返回2D显示模式;当根据裸眼3D显示终端的角速度信息确定的目标角速度连续预设次数小于第一预设阈值时,返回3D显示模式。Specifically, when the target angular velocity determined according to the angular velocity information of the naked-eye 3D display terminal is greater than the second preset threshold, the 2D display mode is returned; When the threshold is set, return to 3D display mode.
由上述可知,本发明实施例的用于裸眼3D显示终端的图像显示方法,具体实施方式举例如下:It can be seen from the above that the image display method for the naked-eye 3D display terminal according to the embodiment of the present invention, the specific implementation examples are as follows:
实施方式一,本实施方式中,根据如下公式,获取图像内容中的左眼视图和右眼视图的混合图像:f(x,y)=g(x,y)×(1-α)+h(x,y)×α;混合图像作为目标右眼视图,左眼视图作为目标左眼视图,h(x,y)表示左眼视图,g(x,y)表示右眼视图,如图4所示,包括如下步骤:Embodiment 1. In this embodiment, a mixed image of the left-eye view and the right-eye view in the image content is obtained according to the following formula: f(x,y)=g(x,y)×(1-α)+h (x,y)×α; the mixed image is used as the target right-eye view, the left-eye view is used as the target left-eye view, h(x,y) represents the left-eye view, and g(x,y) represents the right-eye view, as shown in Figure 4 shown, including the following steps:
步骤401:以当前显示模式进行显示,并检测是否接收到显示模式切换指令;当前显示模式为3D显示模式或者2D显示模式。其中,当接收到显示模式切换指令,且当前显示模式为3D显示模式时,执行步骤402;当接收到显示模式切换指令,且当前显示模式为2D显示模式时,执行步骤405。Step 401: Display in the current display mode, and detect whether a display mode switching instruction is received; the current display mode is a 3D display mode or a 2D display mode. Wherein, when a display mode switching instruction is received and the current display mode is a 3D display mode,
步骤402:当前是3D显示模式,则将图像渐变混合系数从初始值为0开始,每隔预先设定的时间间隔增大渐变步长,根据图像渐变混合系数确定混合图像,并将混合图像作为目标右眼视图,左眼视图作为目标左眼视图,从而根据目标左眼视图和目标右眼视图进行裸眼立体显示,使得混合图像送入用户右眼,左眼视图送入用户左眼;Step 402 : the current is the 3D display mode, the image gradient blending coefficient is started from the initial value of 0, the gradient step is increased at every preset time interval, the blended image is determined according to the image gradient blending coefficient, and the blended image is used as The target right eye view, the left eye view is used as the target left eye view, so that the naked eye stereoscopic display is performed according to the target left eye view and the target right eye view, so that the mixed image is sent to the user's right eye, and the left eye view is sent to the user's left eye;
步骤403:判断图像渐变混合系数是否增大到1,当图像渐变混合系数增大到1时,执行步骤404,否则执行步骤402;Step 403: Determine whether the image gradient mixing coefficient increases to 1, when the image gradient mixing coefficient increases to 1, execute
步骤404:切换到2D显示模式,其中,送入用户双眼的都是左眼视图;Step 404: switch to a 2D display mode, wherein the left eye view is fed into both eyes of the user;
步骤405:当前是2D显示模式,且送入用户双眼的都是左眼视图,则将图像渐变混合系数从初始值为1开始,每隔预先设定的时间间隔减小渐变步长,根据图像渐变混合系数确定混合图像,并将混合图像作为目标右眼视图,左眼视图作为目标左眼视图,从而根据目标左眼视图和目标右眼视图进行裸眼立体显示,使得混合图像送入用户右眼,左眼视图送入用户左眼;Step 405: The current is 2D display mode, and the left eye view is fed to both eyes of the user, then the image gradient mixing coefficient starts from an initial value of 1, and the gradient step size is reduced every preset time interval, according to the image The gradient blending coefficient determines the blended image, and uses the blended image as the target right-eye view and the left-eye view as the target left-eye view, so that the naked-eye stereoscopic display is performed according to the target left-eye view and the target right-eye view, so that the blended image is sent to the user's right eye , the left eye view is sent to the user's left eye;
步骤406:判断图像渐变混合系数是否减小到0,当图像渐变混合系数减小到0时,执行步骤407,否则执行步骤405;Step 406: Determine whether the image gradient mixing coefficient is reduced to 0, when the image gradient mixing coefficient is reduced to 0, go to step 407, otherwise go to step 405;
步骤407:切换到3D显示模式。Step 407: Switch to the 3D display mode.
可以理解的是,上述实施方式中,在2D到3D的切换过程中以及3D到2D的切换过程中均采用了渐变方式,但本发明不限于此,这两种切换中可以有至少一种采用渐变切换,考虑到3D显示加载的复杂性,从2D到3D显示的过程中需要一定的时间,因此,优选在3D到2D的过程中采用上述渐变方式,而在2D到3D的过程中,可不进行渐变显示。It can be understood that, in the above-mentioned embodiments, the gradation method is adopted in the switching process from 2D to 3D and the switching process from 3D to 2D, but the present invention is not limited to this, and at least one of the two switching methods may be adopted. Gradient switching, considering the complexity of 3D display loading, the process from 2D to 3D display takes a certain amount of time. Therefore, it is preferable to use the above gradient method in the process of 3D to 2D, but in the process of 2D to 3D, it is not necessary to Gradient display is performed.
实施方式二:裸眼3D显示终端从静止状态变为运动状态的过程中,由3D显示模式切换为2D显示模式的过程。Embodiment 2: The process of switching from the 3D display mode to the 2D display mode in the process of changing the naked-eye 3D display terminal from the static state to the moving state.
本实施方式中,根据如下公式,获取图像内容中的左眼视图和右眼视图的混合图像:f(x,y)=g(x,y)×(1-α)+h(x,y)×α;混合图像作为目标右眼视图,左眼视图作为目标左眼视图,h(x,y)表示左眼视图,g(x,y)表示右眼视图。In this embodiment, a mixed image of the left-eye view and the right-eye view in the image content is obtained according to the following formula: f(x,y)=g(x,y)×(1-α)+h(x,y )×α; the mixed image is used as the target right-eye view, the left-eye view is used as the target left-eye view, h(x, y) represents the left-eye view, and g(x, y) represents the right-eye view.
具体地,如图5所示,本实施方式包括如下步骤:Specifically, as shown in FIG. 5 , this embodiment includes the following steps:
步骤501:当前以3D显示模式进行显示,每隔预设时间间隔,获取一次裸眼3D显示终端的角速度信息,并根据角速度信息确定目标角速度;Step 501: Currently displaying in a 3D display mode, obtaining the angular velocity information of the naked-eye 3D display terminal once every preset time interval, and determining the target angular velocity according to the angular velocity information;
步骤502:判断目标角速度的绝对值是否大于或等于第一预设阈值,当目标角速度的绝对值大于或等于第一预设阈值时,执行步骤503,否则执行步骤501;其中,目标角速度的绝对值大于或等于第一预设阈值,表示裸眼3D显示终端的运动变得剧烈,此时,若裸眼3D显示终端仍然以3D显示模式进行显示,会产生串扰等问题,影响用户的观看效果,因此,本实施方式中,在目标角速度的绝对值大于或等于第一预设阈值时,执行步骤503,进而可以切换到2D显示模式;Step 502: determine whether the absolute value of the target angular velocity is greater than or equal to the first preset threshold, when the absolute value of the target angular velocity is greater than or equal to the first preset threshold, execute
步骤503:当目标角速度的绝对值大于或等于第一预设阈值时,对最近获得的第一预设数量的目标角速度进行加权求和处理,并将加权求和处理后得到的数值的绝对值确定为比较参数。Step 503: When the absolute value of the target angular velocity is greater than or equal to the first preset threshold, perform a weighted summation process on the first preset number of target angular velocities obtained recently, and calculate the absolute value of the value obtained after the weighted summation process. Determined as a comparison parameter.
其中,目标角速度的绝对值大于或等于第一预设阈值,表示裸眼3D显示终端的运动状态变得剧烈,需要执行步骤503~506,进入渐变显示模式。其中,在渐变显示模式中,由于图像渐变混合系数是根据比较参数确定的,所以,将最近获得的第一预设数量的目标角速度加权求和处理后得到的数值的绝对值作为比较参数,能够避免突变的角速度信息导致图像渐变混合系数产生较大偏差,进而避免根据图像渐变混合系数得到的混合图像的突变。The absolute value of the target angular velocity is greater than or equal to the first preset threshold, indicating that the motion state of the naked-eye 3D display terminal becomes severe, and steps 503 to 506 need to be executed to enter the gradient display mode. Among them, in the gradient display mode, since the image gradient mixing coefficient is determined according to the comparison parameter, the absolute value of the numerical value obtained after the weighted summation of the first preset number of target angular velocities obtained recently is used as the comparison parameter. Avoiding sudden change in angular velocity information leads to a large deviation of the image gradient mixing coefficient, thereby avoiding the sudden change of the mixed image obtained according to the image gradient mixing coefficient.
步骤504:判断比较参数是否处于第三预设阈值与第四预设阈值之间,当比较参数处于第三预设阈值与第四预设阈值之间时,执行步骤505,当比较参数小于或等于第三预设阈值时,执行步骤501,当比较参数大于或等于第四预设阈值时,执行步骤507;其中,第三预设阈值可大于等于第一预设阈值。Step 504: Determine whether the comparison parameter is between the third preset threshold and the fourth preset threshold, when the comparison parameter is between the third preset threshold and the fourth preset threshold, perform
步骤505:将比较参数减小第一预设值(其中,减小第一预设值后若小于或等于0则置为0,若大于或等于1则置为1),并与上次获得的图像渐变混合系数进行比较,取二者中的较大者作为本次的图像渐变混合系数。Step 505: Decrease the comparison parameter by the first preset value (wherein, after reducing the first preset value, if it is less than or equal to 0, it is set to 0; The image gradient mixing coefficients are compared, and the larger of the two is taken as the current image gradient mixing coefficient.
步骤506:根据图像渐变混合系数确定混合图像,并将混合图像作为目标右眼视图,左眼视图作为目标左眼视图,使得混合图像送入用户右眼,左眼视图送入用户左眼。Step 506: Determine the mixed image according to the image gradient mixing coefficient, and use the mixed image as the target right eye view and the left eye view as the target left eye view, so that the mixed image is sent to the user's right eye and the left eye view is sent to the user's left eye.
步骤507:切换到2D显示模式(其中,送入用户双眼的都是左眼视图)。其中,裸眼3D显示终端进入2D显示模式时,可以从图像内容中的左眼视图和右眼视图中选取一幅进行2D显示,也可以从图像内容中的左眼视图和右眼视图中选取一幅同时作为目标左眼视图和目标右眼视图,然后根据目标左眼视图和目标右眼视图进行裸眼立体显示。其中,采用裸眼立体显示方式达到2D显示效果的情况,可以为渐变显示模式中图像渐变混合系数等于1或0时的特殊显示情况。Step 507: Switch to the 2D display mode (wherein, the left eye view is fed to both eyes of the user). Wherein, when the naked-eye 3D display terminal enters the 2D display mode, one can be selected from the left-eye view and the right-eye view in the image content for 2D display, or one can be selected from the left-eye view and the right-eye view in the image content. The frame is used as the target left-eye view and the target right-eye view at the same time, and then the naked-eye stereoscopic display is performed according to the target left-eye view and the target right-eye view. Wherein, the case where the naked-eye stereoscopic display method is used to achieve the 2D display effect may be a special display case when the image gradient mixing coefficient is equal to 1 or 0 in the gradient display mode.
本实施方式中,切换为2D显示模式可以为将图像渐变混合系数设置为1,则此时混合图像为左眼视图,作为目标右眼视图,而左眼视图作为目标左眼视图,目标左眼视图和目标右眼视图相同,均为左眼视图,裸眼3D显示时,会因此呈现2D显示效果。In this embodiment, switching to the 2D display mode may be to set the image gradient mixing coefficient to 1, then the mixed image is the left-eye view, which is the target right-eye view, and the left-eye view is the target left-eye view, and the target left-eye view is The view is the same as the right-eye view of the target, both are left-eye views. When the naked eye is displayed in 3D, it will present a 2D display effect.
由上述可知,在本实施方式中,通过步骤501~502可以确定是否将3D显示模式切换为2D显示模式,并在目标角速度的绝对值大于或等于第一预设阈值时,确定出需要将3D显示模式切换为2D显示模式,从而通过步骤503~506进入渐变显示模式,并在获得的比较参数大于或等于第四预设阈值时,切换为2D显示模式。其中,在裸眼3D显示终端从静止状态变为剧烈运动状态的过程中,获得的比较参数从处于第三预设阈值与第四预设阈值之间,逐渐变为大于或等于第四预设阈值,因而在裸眼3D显示终端从静止状态变为剧烈运动状态的过程中,可以经由渐变显示模式从3D显示模式切换为2D显示模式。It can be seen from the above that in this embodiment, it can be determined whether to switch the 3D display mode to the 2D display mode through
实时方式三:本实施方式中,针对的是在裸眼3D显示终端经过剧烈运动切换为2D显示模式后,从运动状态又逐渐变为静止状态的过程中,重新由2D显示模式切换为3D显示模式的过程。Real-time mode 3: In this embodiment, after the naked-eye 3D display terminal is switched to the 2D display mode after vigorous motion, the process of changing from the motion state to the static state gradually changes from the 2D display mode to the 3D display mode again. the process of.
其中,本实施方式中,根据如下公式,获取图像内容中的左眼视图和右眼视图的混合图像:f(x,y)=g(x,y)×(1-α)+h(x,y)×α;混合图像作为目标右眼视图,左眼视图作为目标左眼视图,h(x,y)表示左眼视图,g(x,y)表示右眼视图。Wherein, in this embodiment, the mixed image of the left-eye view and the right-eye view in the image content is obtained according to the following formula: f(x,y)=g(x,y)×(1-α)+h(x ,y)×α; the mixed image is used as the target right-eye view, the left-eye view is used as the target left-eye view, h(x,y) represents the left-eye view, and g(x,y) represents the right-eye view.
具体地,如图6所示,本实时方式,包括如下步骤:Specifically, as shown in Figure 6, this real-time mode includes the following steps:
步骤601:当前以2D显示模式进行显示,每隔预设时间间隔,获取一次裸眼3D显示终端的角速度信息,并根据角速度信息确定目标角速度;Step 601: Currently displaying in a 2D display mode, obtaining the angular velocity information of the naked-eye 3D display terminal once every preset time interval, and determining the target angular velocity according to the angular velocity information;
其中,裸眼3D显示终端以2D显示模式进行显示时,可以从图像内容中的左眼视图和右眼视图中选取一幅进行2D显示,也可以从图像内容中的左眼视图和右眼视图中选取一幅同时作为目标左眼视图和目标右眼视图,然后根据目标左眼视图和目标右眼视图进行裸眼立体显示。其中,采用裸眼立体显示方式达到2D显示效果的情况,即为渐变显示模式中图像渐变混合系数等于1或0时的特殊显示情况。Wherein, when the naked-eye 3D display terminal displays in 2D display mode, one of the left-eye view and right-eye view in the image content can be selected for 2D display, or one of the left-eye view and right-eye view in the image content can be selected for 2D display. Select one image as the target left-eye view and target right-eye view at the same time, and then perform naked-eye stereoscopic display according to the target left-eye view and the target right-eye view. Among them, the case where the naked-eye stereoscopic display method is used to achieve the 2D display effect is a special display case when the image gradient mixing coefficient is equal to 1 or 0 in the gradient display mode.
本实施方式中,2D显示模式可以为渐变显示模式中,将图像渐变混合系数设置为1的特殊情况。In this embodiment, the 2D display mode may be a special case of setting the image gradient blending coefficient to 1 in the gradient display mode.
步骤602:判断目标角速度的绝对值小于第二预设阈值,当目标角速度的绝对值小于第二预设阈值时,执行步骤603,否则执行步骤601;Step 602: determine that the absolute value of the target angular velocity is less than the second preset threshold, when the absolute value of the target angular velocity is less than the second preset threshold, execute step 603, otherwise execute
其中,目标角速度的绝对值小于第二预设阈值,表示裸眼3D显示终端的运动状态变得缓慢并趋于静止状态,此时,为了满足用户的立体观看需求,需要在目标角速度的绝对值小于第二预设阈值时,执行步骤603,进而可以切换到3D显示模式;The absolute value of the target angular velocity is less than the second preset threshold, indicating that the motion state of the naked-eye 3D display terminal becomes slow and tends to be stationary. At the second preset threshold, perform step 603, and then switch to the 3D display mode;
步骤603:当目标角速度的绝对值小于第二预设阈值时,对最近获得的第一预设数量的目标角速度进行加权求和处理,并将加权求和处理后得到的数值的绝对值确定为比较参数;Step 603: When the absolute value of the target angular velocity is less than the second preset threshold, perform weighted summation processing on the first preset number of target angular velocities obtained recently, and determine the absolute value of the value obtained after the weighted summation processing as compare parameters;
其中,目标角速度的绝对值大于或等于第一预设阈值,表示裸眼3D显示终端的运动状态变得缓慢,需要执行步骤603~606,进入渐变显示模式。其中,在渐变显示模式中,由于图像渐变混合系数是根据比较参数确定的,所以,将最近获得的第一预设数量的目标角速度加权求和处理后得到的数值的绝对值作为比较参数,能够避免突变的角速度信息导致图像渐变混合系数产生较大偏差,进而避免根据图像渐变混合系数得到的混合图像的突变。The absolute value of the target angular velocity is greater than or equal to the first preset threshold, indicating that the motion state of the naked-eye 3D display terminal becomes slow, and steps 603 to 606 need to be executed to enter the gradient display mode. Among them, in the gradient display mode, since the image gradient mixing coefficient is determined according to the comparison parameter, the absolute value of the numerical value obtained after the weighted summation of the first preset number of target angular velocities obtained recently is used as the comparison parameter. Avoiding sudden change in angular velocity information leads to a large deviation of the image gradient mixing coefficient, thereby avoiding the sudden change of the mixed image obtained according to the image gradient mixing coefficient.
步骤604:判断比较参数是否处于第三预设阈值与第四预设阈值之间,当比较参数处于第三预设阈值与第四预设阈值之间时,执行步骤605,当比较参数大于或等于第四预设阈值时,执行步骤601,当比较参数连续小于或等于第三预设阈值的次数达到预设次数时,执行步骤607。Step 604: Determine whether the comparison parameter is between the third preset threshold and the fourth preset threshold, when the comparison parameter is between the third preset threshold and the fourth preset threshold, perform
步骤605:将比较参数减小第一预设值(其中,减小第一预设值后若小于或等于0则置为0,若大于或等于1则置为1),并与上次获得的图像渐变混合系数进行比较,取二者中的较大者作为本次的图像渐变混合系数。Step 605: Decrease the comparison parameter by a first preset value (wherein, if the first preset value is reduced, if it is less than or equal to 0, it is set to 0; The image gradient mixing coefficients are compared, and the larger of the two is taken as the current image gradient mixing coefficient.
步骤606:根据图像渐变混合系数确定混合图像,并将混合图像作为目标右眼视图,左眼视图作为目标左眼视图,使得混合图像送入用户右眼,左眼视图送入用户左眼。Step 606: Determine the mixed image according to the image gradient mixing coefficient, and use the mixed image as the target right eye view and the left eye view as the target left eye view, so that the mixed image is sent to the user's right eye and the left eye view is sent to the user's left eye.
步骤607:切换到3D显示模式。Step 607: Switch to the 3D display mode.
由上述可知,在本实施方式中,通过步骤601~602可以确定是否将2D显示模式切换为3D显示模式,并在目标角速度的绝对值小于第二预设阈值时,确定出需要将2D显示模式切换为3D显示模式,从而通过步骤603~606进入渐变显示模式,并在获得的比较参数小于或等于第三预设阈值的次数达到预设次数时,切换为3D显示模式。其中,在裸眼3D显示终端从剧烈运动状态变为静止运动状态的过程中,获得的比较参数从处于第三预设阈值与第四预设阈值之间,逐渐变为连续预设次数小于或等于第三预设阈值,因而在裸眼3D显示终端从剧烈状态变为静止运动状态的过程中,可以经由渐变显示模式从2D显示模式切换为3D显示模式。It can be seen from the above that in this embodiment, it can be determined whether to switch the 2D display mode to the 3D display mode through
其中,需要说明的是,在实施方式二中,若在步骤505~506之间,根据裸眼3D显示终端的角速度信息确定的目标角速度连续预设次数小于第一预设阈值,则返回到原来的3D显示模式。同理,在实时方式三中,若在步骤605~606之间,根据裸眼3D显示终端的角速度信息确定的目标角速度大于第二预设阈值,则返回到原来的2D显示模式。It should be noted that, in the second embodiment, if between
此外,假设裸眼3D显示终端的运动状态如图7所示,则由上述分析可知,该裸眼3D显示终端在OA段处于3D显示模式,在AB段处于渐变显示模式,在BC段和CD段处于2D显示模式,在DE段处于渐变显示模式,在EF段处于3D显示模式。In addition, assuming that the motion state of the naked-eye 3D display terminal is as shown in Figure 7, it can be seen from the above analysis that the naked-eye 3D display terminal is in the 3D display mode in the OA segment, in the gradient display mode in the AB segment, and in the BC segment and CD segment. In the 2D display mode, it is in the gradient display mode in the DE segment, and in the 3D display mode in the EF segment.
其中,裸眼3D显示终端经由AB段的渐变显示模式从3D显示模式切换到2D显示模式的过程中,由于裸眼3D显示终端的实际运动状态不可能持续呈变快的趋势,即在此过程中存在波动的情况,而通过设置图像渐变混合系数取相邻两次的较大者,则可以避免由于裸眼3D显示终端运动状态的波动导致显示画面出现抖动。Among them, in the process of switching the naked-eye 3D display terminal from the 3D display mode to the 2D display mode via the gradient display mode of the AB segment, since the actual motion state of the naked-eye 3D display terminal cannot continue to show a trend of rapidity, that is, during this process, there are In the case of fluctuations, by setting the image gradient blending coefficient to take the larger of two consecutive times, it is possible to avoid the display screen shaking due to fluctuations in the motion state of the naked-eye 3D display terminal.
同理,裸眼3D显示终端经由DE段的渐变显示模式从2D显示模式切换到3D显示模式的过程中,裸眼3D显示终端的实际运动状态也不可能持续呈变慢的趋势,即在此过程中存在波动的情况,而通过设置图像渐变混合系数取相邻两次的较大者,同样避免了由于裸眼3D显示终端运动状态的波动导致显示画面出现抖动。In the same way, during the process of switching from the 2D display mode to the 3D display mode of the naked-eye 3D display terminal via the gradient display mode of the DE segment, the actual motion state of the naked-eye 3D display terminal cannot continue to show a slowing trend, that is, during this process. There are fluctuations, and by setting the image gradient blending coefficient to take the larger of two consecutive times, it is also avoided that the display screen shakes due to fluctuations in the motion state of the naked-eye 3D display terminal.
综上所述,在裸眼3D显示终端以3D显示模式或者2D显示模式中的任一种显示模式对图像内容进行显示的过程中,能够在确定出需要在3D显示模式与2D显示模式之间进行切换时,以渐变显示模式对图像内容进行显示,从而逐渐改变用户左右眼中至少一只眼睛所看到的内容,将该部分内容从3D显示模式对应的内容逐渐转变成2D显示模式对应的内容,或者从2D显示模式对应的内容逐渐变成3D显示模式对应的内容,避免了裸眼3D显示终端在3D显示模式和2D显示模式之间进行切换时,由于送入用户眼睛的内容产生突变而使用户眼睛感到不适,提升了用户的观看体验。To sum up, in the process of displaying the image content by the naked-eye 3D display terminal in either the 3D display mode or the 2D display mode, it can be determined that the display needs to be performed between the 3D display mode and the 2D display mode. When switching, the image content is displayed in a gradient display mode, thereby gradually changing the content seen by at least one of the left and right eyes of the user, and gradually transforming the part of the content from the content corresponding to the 3D display mode to the content corresponding to the 2D display mode, Or gradually change from the content corresponding to the 2D display mode to the content corresponding to the 3D display mode, so as to avoid the user's eyes being caused by the sudden change of the content sent to the user's eyes when the naked-eye 3D display terminal switches between the 3D display mode and the 2D display mode. Eyes feel uncomfortable, which improves the user's viewing experience.
本发明的实施例还提供了一种用于裸眼3D显示终端的图像显示装置,如图2所示,该装置包括:An embodiment of the present invention also provides an image display device for a naked-eye 3D display terminal. As shown in FIG. 2 , the device includes:
显示模块201,用于以第一显示模式对图像内容进行显示;a
切换决策模块202,用于确定是否将所述第一显示模式切换为第二显示模式,其中,所述第一显示模式为3D显示模式和2D显示模式中的一种,所述第二显示模式为3D显示模式和2D显示模式中的另一种;A switching
所述显示模块201还用于当确定将所述第一显示模式切换为所述第二显示模式时,以渐变显示模式对所述图像内容进行显示,从而将所述第一显示模式经由所述渐变显示模式切换为所述第二显示模式。The
优选地,所述显示模块201包括:Preferably, the
混合图像获取子模块,用于获取所述图像内容的左眼视图和右眼视图的混合图像;a mixed image acquisition submodule for acquiring a mixed image of the left-eye view and the right-eye view of the image content;
裸眼立体显示子模块,用于将所述混合图像作为目标左眼视图,将所述右眼视图作为目标右眼视图,或者,将所述混合图像作为目标右眼视图,将所述左眼视图作为目标左眼视图,根据所述目标左眼视图和所述目标右眼视图进行裸眼立体显示。A naked-eye stereoscopic display sub-module, configured to use the mixed image as the target left-eye view and the right-eye view as the target right-eye view, or use the mixed image as the target right-eye view, and use the left-eye view as the target view As the target left-eye view, naked-eye stereoscopic display is performed according to the target left-eye view and the target right-eye view.
优选地,所述切换决策模块202包括:Preferably, the
第一运动状态信息获取子模块,用于获取裸眼3D显示终端的第一运动状态信息;a first motion state information acquisition submodule, configured to acquire the first motion state information of the naked-eye 3D display terminal;
第一切换决策子模块,用于根据所述第一运动状态信息确定是否将所述第一显示模式切换为所述第二显示模式;a first switching decision sub-module, configured to determine whether to switch the first display mode to the second display mode according to the first motion state information;
或者or
切换指令检测子模块,用于检测裸眼3D显示终端是否接收到显示模式切换指令;The switching instruction detection sub-module is used to detect whether the naked-eye 3D display terminal receives the display mode switching instruction;
第二切换决策子模块,用于当检测到所述裸眼3D显示终端接收到显示模式切换指令时,确定将所述第一显示模式切换为所述第二显示模式。The second switching decision sub-module is configured to determine to switch the first display mode to the second display mode when it is detected that the naked-eye 3D display terminal receives a display mode switching instruction.
优选地,所述第一运动状态信息包括所述裸眼3D显示终端的角速度信息;Preferably, the first motion state information includes angular velocity information of the naked-eye 3D display terminal;
所述第一显示模式为3D显示模式,且所述第二显示模式为2D显示模式,述第一切换决策子模块包括:The first display mode is a 3D display mode, and the second display mode is a 2D display mode, and the first switching decision sub-module includes:
目标角速度确定单元,用于根据所述裸眼3D显示终端的角速度信息,确定目标角速度;a target angular velocity determination unit, configured to determine the target angular velocity according to the angular velocity information of the naked-eye 3D display terminal;
第一阈值判断单元,用于确定所述目标角速度的绝对值是否大于或等于第一预设阈值;a first threshold judgment unit, configured to determine whether the absolute value of the target angular velocity is greater than or equal to a first preset threshold;
第一切换单元,用于当所述目标角速度的绝对值大于或等于所述第一预设阈值时,确定将所述第一显示模式切换为所述第二显示模式;a first switching unit, configured to determine to switch the first display mode to the second display mode when the absolute value of the target angular velocity is greater than or equal to the first preset threshold;
和/或and / or
所述第一显示模式为2D显示模式,且所述第二显示模式为3D显示模式,所述第一切换决策子模块包括:The first display mode is a 2D display mode, and the second display mode is a 3D display mode, and the first switching decision sub-module includes:
目标角速度确定单元,用于根据所述裸眼3D显示终端的角速度信息,确定目标角速度;a target angular velocity determination unit, configured to determine the target angular velocity according to the angular velocity information of the naked-eye 3D display terminal;
第二阈值判断单元,用于确定所述目标角速度的绝对值是否小于第二预设阈值;a second threshold judgment unit, configured to determine whether the absolute value of the target angular velocity is less than a second preset threshold;
第二切换单元,用于当所述目标角速度的绝对值小于所述第二预设阈值时,确定将所述第一显示模式切换为所述第二显示模式。A second switching unit, configured to determine to switch the first display mode to the second display mode when the absolute value of the target angular velocity is smaller than the second preset threshold.
优选地,所述角速度信息包括所述裸眼3D显示终端绕Y方向旋转的第二角速度,所述目标角速度确定单元具体用于:Preferably, the angular velocity information includes a second angular velocity of the naked-eye 3D display terminal rotating around the Y direction, and the target angular velocity determination unit is specifically configured to:
将所述第二角速度确定为目标角速度;determining the second angular velocity as a target angular velocity;
或者or
所述角速度信息包括所述裸眼3D显示终端绕X方向旋转的第一角速度、绕Y方向旋转的第二角速度,所述目标角速度确定单元具体用于:The angular velocity information includes a first angular velocity of the naked-eye 3D display terminal rotating around the X direction and a second angular velocity of the naked-eye 3D display terminal rotating around the Y direction, and the target angular velocity determination unit is specifically used for:
将所述第一角速度和所述第二角速度的平方和的算术平方根,确定为目标角速度;The arithmetic square root of the sum of the squares of the first angular velocity and the second angular velocity is determined as the target angular velocity;
或者or
所述角速度信息包括所述裸眼3D显示终端绕X方向旋转的第一角速度、绕Y方向旋转的第二角速度、绕Z方向旋转的第三角速度,所述目标角速度确定单元具体用于:The angular velocity information includes the first angular velocity of the naked-eye 3D display terminal rotating around the X direction, the second angular velocity of rotating around the Y direction, and the third angular velocity of rotating around the Z direction, and the target angular velocity determination unit is specifically used for:
对所述第一角速度、所述第二角速度和所述第三角速度进行加权求和处理,获得目标角速度;performing weighted summation processing on the first angular velocity, the second angular velocity and the third angular velocity to obtain a target angular velocity;
其中,所述X方向为与所述裸眼3D显示终端的宽度方向平行的方向,所述Y方向为与所述裸眼3D显示终端的长度方向平行的方向,所述Z方向为与所述裸眼3D显示终端的屏幕垂直的方向。The X direction is a direction parallel to the width direction of the naked eye 3D display terminal, the Y direction is a direction parallel to the length direction of the naked eye 3D display terminal, and the Z direction is a direction parallel to the naked eye 3D display terminal Displays the vertical orientation of the terminal's screen.
优选地,所述混合图像获取子模块包括:Preferably, the hybrid image acquisition sub-module includes:
系数确定单元,用于确定图像渐变混合系数;a coefficient determination unit, used for determining an image gradient mixing coefficient;
混合图像确定单元,用于根据如下公式,获取所述图像内容中的左眼视图和右眼视图的混合图像:f(x,y)=g(x,y)×(1-α)+h(x,y)×α;A mixed image determination unit, configured to obtain a mixed image of the left-eye view and the right-eye view in the image content according to the following formula: f(x,y)=g(x,y)×(1-α)+h (x,y)×α;
其中,f(x,y)表示所述混合图像中坐标为(x,y)的像素的像素值,g(x,y)表示所述左眼视图和所述右眼视图中的一者中坐标为(x,y)的像素的像素值,h(x,y)表示所述左眼视图和所述右眼视图的另一者中坐标为(x,y)的像素的像素值,α表示所述图像渐变混合系数,0≤α≤1。Wherein, f(x, y) represents the pixel value of the pixel whose coordinates are (x, y) in the mixed image, and g(x, y) represents one of the left-eye view and the right-eye view the pixel value of the pixel whose coordinates are (x, y), h(x, y) represents the pixel value of the pixel whose coordinates are (x, y) in the other of the left-eye view and the right-eye view, α Indicates the gradient blending coefficient of the image, 0≤α≤1.
优选地,所述系数确定单元包括:Preferably, the coefficient determination unit includes:
第一确定子单元,用于获取裸眼3D显示终端的第二运动状态信息,并根据所述第二运动状态信息,确定图像渐变混合系数;a first determination subunit, configured to acquire second motion state information of the naked-eye 3D display terminal, and determine an image gradient mixing coefficient according to the second motion state information;
或者or
第二确定子单元,用于根据预先设定的时间间隔和渐变步长,确定图像渐变混合系数。The second determination subunit is used for determining the image gradient mixing coefficient according to the preset time interval and gradient step size.
优选地,所述第二运动状态信息包括所述裸眼3D显示终端的角速度信息;Preferably, the second motion state information includes angular velocity information of the naked-eye 3D display terminal;
所述第一确定子单元具体用于:The first determination subunit is specifically used for:
每隔预设时间间隔获取所述裸眼3D显示终端的角速度信息;acquiring the angular velocity information of the naked-eye 3D display terminal every preset time interval;
根据所述裸眼3D显示终端的角速度信息,确定比较参数;Determine a comparison parameter according to the angular velocity information of the naked-eye 3D display terminal;
如果所述第一显示模式为3D显示模式,且所述第二显示模式为2D显示模式,则当所述比较参数处于第三预设阈值与第四预设阈值之间时,根据所述比较参数,获得图像渐变混合系数,直到获得的所述比较参数大于或等于所述第四预设阈值,和/或,如果所述第一显示模式为2D显示模式,且所述第二显示模式为3D显示模式,则当所述比较参数处于第三预设阈值与第四预设阈值之间时,根据所述比较参数,获得图像渐变混合系数,直到获得的所述比较参数连续小于所述第三预设阈值的次数达到预设次数。If the first display mode is a 3D display mode and the second display mode is a 2D display mode, when the comparison parameter is between the third preset threshold and the fourth preset threshold, according to the comparison parameter, obtain the image gradient mixing coefficient, until the obtained comparison parameter is greater than or equal to the fourth preset threshold, and/or, if the first display mode is a 2D display mode, and the second display mode is In the 3D display mode, when the comparison parameter is between the third preset threshold and the fourth preset threshold, an image gradient mixing coefficient is obtained according to the comparison parameter, until the obtained comparison parameter is continuously smaller than the third preset threshold. The number of times that the three preset thresholds reach the preset number of times.
优选地,所述第一确定子单元在根据所述裸眼3D显示终端的角速度信息,确定比较参数时,具体用于:Preferably, when determining the comparison parameter according to the angular velocity information of the naked-eye 3D display terminal, the first determination subunit is specifically used for:
根据每一次获取到的所述裸眼3D显示终端的角速度信息,确定目标角速度;Determine the target angular velocity according to the angular velocity information of the naked-eye 3D display terminal obtained each time;
将所述目标角速度的绝对值确定为比较参数,或者,对最近获得的第一预设数量的所述目标角速度进行加权求和处理,并将所述加权求和处理后得到的数值的绝对值确定为比较参数。Determine the absolute value of the target angular velocity as a comparison parameter, or perform a weighted summation process on the most recently obtained first preset number of the target angular velocity, and calculate the absolute value of the numerical value obtained after the weighted summation process Determined as a comparison parameter.
优选地,所述角速度信息包括所述裸眼3D显示终端绕Y方向旋转的第二角速度,所述第一确定子单元在根据每一次获取到的所述裸眼3D显示终端的角速度信息,确定目标角速度时,具体用于:Preferably, the angular velocity information includes a second angular velocity of the naked-eye 3D display terminal rotating around the Y direction, and the first determination subunit determines the target angular velocity according to the angular velocity information of the naked-eye 3D display terminal obtained each time , specifically for:
将每一次获取到的所述第二角速度确定为目标角速度;Determining the second angular velocity obtained every time as the target angular velocity;
或者or
所述角速度信息包括所述裸眼3D显示终端绕X方向旋转的第一角速度、绕Y方向旋转的第二角速度,所述第一确定子单元在根据每一次获取到的所述裸眼3D显示终端的角速度信息,确定目标角速度时,具体用于:The angular velocity information includes a first angular velocity of the naked-eye 3D display terminal rotating around the X direction and a second angular velocity of the naked-eye 3D display terminal rotating around the Y direction. Angular velocity information, when determining the target angular velocity, it is specifically used for:
将每一次获取到的所述第一角速度和所述第二角速度的平方和的算术平方根,确定为目标角速度;The arithmetic square root of the sum of the squares of the first angular velocity and the second angular velocity obtained each time is determined as the target angular velocity;
或者or
所述角速度信息包括所述角速度信息包括所述裸眼3D显示终端绕X方向旋转的第一角速度、绕Y方向旋转的第二角速度、绕Z方向旋转的第三角速度,所述第一确定子单元在根据每一次获取到的所述裸眼3D显示终端的角速度信息,确定目标角速度时,具体用于:The angular velocity information includes the angular velocity information including the first angular velocity of the naked-eye 3D display terminal rotating around the X direction, the second angular velocity of rotating around the Y direction, and the third angular velocity of rotating around the Z direction. The first determination subunit When determining the target angular velocity according to the angular velocity information of the naked-eye 3D display terminal obtained each time, it is specifically used for:
对每一次获取到的所述第一角速度、所述第二角速度和所述第三角速度进行加权求和处理,获得目标角速度;Perform a weighted summation process on the first angular velocity, the second angular velocity and the third angular velocity obtained each time to obtain a target angular velocity;
其中,所述X方向为与所述裸眼3D显示终端的宽度方向平行的方向,所述Y方向为与所述裸眼3D显示终端的长度方向平行的方向,所述Z方向为与所述裸眼3D显示终端的屏幕垂直的方向。The X direction is a direction parallel to the width direction of the naked eye 3D display terminal, the Y direction is a direction parallel to the length direction of the naked eye 3D display terminal, and the Z direction is a direction parallel to the naked eye 3D display terminal Displays the vertical orientation of the terminal's screen.
优选地,所述第一确定子单元在根据所述比较参数,获得图像渐变混合系数时,具体用于:Preferably, when obtaining the image gradient mixing coefficient according to the comparison parameter, the first determination subunit is specifically used for:
根据预设公式得到参考系数,并将所述参考系数确定为本次获得的图像渐变混合系数;According to the preset formula obtaining a reference coefficient, and determining the reference coefficient as the image gradient mixing coefficient obtained this time;
或者,or,
根据预设公式得到参考系数,并将所述参考系数与上一次获得的图像渐变混合系数中的较大者作为本次获得的图像渐变混合系数;According to the preset formula Obtain a reference coefficient, and use the larger of the reference coefficient and the image gradient mixing coefficient obtained last time as the image gradient mixing coefficient obtained this time;
其中,β表示所述参考系数,γ表示所述比较参数,Δx表示第一预设值。Wherein, β represents the reference coefficient, γ represents the comparison parameter, and Δx represents the first preset value.
优选地,所述第二确定子单元具体用于:Preferably, the second determination subunit is specifically used for:
将所述图像渐变混合系数从初始值为1开始,每隔预先设定的时间间隔减小所述渐变步长,直到所述图像渐变混合系数减小到0为止;Starting from an initial value of 1 for the image gradient blending coefficient, and reducing the gradient step size every preset time interval, until the image gradient blending coefficient decreases to 0;
或者or
将所述图像渐变混合系数从初始值为0开始,每隔预先设定的时间间隔增大所述渐变步长,直到所述图像渐变混合系数增大到1为止。The image gradient blending coefficient is started from an initial value of 0, and the gradient step size is increased every preset time interval until the image gradient blending coefficient increases to 1.
优选地,所述显示模块201还用于:Preferably, the
确定是否从所述渐变显示模式切换回所述第一显示模式;determining whether to switch from the gradient display mode back to the first display mode;
当确定从所述渐变显示模式切换回所述第一显示模式时,恢复至以所述第一显示模式对图像内容进行显示。When it is determined to switch back to the first display mode from the gradient display mode, the display of the image content in the first display mode is restored.
优选地,当所述第一显示模式为2D显示模式时,所述显示模块在以第一显示模式201对图像内容进行显示时,具体用于:Preferably, when the first display mode is a 2D display mode, when the display module displays the image content in the
从图像内容中的左眼视图和右眼视图中选取一幅进行2D显示;Select one of the left eye view and right eye view in the image content for 2D display;
或者or
从图像内容中的左眼视图和右眼视图中选取一幅同时作为目标左眼视图和目标右眼视图;Select one of the left eye view and right eye view in the image content as the target left eye view and the target right eye view at the same time;
根据所述目标左眼视图和所述目标右眼视图进行裸眼立体显示;performing naked-eye stereoscopic display according to the target left-eye view and the target right-eye view;
和/或,and / or,
当所述第二显示模式为2D显示模式,在切换为所述第二显示模式时,所述显示模块201还用于以所述第二显示模式对图像内容进行显示;When the second display mode is a 2D display mode, when switching to the second display mode, the
所述显示模块201在以所述第二显示模式对图像内容进行显示时,具体用于:When the
从图像内容中的左眼视图和右眼视图中选取一幅进行2D显示;Select one of the left eye view and right eye view in the image content for 2D display;
或者or
从图像内容中的左眼视图和右眼视图中选取一幅同时作为目标左眼视图和目标右眼视图;Select one of the left eye view and right eye view in the image content as the target left eye view and the target right eye view at the same time;
根据所述目标左眼视图和所述目标右眼视图进行裸眼立体显示。Naked-eye stereoscopic display is performed according to the target left-eye view and the target right-eye view.
由上述可知,本发明的实施例,在裸眼3D显示终端以3D显示模式或者2D显示模式中的任一种显示模式对图像内容进行显示的过程中,能够在确定出需要在3D显示模式与2D显示模式之间进行切换时,以渐变显示模式对图像内容进行显示,从而逐渐改变用户左右眼中至少一只眼睛所看到的内容,将该部分内容从3D显示模式对应的内容逐渐转变成2D显示模式对应的内容,或者从2D显示模式对应的内容逐渐变成3D显示模式对应的内容,避免了裸眼3D显示终端在3D显示模式和2D显示模式之间进行切换时,由于送入用户眼睛的内容产生突变而使用户眼睛感到不适,提升了用户的观看体验。It can be seen from the above that in the embodiment of the present invention, in the process of displaying the image content in the naked-eye 3D display terminal in either the 3D display mode or the 2D display mode, it can be determined that the 3D display mode and the 2D display mode need to be displayed in the 3D display mode and the 2D display mode. When switching between display modes, the image content is displayed in a gradient display mode, thereby gradually changing the content seen by at least one eye of the user's left and right eyes, and gradually transforming the content from the content corresponding to the 3D display mode to the 2D display The content corresponding to the mode, or the content corresponding to the 2D display mode is gradually changed to the content corresponding to the 3D display mode, which avoids that when the naked-eye 3D display terminal switches between the 3D display mode and the 2D display mode, due to the content sent to the user's eyes The sudden change makes the user's eyes feel uncomfortable, which improves the user's viewing experience.
本发明的实施例还提供了一种裸眼3D显示终端,其中,该裸眼3D显示终端可以为手机、平板电脑等。Embodiments of the present invention further provide a naked-eye 3D display terminal, wherein the naked-eye 3D display terminal may be a mobile phone, a tablet computer, or the like.
如图3所示,该裸眼3D显示终端包括:As shown in Figure 3, the naked-eye 3D display terminal includes:
处理器301、存储器302和显示器303;
所述处理器301调用所述存储器302中的计算机程序执行以下步骤:The
控制所述显示器303以第一显示模式对图像内容进行显示;controlling the
确定是否将所述第一显示模式切换为第二显示模式,其中,所述第一显示模式为3D显示模式和2D显示模式中的一种,所述第二显示模式为3D显示模式和2D显示模式中的另一种;Determine whether to switch the first display mode to a second display mode, wherein the first display mode is one of a 3D display mode and a 2D display mode, and the second display mode is a 3D display mode and a 2D display mode another of the modes;
当确定将所述第一显示模式切换为所述第二显示模式时,控制所述显示器303以渐变显示模式对所述图像内容进行显示,从而将所述第一显示模式经由所述渐变显示模式切换为所述第二显示模式。When it is determined to switch the first display mode to the second display mode, the
因此,本发明的上述裸眼3D显示终端,在以3D显示模式或者2D显示模式中的任一种显示模式对图像内容进行显示的过程中,能够在确定出需要在3D显示模式与2D显示模式之间进行切换时,以渐变显示模式对图像内容进行显示,从而逐渐改变用户左右眼中至少一只眼睛所看到的内容,将该部分内容从3D显示模式对应的内容逐渐转变成2D显示模式对应的内容,或者从2D显示模式对应的内容逐渐变成3D显示模式对应的内容,避免了裸眼3D显示终端在3D显示模式和2D显示模式之间进行切换时,由于送入用户眼睛的内容产生突变而使用户眼睛感到不适,提升了用户的观看体验。Therefore, in the above-mentioned naked-eye 3D display terminal of the present invention, in the process of displaying the image content in either the 3D display mode or the 2D display mode, it is possible to determine whether the 3D display mode and the 2D display mode need to be displayed. When switching between the two, the image content is displayed in the gradient display mode, so as to gradually change the content seen by at least one of the left and right eyes of the user, and gradually transform the part of the content from the content corresponding to the 3D display mode to the content corresponding to the 2D display mode. content, or gradually change from the content corresponding to the 2D display mode to the content corresponding to the 3D display mode, which prevents the naked-eye 3D display terminal from switching between the 3D display mode and the 2D display mode due to sudden changes in the content sent to the user's eyes. It makes the user's eyes feel uncomfortable and improves the user's viewing experience.
本发明的实施例还提供了一种计算机可读存储介质,包括计算机程序,所述计算机程序可被处理器执行以完成以下步骤:Embodiments of the present invention also provide a computer-readable storage medium, comprising a computer program, and the computer program can be executed by a processor to complete the following steps:
以第一显示模式对图像内容进行显示;displaying the image content in the first display mode;
确定是否将所述第一显示模式切换为第二显示模式,其中,所述第一显示模式为3D显示模式和2D显示模式中的一种,所述第二显示模式为3D显示模式和2D显示模式中的另一种;Determine whether to switch the first display mode to a second display mode, wherein the first display mode is one of a 3D display mode and a 2D display mode, and the second display mode is a 3D display mode and a 2D display mode another of the modes;
当确定将所述第一显示模式切换为所述第二显示模式时,以渐变显示模式对所述图像内容进行显示,从而将所述第一显示模式经由所述渐变显示模式切换为所述第二显示模式。When it is determined to switch the first display mode to the second display mode, the image content is displayed in a gradient display mode, so that the first display mode is switched to the first display mode via the gradient display mode Two display modes.
本发明的上述计算机可读存储介质,其存储的程序,在裸眼3D显示终端以3D显示模式或者2D显示模式中的任一种显示模式对图像内容进行显示的过程中,能够在确定出需要在3D显示模式与2D显示模式之间进行切换时,以渐变显示模式对图像内容进行显示,从而逐渐改变用户左右眼中至少一只眼睛所看到的内容,将该部分内容从3D显示模式对应的内容逐渐转变成2D显示模式对应的内容,或者从2D显示模式对应的内容逐渐变成3D显示模式对应的内容,避免了裸眼3D显示终端在3D显示模式和2D显示模式之间进行切换时,由于送入用户眼睛的内容产生突变而使用户眼睛感到不适,提升了用户的观看体验。The above-mentioned computer-readable storage medium of the present invention stores a program that, in the process of displaying the image content by the naked-eye 3D display terminal in any one of the 3D display mode or the 2D display mode, can determine the need to When switching between the 3D display mode and the 2D display mode, the image content is displayed in the gradient display mode, thereby gradually changing the content seen by at least one eye of the user's left and right eyes, and changing the part of the content from the content corresponding to the 3D display mode. Gradually change to the content corresponding to the 2D display mode, or gradually change from the content corresponding to the 2D display mode to the content corresponding to the 3D display mode. The content that enters the user's eyes has a sudden change, which makes the user's eyes feel uncomfortable, and improves the user's viewing experience.
以上所述的是本发明的优选实施方式,应当指出对于本技术领域的普通人员来说,在不脱离本发明所述的原理前提下还可以作出若干改进和润饰,这些改进和润饰也在本发明的保护范围内。The above are the preferred embodiments of the present invention, and it should be pointed out that for those skilled in the art, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications are also included in the present invention. within the scope of protection of the invention.
Claims (16)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711128954.0A CN107734322B (en) | 2017-11-15 | 2017-11-15 | Image display method and device for naked eye 3D display terminal and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711128954.0A CN107734322B (en) | 2017-11-15 | 2017-11-15 | Image display method and device for naked eye 3D display terminal and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107734322A CN107734322A (en) | 2018-02-23 |
CN107734322B true CN107734322B (en) | 2020-09-22 |
Family
ID=61215668
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711128954.0A Expired - Fee Related CN107734322B (en) | 2017-11-15 | 2017-11-15 | Image display method and device for naked eye 3D display terminal and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107734322B (en) |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004356772A (en) * | 2003-05-27 | 2004-12-16 | Sanyo Electric Co Ltd | Three-dimensional stereoscopic image display apparatus and program for providing three-dimensional stereoscopic display function to computer |
US8576168B2 (en) * | 2007-12-07 | 2013-11-05 | Sony Corporation | Input apparatus, control apparatus, control system, control method, and handheld apparatus |
JP4625515B2 (en) * | 2008-09-24 | 2011-02-02 | 富士フイルム株式会社 | Three-dimensional imaging apparatus, method, and program |
CN101961555B (en) * | 2009-07-21 | 2014-01-29 | 科乐美数码娱乐株式会社 | Video game device, game image display control method, and display mode switching control method |
US8826184B2 (en) * | 2010-04-05 | 2014-09-02 | Lg Electronics Inc. | Mobile terminal and image display controlling method thereof |
JP5122659B2 (en) * | 2011-01-07 | 2013-01-16 | 任天堂株式会社 | Information processing program, information processing method, information processing apparatus, and information processing system |
EP2487914A1 (en) * | 2011-02-10 | 2012-08-15 | Thomson Licensing | Reproduction device and method for operating a graphics subsystem in the reproduction device |
JP5435382B2 (en) * | 2011-09-27 | 2014-03-05 | ▲ホア▼▲ウェイ▼技術有限公司 | Method and apparatus for generating morphing animation |
CN102404599B (en) * | 2011-12-01 | 2013-12-18 | 无锡太行电子技术有限公司 | Method for making gradually-changing 3D (three-dimensional) video special effect |
KR101356015B1 (en) * | 2012-06-15 | 2014-01-29 | 전자부품연구원 | An apparatus for correcting three dimensional display using sensor and a method thereof |
CN104268918B (en) * | 2014-10-09 | 2015-06-10 | 佛山精鹰传媒股份有限公司 | Method for blending two-dimensional animation and three-dimensional animation |
-
2017
- 2017-11-15 CN CN201711128954.0A patent/CN107734322B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN107734322A (en) | 2018-02-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3757727B1 (en) | Image re-projection for foveated rendering | |
TWI413979B (en) | Method for adjusting displayed frame, electronic device, and computer program product thereof | |
RU2623201C2 (en) | Mobile display device | |
KR101905182B1 (en) | Self-Adaptive Display Method and Device for Image of Mobile Terminal, and Computer Storage Medium | |
CN109716751B (en) | Information processing apparatus, method, and computer-readable storage medium | |
US20150215532A1 (en) | Panoramic image capture | |
CN105898138A (en) | Panoramic video play method and device | |
CN101499253A (en) | Output screen adjustment method and device | |
CN115842907A (en) | Rendering method, computer product and display device | |
CN109741289B (en) | Image fusion method and VR equipment | |
CN110300994A (en) | Image processing apparatus, image processing method and picture system | |
CN111857461B (en) | Image display method, device, electronic device, and readable storage medium | |
CN107635132B (en) | Display control method and device of naked eye 3D display terminal and display terminal | |
JP2018180051A (en) | Electronic device and control method thereof | |
CN106873886A (en) | A kind of control method of stereoscopic display, device and electronic equipment | |
CN105898338A (en) | Panorama video play method and device | |
US11711507B2 (en) | Information processing apparatus, program and information processing method | |
US20190158818A1 (en) | Virtual reality device and operation method of virtual reality device | |
EP3619617B1 (en) | Methods, systems, and media for presenting media content previews | |
CN107734322B (en) | Image display method and device for naked eye 3D display terminal and terminal | |
US20210297654A1 (en) | Panoramic video picture quality display method and device | |
KR20140047620A (en) | Interactive user interface for stereoscopic effect adjustment | |
CN108765541A (en) | A kind of 3D scenario objects display methods, device, equipment and storage medium | |
US11509885B2 (en) | Stereoscopic image display device, stereoscopic image display method, and program | |
WO2016015659A1 (en) | Stereo display-based processing method, apparatus and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200922 |
|
CF01 | Termination of patent right due to non-payment of annual fee |