Display image sequence acquisition method and apparatus, electronic device, storage medium
By adopting the preset segmentation method and adjustment algorithm in the cylindrical coordinate system, the problem of poor applicability and detail loss of the segmentation compression algorithm in rotating stereoscopic display is solved, and a more uniform voxel distribution and better display effect are achieved.
Patent Information
- Application Number
- CN202011009979.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-23
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-09-23
AI Technical Summary
In the existing rotating stereoscopic display technology, the segmentation compression algorithm has poor applicability and loss of detailed information, resulting in poor overall display effect.
The three-dimensional display space is segmented using a preset segmentation method under the cylindrical coordinate system, uniformly segmenting the rotation direction and axis direction, non-uniformly segmenting the radius direction, and using the octree segmentation and adjustment algorithm to adjust the number of voxels so that Its distribution is more even, ensuring that the volume of the spatial bounding box is consistent.
Through this method, the uniformity of voxel distribution in the three-dimensional display space is improved, the display effect is enhanced, the loss of detailed information is reduced, and the overall display quality is improved.
Smart Images

Figure CN114255170B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of control technology, and in particular to a method and device for acquiring a display image sequence, an electronic device, and a storage medium. Background Art
[0002] Rotating stereoscopic display belongs to the field of three-dimensional display. The realization method is: the screen rotates at high speed around a fixed axis, and displays different images at different angles. The effect of true three-dimensional display can be achieved by using the persistence of vision of the human eye. Figure 1 The following definitions are agreed upon:
[0003] (1) One rotation of the screen is called a refresh of the device frame;
[0004] (2) In a body frame, several display positions are selected, which are called phases;
[0005] (3) During the screen rotation, the displayed image is refreshed at the phase, which is called the electronic frame;
[0006] (4) Overall, the actual spatial position of a pixel on the screen at each phase is called a voxel.
[0007] In the related art, during the display process, the rotating stereoscopic display device needs to use segmentation and compression to segment and compress the three-dimensional display space so that the overall distribution of voxels is strictly uniform. However, the segmentation and compression algorithm in the related art has the problems of poor applicability and loss of detail information, resulting in poor overall display effect. Summary of the invention
[0008] The present disclosure provides a method and device for acquiring a display image sequence, an electronic device, a storage medium, and a storage medium to solve the deficiencies of the related art.
[0009] According to a first aspect of an embodiment of the present disclosure, a method for acquiring a display image sequence is provided, which is applicable to a rotating stereoscopic display device, wherein the rotating stereoscopic display device comprises a display screen and a rotation axis, and the display screen rotates around the rotation axis to form a three-dimensional display space, and the method comprises:
[0010] The three-dimensional display space is segmented in a cylindrical coordinate system using a preset segmentation method to determine voxels in the three-dimensional display space; the preset segmentation method refers to uniform segmentation in the rotation direction and the rotation axis direction of the cylindrical coordinate system and non-uniform segmentation in the radial direction, and the volumes of the space bounding boxes obtained by the same segmentation are the same; the voxels refer to the actual spatial positions of the pixels of the display screen at each phase;
[0011] Determining a cross-sectional profile of a three-dimensional object to be displayed on the display screen at a specific phase in the three-dimensional display space;
[0012] Determine a screenshot image according to the voxels at the phase in the three-dimensional display space and the cross-sectional profile;
[0013] The cross-sectional images are arranged according to the rotation phase of the display screen to obtain a display image sequence.
[0014] Optionally, the preset segmentation method further includes uniform segmentation in the rotation direction and the rotation axis direction of the cylindrical coordinate system.
[0015] Optionally, segmenting the three-dimensional display space in a cylindrical coordinate system using a preset segmentation method to determine voxels in the three-dimensional display space includes:
[0016] The three-dimensional display space is segmented by an octree using a preset segmentation method; when the number of voxels in the leaf node space bounding box obtained by the next segmentation of the current segmentation is zero, the leaf node space bounding box of the current segmentation is obtained;
[0017] The number of voxels in the spatial bounding box of each leaf node is adjusted so that the number of voxels in the spatial bounding box of each leaf node is within a preset range, thereby obtaining the voxels in the three-dimensional display space.
[0018] Optionally, after the three-dimensional display space is segmented in a preset segmentation manner in a cylindrical coordinate system, the method further includes:
[0019] For the three-dimensional object to be displayed, the current number and the default number of voxels in the spatial bounding box of each leaf node are obtained; wherein the current number refers to the number of voxels corresponding to the three-dimensional object when the three-dimensional object is displayed, and the default number refers to the number of voxels determined by dividing the three-dimensional display space using a preset division method;
[0020] If the current number is smaller than the default number, each voxel is retained; if the current number is larger than the default number, the number of voxels in the spatial bounding box of each leaf node is adjusted based on a preset adjustment algorithm so that the adjusted number of voxels is larger than the default number and smaller than the current number.
[0021] Optionally, the adjustment algorithm is obtained through the following steps, including:
[0022] Normalize the voxels in the spatial bounding box of each leaf node to obtain voxel samples;
[0023] Obtain the probability density distribution of voxel samples in each dimension of the cylindrical coordinate system;
[0024] The adjustment algorithm is obtained based on the preset confidence level and the probability density distribution in each directional dimension.
[0025] Optionally, the voxels in the spatial bounding box of each leaf node are normalized to obtain voxel samples, including:
[0026] Get the average value of voxels in each direction;
[0027] Obtain the average value of each voxel in each direction by subtracting it from the average value of each voxel in each direction, and obtain the difference data of each voxel in each direction;
[0028] The second-order matrix of each voxel is calculated and normalized to obtain the voxel sample.
[0029] Optionally, the probability density distribution of the voxel sample in each direction dimension of the cylindrical coordinate system is obtained, including:
[0030] Take the spatial bounding box of each leaf node as the segmentation threshold and divide it into multiple intervals;
[0031] The number of voxel samples in different intervals in the radial direction, rotation direction and rotation axis direction are counted respectively to obtain a statistical histogram;
[0032] The least square method is used to fit the statistical histogram to obtain the target polynomial in each directional dimension, and the target polynomial in each directional dimension is used as the probability density distribution of the voxel sample in each directional dimension.
[0033] Optionally, the adjustment algorithm is expressed by the following formula:
[0034] v′=v tree +(αf(r)+βf(θ)+γf(z))·Con(r)·(vv tree );
[0035] In the formula, v tree represents the default number; v represents the current number; f(r), f(θ), f(z) represent the probability density distribution in the radial direction, rotation direction and rotation axis direction respectively; α, β, γ represent the weights of f(r), f(θ), f(z) respectively; Con(r) represents the confidence level, lim r→0 Con(r)=0 and lim r→R Con(r)=1.
[0036] According to a second aspect of an embodiment of the present disclosure, a display image sequence acquisition device is provided, which is applicable to a rotating stereoscopic display device, wherein the rotating stereoscopic display device comprises a display screen and a rotation axis, wherein the display screen rotates around the rotation axis to form a three-dimensional display space, and the device comprises:
[0037] a voxel determination module, configured to segment the three-dimensional display space in a cylindrical coordinate system using a preset segmentation method to determine voxels in the three-dimensional display space; the preset segmentation method refers to uniform segmentation in the rotation direction and the rotation axis direction of the cylindrical coordinate system and non-uniform segmentation in the radial direction, and the volumes of the space bounding boxes obtained from the same segmentation are the same; the voxel refers to the actual spatial position of the pixel of the display screen at each phase;
[0038] A contour determination module, used to determine a cross-sectional contour of a three-dimensional object to be displayed on the display screen at a specific phase in the three-dimensional display space;
[0039] An image determination module, configured to determine a screenshot image according to the voxels at the phase in the three-dimensional display space and the cross-sectional profile;
[0040] The sequence acquisition module is used to arrange each cross-sectional image according to the rotation phase of the display screen to obtain a display image sequence.
[0041] Optionally, the preset segmentation method further includes uniform segmentation in the rotation direction and the rotation axis direction of the cylindrical coordinate system.
[0042] Optionally, the voxel determination module includes:
[0043] A bounding box acquisition unit, configured to perform octree segmentation on the three-dimensional display space in a preset segmentation manner; when the number of voxels in the leaf node space bounding box obtained by the next segmentation of the current segmentation is zero, obtain the leaf node space bounding box of the current segmentation;
[0044] The voxel number adjustment unit is used to adjust the number of voxels in the spatial bounding box of each leaf node so that the number of voxels in the spatial bounding box of each leaf node is within a preset range to obtain the voxels in the three-dimensional display space.
[0045] Optionally, the device further comprises:
[0046] A number acquisition module is used to acquire the current number and default number of voxels in the bounding box of each leaf node space for the three-dimensional object to be displayed; wherein the current number refers to the number of corresponding voxels when displaying the three-dimensional object, and the default number refers to the number of voxels determined by dividing the three-dimensional display space using a preset division method;
[0047] The number adjustment module is used to retain each voxel when the current number is smaller than the default number; when the current number is larger than the default number, adjust the number of voxels in the spatial bounding box of each leaf node based on a preset adjustment algorithm so that the adjusted number of voxels is larger than the default number and smaller than the current number.
[0048] Optionally, the device further includes an adjustment algorithm acquisition module, and the adjustment algorithm acquisition module includes:
[0049] A sample acquisition unit is used to normalize the voxels in the spatial bounding box of each leaf node to obtain voxel samples;
[0050] A distribution acquisition unit, used to acquire the probability density distribution of voxel samples in each direction of a cylindrical coordinate system;
[0051] The algorithm acquisition unit is used to acquire the adjustment algorithm based on the preset confidence level and the probability density distribution in each directional dimension.
[0052] Optionally, the sample acquisition unit includes:
[0053] The mean value acquisition subunit is used to obtain the average value of the voxels in each direction dimension;
[0054] The difference acquisition subunit is used to obtain the difference data of each voxel in each direction dimension by subtracting the average value of each voxel in each direction dimension;
[0055] The sample acquisition subunit is used to calculate the second-order matrix of each voxel and normalize it to obtain a voxel sample.
[0056] Optionally, the distribution acquisition unit includes:
[0057] The region acquisition subunit is used to take the spatial bounding box of each leaf node as the segmentation threshold and divide it into multiple intervals;
[0058] The histogram acquisition subunit is used to count the number of voxel samples in different intervals in the radial direction, the rotation direction and the rotation axis direction respectively to obtain a statistical histogram;
[0059] The distribution acquisition subunit is used to fit the statistical histogram using the least squares method to obtain the target polynomial in each directional dimension, and the target polynomial in each directional dimension is used as the probability density distribution of the voxel sample in each directional dimension.
[0060] Optionally, the adjustment algorithm is expressed by the following formula:
[0061] v′=v tree +(αf(r)+βf(θ)+γf(z))·Con(r)·(vv tree );
[0062] In the formula, v treerepresents the default number; v represents the current number; f(r), f(θ), f(z) represent the probability density distribution in the radial direction, rotation direction and rotation axis direction respectively; α, β, γ represent the weights of f(r), f(θ), f(z) respectively; Con(r) represents the confidence level, lim r→0 Con(r)=0 and lim r→α Con(r)=1.
[0063] According to a third aspect of an embodiment of the present disclosure, there is provided a rotating stereoscopic display device, comprising:
[0064] processor;
[0065] a memory for storing a computer program executable by the processor;
[0066] The processor is configured to execute the computer program in the memory to implement the above method.
[0067] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, and when an executable computer program in the storage medium is executed by a processor, the above method can be implemented.
[0068] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0069] It can be seen from the above embodiments that in the disclosed embodiments, the three-dimensional display space is segmented by using a preset segmentation method in a cylindrical coordinate system, that is, non-uniform segmentation is used in the radial direction of the cylindrical coordinate system, and the volume of the spatial bounding box obtained by the same segmentation is the same, so that the voxels in the three-dimensional display space can be determined; then, the cross-sectional contour of the three-dimensional object to be displayed on the display screen at a specific phase in the three-dimensional display space is determined; then, the screenshot image is determined according to the voxels and cross-sectional contours at the phase in the three-dimensional display space; finally, each cross-sectional image can be arranged according to the rotation phase of the display screen to obtain a display image sequence. In this way, in this embodiment, by using non-uniform segmentation in the radial direction, and the volume of the spatial bounding box after segmentation is the same, the curved surface of the spatial bounding box can be made to match the cylindrical three-dimensional display space better, and the distribution of the voxels can be made more uniform accordingly, which is conducive to improving the display effect.
[0070] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0072] Figure 1 This is an application scenario diagram shown according to an exemplary embodiment.
[0073] Figure 2 It is a node schematic diagram of using cubes and octrees to divide a three-dimensional display space in the related art.
[0074] Figure 3 The figure is a flow chart of a method for acquiring a display image sequence according to an exemplary embodiment.
[0075] Figure 4 It is a schematic diagram showing the effect of a spatial bounding box according to an exemplary embodiment.
[0076] Figure 5 The flowchart of adjusting the number of voxels is shown according to an exemplary embodiment.
[0077] Figure 6 The figure is a flowchart of obtaining an adjustment algorithm according to an exemplary embodiment.
[0078] Figure 7 is a statistical histogram in the Z direction according to an exemplary embodiment.
[0079] Figure 8 is a schematic diagram showing the effect of a cross-sectional image according to an exemplary embodiment.
[0080] Fig. 9 The figure is a block diagram of a display image sequence acquisition device according to an exemplary embodiment. DETAILED DESCRIPTION
[0081] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described below by way of example do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices consistent with some aspects of the present disclosure as detailed in the appended claims.
[0082] See also Figure 1 The three-dimensional display principle of the rotating stereoscopic display device is as follows: the pixels on the screen that are close to the axis of rotation have a small rotation circumference; the pixels that are far from the axis of rotation have a large rotation circumference. Therefore, the overall display effect is as follows: the voxels at the axis of rotation are densely distributed, and the display brightness is high; the voxels at the edge are sparsely distributed, and the display brightness is low.
[0083] In order to improve the overall display effect and make the overall distribution uniform, the related technology uses the octree point cloud compression algorithm to perform uniform processing on the voxels. Figure 2, establish a cubic space bounding box as the root node, and split it level by level to the smallest cubic bounding box as the leaf node. The same number of voxels is retained in each leaf node bounding box to make the overall distribution of voxels strictly uniform.
[0084] However, the octree point cloud compression algorithm in the related art has the following disadvantages: (1) The voxel distribution is cylindrical rather than cubic, which results in the approximation of the curved edge of the cylinder with a cubic bounding box, which has poor applicability. (2) The number of voxels retained in each leaf node is strictly the same, which makes the overall distribution uniform but loses a lot of model contour details, resulting in loss of detail information and poor overall display effect.
[0085] In order to solve the above technical problems, the present disclosure provides a method for acquiring a display image sequence, which can be applied to a rotating stereoscopic display device. Figure 1 The rotating stereoscopic display device includes a display screen and a rotation axis, and the display screen rotates around the rotation axis to form a three-dimensional display space. Figure 3 is a flowchart of a method for acquiring a display image sequence according to an exemplary embodiment. Figure 3 , including steps 31 to 34:
[0086] In step 31, the three-dimensional display space is segmented in a cylindrical coordinate system using a preset segmentation method to determine voxels in the three-dimensional display space.
[0087] The processor in the rotating stereoscopic display device can obtain the three-dimensional display space and then determine the voxels in the three-dimensional display space, that is, determine the actual spatial positions of the pixels of the display screen at each phase, or the actual spatial positions of the pixels that can be used in the display screen at each phase.
[0088] Considering that the 3D display space is cylindrical, the processor can first establish a cylindrical coordinate system. Figure 4 , take one of the vertices of the display screen as the origin O, the direction of the frame around which the display screen rotates as the rotation axis, i.e., the Z axis, the direction of the frame perpendicular to the rotation axis as the radius direction, and the direction of rotation around the Z axis as the rotation direction, and obtain the cylindrical coordinate system (r, θ, z). The effect is as follows: Figure 4 As shown in the left figure. In the subsequent segmentation process, the spatial bounding box of each node can be expressed as (r min , r max ,θ min ,θ max , z min , z max ), indicating the effect as Figure 4 As shown in the middle right picture.
[0089] The processor may perform octree segmentation on the three-dimensional display space in a preset segmentation manner, see Figure 2 Middle right picture, including:
[0090] (1) For the root node, it is represented as (0, R, 0, 2π, 0, Z);
[0091] (2) For the first layer of nodes, the spatial bounding boxes of the eight nodes are:
[0092]
[0093]
[0094]
[0095]
[0096] (3) Similarly, the spatial bounding boxes of all nodes in the i-1th layer are segmented according to this rule to obtain all nodes in the i-th layer. Assuming that the spatial bounding box of a node in the i-1th layer is (r1, r2, θ1, θ2, z1, z2), then after segmenting the node, the spatial bounding boxes of the nodes in the i-th layer are the following 8 nodes:
[0097]
[0098]
[0099]
[0100]
[0101] (4) During each segmentation, the processor may try to find the number of voxels in the node space bounding box obtained by the next segmentation of the current segmentation. If the number of voxels is zero, there is no need to continue the segmentation, and the leaf node space bounding box obtained by the current segmentation can be retained.
[0102] After segmentation, each leaf node space bounding box may include at least one voxel. At this time, the processor may compress the number of voxels, including:
[0103] In one example, the rotating stereoscopic display device may be provided with a preset range. The processor may randomly delete some voxels within the bounding box of each leaf node space according to the above-mentioned predicted range until the number of voxels is within the above-mentioned preset range. After compression, the processor may determine whether the distribution of voxels in the three-dimensional display space tends to be uniform, for example, the density of the voxels is maintained within a density range, and compression may be stopped when it tends to be uniform.
[0104] In practical applications, when the number of voxels (such as m) in each leaf node space bounding box is strictly equal, the voxel distribution can be made more uniform. During the display process, m voxels can be used to display images close to the rotation axis, and when m voxels are also used to display images far from the rotation axis, the details corresponding to each voxel are relatively more. In other words, since the details displayed by the pixel at the pixel are limited, a large amount of contour details will be lost when it is far away from the rotation axis, resulting in poor display effects. In another example, the processor can compress the number of voxels in each leaf node space bounding box, see Figure 5 In step 51, for the three-dimensional object to be displayed, the current number and default number of voxels in the bounding box of each leaf node space are obtained; wherein the current number refers to the number of corresponding voxels when displaying the above three-dimensional object, and the default number refers to the number of voxels determined by dividing the three-dimensional display space using a preset division method. In step 52, if the current number is less than the default number, each voxel is retained; if the current number is greater than the default number, the number of voxels in the bounding box of each leaf node space is adjusted based on a preset adjustment algorithm, so that the adjusted number of voxels is greater than the default number and less than the current number.
[0105] The above adjustment algorithm can be obtained by following the steps below. Figure 6 , including steps 61 to 63:
[0106] In step 61 , the processor may normalize the voxels in the spatial bounding box of each leaf node to obtain voxel samples.
[0107] The processor can calculate the mean of the voxel data in three dimensions: r, θ, and z:
[0108]
[0109] The processor can subtract the mean data from the voxel data:
[0110] (Δr i , Δθ i , Δz i )=(r i -r mean ,θ i -θ mean , z i -z mean );
[0111] The processor can calculate the second-order matrix of the voxel data, namely the variance:
[0112]
[0113] Second-order moment normalization:
[0114]
[0115] In step 62 , the processor may obtain the probability density distribution of the voxel samples in each direction dimension of the cylindrical coordinate system.
[0116] In the three dimensions of r, θ, and z, the leaf node space bounding box is taken as the segmentation threshold and divided into multiple intervals. Then, the voxel samples (r′) in different intervals are counted. i θ′ i z′ i ) to obtain a statistical histogram. Taking the Z dimension as an example, the number of voxels contained in each leaf node is counted, and the statistical results are as follows Figure 7 shown.
[0117] The processor can establish the target polynomial f(z) = a0 + a1x + a2x 2 +…, the highest order is given by the data point (x i , f(z i Then, the least squares method is used to fit Figure 7 The statistical histogram shown in the figure can be used to obtain the target polynomial in the Z direction. For example, the data point is (x i , f(z i )) is brought into the target polynomial and expressed in matrix form as follows:
[0118] Abbreviated as XA=F.
[0119] Among them, the matrix X T When X is non-singular, there is a unique solution: A = (X T X) -1 X T F, that is, vector A can uniquely determine the target polynomial f(z) in the Z direction. Similarly, by analogy with the above steps, the processor can uniquely determine the target polynomial f(r) in the R direction and the target polynomial f(θ) in the θ direction.
[0120] Among them, f(r), f(θ), and f(z) represent the overall distribution of the number of voxels contained in the leaf node space bounding box as the smallest unit, that is, the probability distribution density.
[0121] In step 63, the processor may acquire an adjustment algorithm based on a preset confidence level and probability density distribution in each directional dimension.
[0122] For a target object (3D model) to be displayed, an octree is established based on the cylindrical coordinate system, and the number of voxels v of the bounding box of each leaf node space is counted. The one with the largest number of voxels is recorded as v max , the minimum number of voxels is denoted as v min(Except for bounding boxes with 0 voxels). After compression, the voxels are evenly divided, that is, the default number of voxels reserved by each leaf node spatial bounding box is v. tree (v min <v tree <v max ). If the number of voxels in a spatial bounding box v < v tree , then all are retained; if v>v tree , the processor can do further processing: on the one hand, it can make adjustments based on the target polynomials f(r), f(θ), f(z) to preserve the model details; on the other hand, it can introduce the confidence of the R-direction dimension adjustment
[0123] Among them, the confidence Con(r) includes the following two cases:
[0124] (1) The smaller r is, the closer the bounding box is to the axis of rotation, and the more voxels the bounding box contains. Therefore, a smaller confidence level is introduced at this time, lim r→0 Con(r)=0.
[0125] (2) The larger the r, the farther the bounding box of this space is from the rotation axis. If the bounding box contains a large number of voxels, it means that the model details here have a high value of preservation. Therefore, a larger confidence level is introduced at this time, lim r→R Con(r)=1.
[0126] Therefore, for v>v tree The spatial bounding box of the final voxel count can contain at least v tree , which can contain at most v, then the following adjustment algorithm can be obtained based on the confidence and probability density distribution, and the formula is as follows:
[0127] v′=v tree +(αf(r)+βf(θ)+γf(z))·Con(r)·(vv tree );
[0128] Among them, v tree represents the default number; v represents the current number; f(r), f(θ), f(z) represent the probability density distribution in the radial direction, rotation direction and rotation axis direction respectively; α, β, γ represent the weights of f(r), f(θ), f(z) respectively, and the sum of α, β, γ is 1; Con(r) represents the confidence level, lim r→0 Con(r)=0 and lim r→R Con(r)=1.
[0129] In step 32, a cross-sectional profile of a three-dimensional object to be displayed on the display screen at a specific phase in the three-dimensional display space is determined.
[0130] In this embodiment, see Figure 8 , the processor can use software such as 3DMax to model the target object to be displayed, and combine it with the actual size of the three-dimensional display space of the rotating stereoscopic display device, such as Figure 8 As shown in the left figure in , the three-dimensional model of the target object is scaled, such as Figure 8 Then, the processor can intersect the cross sections at specific phases in all phases with the three-dimensional model one by one to obtain the cross-sectional profile of the display screen and the three-dimensional model at the specific phase. The cross-sectional profile is shown in FIG. Figure 8 The specific phase refers to the phase displayed by the selected display.
[0131] In step 33, a cut-out image is determined according to the voxels at the phase in the three-dimensional display space and the cross-sectional contour.
[0132] In this embodiment, the processor may determine the screenshot image according to the voxels and the cross-sectional contour at the phase in the three-dimensional display space.
[0133] In step 34, the cross-sectional images are arranged according to the rotation phase of the display screen to obtain a display image sequence.
[0134] At this point, in this embodiment, by using uniform segmentation in the rotation direction and the rotation axis direction and non-uniform segmentation in the radial direction, and the volumes of the spatial bounding boxes after segmentation are equal, the curved surface of the spatial bounding box can be more matched with the cylindrical three-dimensional display space, and the distribution of voxels can be more uniform accordingly, which is beneficial to improving the display effect.
[0135] The embodiment of the present disclosure also provides a display image sequence acquisition device, which is applicable to a rotating stereoscopic display device, wherein the rotating stereoscopic display device comprises a display screen and a rotation axis, and the display screen rotates around the rotation axis to form a three-dimensional display space, see Fig. 9 , the device comprises:
[0136] The voxel determination module 91 is used to segment the three-dimensional display space in a cylindrical coordinate system using a preset segmentation method to determine voxels in the three-dimensional display space; the preset segmentation method includes non-uniform segmentation in the radial direction of the cylindrical coordinate system, and the volume of the space bounding box obtained by the same segmentation is the same; the voxel refers to the actual spatial position of the pixel of the display screen at each phase;
[0137] A contour determination module 92, configured to determine a cross-sectional contour of a three-dimensional object to be displayed on the display screen at a specific phase in the three-dimensional display space;
[0138] An image determination module 93, configured to determine a screenshot image according to the voxels at the phase in the three-dimensional display space and the cross-sectional profile;
[0139] The sequence acquisition module 94 is used to arrange the cross-sectional images according to the rotation phase of the display screen to obtain a display image sequence.
[0140] In one embodiment, the preset segmentation method further includes uniform segmentation in the rotation direction and the rotation axis direction of the cylindrical coordinate system.
[0141] In one embodiment, the voxel determination module comprises:
[0142] A bounding box acquisition unit, configured to perform octree segmentation on the three-dimensional display space in a preset segmentation manner; when the number of voxels in the leaf node space bounding box obtained by the next segmentation of the current segmentation is zero, obtain the leaf node space bounding box of the current segmentation;
[0143] The voxel number adjustment unit is used to adjust the number of voxels in the spatial bounding box of each leaf node so that the number of voxels in the spatial bounding box of each leaf node is within a preset range to obtain the voxels in the three-dimensional display space.
[0144] In one embodiment, the device further comprises:
[0145] A number acquisition module is used to acquire the current number and default number of voxels in the bounding box of each leaf node space for the three-dimensional object to be displayed; wherein the current number refers to the number of corresponding voxels when displaying the three-dimensional object, and the default number refers to the number of voxels determined by dividing the three-dimensional display space using a preset division method;
[0146] The number adjustment module is used to retain each voxel when the current number is smaller than the default number; when the current number is larger than the default number, adjust the number of voxels in the spatial bounding box of each leaf node based on a preset adjustment algorithm so that the adjusted number of voxels is larger than the default number and smaller than the current number.
[0147] In one embodiment, the device further includes an adjustment algorithm acquisition module, and the adjustment algorithm acquisition module includes:
[0148] A sample acquisition unit is used to normalize the voxels in the spatial bounding box of each leaf node to obtain voxel samples;
[0149] A distribution acquisition unit, used to acquire the probability density distribution of voxel samples in each direction of a cylindrical coordinate system;
[0150] The algorithm acquisition unit is used to acquire the adjustment algorithm based on the preset confidence level and the probability density distribution in each directional dimension.
[0151] In one embodiment, the sample acquisition unit includes:
[0152] The mean value acquisition subunit is used to obtain the average value of the voxels in each direction dimension;
[0153] The difference acquisition subunit is used to obtain the difference data of each voxel in each direction dimension by subtracting the average value of each voxel in each direction dimension;
[0154] The sample acquisition subunit is used to calculate the second-order matrix of each voxel and normalize it to obtain a voxel sample.
[0155] In one embodiment, the distribution acquisition unit includes:
[0156] The region acquisition subunit is used to take the spatial bounding box of each leaf node as the segmentation threshold and divide it into multiple intervals;
[0157] The histogram acquisition subunit is used to count the number of voxel samples in different intervals in the radial direction, the rotation direction and the rotation axis direction respectively to obtain a statistical histogram;
[0158] The distribution acquisition subunit is used to fit the statistical histogram using the least squares method to obtain the target polynomial in each directional dimension, and the target polynomial in each directional dimension is used as the probability density distribution of the voxel sample in each directional dimension.
[0159] In one embodiment, the adjustment algorithm is expressed by the following formula:
[0160] v′=v tree +(αf(r)+βf(θ)+γf(z))·Con(r)·(vv tree );
[0161] In the formula, v tree represents the default number; v represents the current number; f(r), f(θ), f(z) represent the probability density distribution in the radial direction, rotation direction and rotation axis direction respectively; α, β, γ represent the weights of f(r), f(θ), f(z) respectively; Con(r) represents the confidence level, lim r→0 Con(r)=0 and lim r→R Con(r)=1.
[0162] It is understandable that the device provided in the embodiment of the present disclosure corresponds to the above method. For the specific content, reference can be made to the content of each embodiment of the method, which will not be repeated here.
[0163] In an exemplary embodiment, a rotating stereoscopic display device is also provided, comprising:
[0164] processor;
[0165] a memory for storing a computer program executable by the processor;
[0166] The processor is configured to execute the computer program in the memory to implement the following Figure 3 The steps of the method.
[0167] In an exemplary embodiment, a non-temporary readable storage medium including an executable computer program is also provided, such as a memory including instructions, and the executable computer program can be executed by a processor. The readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0168] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0169] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for acquiring a display image sequence, characterized in that: Applicable to a rotating stereoscopic display device, the rotating stereoscopic display device comprises a display screen and a rotation axis, the display screen rotates around the rotation axis to form a three-dimensional display space, the method comprises: The three-dimensional display space is segmented in a preset segmentation method in a cylindrical coordinate system to determine voxels in the three-dimensional display space; the preset segmentation method includes non-uniform segmentation in the radial direction of the cylindrical coordinate system, and the volumes of the space bounding boxes obtained by the same segmentation are the same; the voxels refer to the actual spatial positions of the pixels of the display screen at each phase; Determining a cross-sectional profile of a three-dimensional object to be displayed on the display screen at a specific phase in the three-dimensional display space; Determine a screenshot image according to the voxels at the phase in the three-dimensional display space and the cross-sectional profile; The cross-sectional images are arranged according to the rotation phase of the display screen to obtain a display image sequence.
2. The method according to claim 1, characterized in that The preset segmentation method also includes uniform segmentation in the rotation direction and the rotation axis direction of the cylindrical coordinate system.
3. The method according to claim 1, characterized in that The three-dimensional display space is segmented in a preset segmentation manner in a cylindrical coordinate system to determine voxels in the three-dimensional display space, including: The three-dimensional display space is segmented by an octree using a preset segmentation method; when the number of voxels in the leaf node space bounding box obtained by the next segmentation of the current segmentation is zero, the leaf node space bounding box of the current segmentation is obtained; The number of voxels in the spatial bounding box of each leaf node is adjusted so that the number of voxels in the spatial bounding box of each leaf node is within a preset range, thereby obtaining the voxels in the three-dimensional display space.
4. The method according to claim 1, characterized in that: After the three-dimensional display space is segmented in a preset segmentation manner in a cylindrical coordinate system, the method further includes: For the three-dimensional object to be displayed, the current number and the default number of voxels in the spatial bounding box of each leaf node are obtained; wherein the current number refers to the number of voxels corresponding to the three-dimensional object when the three-dimensional object is displayed, and the default number refers to the number of voxels determined by dividing the three-dimensional display space using a preset division method; If the current number is smaller than the default number, each voxel is retained; if the current number is larger than the default number, the number of voxels in the spatial bounding box of each leaf node is adjusted based on a preset adjustment algorithm so that the adjusted number of voxels is larger than the default number and smaller than the current number.
5. The method according to claim 4, characterized in that The adjustment algorithm is obtained by the following steps, including: Normalize the voxels in the spatial bounding box of each leaf node to obtain voxel samples; Obtain the probability density distribution of voxel samples in each dimension of the cylindrical coordinate system; The adjustment algorithm is obtained based on the preset confidence level and the probability density distribution in each directional dimension.
6. The method according to claim 5, characterized in that Normalize the voxels in the spatial bounding box of each leaf node to obtain voxel samples, including: Get the average value of voxels in each direction; Obtain the average value of each voxel in each direction by subtracting it from the average value of each voxel in each direction, and obtain the difference data of each voxel in each direction; The second-order matrix of each voxel is calculated and normalized to obtain the voxel sample.
7. The method according to claim 5, characterized in that Get the probability density distribution of voxel samples in each dimension of the cylindrical coordinate system, including: Take the spatial bounding box of each leaf node as the segmentation threshold and divide it into multiple intervals; The number of voxel samples in different intervals in the radial direction, rotation direction and rotation axis direction are counted respectively to obtain a statistical histogram; The least square method is used to fit the statistical histogram to obtain the target polynomial in each directional dimension, and the target polynomial in each directional dimension is used as the probability density distribution of the voxel sample in each directional dimension.
8. The method according to claim 5, characterized in that The adjustment algorithm is expressed by the following formula: v′=vtree+(αf(r)+βf(θ)+γf(z))·Con(r)·(v-vtree); In the formula, v tree represents the default number; v represents the current number; f(r), f(θ), f(z) represent the probability density distribution in the radial direction, rotation direction and rotation axis direction respectively; α, β, γ represent the weights of f(r), f(θ), f(z) respectively; Con(r) represents the confidence level, lim r→0 Con(r)=0 and lim r→R Con(r)=1.
9. A display image sequence acquisition device, characterized in that: Applicable to a rotating stereoscopic display device, the rotating stereoscopic display device comprises a display screen and a rotation axis, the display screen rotates around the rotation axis to form a three-dimensional display space, the device comprises: a voxel determination module, configured to segment the three-dimensional display space in a cylindrical coordinate system using a preset segmentation method to determine voxels in the three-dimensional display space; the preset segmentation method includes non-uniform segmentation in the radial direction of the cylindrical coordinate system, and the volumes of the space bounding boxes obtained from the same segmentation are the same; the voxels refer to the actual spatial positions of the pixels of the display screen at each phase; A contour determination module, used to determine a cross-sectional contour of a three-dimensional object to be displayed on the display screen at a specific phase in the three-dimensional display space; An image determination module, configured to determine a screenshot image according to the voxels at the phase in the three-dimensional display space and the cross-sectional profile; The sequence acquisition module is used to arrange each cross-sectional image according to the rotation phase of the display screen to obtain a display image sequence.
10. The device according to claim 9, characterized in that The device also includes: A number acquisition module is used to acquire the current number and default number of voxels in the bounding box of each leaf node space for the three-dimensional object to be displayed; wherein the current number refers to the number of corresponding voxels when displaying the three-dimensional object, and the default number refers to the number of voxels determined by dividing the three-dimensional display space using a preset division method; The number adjustment module is used to retain each voxel when the current number is smaller than the default number; when the current number is larger than the default number, adjust the number of voxels in the spatial bounding box of each leaf node based on a preset adjustment algorithm so that the adjusted number of voxels is larger than the default number and smaller than the current number.
11. A rotating stereoscopic display device, characterized in that: include: processor; a memory for storing a computer program executable by the processor; The processor is configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 8.
12. A computer-readable storage medium, characterized in that: When the executable computer program in the storage medium is executed by a processor, the steps of the method according to any one of claims 1 to 8 can be implemented.
