Scattering transient image simulation method, application method and computer readable storage medium
Through the scattering path tracking algorithm and path matching algorithm, combined with the sample generator, a three-dimensional transient image is generated, which solves the problem of difficulty in simulating multiple types of scattering scenes in the existing technology, achieving more accurate description of photon flight characteristics and improving scattering imaging capabilities. .
Patent Information
- Application Number
- CN202210285467.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-22
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-03-22
AI Technical Summary
The existing technology lacks a transient image simulation method suitable for multiple types of scattering scenes, and it is difficult to accurately simulate light scattering phenomena, especially in describing the time domain propagation path of photons and the changes in the direction of photon propagation by objects in the scene in three-dimensional transient images. Intensity decay.
The scattering path tracing algorithm is used to render the light transmission process, and the path matching algorithm and sample generator are combined to generate a three-dimensional transient image containing spatial and temporal information of the scattering scene. The flight characteristics of photons are comprehensively obtained through temporal sampling and spatial sampling.
It improves the accuracy of simulation, provides more dimensional information, helps analyze the physical mechanism of light scattering, and improves the imaging capabilities of scattering imaging methods.
Smart Images

Figure CN114638924B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer vision and digital image processing, and in particular to a scattered transient image simulation method, an application method and a computer-readable storage medium. Background Art
[0002] Light scattering is a phenomenon that exists widely in nature, such as the scattering propagation of light in clouds, haze, turbid deep sea and biological tissues. Affected by the characteristics of the scattering medium, the scattering phenomenon also presents diverse characteristics, which makes the analysis of the physical mechanism of light scattering and the reconstruction of the scattering scene more challenging. In this case, simulating the light propagation in the scattering scene and synthesizing the scattering image of the scene can help researchers analyze the propagation characteristics of the scattered light. However, since the scattering medium will reflect, refract and attenuate the light nonlinearly, accurately simulating the light scattering phenomenon faces major challenges.
[0003] Existing methods use some characteristics of scattering phenomena, such as randomness, reflectivity and transmittance characteristics, and local speckle translation invariance, to simulate two-dimensional intensity images of scattering scenes. However, this simulation method has low accuracy, a small range of applicable scenes, and the two-dimensional intensity image only contains spatial information of scattered light, which provides low dimensional information. Three-dimensional transient images contain spatial and temporal information of light during propagation. However, simulation requires the establishment of a complete optical path propagation, and it is extremely challenging to accurately describe the time domain propagation path of photons and the changes in the propagation direction and intensity attenuation of photons caused by scattering media and objects in the scene.
[0004] The prior art lacks a transient image simulation method suitable for multiple types of scattering scenes.
[0005] The disclosure of the above background technology content is only used to assist in understanding the concept and technical solution of the present invention. It does not necessarily belong to the prior art of this patent application. In the absence of clear evidence that the above content has been disclosed on the filing date of this patent application, the above background technology should not be used to evaluate the novelty and creativity of the present application. Summary of the invention
[0006] In order to solve the existing problems, the present invention provides a scattering transient image simulation method, an application method and a computer-readable storage medium.
[0007] In order to solve the above problems, the technical solution adopted by the present invention is as follows:
[0008] A method for simulating a scattered transient image comprises the following steps: S1: simulating and building a scattering scene, wherein the scattering scene is a transmission imaging scene or a reflection imaging scene; S2: using a scattering path tracing algorithm to perform light path rendering on the light transmission process in the scattering scene; S3: setting the start time, end time and time resolution of the transient image to be simulated, using a path matching algorithm to screen a light path that matches the set flight time, and performing time domain sampling on the light path according to the set time resolution to obtain one-dimensional time domain sampling points; S4: using a sample generator to perform spatial domain sampling on the scattering scene to obtain two-dimensional spatial domain sampling points; S5: generating a three-dimensional transient image containing spatial domain information and time domain information of the scattering scene according to the one-dimensional time domain sampling points and the two-dimensional spatial domain sampling points.
[0009] Preferably, the scattering scene includes a scattering medium, a target object, a light source and a detector; when the scattering scene is the transmission imaging scene, the light source and the detector are located on both sides of the scattering medium, and the target object is located between the scattering medium and the light source, or the target object is located between the scattering medium and the detector, or the target object is located inside the scattering medium; when the scattering scene is the reflection imaging scene, the light source and the detector are located on the same side of the scattering medium, and the target object is located on the other side of the scattering medium or inside the scattering medium.
[0010] Preferably, the scattering medium is a surface scattering medium that performs a single scattering of light or a volume scattering medium that performs multiple scattering of light; the simulation of the surface scattering medium uses a transmission layer or a reflection layer with negligible thickness, and the scattering characteristics are characterized by transmittance or reflectivity; the simulation of the volume scattering medium uses a scattering layer with a certain thickness, the scattering layer contains randomly distributed scattering particles, and the scattering characteristics are characterized by a scattering coefficient, an absorption coefficient and a phase function.
[0011] Preferably, the simulation of the target object characteristic comprises: using a bidirectional reflection distribution function or a bidirectional transmission distribution function to characterize the surface reflectivity or surface transmittance of the target object.
[0012] Preferably, using a scattering path tracing algorithm to perform light path rendering on the light transmission process in the scattering scene includes: using a scattering path tracing algorithm to randomly track multiple light paths based on the reflection, refraction and scattering characteristics of the light; when the light intersects with the scattering particles in the scattering scene, adjusting the intensity and propagation direction of the light according to the scattering characteristics of the scattering medium; when the light intersects with the target object, adjusting the intensity and propagation direction of the light according to a distribution function that can characterize the reflectivity or transmittance of the surface of the target object; after adjusting the intensity and propagation direction of the light, a complete light path from the tracking start point to the end point is formed, and the rendering of all light paths in the scattering scene is completed to obtain the rendered light path.
[0013] Preferably, the tracking starting point is a one-way tracking with the detector as the starting point and the light source as the starting point, or a two-way tracking with both the detector and the light source as the starting point.
[0014] Preferably, using the path matching algorithm to select the light path that matches the set flight time includes: according to the set starting time t s With the termination time t e The rendered light path is intercepted to obtain an intercepted light path, and the intercepted light path is matched according to the set total path of photon flight. The length L of the total path of photon flight is:
[0015] L=c×(t e -t s ),
[0016] Wherein, c is the speed of light propagation in the scattering medium, and finally a rendering light path equal to the length of the total flight path of the photon is screened out to obtain the selected light path; according to the set time resolution Δt, the selected light path is sampled in the time domain at intervals of c×Δt, and the number of time domain sampling points N for generating the transient image is:
[0017] N=(t e -t s ) / Δt.
[0018] Preferably, the sample generator generates a sample in an infinite hyperdimensional cube [0,1] according to the sampling theorem. ∞ Generate random points, and the projection of the random number stream in the low-dimensional space uniformly covers the entire sampling space; the sampling theorem includes but is not limited to stratified sampling, random sampling or uniform sampling.
[0019] The present invention also provides a transient image application method, which uses any of the transient image simulation methods described above to generate a three-dimensional transient image.
[0020] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above methods are implemented.
[0021] The beneficial effects of the present invention are as follows: a scattered transient image simulation method, an application method and a computer-readable storage medium are provided, the propagation process of light in a scattering medium is rendered by a scattering path tracing algorithm, the path matching and time domain sampling methods are used to realize the recording of the time domain propagation information of the scattered light, and the sample generator is used to perform spatial domain sampling on the scattering scene, and finally a three-dimensional transient image containing spatial domain and time domain information of the scattering scene is simulated and synthesized. Compared with a two-dimensional intensity image, a three-dimensional transient image provides the time domain flight characteristics of scattered photons, providing more dimensional information for the scattering imaging method. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a schematic diagram of a transient image simulation method in an embodiment of the present invention.
[0023] Figure 2(a)-Figure 2(d) It is a schematic diagram of simulating and building a scattering scene in an embodiment of the present invention.
[0024] Figure 3(a)-Figure 3(c) They are respectively a schematic diagram of building a scattering scene in a specific embodiment of the present invention, a schematic diagram of a three-dimensional transient image under a scattering scene generated by simulation, and a time domain transient curve diagram of a point in the airspace. DETAILED DESCRIPTION
[0025] In order to make the technical problems, technical solutions and beneficial effects to be solved by the embodiments of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0026] It should be noted that when a component is referred to as being "fixed to" or "disposed on" another component, it can be directly on the other component or indirectly on the other component. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element. In addition, connection can be used for both fixing and circuit connection.
[0027] It should be understood that the orientation or position relationship indicated by terms such as "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the embodiments of the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0028] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0029] The two-dimensional intensity image represents the spatial intensity integral of the light during the exposure time. The simulation relies on the probability law of light propagation during the exposure time, so the simulation form is simple but the accuracy is low. The three-dimensional transient image describes the spatial and temporal information of the light during the propagation process. The simulation requires the establishment of a complete light path propagation. However, it is extremely challenging to accurately describe the time domain propagation path of the photon and the change of the propagation direction of the photon and the attenuation of the intensity caused by the objects in the scene. The following is a detailed description of a transient image simulation method for multiple types of scattering scenes provided by the present invention.
[0030] like Figure 1 As shown, the present invention provides a scattering transient image simulation method, comprising the following steps:
[0031] S1: Simulate and build a scattering scene, where the scattering scene is a transmission imaging scene or a reflection imaging scene;
[0032] S2: performing light path rendering on the light transmission process in the scattering scene using a scattering path tracing algorithm;
[0033] S3: setting the start time, end time and time resolution of the transient image to be simulated, using a path matching algorithm to select a light path that matches the set flight time, and performing time domain sampling on the light path according to the set time resolution to obtain a one-dimensional time domain sampling point;
[0034] S4: Using a sample generator to perform spatial sampling on the scattering scene to obtain two-dimensional spatial sampling points;
[0035] S5: Generate a three-dimensional transient image including spatial domain information and temporal domain information of the scattering scene according to the one-dimensional time domain sampling points and the two-dimensional spatial domain sampling points.
[0036] The present invention renders the propagation process of light in the scattering medium through the path tracing algorithm, uses the path matching and time domain sampling method to realize the recording of the time domain propagation information of the scattered light, uses the sample generator to perform spatial domain sampling on the scattering scene, and finally simulates and synthesizes a three-dimensional transient image containing the spatial domain and time domain information of the scattering scene. Compared with the two-dimensional intensity image, the three-dimensional transient image provides the time domain flight characteristics of the scattered photons, providing more dimensional information for the scattering imaging method.
[0037] Furthermore, the three-dimensional transient images synthesized by the present invention help researchers analyze the physical mechanism of light scattering, optimize existing scattering imaging algorithms, and propose a universal scattering imaging method to enhance the imaging capability of existing imaging systems in strong scattering environments.
[0038] Specifically, in step S1, the scattering scene includes a scattering medium, a target object, a light source and a detector;
[0039] When the scattering scene is the transmission imaging scene, the light source and the detector are located on both sides of the scattering medium, the target object is located between the scattering medium and the light source, or the target object is located between the scattering medium and the detector, or the target object is located inside the scattering medium;
[0040] When the scattering scene is the reflective imaging scene, the light source and the detector are located on the same side of the scattering medium, and the target object is located on the other side of the scattering medium or inside the scattering medium.
[0041] Furthermore, the scattering medium is a surface scattering medium that performs single scattering of light or a volume scattering medium that performs multiple scattering of light;
[0042] As shown in FIG. 2( a ), the scattering medium is a surface scattering medium that can scatter light single-time.
[0043] like Figure 2(b)-2(d) As shown, the scattering medium is a volume scattering medium that scatters light multiple times.
[0044] The simulation of the surface scattering medium uses a transmission layer or a reflection layer with negligible thickness, and the scattering characteristics are characterized by transmittance or reflectance;
[0045] The simulation of the volume scattering medium uses a scattering layer with a certain thickness, wherein the scattering layer contains randomly distributed scattering particles, and the scattering characteristics are characterized by a scattering coefficient, an absorption coefficient and a phase function.
[0046] In a specific embodiment, the phase function refers to the propagation direction function after the light interacts with the scattering particles, including but not limited to the Henyey-Greenstein phase function, the Rayleigh phase function or the Kajiya-Kay phase function, etc.; the homogeneity and spatial range of the scattering medium can be set arbitrarily.
[0047] In one embodiment of the present invention, the light source may be a pulse light source or an ambient light source or a modulated light source. The simulation form of the ambient light source includes but is not limited to a surface light source and a point light source with constant intensity, such as the attached Figure 2(a)-2(c) It can also be a sunlight source, as shown in Figure 2(d).
[0048] The simulation of pulse light source uses a collimated light source that can emit short pulses along a fixed ray path, and the pulse width includes but is not limited to microseconds, nanoseconds, picoseconds and femtoseconds. The simulation of detector uses a sensor device capable of recording photon intensity, and its types include but are not limited to transmissive pinhole detectors, orthogonal detectors, telecentric lens detectors and spherical lens detectors.
[0049] The following description mainly uses a pulse light source as an example, which does not represent a limitation on the present invention.
[0050] In one embodiment of the present invention, the target object may be located behind a scattering medium to construct an imaging scene through a scattering layer, such as Figure 2(a)-2(b) As shown; the target object can also be located in the volume scattering medium to construct an immersive volume scattering imaging scene, such as Figure 2(c)-2(d) As shown. The pulse light source and the detector can be located on the same side of the scattering medium to construct a reflective scattering scene, or on different sides of the scattering medium to construct a transmissive scattering scene. The simulation of the target object characteristics uses a distribution function such as a bidirectional reflection distribution function or a bidirectional transmission distribution function to characterize the reflectivity or transmittance of the target surface. Take the bidirectional reflection distribution function as an example:
[0051]
[0052] Where f represents the bidirectional reflectance distribution function, l is the incident light direction, v is the outgoing light direction, L o (v) represents the radiance reflected in the direction v, and E is the irradiance received by the surface. The surface characteristics of the target object include but are not limited to Lambertian, transparent, mirror, etc.
[0053] The present invention improves the accuracy of simulation and can be applied to various types of scattering scenes, including surface scattering scenes with single scattering of light, volume scattering scenes with multiple scattering of light, imaging scenes through scattering layers, immersive volume scattering imaging scenes, reflective scattering scenes and transmissive scattering scenes, etc. It can also simulate the effects of various ambient lighting on transient images.
[0054] In step S2, performing light path rendering on the light transmission process in the scattering scene using a scattering path tracing algorithm includes:
[0055] The scattering path tracing algorithm is used to randomly track multiple light paths based on the reflection, refraction and scattering characteristics of light;
[0056] When the light intersects with scattering particles in the scattering scene, adjusting the intensity and propagation direction of the light according to the scattering characteristics of the scattering medium;
[0057] Specifically, for a surface scattering medium, the reflectivity or transmittance of the scattering medium determines the attenuation degree of the light intensity of the scattering medium after the photon interacts with the scattering particles. After interacting with the surface scattering medium, the photon propagates evenly in all directions.
[0058] For volume scattering media, the absorption characteristics of the scattering medium determine the degree of attenuation of the light intensity of the scattering medium after the photon interacts with the scattering particles. The scattering characteristics and phase function of the scattering medium determine the propagation direction of the photon after the photon interacts with the scattering particles.
[0059] When the light intersects the target object, the intensity and propagation direction of the light are adjusted according to a distribution function that can characterize the reflectivity or transmittance of the target object surface; taking the bidirectional reflection distribution function as an example, when the light is incident on the surface of the target object in the direction l, its light intensity in the outgoing direction v is f(l,v).
[0060] After adjusting the intensity and propagation direction of the light, a complete light path from the tracing start point to the end point is formed, and rendering of all light paths in the scattering scene is completed to obtain a rendered light path.
[0061] In an embodiment of the present invention, the tracking starting point is a one-way tracking with the detector as the starting point and the light source as the starting point, or a two-way tracking with both the detector and the light source as the starting point.
[0062] Although the path tracing algorithm is an existing algorithm, it is often used for light path rendering in free space (i.e., there is no scattering medium in the scene). The present invention proposes a scattering path tracing algorithm, which extends the path tracing algorithm to scattering scenes and adds path changes after the interaction between photons and scattering media during the path tracing process.
[0063] In step S3, the starting time t of the transient image to be simulated is set. s , end time t e and time resolution Δt, and then use the path matching algorithm to select the light path that matches the set flight time. Using the path matching algorithm to select the light path that matches the set flight time includes:
[0064] According to the set starting time t s With the termination time t e The rendered light path is intercepted to obtain an intercepted light path, and the intercepted light path is matched according to the set total path of photon flight. The length L of the total path of photon flight is:
[0065] L=c×(t e -t s ),
[0066] Among them, c is the speed of light propagation in the scattering medium, and finally the rendering light path equal to the total length of the photon flight path is screened out to obtain the selected light path;
[0067] According to the set time resolution Δt, the selected optical path is sampled in the time domain at intervals of c×Δt, and the number of time domain sampling points N for generating the transient image is:
[0068] N=(t e -t s ) / Δt.
[0069] In step S4, the sample generator generates a sample in the infinite hyperdimensional cube [0,1] according to the sampling theorem. ∞ Generate random points, and the projection of the random number stream in the low-dimensional space evenly covers the entire sampling space;
[0070] The sampling theorem includes but is not limited to stratified sampling, random sampling or uniform sampling.
[0071] Use the generated sampling clusters to perform spatial sampling on the scattering scene to obtain two-dimensional spatial sampling points;
[0072] In step S5, a three-dimensional transient image including spatial domain information and temporal domain information of the scattering scene is generated according to the one-dimensional time domain sampling points and the two-dimensional spatial domain sampling points.
[0073] Compared with two-dimensional intensity images, the three-dimensional transient images synthesized by the present invention can simultaneously provide spatial intensity information and temporal photon flight time information of the scattering scene. Accurate simulation of the temporal flight information of scattered photons helps researchers analyze the physical mechanism of light scattering, expand the existing intensity-based scattering imaging algorithm to the spatiotemporal domain, and propose a general scattering imaging method to improve the imaging capability of existing imaging systems in strong scattering environments.
[0074] The implementation method of the present invention can be based on the existing spatial domain rendering platform, adding the temporal domain rendering method as described in steps S1-S3; and according to the steps S1-S5, directly and synchronously rendering the spatial domain and temporal domain images of the scene.
[0075] The present invention also provides a transient image application method, which uses any of the transient image simulation methods described above to generate a three-dimensional transient image.
[0076] As shown in FIG3(a), it is a schematic diagram of the present invention taking the scattering scene shown in FIG2(b) as an example to simulate and build a scattering scene. The detector and the pulse light source are located on the same side of the scattering medium to form a reflective imaging scene. The target object is a vase with a Lambertian surface, which consists of a concave bottleneck and a convex bottle body, and is located on the other side of the scattering medium. The distance between the vase and the front surface of the scattering medium (i.e., the side close to the pulse light source and the detector) is 30 cm, and the detector and the pulse light source are at the same position, and the distance between the vase and the front surface of the scattering medium is 3 cm.
[0077] As shown in FIG. 3( b ), it is a three-dimensional transient image τ(x, y, t) in a scattering scene generated by simulation according to the present invention.
[0078] As shown in FIG3(c), the time domain transient curve τ(x0, y0, t) is obtained by selecting a point (x0, y0) in the spatial domain of FIG3(b).
[0079] From the curve shown in Figure 3(c), it can be seen that the peak at t = 0.2 ns represents the photons emitted by the pulse light source and reflected by the front surface of the scattering medium and directly entering the detector. The total length of its flight path is 0.2× 10 -9 s×3×10 8 m / s=0.06m, which is exactly the sum of the distance from the light source to the front surface of the scattering medium and the distance from the front surface of the scattering medium to the detector, proving the accuracy of the simulation.
[0080] In addition, the peak at t = 2.1 ns represents the photons emitted by the pulse light source, diffused through the scattering medium to the target object, and returned from the target object, diffused through the scattering medium and collected by the detector. The total flight path length is 2.1×10 -9 s×3×10 8 m / s=0.63m, which is approximately equal to the sum of the distance from the light source to the target object and the distance from the target object to the detector, which proves the accuracy of the simulation of the present invention.
[0081] An embodiment of the present application also provides a control device, including a processor and a storage medium for storing a computer program; wherein the processor is used to execute at least the method described above when executing the computer program.
[0082] An embodiment of the present application also provides a storage medium for storing a computer program, which at least performs the method described above when executed.
[0083] An embodiment of the present application further provides a processor, which executes a computer program and at least performs the method described above.
[0084] The storage medium may be implemented by any type of volatile or non-volatile storage device, or a combination thereof. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a ferromagnetic random access memory, a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAMEnhanced Synchronous Dynamic Random Access Memory), synchronous link dynamic random access memory (SLDRAM), direct memory bus random access memory (DRRAM). The storage medium described in the embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.
[0085] In the several embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0086] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.
[0087] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0088] A person skilled in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), disks or optical disks, etc. Various media that can store program codes.
[0089] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
[0090] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0091] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0092] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0093] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For those skilled in the art of the present invention, several equivalent substitutions or obvious variations can be made without departing from the concept of the present invention, and the performance or use is the same, which should be regarded as belonging to the protection scope of the present invention.
Claims
1. A scattering transient image simulation method, characterized in that: The steps include: S1: Simulate and build a scattering scene, where the scattering scene is a transmission imaging scene or a reflection imaging scene; the scattering scene includes a scattering medium, a target object, a light source, and a detector; S2: performing light path rendering on the light transmission process in the scattering scene using a scattering path tracing algorithm; S3: setting the start time, end time and time resolution of the transient image to be simulated, using a path matching algorithm to select a light path that matches the set flight time, and performing time domain sampling on the light path according to the set time resolution to obtain a one-dimensional time domain sampling point; S4: Using a sample generator to perform spatial sampling on the scattering scene to obtain two-dimensional spatial sampling points; S5: generating a three-dimensional transient image including spatial domain information and temporal domain information of the scattering scene according to the one-dimensional time domain sampling points and the two-dimensional spatial domain sampling points; Performing light path rendering on the light transmission process in the scattering scene using a scattering path tracing algorithm includes: The scattering path tracing algorithm is used to randomly track multiple light paths based on the reflection, refraction and scattering characteristics of light; When the light intersects with scattering particles in the scattering scene, adjusting the intensity and propagation direction of the light according to the scattering characteristics of the scattering medium; When the light intersects the target object, adjusting the intensity and propagation direction of the light according to a distribution function that can characterize the reflectivity or transmittance of the surface of the target object; After adjusting the intensity and propagation direction of the light, a complete light path from the tracking start point to the end point is formed, and rendering of all light paths in the scattering scene is completed to obtain a rendered light path; The tracking starting point is a one-way tracking with the detector as the starting point and the light source as the starting point, or a two-way tracking with both the detector and the light source as the starting point; Using the path matching algorithm to select the optical path that matches the set flight time includes: According to the set starting time t s With the termination time t e The rendered light path is intercepted to obtain an intercepted light path, and the intercepted light path is matched according to the set total path of photon flight. The length L of the total path of photon flight is: L=c×(t e -t s ), Among them, c is the speed of light propagation in the scattering medium, and finally the rendering light path equal to the total length of the photon flight path is screened out to obtain the selected light path; According to the set time resolution Δt, the selected optical path is sampled in the time domain at intervals of c×Δt, and the number of time domain sampling points N for generating the transient image is: N=(t e -t s ) / Δt。 2. The transient image simulation method according to claim 1, characterized in that: When the scattering scene is the transmission imaging scene, the light source and the detector are located on both sides of the scattering medium, the target object is located between the scattering medium and the light source, or the target object is located between the scattering medium and the detector, or the target object is located inside the scattering medium; When the scattering scene is the reflective imaging scene, the light source and the detector are located on the same side of the scattering medium, and the target object is located on the other side of the scattering medium or inside the scattering medium.
3. The transient image simulation method according to claim 2, characterized in that: The scattering medium is a surface scattering medium that performs single scattering of light or a volume scattering medium that performs multiple scattering of light; The simulation of the surface scattering medium uses a transmission layer or a reflection layer with negligible thickness, and the scattering characteristics are characterized by transmittance or reflectance; The simulation of the volume scattering medium uses a scattering layer with a certain thickness, wherein the scattering layer contains randomly distributed scattering particles, and the scattering characteristics are characterized by a scattering coefficient, an absorption coefficient and a phase function.
4. The transient image simulation method according to claim 3, characterized in that: The simulation of the target object characteristics includes: The bidirectional reflection distribution function or the bidirectional transmission distribution function is used to characterize the surface reflectivity or the surface transmittance of the target object.
5. The transient image simulation method according to claim 1, characterized in that , the sample generator is based on the sampling theorem in the infinite hyperdimensional cube [0,1] ∞ Generate random points, and the projection of the random number stream in the low-dimensional space evenly covers the entire sampling space; The sampling theorem includes stratified sampling, random sampling or uniform sampling.
6. A transient image application method, characterized in that: A three-dimensional transient image is generated by using the transient image simulation method as described in any one of claims 1 to 5.
7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Moving object transmission scattering layer imaging model, tracking method and storage medium
CN112634323A
Bidirectional point distribution functions for rendering granular media
US20140267275A1
