US20250191284A1
2025-06-12
19/055,483
2025-02-17
Smart Summary: A new method helps create a detailed picture of water waves using optical technology. It starts by setting up a data platform that simulates how waves behave. Next, it trains a system to understand the difference between real images of water and virtual images. The method then changes real water images to match the virtual style and calculates the depth of the waves. Finally, it produces a 3D map of the wave surface, allowing for accurate and quick depth measurements. 🚀 TL;DR
This invention discloses a wave field reconstruction method via optical perception, including: (1) building a data platform for a virtual wave field; (2) pre-training a domain converter module using color image data of the virtual wave field and real water surface image data captured by a camera; (3) pre-training a depth estimation module using generated paired color image data and depth image data of the virtual wave field; (4) converting the style of a real water surface image into a virtual-water-surface-style image via the domain converter module; (5) outputting the virtual-water-surface-style image as a depth image with the same style and recording the distance between a wave surface sampling point and the camera's optical center; and (6) generating surface point cloud data of a water surface wave field with the camera's optical center as the coordinate origin. The method enables real-time, robust wave field depth reconstruction, ensuring reliability and authenticity.
Get notified when new applications in this technology area are published.
G06T15/506 » CPC main
3D [Three Dimensional] image rendering; Lighting effects Illumination models
G06T7/50 » CPC further
Image analysis Depth or shape recovery
G06T15/205 » CPC further
3D [Three Dimensional] image rendering; Geometric effects; Perspective computation Image-based rendering
G06T2207/10024 » CPC further
Indexing scheme for image analysis or image enhancement; Image acquisition modality Color image
G06T2207/10028 » CPC further
Indexing scheme for image analysis or image enhancement; Image acquisition modality Range image; Depth image; 3D point clouds
G06T2207/20081 » CPC further
Indexing scheme for image analysis or image enhancement; Special algorithmic details Training; Learning
G06T2210/24 » CPC further
Indexing scheme for image generation or computer graphics Fluid dynamics
G06T2210/56 » CPC further
Indexing scheme for image generation or computer graphics Particle system, point based geometry or rendering
G06T15/50 IPC
3D [Three Dimensional] image rendering Lighting effects
G06T15/20 IPC
3D [Three Dimensional] image rendering; Geometric effects Perspective computation
This application is a national stage of International Application No. PCT/CN2023/126753, filed on Oct. 26, 2023, which claims priority to Chinese Patent Application No. 202310061919.0, filed on Jan. 19, 2023. Both of the aforementioned applications are hereby incorporated by reference in their entireties.
The present invention relates to the technical field of reconstruction and rebuilding for three-dimensional wave fields, and specifically relates to a wave field reconstruction method based on optical perception.
With development and application of artificial intelligence technology in the field of equipment, intelligent systems of unmanned boats are also experiencing a wave of intelligence. Being different from unmanned vehicles and unmanned aerial vehicles, unmanned boats face complex and ever-changing water surface environments, and due to a lack of perception for surrounding water surface and sea conditions, traditional unmanned boat movement control is very limited in accuracy, and it is difficult to control unmanned boats to complete tasks with high movement accuracy requirements.
In the related fields of fluid research, previous research on a wave field reconstruction technology is mainly carried out from three aspects, the first aspect is carrying out special treatment on a water body, the water body is dyed by means of a fluorescent substance, water surface reconstruction is carried out through analyzing fluorescence intensity of different areas in a captured image, or known image textures are pasted under the transparent water body, a relationship between texture distortion and a water surface shape is analyzed on the basis of the refraction principle, and the method is only suitable for being carried out in a laboratory; the second aspect is capturing an image of a sea surface by means of a camera, and numerical calculation is carried out in combination with physical equations during calculation, however, the calculation amount is too large, the calculation time is long, and an effect of real-time reconstruction cannot be achieved; and the third aspect is reconstructing a wave field by means of an SFS algorithm, however, a wave reconstruction algorithm based on the SFS algorithm does not change an assumption of orthogonal projection, so that a problem of projection occlusion of the wave field cannot be greatly solved.
With regard to the above condition, the present invention provides a wave field reconstruction method based on optical perception, and the reconstruction method can intuitively represent wave information of a water surface wave field; real-time reconstruction for depth information of the water surface wave field can be realized through capturing a water surface image with a camera, and a high calculation speed is achieved; there are no special requirements on a water body, and high adaptability is achieved; and a problem of projection occlusion of the wave field is considered, so that reliability and authenticity of wave field reconstruction are ensured.
A specific technical solution of the present invention is a wave field reconstruction method based on optical perception, and the wave field reconstruction method based on the optical perception includes the following steps:
Further, the data generation platform for the virtual wave field in the step 1 is built through adopting a Gerstner wave model, and the Gerstner wave model is shown in a formula (I) below,
{ x = x 0 + ∑ i = 1 n Q i cos θ i A i sin [ k i ( x 0 cos θ i + y 0 sin θ i ) + ω i t + φ i ] y = y 0 + ∑ i = 1 n Q i sin θ i A i sin [ k i ( x 0 cos θ i + y 0 sin θ i ) + ω i t + φ i ] z = z 0 + ∑ i = 1 n A i cos [ k i ( x 0 cos θ i + y 0 sin θ i ) + ω i t + φ i ] ( I )
wherein t is time, (x, y, z) is a position at the time t, (x0, y0, z0) is a position at rest, Qi is a sharpness degree of a wave peak of the ith wave superposed, and has a value range of
[ 0 , 1 k i A i ] ,
Ai is an amplitude of the ith wave superposed, ki is a wave number of the ith wave superposed, θi is a direction angle of the ith wave superposed, ωi is an angular speed of the ith wave superposed, and φi is an initial phase of the ith wave superposed.
Further, the composite illumination models in the step 1 are a diffuse reflection model, a specular reflection model, and a sub-surface scattering model which are shown in a formula (II), a formula (III), and a formula (IV) below respectively,
I d = k d I i n cos α ( II )
wherein Id is observed color brightness, kd is a diffuse reflectance coefficient, Iin is brightness of incident light, and α is an included angle between a plane normal and the incident light;
I m = k m I i n ( cos ( ϕ - θ ) ) n ( III )
wherein Im is observed color brightness, km is a specular reflection coefficient, Iin is the brightness of the incident light, ϕ is an included angle between the plane normal and the incident light, θ is an included angle between the plane normal and an observation line of sight, and n is a highlight coefficient; and
{ L o ( p o , r o ) = ∫ ∫ S ( p o , r o , p i , r i ) L i ( p i , r i ) ❘ "\[LeftBracketingBar]" cos φ i ❘ "\[RightBracketingBar]" dr i d A S ( p o , r o , p i , r i ) = 1 π F t ( η o , r o ) R d ( p i - p o ) F t ( η i , r i ) ( IV )
where Li is emissivity of the incident light, Lo is emissivity of an emergent light, pi is a contact point between the incident light and an object, po is a contact point between the emergent light and the object, ri is a direction vector of the incident light, ro is a direction vector of the emergent light, φi is an included angle between the incident light and a normal vector of a micro-plane of the contact point, S(po, ro, pi, ri) is a bidirectional sub-surface reflection distribution function, Ft is a Fresnel coefficient, Rd is a diffusion approximation function, and d is a distance.
Further, a process of generating paired color image data and depth image data of the wave field in the step 1 is as follows:
Further, a specific process of the point cloud mapping algorithm in the step 6 is as follows:
{ x = r x · ( u - w 2 ) y = r y · ( v - h 2 ) ( V )
wherein uv is the pixel coordinate system, the origin is the top left corner of the image, w and h are pixel values of a width and a height of the image respectively, o-xy is the image coordinate system, the origin is the center point of the image, rx and ry are conversion factors, and represent absolute distances represented by a transversal pixel and a longitudinal pixel of the image respectively, and a calculation formula is shown in a formula (VI) below,
{ r x = 2 f tan ( β 2 ) w r y = 2 f tan ( α 2 ) h ( VI )
wherein α is an opening angle of a visual vertebrae of the camera in a vertical direction, β is an opening angle of the visual vertebrae of the camera in a horizontal direction, and f is a focal length of the camera;
{ x e = x x 2 + y 2 + f 2 y e = y x 2 + y 2 + f 2 z e = z x 2 + y 2 + f 2 ( VII )
{ x C = d ( u , v ) · x e y C = d ( u , v ) · y e z C = d ( u , v ) · z e . ( VIII )
The advantages or beneficial effects of the present invention are that:
To make the aforementioned more comprehensible, several embodiments accompanied with drawings are described in detail as follows.
The accompanying drawings are included to provide a further understanding of the disclosure, and are incorporated in and constitute a part of this specification. The drawings illustrate exemplary embodiments of the disclosure and, together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a schematic flow diagram of a wave field reconstruction method based on optical perception, of the present invention;
FIG. 2 is a schematic diagram of Gerstner wave superposition simulation under different wave conditions;
FIG. 3 is an effect diagram of a wave field added with a diffuse reflection model, a specular reflection model, and a sub-surface scattering model;
FIG. 4A and FIG. 4B are rendered images of the virtual wave field, where FIG. 4A is a color image of the virtual wave field, and FIG. 4B is a depth image of the virtual wave field;
FIG. 5 is a schematic diagram of coordinate mapping of a camera;
FIG. 6A and FIG. 6B are schematic diagrams of input and output of a domain converter module, where FIG. 6A is the input of the domain converter module, that is, a real water surface image, and FIG. 6B is the output of the domain converter module, that is, an image with a virtual-water-surface style;
FIG. 7A and FIG. 7B are schematic diagrams of input and output of a depth estimation module, where FIG. 7A is the input of the depth estimation module, that is, an image with a virtual-water-surface style, and FIG. 7B is the output of the depth estimation module, that is, a depth image with a virtual-water-surface style; and
FIG. 8A to FIG. 8C are schematic diagrams of input data and output data of a point cloud mapping algorithm, where FIG. 8A and FIG. 8B are the input of a point cloud mapping module, that is, an image with a virtual-water-surface style and a depth image with a virtual-water-surface style, and FIG. 8C is the output of the point cloud mapping module, that is, a point cloud data image of the wave field.
The technical solution of the present invention will be further described below in combination with the drawings of the specification.
As shown in FIG. 1, specific steps of a wave field reconstruction method based on optical perception, of the present invention, are as follows:
{ x = x 0 + ∑ i = 1 n Q i cos θ i A i sin [ k i ( x 0 cos θ i + y 0 sin θ i ) + ω i t + φ i ] y = y 0 + ∑ i = 1 n Q i sin θ i A i sin [ k i ( x 0 cos θ i + y 0 sin θ i ) + ω i t + φ i ] z = z 0 + ∑ i = 1 n A i cos [ k i ( x 0 cos θ i + y 0 sin θ i ) + ω i t + φ i ] ( I )
where t is time, (x, y, z) is a position at the time t, (x0, y0, z0) is a position at rest, Qi is a sharpness degree of a wave peak of the ith wave superposed, and has a value range of
[ 0 , 1 k i A i ] ,
Ai is an amplitude of the ith wave superposed, ki is a wave number of the ith wave superposed, θi is a direction angle of the ith wave superposed, ωi is an angular speed of the ith wave superposed, and φi is an initial phase of the ith wave superposed;
as shown in FIG. 3, the composite illumination models are a diffuse reflection model, a specular reflection model, and a sub-surface scattering model which are shown in a formula (II), a formula (III), and a formula (IV) below respectively,
I d = k d I i n cos α ( II )
wherein Id is observed color brightness, kd is a diffuse reflectance coefficient, Iin is brightness of incident light, and α is an included angle between a plane normal and the incident light;
I m = k m I i n ( cos ( ϕ - θ ) ) n ( III )
where Im is observed color brightness, km is a reflection coefficient, Iin is the brightness of the incident light, ϕ is an included angle between a plane normal and the incident light, θ is an included angle between the plane normal and an observation line of sight, and n is a highlight coefficient; and
{ L o ( p o , r o ) = ∫ ∫ S ( p o , r o , p i , r i ) L i ( p i , r i ) ❘ "\[LeftBracketingBar]" cos φ i ❘ "\[RightBracketingBar]" dr i d A S ( p o , r o , p i , r i ) = 1 π F t ( η o , r o ) R d ( p i - p o ) F t ( η i , r i ) ( IV )
where Li is emissivity of the incident light, Lo is emissivity of an emergent light, pi is a contact point between the incident light and an object, po is a contact point between the emergent light and the object, ri is a direction vector of the incident light, ro is a direction vector of the emergent light, φi is an included angle between the incident light and a normal vector of a micro-plane of the contact point, S(po, ro, pi, ri) is a bidirectional sub-surface reflection distribution function, Ft is a Fresnel coefficient, Rd is a diffusion approximation function, and d is a distance.
A final brightness value of the point is obtained through superposing the color brightness values calculated by the three groups of illumination models. A process of generating paired color image data and depth image data of the wave field is as follows:
{ x = r x · ( u - w 2 ) y = r y · ( v - h 2 ) ( V )
wherein uv is the pixel coordinate system, the origin is the top left corner of the image, w and h are pixel values of a width and a height of the image respectively, o-xy is the image coordinate system, the origin is the center point of the image, rx and ry are conversion factors, and represent absolute distances represented by a transversal pixel and a longitudinal pixel of the image respectively, and a calculation formula is shown in a formula (VI) below,
{ r x = 2 f tan ( β 2 ) w r y = 2 f tan ( α 2 ) h ( VI )
wherein α is an opening angle of a visual vertebrae of the camera in a vertical direction, β is an opening angle of the visual vertebrae of the camera in a horizontal direction, and f is a focal length of the camera;
{ x e = x x 2 + y 2 + f 2 y e = y x 2 + y 2 + f 2 z e = z x 2 + y 2 + f 2 ( VII )
{ x C = d ( u , v ) · x e y C = d ( u , v ) · y e z C = d ( u , v ) · z e . ( VIII )
Via the above steps, three-dimensional reconstruction for waves may be realized through the water surface image captured by the camera, and the point cloud data of the water surface wave field is obtained.
Although the present invention has been disclosed above as the preferred examples, the examples are not intended to limit the present invention. Any equivalent variations or embellishments made without departing from the spirit and scope of the present invention are also within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the contents defined by the claims of the present invention.
1. A wave field reconstruction method based on optical perception, comprising the following steps:
step 1, building a data generation platform for a virtual wave field, simulating optical features of a water surface through using composite illumination models, and generating paired color image data and depth image data of the virtual wave field;
step 2, constructing a domain converter module, and pre-training the constructed domain converter module through taking the color image data of the virtual wave field, and real water surface image data captured by a camera as a training set;
step 3: constructing a depth estimation module, and pre-training the constructed depth estimation module through taking the generated paired color image data and depth image data of the virtual wave field as a training set;
step 4: capturing a real water surface image, and converting a style of the real water surface image into an image with a virtual-water-surface style through using the domain converter module pre-trained in the step 2;
step 5, outputting the image with the virtual-water-surface style as a depth image with the virtual-water-surface style and recording a distance between a wave surface sampling point and an optical center of the camera through using the depth estimation module; and
step 6: carrying out coordinate mapping on the depth image with the virtual-water-surface style through adopting a point cloud mapping algorithm, and generating surface point cloud data that takes the optical center of the camera as a coordinate origin, of a water surface wave field.
2. The wave field reconstruction method based on the optical perception according to claim 1, wherein the data generation platform for the virtual wave field in the step 1 is built through adopting a Gerstner wave model, and the Gerstner wave model is shown in a formula (I) below,
{ x = x 0 + ∑ i = 1 n Q i cos θ i A i sin [ k i ( x 0 cos θ i + y 0 sin θ i ) + ω i t + φ i ] y = y 0 + ∑ i = 1 n Q i sin θ i A i sin [ k i ( x 0 cos θ i + y 0 sin θ i ) + ω i t + φ i ] z = z 0 + ∑ i = 1 n A i cos [ k i ( x 0 cos θ i + y 0 sin θ i ) + ω i t + φ i ] ( I )
wherein t is time, (x, y, z) is a position at the time t, (x0, y0, z0) is a position at rest, Qi is a sharpness degree of a wave peak of the ith wave superposed, and has a value range of
[ 0 , 1 k i A i ] ,
Ai is an amplitude of the ith wave superposed, ki is a wave number of the ith wave superposed, θi is a direction angle of the ith wave superposed, ωi is an angular speed of the ith wave superposed, and φi is an initial phase of the ith wave superposed.
3. The wave field reconstruction method based on the optical perception according to claim 2, wherein the composite illumination models in the step 1 are a diffuse reflection model, a specular reflection model, and a sub-surface scattering model which are shown in a formula (II), a formula (III), and a formula (IV) below respectively,
I d = k d I i n cos α ( II )
wherein Id is observed color brightness, kd is a diffuse reflectance coefficient, Iin is brightness of incident light, and α is an included angle between a plane normal and the incident light;
I m = k m I i n ( cos ( ϕ - θ ) ) n ( III )
wherein Im is observed color brightness, km is a specular reflection coefficient, Iin is the brightness of the incident light, ϕ is an included angle between the plane normal and the incident light, θ is an included angle between the plane normal and an observation line of sight, and n is a highlight coefficient; and
{ L o ( p o , r o ) = ∫ ∫ S ( p o , r o , p i , r i ) L i ( p i , r i ) ❘ "\[LeftBracketingBar]" cos φ i ❘ "\[RightBracketingBar]" dr i d A S ( p o , r o , p i , r i ) = 1 π F t ( η o , r o ) R d ( p i - p o ) F t ( η i , r i ) ( IV )
wherein Li is emissivity of the incident light, Lo is emissivity of an emergent light, pi is a contact point between the incident light and an object, po is a contact point between the emergent light and the object, ri is a direction vector of the incident light, ro is a direction vector of the emergent light, φi is an included angle between the incident light and a normal vector of a micro-plane of the contact point, S(po, ro, pi, ri) is a bidirectional sub-surface reflection distribution function, Ft is a Fresnel coefficient, Rd is a diffusion approximation function, and d is a distance.
4. The wave field reconstruction method based on the optical perception according to claim 3, wherein a process of generating paired color image data and depth image data of the wave field in the step 1 is as follows:
step a, generating a two-dimensional image of the virtual wave field through adopting the data generation platform for the virtual wave field, and meanwhile, writing the minimum value of a depth in the same pixel into a depth cache;
step b, according to the depth value of the two-dimensional image of the virtual wave field, selecting a color closest to the camera to sequentially render the pixels, so as to generate a required color image of the virtual wave field; and
step c, carrying out inverse perspective transformation on values in the depth cache, converting an image coordinate system into a world coordinate system to obtain a real depth value, and generating a required depth image of the virtual wave field.
5. The wave field reconstruction method based on the optical perception according to claim 1, wherein a specific process of the point cloud mapping algorithm in the step 6 is as follows:
step A, through translating a pixel coordinate system, translating the center point of the coordinate system from the top left corner of the image to the center of the image, and then multiplying by a conversion factor to convert the pixel coordinate system to the image coordinate system, as shown in a formula (V) below,
{ x = r x · ( u - w 2 ) y = r y · ( v - h 2 ) ( V )
wherein uv is the pixel coordinate system, the origin is the top left corner of the image, w and h are pixel values of a width and a height of the image respectively, o-xy is the image coordinate system, the origin is the center point of the image, rx and ry are conversion factors, and represent absolute distances represented by a transversal pixel and a longitudinal pixel of the image respectively, and a calculation formula is shown in a formula (VI) below,
{ r x = 2 f tan ( β 2 ) w r y = 2 f tan ( α 2 ) h ( VI )
wherein α is an opening angle of a visual vertebrae of the camera in a vertical direction, β is an opening angle of the visual vertebrae of the camera in a horizontal direction, and f is a focal length of the camera;
step B, normalizing a vector (x, y, f) pointing from the optical center of the camera to the pixel point according to a formula (VII) below to obtain (xe, ye, Ze) which represents a direction pointing from the optical center of the camera to a point in the image, and the direction is also a direction pointing from the optical center of the camera to a real point in the world coordinate system:
{ x e = x x 2 + y 2 + f 2 y e = y x 2 + y 2 + f 2 z e = z x 2 + y 2 + f 2 ( VII )
step C, multiplying the vector (xe, ye, ze) with the distance between the optical center of the camera, which is stored in the depth image, and the point in the world coordinate system, so as to obtain a position of a point in the camera coordinate system with the optical center of the camera as the origin, as shown in a formula (VIII) below
{ x C = d ( u , v ) · x e y C = d ( u , v ) · y e z C = d ( u , v ) · z e . ( VIII )