CN107563958B - Holographic image conversion method and system - Google Patents

Holographic image conversion method and system Download PDF

Info

Publication number
CN107563958B
CN107563958B CN201710729257.4A CN201710729257A CN107563958B CN 107563958 B CN107563958 B CN 107563958B CN 201710729257 A CN201710729257 A CN 201710729257A CN 107563958 B CN107563958 B CN 107563958B
Authority
CN
China
Prior art keywords
plane
holographic
canvas
planar
size
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.)
Active
Application number
CN201710729257.4A
Other languages
Chinese (zh)
Other versions
CN107563958A (en
Inventor
吕毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201710729257.4A priority Critical patent/CN107563958B/en
Publication of CN107563958A publication Critical patent/CN107563958A/en
Application granted granted Critical
Publication of CN107563958B publication Critical patent/CN107563958B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Holo Graphy (AREA)

Abstract

The invention relates to a holographic image conversion method and a system. The method comprises the following steps: obtaining a second size of the target holographic canvas according to the first size of the planar canvas to be converted, and forming the holographic canvas with the second size; obtaining a corresponding conversion relation of each plane element in the plane canvas according to the corresponding relation between the type of the preset plane element and the conversion rule; converting the plane element into a holographic element according to the conversion relation; and arranging the holographic elements in the holographic canvas according to the position information of each plane element in the to-be-converted planar canvas to form a holographic image. The invention does not need to manually set the three-dimensional information of each plane element, and is beneficial to improving the efficiency of holographic image conversion.

Description

Holographic image conversion method and system
Technical Field
The invention relates to the technical field of holography, in particular to a holographic image conversion method and a holographic image conversion system.
Background
The planar canvas is a page formed by combining planar typesetting elements, the display of the planar canvas generally depends on an electronic display screen, a projection screen, a spatial plane and the like, the display field limitation and the display effect of the planar canvas are not outstanding enough, in recent years, with the development of a holographic projection technology (also called a virtual imaging technology), a holographic image formed by adopting the holographic projection technology is favored by users, and the holographic image has strong interactivity due to the shock effect of the holographic image, so that the holographic image is applied to occasions such as stage performance, teaching, competition fields and the like.
Conventional holographic images are created by manually editing a 3D object in a 2D plane and then holographically transforming. In the whole holographic conversion process, the editing of the 3D object from the 2D plane needs to be completed manually, and the process of editing the 3D object in the 2D plane is complex, so that the whole holographic image conversion process is complicated, and the conversion efficiency is low.
Disclosure of Invention
Based on the method, the holographic plane conversion method and the system are provided, and the problem of low conversion efficiency of the holographic canvas is solved.
The invention provides a holographic image conversion method, which comprises the following steps:
obtaining a second size of the target holographic canvas according to the first size of the planar canvas to be converted, and forming the holographic canvas with the second size;
obtaining a corresponding conversion relation of each plane element in the plane canvas according to the corresponding relation between the type of the preset plane element and the conversion rule;
converting the plane element into a holographic element according to the conversion relation;
and arranging the holographic elements in the holographic canvas according to the position information of each plane element in the to-be-converted planar canvas to form a holographic image.
The present invention also provides a holographic image conversion system comprising:
the holographic canvas forming module is used for obtaining a second size of a target holographic canvas according to the first size of the planar canvas to be converted and forming the holographic canvas of the second size;
the conversion relation establishing module is used for obtaining the corresponding conversion relation of each plane element in the plane canvas according to the corresponding relation between the type of the preset plane element and the conversion rule;
the conversion module is used for converting the plane element into a holographic element according to the conversion relation;
and the holographic image forming module is used for arranging the holographic elements in the holographic canvas according to the position information of each plane element in the to-be-converted planar canvas to form a holographic image.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned holographic image conversion method.
According to the technical scheme, the plane elements in the plane canvas are converted into the holographic elements, the plane canvas is converted into the holographic canvas mapped by the holographic elements, and the converted holographic elements are arranged according to the position relation of the plane elements in the plane canvas to obtain the holographic image. According to the scheme of the invention, the three-dimensional information of each plane element does not need to be manually set, so that the conversion efficiency of the holographic image is improved.
Drawings
FIG. 1 is a schematic flow chart of a holographic image conversion method in one embodiment;
FIG. 2 is a schematic block diagram of a holographic image conversion system in one embodiment.
Detailed Description
In order to further explain the technical means and effects of the present invention, the following description will be made for clear and complete descriptions of the technical solutions of the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments.
Fig. 1 is a schematic flowchart of a holographic image conversion method in an embodiment, and as shown in fig. 1, the holographic canvas conversion method in this embodiment includes the steps of:
s100, obtaining a second size of the target holographic canvas according to the first size of the planar canvas to be converted, and forming the holographic canvas with the second size.
In this step, since the first size representation form of the planar canvas is generally pixels, effective pixels, centimeter units on printer paper, and the like, in the process of holographic image conversion, the size of the planar canvas cannot be directly used for conversion, and can be used only after being specifically converted into the size of a space entity. Therefore, after obtaining the first size of the planar canvas, the first size needs to be converted to obtain the second size of the target holographic canvas.
After the second size is obtained, a holographic canvas is formed according to the second size, and a spatial plane to which the holographic canvas can be attached.
S101, obtaining a corresponding conversion relation of each plane element in the plane canvas according to the corresponding relation between the type of the preset plane element and the conversion rule.
In this step, the plane elements may be classified into a plurality of types in advance according to the characteristics of the plane elements themselves, an identifiable tag is set for each plane element, then a conversion rule adapted to the characteristics of the plane element is set correspondingly according to the type of the plane element, and a conversion relationship of each plane element is also obtained.
And S102, converting the plane element into a holographic element according to the conversion relation.
In this step, before the conversion from the planar element to the holographic element, it is preferable to perform type judgment on each planar element in the planar canvas, obtain a conversion relationship between the planar elements according to a judgment result, and convert the planar elements into the holographic elements according to the conversion relationship.
S103, arranging the holographic elements in the holographic canvas according to the position information of each plane element in the to-be-converted canvas to form a holographic image.
In this step, in consideration of the layering sense of the holographic image in the space, all the holographic elements are arranged first before the holographic elements are converted into the holographic image, specifically, the holographic canvas in the holographic canvas is arranged according to the position information of the planar elements corresponding to the holographic elements in the planar canvas, so that the holographic image with the layering sense and the space effect is formed.
In the embodiment, the holographic image is obtained by converting the planar elements in the planar canvas into the holographic elements, converting the planar canvas into the holographic canvas mapped by the holographic elements, and arranging the converted holographic elements according to the position relationship of the planar elements in the planar canvas. The three-dimensional information of each plane element does not need to be manually set, so that the conversion efficiency of the holographic image is improved.
In an embodiment, the second size of the target holographic canvas may be determined from the first size of the planar canvas to be converted by: and obtaining a second size of the holographic canvas according to the first size of the planar canvas and a preset conversion ratio, wherein the conversion formula is as follows:
Figure 865148DEST_PATH_IMAGE001
wherein
Figure 845349DEST_PATH_IMAGE002
A length representing a second size of the holographic canvas;
Figure 820258DEST_PATH_IMAGE003
a length representing a first size of the planar canvas;
Figure 239738DEST_PATH_IMAGE004
a width representing a second size of the holographic canvas;
Figure 591085DEST_PATH_IMAGE005
a width representing a first size of the planar canvas;
Figure 661678DEST_PATH_IMAGE006
representing the conversion ratio.
In this embodiment, the first size of the flat canvas is converted into the physical size, which is actually a mapping conversion, and after the first size of the flat canvas is obtained, the first size is analyzed, for example, if the pixel size of the flat canvas is 1920 × 1080 and the conversion ratio is set to be 1500, the physical size after the conversion is 1.28 × 0.72
Figure 73068DEST_PATH_IMAGE007
This size represents a conversion size of the planar element of 1.28 × 0.72
Figure 979844DEST_PATH_IMAGE007
. As for how to set the conversion ratio, it can be specifically set according to the situation of the field, and if the mid-plane of the space is large and the size of the hologram image to be formed is larger, the conversion ratio may be set to be 400, 500 or 600.
In a specific embodiment, a rectangular plane coordinate system is set, the long side of the rectangular plane canvas is used as the X axis of the rectangular plane coordinate system, and the wide side of the rectangular plane canvas is used as the Y axis of the rectangular plane coordinate system. All transformations may then be expressed in coordinate form, and the relationship for the transformation of the virtual size of a planar element to the physical size may be:
Figure 869303DEST_PATH_IMAGE008
wherein,
Figure 561446DEST_PATH_IMAGE009
representing hologramsCoordinates of the long edge of the canvas on the X axis;
Figure 143737DEST_PATH_IMAGE010
the coordinate of the long edge of the plane canvas on the X axis is represented;
Figure 537809DEST_PATH_IMAGE011
the coordinates of the wide side of the holographic canvas on the Y axis are represented;
Figure 230959DEST_PATH_IMAGE012
representing the coordinates of the wide side of the plane canvas on the Y axis;
Figure 10565DEST_PATH_IMAGE013
indicating the conversion ratio.
In this embodiment, the conversion of the first size is performed in a rectangular coordinate system, and the coordinates are converted by obtaining the coordinates of the midpoint of the planar canvas, so as to obtain the coordinates of the converted size of the planar canvas.
Based on the coordinate system, in an embodiment, the planar elements in the planar canvas can be correspondingly converted into the holographic canvas in the form of coordinates. Each plane coordinate is opposite to no two in the plane coordinate system, and each plane element in the plane canvas can be converted through the coordinate form of the pixel point, so that the conversion precision and efficiency are improved.
In one embodiment, the types of planar elements include a full planar element, a divergent planar element, and a planar volumetric element. The corresponding conversion relation of each plane element in the plane canvas can be obtained according to the corresponding relation between the type of the preset plane element and the conversion rule in the following mode: acquiring all plane elements in a plane canvas, and judging whether the plane elements are all plane elements, divergent plane elements or plane three-dimensional elements; and correspondingly obtaining a first conversion relation corresponding to the full plane element, a second conversion relation corresponding to the divergent plane element or a third conversion relation corresponding to the plane stereo element according to the conversion rule corresponding to the full plane element, the divergent plane element or the plane stereo element.
Specifically, all plane elements in the plane canvas are obtained, the tag carried by each plane element is identified, and the type of each plane element can be identified through the tag carried by each element, so that the conversion relation corresponding to the plane elements is obtained.
The identification of each plane element is simple by endowing the plane element with a label, and particularly, each element can be corresponding to a corresponding program when a producer makes a plane canvas, so that the label can be identified.
In one embodiment, the planar element is a fully planar element, which may be converted into a holographic element according to the conversion relationship by:
obtaining a third size for converting the full-plane elements into the holographic canvas according to the conversion ratio; and stretching the all-plane element with the third size in a direction vertical to the holographic canvas by a first preset thickness to obtain the holographic element corresponding to the all-plane element.
In this embodiment, the full-plane elements are elements without spatial significance, such as numbers, characters, and the like, and when the elements are converted, a certain thickness is embodied in the present invention, so that after the size of the full-plane elements is converted, only the full-plane elements need to be stretched by a first preset thickness, and the first preset thickness can be set in a direction with optimal vision according to an actual use scene. For example, for an all-plane element, a thickness of 8cm is uniformly set.
Optionally, the full-plane elements are divided into a plurality of classes according to types, such as a text class and a picture class, and when the full-plane elements of each class are stretched, the full-plane elements of different types may be stretched according to different thicknesses, such as a text class stretched by 8cm and a picture class stretched by 5 cm. This application sets up the full plane element of different grade type into different thickness, when making full plane element convert the holographic element, the stereoeffect is better.
In an embodiment, the planar element is a diverging planar element, which can be converted into a holographic element according to the conversion relation by: acquiring nodes in divergent plane elements and priority information preset by the nodes; wherein the priority information is used for determining the divergence order of the nodes in the space; and carrying out divergence processing on the nodes in the space according to the priority information according to a preset divergence shape.
Obtaining a conversion of the diverged planar element after the divergence process to the fourth size in the holographic canvas according to the conversion ratio; and performing second preset thickness stretching on the fourth size divergent plane element in the direction vertical to the holographic canvas to obtain the holographic element corresponding to the divergent plane element.
In this embodiment. The divergence plane element can be a thought guide graph or a mathematical formula and the like, the nodes in the divergence plane element are the nodes in the thought guide graph or the nodes in the mathematical formula and the like, the preset divergence shape can be a template shape designed aiming at the thought guide graph or a template shape designed aiming at the mathematical formula, and the nodes are sequentially diverged according to the preset divergence shape and the priority information according to the priority information of the nodes; the second preset thickness may be set to the whole hologram image aesthetic and hologram effect direction according to the specific scene, for example, stretching all the divergent plane elements by 5 cm. Specifically, the divergent plane element is a thought-guiding graph, the preset divergent shape is 6 directions in a three-dimensional coordinate system, the nodes are sequentially diverged rightward, leftward, upward, downward, forward and backward in space according to priority information, if the number of the nodes is more than 6, the direction is expanded, and if the number of the nodes is more than 6, the divergent plane element has a new meaning in space, such as upward right, upward left and the like.
In an embodiment, the planar element is a planar stereo element, which can be converted into a holographic element according to the conversion relationship by: obtaining the fifth size of the conversion of the planar stereo element into the holographic canvas according to the conversion ratio; acquiring stereo information included in the planar stereo element; and analyzing the three-dimensional information, and converting the planar three-dimensional element into a holographic element according to the three-dimensional information and the fifth size.
In this embodiment, the planar stereoscopic element itself has a 3D attribute in the planar canvas, which is only a limitation of the display of the planar canvas, and the 3D attribute cannot be displayed, and in the process of converting to the holographic element, the 3D attribute is used to convert the 3D attribute into recognizable stereoscopic information, and the planar stereoscopic element is converted into the holographic element according to the stereoscopic information.
According to the scheme, the plane elements are clearly classified, so that the conversion efficiency is greatly improved in the process of converting the plane elements into the holographic elements.
The plane elements in the plane canvas comprise at least one of full plane elements, divergent plane elements and three-dimensional plane elements, and the scheme of the embodiment can be combined according to the actual situation of the plane canvas to obtain the final conversion scheme.
In one embodiment, when performing holographic image conversion, a spatial plane is required for conversion, and specifically, the projection plane may be selected by: setting an acquisition mode of the projection plane according to the second size, and selecting one plane as the projection plane through the acquisition mode; wherein the acquisition mode comprises: an automatic acquisition mode and a manual acquisition mode.
In an automatic acquisition mode, acquiring a plane which meets a preset condition in the space; the length of the plane meeting the preset condition is greater than or equal to that of the second size, and the width of the plane meeting the preset condition is greater than or equal to that of the second size; and selecting a plane meeting a preset condition as a projection plane according to the position of the plane canvas in the space.
In the manual acquisition mode, a plane is manually set as a projection plane.
In this embodiment, a function selection switch may be provided whether the mode is a manual mode or an automatic mode, and in the manual mode, a blackboard or a projection cloth may be manually selected as a projection plane, in the automatic mode, a plane in the space where the blackboard or the projection cloth is located is automatically searched, and in the case where the plane satisfies a condition, a plane is selected as a projection plane.
When the holographic image is converted, the space right in front of the holographic canvas can be called as a holographic area which is a cuboid space, after the conversion is completed, all holographic elements are in the holographic area, and the holographic area can be directly formed by stretching the holographic canvas towards the right in front.
The rectangular space is formed by considering that most of the planar canvas is rectangular pages, and if the planar canvas is in other shapes, the planar canvas is converted into the corresponding shape.
In an embodiment, the holographic elements may be arranged in the holographic canvas according to the position information of each planar element in the to-be-converted planar canvas in the following manner to form a holographic image: obtaining the superposition relationship among the plane elements according to the position information of the plane elements in the plane canvas to be converted; and setting the distance information between each holographic element and the holographic canvas according to the superposition relationship, and arranging the holographic elements in the holographic canvas according to the distance information to form a holographic image.
In this embodiment, the superimposition relationship is specifically a front-back relationship of the plane elements in the plane canvas, and if one plane element blocks another plane element in the plane canvas, it is determined that the first plane element is in front of the other plane element, and when the holographic image is generated, the information is retained. Specifically, the distance between each holographic element and the holographic plane is set through the superposition relationship, and if one plane element is superposed on the other plane element, the distance between the holographic element corresponding to one plane element and the holographic canvas is larger than the distance between the holographic element corresponding to the other plane element and the holographic canvas. When the holographic image is observed in the front, the superposition relationship in the plane canvas is also reflected in the space.
In one embodiment, before forming the holographic canvas, the following further processing is performed: and acquiring the shielding relation between the holographic element and the real object in the space, rendering the arranged and converted planar elements according to the superposition relation and the shielding relation, and then forming a holographic image. During rendering, a more realistic three-dimensional scene can be obtained by setting the texture type of the planar elements, specifically, one converted three-dimensional element blocks another three-dimensional element, and/or one converted three-dimensional element blocks an entity in a space, and from the perspective of an observer, the superimposed portion, i.e., the portion where the line of sight of the observer is inaccessible, is also invisible when the holographic image is observed.
It should be noted that, for the sake of simplicity, the foregoing method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present invention is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present invention. Further, the above embodiments may be arbitrarily combined to obtain other embodiments.
The present invention also provides a hologram image conversion system that can be used to execute the above-described hologram image conversion method, based on the same idea as the hologram image conversion method in the above-described embodiment. For convenience of illustration, only the parts related to the embodiments of the present invention are shown in the schematic structural diagram of the embodiments of the holographic image conversion system, and those skilled in the art will understand that the illustrated structure does not constitute a limitation of the system, and may include more or less components than those illustrated, or combine some components, or arrange different components.
Fig. 2 is a schematic structural diagram of a holographic canvas conversion system in an embodiment, as shown in fig. 2, the holographic canvas conversion system includes:
and the holographic canvas forming module 200 is configured to obtain a second size of the target holographic canvas according to the first size of the planar canvas to be converted, and form the holographic canvas of the second size.
Because the first size expression form of the planar canvas is generally pixels, effective pixels, centimeter units on printer paper and the like, the size of the planar canvas cannot be directly used for conversion in the process of holographic image conversion, and the planar canvas can be used after being specifically converted into the size of a space entity. Thus, after obtaining the first size of the planar canvas, the holographic canvas forming module 200 first needs to convert the first size to obtain the second size of the target holographic canvas.
After the second size is obtained, the holographic canvas forming module 200 forms a holographic canvas according to the second size and a spatial plane to which the holographic canvas may be attached.
The conversion relationship establishing module 201 is configured to obtain a conversion relationship corresponding to each planar element in the planar canvas according to a corresponding relationship between a type of a preset planar element and a conversion rule.
The conversion relationship establishing module 201 may classify the plane elements into a plurality of types in advance according to the characteristics of the plane elements themselves, set an identifiable tag for each plane element, set a conversion rule adapted to the characteristics of the plane element according to the type of the plane element, and obtain the conversion relationship of each plane element.
A conversion module 202, configured to convert the planar element into a holographic element according to the conversion relationship.
Before the conversion module 202 performs conversion from the planar element to the holographic element, preferably, the conversion module 202 determines the type of each planar element in the planar canvas, obtains the conversion relationship of the planar element according to the determination result, and converts the planar element into the holographic element according to the conversion relationship.
And the holographic image forming module 203 is configured to arrange the holographic elements in the holographic canvas according to the position information of each planar element in the planar canvas to be converted to form a holographic image.
In consideration of the layering sense of the holographic image in the space, the holographic image forming module 203 firstly arranges all the holographic elements before converting the holographic elements into the holographic image, and specifically, the holographic image forming module 203 can arrange the holographic canvas in the holographic canvas through the position information of the planar elements corresponding to the holographic elements in the planar canvas, so as to form the holographic image with the layering sense and the space effect.
In the above embodiment, the conversion module 202 converts the planar elements in the planar canvas into the holographic elements, the holographic canvas forming module 200 converts the planar canvas into the holographic canvas mapped by the holographic elements, and the holographic image forming module 203 arranges the converted holographic elements according to the position relationship of the planar elements in the planar canvas to obtain the holographic image. The three-dimensional information of each plane element does not need to be manually set, so that the conversion efficiency of the holographic image is improved.
In an embodiment, the holographic canvas forming module 200 may determine the second size of the target holographic canvas from the first size of the planar canvas to be converted by: and obtaining a second size of the holographic canvas according to the first size of the planar canvas and a preset conversion ratio, wherein the conversion formula is as follows:
Figure 763757DEST_PATH_IMAGE014
wherein
Figure 645126DEST_PATH_IMAGE002
A length representing a second size of the holographic canvas;
Figure 141966DEST_PATH_IMAGE003
a length representing a first size of the planar canvas;
Figure 540193DEST_PATH_IMAGE004
a width representing a second size of the holographic canvas;
Figure 198707DEST_PATH_IMAGE005
a width representing a first size of the planar canvas;
Figure 567372DEST_PATH_IMAGE006
representing the conversion ratio.
In this embodiment, the holographic canvas forming module 200 converts the first size of the planar canvas into the physical size, which is actually a mapping conversion, and after obtaining the first size of the planar canvas, the first size is analyzed, for example, if the pixel size of the planar canvas is 1920 × 1080 and the conversion ratio is set to 1500, the physical size after the conversion is 1.28 × 0.72
Figure 602324DEST_PATH_IMAGE015
This size represents a conversion size of the planar element of 1.28 × 0.72
Figure 622101DEST_PATH_IMAGE015
. As for how to set the conversion ratio, it can be specifically set according to the situation of the field, and if the mid-plane of the space is large and the size of the hologram image to be formed is larger, the conversion ratio may be set to be 400, 500 or 600.
In a specific embodiment, the holographic canvas forming module 200 sets a rectangular planar coordinate system, and uses the long side of the rectangular planar canvas as the X-axis of the rectangular planar coordinate system and the wide side of the rectangular planar canvas as the Y-axis of the rectangular planar coordinate system. All transformations may then be expressed in coordinate form, and the relationship for the transformation of the virtual size of a planar element to the physical size may be:
Figure 248255DEST_PATH_IMAGE008
wherein,
Figure 307478DEST_PATH_IMAGE009
the coordinates of the long edge of the holographic canvas on the X axis are represented;
Figure 146121DEST_PATH_IMAGE010
the coordinate of the long edge of the plane canvas on the X axis is represented;
Figure 302296DEST_PATH_IMAGE011
the coordinates of the wide side of the holographic canvas on the Y axis are represented;
Figure 522187DEST_PATH_IMAGE012
representing the coordinates of the wide side of the plane canvas on the Y axis;
Figure 599864DEST_PATH_IMAGE013
indicating the conversion ratio.
In this embodiment, the holographic canvas forming module 200 performs the conversion of the first size in the rectangular coordinate system, and converts the coordinate by obtaining the coordinate of the midpoint of the planar canvas, thereby obtaining the coordinate of the converted size of the planar canvas.
Based on the above coordinate system, in an embodiment, the holographic canvas forming module 200 may correspondingly convert the planar elements in the planar canvas into the holographic canvas in the form of coordinates. Each plane coordinate is opposite to no two in the plane coordinate system, and each plane element in the plane canvas can be converted through the coordinate form of the pixel point, so that the conversion precision and efficiency are improved.
In one embodiment, the types of planar elements include a full planar element, a divergent planar element, and a planar volumetric element. The conversion relationship establishing module 201 may obtain a conversion relationship corresponding to each planar element in the planar canvas according to a corresponding relationship between a type of a preset planar element and a conversion rule in the following manner: acquiring all plane elements in a plane canvas, and judging whether the plane elements are all plane elements, divergent plane elements or plane three-dimensional elements; and correspondingly obtaining a first conversion relation corresponding to the full plane element, a second conversion relation corresponding to the divergent plane element or a third conversion relation corresponding to the plane stereo element according to the conversion rule corresponding to the full plane element, the divergent plane element or the plane stereo element.
Specifically, the transformation relation establishing module 201 obtains all plane elements in the plane canvas, identifies the tag carried by each plane element, and can identify the type of each plane element through the tag carried by each element, thereby obtaining the transformation relation corresponding to the plane element.
The identification of each plane element is simple by endowing the plane element with a label, and particularly, each element can be corresponding to a corresponding program when a producer makes a plane canvas, so that the label can be identified.
In one embodiment, the planar element is a fully planar element, which the conversion module 202 may convert to a holographic element according to the conversion relationship by:
the conversion module 202 obtains a conversion of the full-plane elements to a third size in the holographic canvas according to the conversion ratio; and stretching the all-plane element with the third size in a direction vertical to the holographic canvas by a first preset thickness to obtain the holographic element corresponding to the all-plane element.
In this embodiment, the full-plane elements are elements without spatial meaning, such as numbers and characters, and when the conversion module 202 converts such elements, a certain thickness is embodied in the present invention, so that after the size of the full-plane element is converted by the holographic canvas forming module 200, only the full-plane element needs to be stretched by a first preset thickness, and the first preset thickness may be set in a direction of optimal vision according to an actual use scene. For example, for an all-plane element, a thickness of 8cm is uniformly set.
Optionally, the conversion module 202 divides the full-plane elements into a plurality of classes according to types, for example, a text class, a picture class, and the like, and when the conversion module 202 stretches the full-plane elements of each class, the full-plane elements of different types may be stretched according to different thicknesses, for example, the text class stretches 8cm, and the picture class stretches 5 cm. This application sets up the full plane element of different grade type into different thickness, when making full plane element convert the holographic element, the stereoeffect is better.
In one embodiment, the planar element is a diverging planar element, which the conversion module 202 may convert into a holographic element according to the conversion relationship by: acquiring nodes in divergent plane elements and priority information preset by the nodes; wherein the priority information is used for determining the divergence order of the nodes in the space; and carrying out divergence processing on the nodes in the space according to the priority information according to a preset divergence shape.
The conversion module 202 obtains the conversion of the divergence plane element after the divergence processing to the fourth size in the holographic canvas according to the conversion ratio; and performing second preset thickness stretching on the fourth size divergent plane element in the direction vertical to the holographic canvas to obtain the holographic element corresponding to the divergent plane element.
In this embodiment. The divergent plane element may be a thought guide graph or a mathematical formula, etc., the node in the divergent plane element may be a node in the thought guide graph or a node in the mathematical formula, etc., the preset divergent shape may be a template shape designed for the thought guide graph or a template shape designed for the mathematical formula, and the conversion module 202 sequentially diverges the node according to the preset divergent shape and the priority information according to the priority information of the node; the second predetermined thickness may be set according to a specific scene, to the whole holographic image, and to the holographic effect direction, for example, the transformation module 202 stretches all the divergent plane elements by 5 cm. Specifically, the divergent plane element is a thought-guiding graph, the preset divergent shape is 6 directions in a three-dimensional coordinate system, the nodes are sequentially diverged rightward, leftward, upward, downward, forward and backward in space according to priority information, if the number of the nodes is more than 6, the direction is expanded, and if the number of the nodes is more than 6, the divergent plane element has a new meaning in space, such as upward right, upward left and the like.
In one embodiment, the planar element is a planar stereo element, and the conversion module 202 may convert the planar element into a holographic element according to the conversion relationship by: obtaining the fifth size of the conversion of the planar stereo element into the holographic canvas according to the conversion ratio; acquiring stereo information included in the planar stereo element; and analyzing the three-dimensional information, and converting the planar three-dimensional element into a holographic element according to the three-dimensional information and the fifth size.
In this embodiment, the planar stereoscopic element itself has a 3D attribute in the planar canvas, which is only a limitation of the display of the planar canvas, and the 3D attribute cannot be displayed, and the conversion module 202 converts the 3D attribute into recognizable stereoscopic information by using the 3D attribute thereof in the process of converting to the holographic element, and converts the planar stereoscopic element into the holographic element according to the stereoscopic information.
In the above scheme of the present invention, the conversion module 202 clearly classifies the planar elements, so that the conversion efficiency is greatly improved in the process of converting the planar elements into the holographic elements.
The plane elements in the plane canvas of the present invention include at least one of a full plane element, a divergent plane element and a stereoscopic plane element, and the conversion module 202 may combine the above-described embodiments according to the actual situation of the plane canvas to obtain a final conversion scheme.
In an embodiment, the holographic image conversion system further comprises a projection plane selection module, wherein the projection plane selection module is configured to set an acquisition mode of the projection plane according to the second size, and select one plane as the projection plane through the acquisition mode; wherein the acquisition mode comprises: an automatic acquisition mode and a manual acquisition mode.
In an automatic acquisition mode, acquiring a plane which meets a preset condition in the space; the length of the plane meeting the preset condition is greater than or equal to that of the second size, and the width of the plane meeting the preset condition is greater than or equal to that of the second size; and selecting a plane meeting a preset condition as a projection plane according to the position of the plane canvas in the space.
In the manual acquisition mode, a plane is manually set as a projection plane.
In this embodiment, a function selection switch may be provided whether the mode is a manual mode or an automatic mode, and in the manual mode, a blackboard or a projection cloth may be manually selected as a projection plane, in the automatic mode, a plane in the space where the blackboard or the projection cloth is located is automatically searched, and in the case where the plane satisfies a condition, a plane is selected as a projection plane.
When the holographic image is converted, the space right in front of the holographic canvas can be called as a holographic area which is a cuboid space, after the conversion is completed, all holographic elements are in the holographic area, and the holographic area can be directly formed by stretching the holographic canvas towards the right in front.
The rectangular space is formed by considering that most of the planar canvas is rectangular pages, and if the planar canvas is in other shapes, the planar canvas is converted into the corresponding shape.
In an embodiment, the holographic image forming module 203 obtains a superposition relationship between each planar element according to the position information of each planar element in the planar canvas to be converted; and setting the distance information between each holographic element and the holographic canvas according to the superposition relationship, and arranging the holographic elements in the holographic canvas according to the distance information to form a holographic image.
In this embodiment, the superposition relationship is specifically a front-back relationship of the plane elements in the plane canvas, and if one plane element blocks another plane element in the plane canvas, the holographic image forming module 203 determines that the first plane element is in front of the other plane element, and when the holographic image is generated, the information is retained. Specifically, the distance between each holographic element and the holographic plane is set through the superposition relationship, and if one plane element is superposed on the other plane element, the distance between the holographic element corresponding to one plane element and the holographic canvas is larger than the distance between the holographic element corresponding to the other plane element and the holographic canvas. When the holographic image is observed in the front, the superposition relationship in the plane canvas is also reflected in the space.
In this embodiment, the planar element transformation module 230 maps the entire volume of the diverging planar element into the holographic profile and maps out a certain thickness by obtaining the position of the diverging planar element in the planar canvas, the transformed size of the diverging planar element, and the diverging shape. Preferably, the divergent shape may be a planar shape, and the nodes are diverged in sequence in each direction of one plane in the space according to the priority information of the nodes. In another alternative embodiment, the divergent shape may be a three-dimensional shape, and the nodes are diverged sequentially to the right, to the left, to the up, to the down, to the front, and to the back in the space according to the priority information of the nodes, and if the number of the nodes is more than 6, the direction is expanded, such as to the upper right, to the left, and so on, and the divergent planar elements have a new meaning in the space.
In an embodiment, the system further includes a rendering module, where the rendering module is configured to obtain an occlusion relationship between the holographic element and a real object in the space, perform rendering processing on the arranged and converted planar elements according to the superposition relationship and the occlusion relationship, and then form a holographic image. During rendering, a more realistic three-dimensional scene can be obtained by setting the texture type of the planar elements, specifically, one converted three-dimensional element blocks another three-dimensional element, and/or one converted three-dimensional element blocks an entity in a space, and from the perspective of an observer, the superimposed portion, i.e., the portion where the line of sight of the observer is inaccessible, is also invisible when the holographic image is observed.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments. It will be understood that the terms "first," "second," and the like as used herein are used herein to distinguish one object from another, but the objects are not limited by these terms.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program, which is stored in a computer readable storage medium and sold or used as a stand-alone product. The program, when executed, may perform all or a portion of the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above-described examples merely represent several embodiments of the present invention and should not be construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. A holographic image conversion method, comprising the steps of:
obtaining a second size of the target holographic canvas according to the first size of the planar canvas to be converted, and forming the holographic canvas with the second size;
acquiring all plane elements in a plane canvas, and judging whether the plane elements are all plane elements, divergent plane elements or plane three-dimensional elements; correspondingly obtaining a first conversion relation corresponding to the full plane element, a second conversion relation corresponding to the divergent plane element or a third conversion relation corresponding to the plane stereo element according to a conversion rule corresponding to the full plane element, the divergent plane element or the plane stereo element; the full plane element is an element without spatial meaning, the divergent plane element is a thought-derivative diagram or a mathematical formula, and the planar solid element has 3D attribute in the planar canvas;
converting the plane element into a holographic element according to the conversion relation;
arranging the holographic elements in the holographic canvas according to the position information of each planar element in the planar canvas to be converted to form a holographic image;
when the planar element is a divergent planar element, the step of converting the planar element into a holographic element according to the conversion relationship includes: acquiring nodes in divergent plane elements and priority information preset by the nodes; wherein the priority information is used for determining the divergence order of the nodes in the space; according to a preset divergence shape, carrying out divergence processing on the nodes in the space according to the priority information; according to a preset conversion ratio, obtaining a fourth size of the divergent plane element converted into the holographic canvas after the divergent processing; and performing second preset thickness stretching on the fourth size divergent plane element in the direction vertical to the holographic canvas to obtain the holographic element corresponding to the divergent plane element.
2. The holographic image conversion method of claim 1, wherein the step of determining the second size of the target holographic canvas according to the first size of the planar canvas to be converted comprises:
obtaining a second size of the holographic canvas according to the first size of the planar canvas and the conversion ratio;
the conversion formula is:
Figure 528144DEST_PATH_IMAGE001
wherein
Figure 511144DEST_PATH_IMAGE002
A length representing a second size of the holographic canvas;
Figure 437512DEST_PATH_IMAGE003
a length representing a first size of the planar canvas;
Figure 645027DEST_PATH_IMAGE004
a width representing a second size of the holographic canvas;
Figure 998648DEST_PATH_IMAGE005
a width representing a first size of the planar canvas;
Figure 672206DEST_PATH_IMAGE006
representing the conversion ratio.
3. The holographic image conversion method of claim 2, in which the planar elements are all-planar elements
The step of converting the planar element into a holographic element according to the conversion relationship includes:
obtaining a third size for converting the full-plane elements into the holographic canvas according to the conversion ratio;
and stretching the all-plane element with the third size in a direction vertical to the holographic canvas by a first preset thickness to obtain the holographic element corresponding to the all-plane element.
4. The holographic image conversion method of claim 2, wherein the planar element is a planar stereoscopic element;
the step of converting the planar element into a holographic element according to the conversion relationship includes:
according to the conversion ratio, obtaining a fifth size of the planar stereo element converted into the holographic canvas;
acquiring stereo information included in the planar stereo element; and analyzing the three-dimensional information, and converting the planar three-dimensional element into a holographic element according to the three-dimensional information and the fifth size.
5. The holographic image conversion method of claim 1, further comprising the step of selecting a projection plane:
setting an acquisition mode of the projection plane according to the second size, and selecting one plane as the projection plane through the acquisition mode;
wherein the acquisition mode comprises: an automatic acquisition mode and a manual acquisition mode;
in an automatic acquisition mode, acquiring a plane which meets a preset condition in the space; the length of the plane meeting the preset condition is greater than or equal to that of the second size, and the width of the plane meeting the preset condition is greater than or equal to that of the second size;
selecting a plane meeting a preset condition as a projection plane according to the position of the plane canvas in the space;
in the manual acquisition mode, a plane is manually set as a projection plane.
6. The holographic image conversion method according to claim 1, wherein the step of arranging the holographic elements in the holographic canvas according to the position information of each planar element in the canvas to be converted to form the holographic image comprises:
obtaining the superposition relationship among the plane elements according to the position information of the plane elements in the plane canvas to be converted;
and setting the distance information between each holographic element and the holographic canvas according to the superposition relationship, and arranging the holographic elements in the holographic canvas according to the distance information to form a holographic image.
7. The holographic image conversion method of claim 6, further comprising, prior to forming the holographic image:
and acquiring the shielding relation between the holographic element and the real object in the space, rendering the arranged and converted planar elements according to the superposition relation and the shielding relation, and then forming a holographic image.
8. A holographic image conversion system, comprising:
the holographic canvas forming module is used for obtaining a second size of a target holographic canvas according to the first size of the planar canvas to be converted and forming the holographic canvas of the second size;
the conversion relation establishing module is used for acquiring all plane elements in the plane canvas and judging the plane elements to be full plane elements, divergent plane elements or plane three-dimensional elements; correspondingly obtaining a first conversion relation corresponding to the full plane element, a second conversion relation corresponding to the divergent plane element or a third conversion relation corresponding to the plane stereo element according to a conversion rule corresponding to the full plane element, the divergent plane element or the plane stereo element; the full plane element is an element without spatial meaning, the divergent plane element is a thought-derivative diagram or a mathematical formula, and the planar solid element has 3D attribute in the planar canvas;
the conversion module is used for converting the plane element into a holographic element according to the conversion relation;
the holographic image forming module is used for arranging the holographic elements in the holographic canvas according to the position information of each plane element in the planar canvas to be converted to form a holographic image;
the conversion module is further configured to, when the plane element is a divergent plane element, obtain a node in the divergent plane element and priority information preset by the node; wherein the priority information is used for determining the divergence order of the nodes in the space; according to a preset divergence shape, carrying out divergence processing on the nodes in the space according to the priority information; according to a preset conversion ratio, obtaining a fourth size of the divergent plane element converted into the holographic canvas after the divergent processing; and performing second preset thickness stretching on the fourth size divergent plane element in the direction vertical to the holographic canvas to obtain the holographic element corresponding to the divergent plane element.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN201710729257.4A 2017-08-23 2017-08-23 Holographic image conversion method and system Active CN107563958B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710729257.4A CN107563958B (en) 2017-08-23 2017-08-23 Holographic image conversion method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710729257.4A CN107563958B (en) 2017-08-23 2017-08-23 Holographic image conversion method and system

Publications (2)

Publication Number Publication Date
CN107563958A CN107563958A (en) 2018-01-09
CN107563958B true CN107563958B (en) 2021-01-22

Family

ID=60976633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710729257.4A Active CN107563958B (en) 2017-08-23 2017-08-23 Holographic image conversion method and system

Country Status (1)

Country Link
CN (1) CN107563958B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109993152B (en) * 2019-04-15 2021-03-09 武汉轻工大学 Mode conversion method, equipment, storage medium and device for coordinate curve integration
CN110780872B (en) * 2019-09-03 2023-10-24 腾讯科技(深圳)有限公司 Element arrangement method, element arrangement device, computer-readable storage medium and computer-readable storage device
CN112184848B (en) * 2020-09-24 2024-04-16 杭州安恒信息技术股份有限公司 Method, device, electronic device and storage medium for visualizing pseudo 3D material

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104778741A (en) * 2014-01-14 2015-07-15 北大方正集团有限公司 Method and device for converting two-dimensional figure into three-dimensional figure
CN105138780A (en) * 2015-09-01 2015-12-09 北京海颐威工程技术有限公司 Device for rapidly establishing three-dimensional building information model
CN105719277A (en) * 2016-01-11 2016-06-29 国网新疆电力公司乌鲁木齐供电公司 Transformer station three-dimensional modeling method and system based on surveying and mapping and two-dimensional image
CN106023305A (en) * 2016-05-10 2016-10-12 曹屹 Modeling method and apparatus for three-dimensional space
CN106683132A (en) * 2015-11-10 2017-05-17 星际空间(天津)科技发展有限公司 High-precision three-dimensional city modeling method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104515989A (en) * 2014-12-25 2015-04-15 深圳市一体太赫兹科技有限公司 Three-dimensional holographic imaging method and system for close-range millimeter waves
CN104569971A (en) * 2014-12-25 2015-04-29 深圳市一体太赫兹科技有限公司 Close-range three-dimensional holographic imaging method and system
US10663923B2 (en) * 2016-09-09 2020-05-26 City University Of Hong Kong Efficiently generating a high quality patterned-phase-only hologram for display on a single device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104778741A (en) * 2014-01-14 2015-07-15 北大方正集团有限公司 Method and device for converting two-dimensional figure into three-dimensional figure
CN105138780A (en) * 2015-09-01 2015-12-09 北京海颐威工程技术有限公司 Device for rapidly establishing three-dimensional building information model
CN106683132A (en) * 2015-11-10 2017-05-17 星际空间(天津)科技发展有限公司 High-precision three-dimensional city modeling method
CN105719277A (en) * 2016-01-11 2016-06-29 国网新疆电力公司乌鲁木齐供电公司 Transformer station three-dimensional modeling method and system based on surveying and mapping and two-dimensional image
CN106023305A (en) * 2016-05-10 2016-10-12 曹屹 Modeling method and apparatus for three-dimensional space

Also Published As

Publication number Publication date
CN107563958A (en) 2018-01-09

Similar Documents

Publication Publication Date Title
Feixas et al. A unified information-theoretic framework for viewpoint selection and mesh saliency
JP4916548B2 (en) Establish and use dominant lines of images
JP4938093B2 (en) System and method for region classification of 2D images for 2D-TO-3D conversion
EP3242275A1 (en) Using photo collections for three dimensional modeling
CN103051915B (en) Manufacture method and manufacture device for interactive three-dimensional video key frame
CN107563958B (en) Holographic image conversion method and system
CN102474636A (en) Adjusting perspective and disparity in stereoscopic image pairs
JP2014078095A (en) Image processing device, image processing method, and program
KR20130089649A (en) Method and arrangement for censoring content in three-dimensional images
CN111127623A (en) Model rendering method and device, storage medium and terminal
CN111738265A (en) Semantic segmentation method, system, medium, and electronic device for RGB-D image
US11276202B2 (en) Moving image generation apparatus, moving image generation method, and non-transitory recording medium
CN108734773A (en) A kind of three-dimensional rebuilding method and system for mixing picture
Wang et al. Stereoscopic image retargeting based on 3D saliency detection
US9165393B1 (en) Measuring stereoscopic quality in a three-dimensional computer-generated scene
WO2021105871A1 (en) An automatic 3d image reconstruction process from real-world 2d images
CN115861515A (en) Three-dimensional face reconstruction method, computer program product and electronic device
JP2013073598A (en) Image processing device, image processing method, and program
CN117115917A (en) Teacher behavior recognition method, device and medium based on multi-modal feature fusion
KR102068489B1 (en) 3d object creation apparatus
Angot et al. A 2D to 3D video and image conversion technique based on a bilateral filter
KR102358854B1 (en) Apparatus and method for color synthesis of face images
KR20150022158A (en) Apparatus and method for learning mechanical drawing
CN111773710A (en) Texture image processing method and device, electronic equipment and storage medium
JP7476511B2 (en) Image processing system, image processing method and program

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