A monte carlo-based underwater target active imaging simulation method, device and medium
By using the Monte Carlo method to simulate underwater target active imaging, the two-way coupling problem of the light source to target and back receiving optical system in underwater imaging systems is solved, improving image quality and optimizing the use of computing resources. It is applicable to the design and parameter analysis of underwater active imaging systems.
Patent Information
- Application Number
- CN202611381655.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-08
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2046-09-08
AI Technical Summary
Existing underwater active optical imaging systems struggle to accurately simulate the two-way coupling process from the active light source to the target and back to the receiving optical system under complex water conditions. This results in reduced image brightness, blurred edges, color shifts, and decreased contrast. Furthermore, large-scale photonic simulations consume significant computational resources.
An underwater target active imaging simulation method based on the Monte Carlo method is adopted. By setting a three-dimensional coordinate system and water parameters, the propagation process of illumination photons and target reflected photons is simulated. Combined with ray tracing of the receiving optical system, the superposition of the energy distribution of target reflected photons and the energy distribution of backscattered photons is realized.
By connecting active illumination propagation, target information injection, reflected photon propagation, and backscatter synthesis within a unified coordinate and energy framework, imaging quality is improved, computational resource consumption is reduced, and the effects of illumination non-uniformity and water propagation loss are reflected.
Smart Images

Figure CN122904545B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of underwater active optical imaging simulation technology, and in particular to an underwater target active imaging simulation method, device and medium based on Monte Carlo. Background Technology
[0002] Underwater active optical imaging systems (AIOs) emit illumination light towards a target area and use a receiving optical system to collect the reflected light to form an image. Compared to the air environment, dissolved substances, suspended particles, and microorganisms in water significantly absorb and scatter light, causing the illumination light to attenuate and expand spatially before reaching the target. Furthermore, the reflected light from the target continues to be affected by absorption and multiple scattering as it returns to the receiver, resulting in reduced image brightness, blurred edges, color shifts, and decreased contrast.
[0003] Meanwhile, some of the active illumination light is scattered back towards the receiver by water particles before reaching the target, forming a backscattered background. This background increases the brightness of the sensor image, masking the weak reflection signal of the target, and is a significant factor limiting the underwater active imaging range and image quality. The spatial distribution and intensity of backscattering are influenced by factors such as the inherent optical properties of the water, the emission range of the light source, the propagation distance, the receiver aperture, the field of view, and the sensor position, making it difficult to accurately describe by simply superimposing uniform noise.
[0004] Monte Carlo photon transport methods can statistically simulate the propagation of a large number of photons in a participating medium by randomly sampling the photon's motion step size, scattering angle, and azimuth angle, making them suitable for analyzing light field distribution under complex water conditions. However, existing simulation methods typically only simulate the single-path propagation of illumination light, target self-emission imaging, or a single backscattering process, lacking a two-way coupling model from the active light source to the target and back to the receiving optical system and sensor. Some methods directly equate the target image to a self-emitting surface source with fixed brightness, without considering the actual illumination energy received by the target and its spatial inhomogeneity, thus failing to accurately reflect the impact of the light source's illumination range and water propagation losses on the target's reflected photon source.
[0005] Furthermore, if the forward imaging component and the backscattering component use different spatial coordinate ranges, center positions, or grid resolutions, direct superposition can easily lead to scale inconsistencies and incomparable energies. Large-scale photon simulations also generate high memory and GPU memory usage; generating all reflected photons at once can easily exceed the storage capacity of computing devices. Therefore, a method for active underwater target imaging simulation that can connect active illumination propagation, target information injection, reflected photon propagation, lens and aperture tracking, sensor reconstruction, and backscattering synthesis within a unified coordinate and energy framework, and is suitable for large-scale batch parallel computation of photons, is needed. Summary of the Invention
[0006] To address the aforementioned technical problems, this application provides a Monte Carlo-based active imaging simulation method, device, and medium for underwater targets.
[0007] A first aspect of this application provides a Monte Carlo-based active imaging simulation method for underwater targets, the method comprising the following steps: Step S1: Set up a three-dimensional rectangular coordinate system and construct an underwater target active imaging simulation scene; set the position coordinates of the target plane center. The position coordinates of the center of the receiving lens and the position coordinates of the center of the detection plane Set water body parameters, including the water body's absorption coefficient, scattering coefficient, attenuation coefficient, and scattering asymmetry factor. Set the initial state of the illumination photons emitted by the active light source, and construct the active light source emitter, including the initial position of the illumination photons emitted by the active light source. Initial direction of motion Initial weights and color channels Constructing a receiving optical system, including setting the refractive index of the receiving lens. Front surface curvature radius , radius of curvature of the back surface Lens thickness Light transmission diameter And the spatial dimensions and pixel resolution of the detection plane; Step S2: Based on the initial state of the illumination photons emitted by the active light source, emit photons and determine the motion position of the illumination photons during their propagation in the water body using the Monte Carlo method. , direction vector of motion stride length and weight The illumination photons are traced to simulate the absorption and scattering processes that occur when they interact with molecules and suspended particles in the water. The position, color channel, and weighted energy information of the photons arriving at the target plane are statistically analyzed to obtain the illumination energy distribution on the target plane. and the energy distribution of backscattered photons formed by water scattering. ; Step S3, transfer the target image Mapped to the target plane, based on the target image The grayscale value or color channel value of each pixel determines the target reflectivity at the corresponding location on the target plane. And combined with the illumination energy distribution of the target plane The initial position, initial reflection direction, initial weight, and color channel of the target reflected photon are set. Based on the Monte Carlo method, the motion position, motion direction, motion step size, and weight of the target reflected photon during its transmission in the water are tracked to simulate the absorption and scattering process of the target reflected photon in the water, and the target reflected photon reaching the effective light-passing area of the receiving lens is counted. Step S4: Calculate the coordinates of the intersection point between the target reflected photon and the front surface of the lens; perform ray tracing on the process of the target reflected photon passing through the receiving optical system; update the motion direction of the photon after refraction by the lens; calculate the coordinates of the intersection point between the photon emitted from the lens and the detection plane. ; Step S5: Set the detection plane behind the receiving lens and obtain the intersection point coordinates. Mapping the data to pixels on the detector plane, we statistically analyze the position information, color channel information, and weighted energy information of the photons received by each pixel to obtain the energy distribution of the photons reflected from the target. ; Step S6: Distribute the energy of the photons reflected from the target. Energy distribution of backscattered photons in water Superimpose the data to obtain the energy distribution received on the probe plane. .
[0008] In some embodiments of this application, step S2 specifically includes the following steps: Step S21, based on the attenuation coefficient corresponding to the current color channel of the illumination photon. Generate interval Uniformly distributed random numbers Step length of a single motion to extract illumination photons ; in, ; Step S22, based on the current position of the illumination photon and the current direction of motion vector Update the position of the next illumination photon event. The absorption weighting method is used to process water absorption and update the weights of illumination photons after a single propagation event. ; in, = ; =
[0009] ; ; ; Indicates the current weight; Indicates single-scatter albedo; like Less than the preset threshold Then, Russian roulette is used to determine whether the photon continues to propagate; if Then retain the photon and update its weight to... ;like If the photon is not emitted, then the emission is terminated; where, Indicates the probability of photon survival; This indicates the generation of uniformly random numbers; Step S23: Generate uniform random numbers based on the Henja-Greenstein scattering phase function. and And calculate the scattering zenith angle. and scattering azimuth angle ; ; ; in, It is the scattering asymmetry factor; Step S24, based on the obtained scattering zenith angle and scattering azimuth angle Update the photon motion direction vector ; ; Step S25: When the positions of two adjacent illumination photons cross the target plane, calculate the intersection point between the illumination photon and the target plane. And mapped to the target planar mesh The number of incident photons is accumulated according to the color channel. Illumination energy distribution on the target plane When a photon undergoes at least one scattering, its motion direction is towards the receiver, and it crosses a preset backscattering receiving plane, it is mapped onto a backscattering grid. The cumulative number of backscattered photons and the energy distribution of backscattered photons ; ; ; in, To fall into the target plane grid And it belongs to the set of photons in color channel C; To fall into the backscattering grid And it belongs to the set of photons in color channel C; This indicates the current weight of the illumination photons as they propagate through the water.
[0010] In some embodiments of this application, step S3 specifically includes the following steps: Step S31, Read the target image The target image is then normalized to the pixel values of each pixel to obtain the target surface reflectance per pixel and per color channel. ; ; in, The maximum allowed pixel value for the target image; Step S32, transfer the target image to the first... line, number Column pixels mapped to the 3D position Pij on the target plane ; Step S33, based on the number of incident photons on the target plane Calculate the number of reflected photons generated by each target pixel based on the target reflectivity: ; Step S34, with the target plane position As the initial position of the target reflected photon, photons are repeatedly generated according to the number of target reflected photons in the corresponding color channel; Step S35: For each target reflected photon, sample points within the effective aperture plane of the receiving lens. ,set up and The sampling radius is a uniformly random number that is independent of each other. and azimuth satisfy: ; in, Indicates the diameter of the receiving lens; Lens aperture sampling points It can be represented as: ; With target pixel position Pointing to the target point The unit vector is used as the initial reflection direction vector of the target reflected photon. ; ; Step S36: Based on the initial position and initial reflection direction vector of the target reflected photon, update the position of the next target reflected photon event and the weight of the target reflected photon after one propagation event; Step S37: When the positions of two adjacent reflected photons from the target cross the central plane of the receiving lens, calculate the intersection point of the photon trajectory and the central plane of the receiving lens. When the intersection The radial distance to the center of the receiving lens satisfies At that time, the photon is identified as the photon that has entered the effective light-passing area of the receiving lens.
[0011] In some embodiments of this application, constructing the receiving optical system specifically includes: The front and rear surfaces of the receiving lens are constructed using two spherical surfaces, respectively, with the coordinates of the centers of the front and rear surfaces being respectively... and The radii of curvature are respectively The refractive index of the receiving lens is The lens thickness is The diameter of the light transmission is A field stop plane and at least one detection plane are set behind the lens, and the center coordinates of the field stop, the aperture of the field stop, the center coordinates of the detection plane, the physical dimensions, and the pixel resolution are set; the front surface and the rear surface of the lens respectively satisfy: ; .
[0012] In some embodiments of this application, step S4 specifically includes the following steps: Step S41: Obtain the propagation path of the target reflected photon in the receiving lens and the spherical equations of the front and rear surfaces of the receiving lens, and solve for the intersection parameters of the target reflected photon and the front surface of the receiving lens. By selecting the positive real root that satisfies the propagation direction and is closest to the current photon position, the coordinates of the intersection point between the target reflected photon and the front surface of the receiving lens are obtained. ; Step S42, based on the coordinates of the intersection point between the target reflected photon and the front surface of the receiving lens. With the center of the ball Calculate the unit normal vector at the intersection point. ; ; Step S43, based on the incident direction of the target reflected photon Interface normal vector Refractive index of receiving lens The refraction direction of the target reflected photon is calculated using Snell's law in vector form. ; ; ; ; in, Indicates the refractive index of the receiving lens; Angle of incidence; like The direction of refraction of the photons reflected from the target will then be determined. Normalized and used as the direction vector of motion after refraction; Step S44: Based on the motion direction vector after refraction, determine whether the intersection point of the target reflected photon and the field stop plane is located within the aperture of the aperture; for photons passing through the aperture, calculate the coordinates of the intersection point with the detection plane, and record the intersection point coordinates, color channel and remaining weight.
[0013] In some embodiments of this application, step S5 specifically includes the following steps: Step S51: Based on the physical width, physical height, center coordinates, and pixel resolution of the detection plane, map the intersection coordinates of each effective photon passing through the aperture with the detection plane to continuous pixel coordinates. ; ; in, These are the x-coordinate and y-coordinate of the center of the probe plane, respectively; , These are the x and y coordinates of the photon hitting the detection plane, respectively. These are the physical width and height of the detection plane, respectively. , These represent the horizontal and vertical pixel resolutions on the detection plane, respectively. Step S52, based on continuous pixel coordinates Relative to the center positions of the four adjacent pixels, a bilinear allocation method is used to distribute photon weights to the four adjacent pixels, and the target reflected photon energy distribution is obtained by accumulating according to the color channels. .
[0014] In some embodiments of this application, in step S6, Based on the physical dimensions, center coordinates, and pixel resolution of the detection plane, the backscattered energy distribution obtained in step S2 is... Resample to a spatial grid with the same energy distribution of the photons reflected from the target; Obtain the energy distribution received on the probe plane : ; in, This is the backscattering intensity adjustment coefficient, used to characterize active illumination power, receiver gain, exposure time, or model calibration coefficients.
[0015] In some embodiments of this application, step S1, setting the initial state of the illumination photons emitted by the active light source, specifically includes: Set the position coordinates of the center of the active light source The light source emission area is direction and Dimensions of direction and generate a quantity of within the launch area. The initial position of the illuminating photon; Set the initial direction of motion of the illuminating photons according to the type of light source; The initial weights, color channels, scattering times, and survival states of each illumination photon are set to form an initial state set of illumination photons.
[0016] A second aspect of this application provides an underwater target active imaging simulation device, the device comprising at least one processor and at least one memory, the processor and the memory being coupled together; the memory storing a computer execution program of the Monte Carlo-based underwater target active imaging simulation method as described above; when the processor executes the computer execution program stored in the memory, the processor can execute the Monte Carlo-based underwater target active imaging simulation method.
[0017] A third aspect of this application provides a computer-readable medium storing a computer program that, when executed by a processor, implements the Monte Carlo-based active imaging simulation method for underwater targets as described above.
[0018] Compared with the prior art, the present invention has the following advantages and beneficial effects: 1) Establish a two-way coupled imaging link from the active light source to the target, from the target to the receiving lens, and from the receiving lens to the sensor. The source of the photons reflected by the target is determined by the active illumination light field actually received by the target and the target reflectivity, which can reflect the influence of illumination non-uniformity and water propagation loss on the imaging results. 2) During the same Monte Carlo propagation process, the forward illumination field of the target plane, the backscattered light field of the receiver, the forward imaging energy of the target, and the final synthesized image are obtained separately, which makes it easier to distinguish the contribution of the effective target signal and the background of medium scattering. 3) By unifying the physical dimensions, center coordinates, and grid resolution of the target plane, backscatter receiving surface, and detector plane, the backscattering components can be accurately aligned with the forward imaging components of the target, reducing scale mismatch and energy incomparability issues. 4) Taking into account water absorption, scattering, target reflection, lens refraction, field-of-view cutoff, and sensor energy accumulation, this method has a clearer physical meaning compared to directly adding empirical noise to a clear image; 5) Water parameters, light source type, illumination range, propagation distance, target reflectivity, lens parameters, aperture parameters, detection plane position, photon count and backscattering intensity can all be configured, which can be used for underwater active imaging system design, parameter influence analysis, limit detection distance research and image restoration algorithm verification.
[0019] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and do not limit this document. Attached Figure Description
[0020] The accompanying drawings, which form part of this document, are used to provide a further understanding of the document. The illustrative embodiments and descriptions herein are used to explain the document and do not constitute an undue limitation thereof. In the drawings: Figure 1 This is a flowchart of the overall process of an active underwater target imaging simulation method based on Monte Carlo provided in an exemplary embodiment of this application; Figure 2 This is a schematic diagram illustrating the principle of an underwater target active imaging simulation method based on Monte Carlo provided in an exemplary embodiment of this application; Figure 3 This is a schematic diagram of the propagation path of a single photon in active illumination imaging provided by an exemplary embodiment of this application; Figure 4 This is a schematic diagram of the physical process of a parallel beam illuminating a receiving surface directly, provided in an exemplary embodiment of this application. Figure 5 This is a schematic diagram of the coupling between the target plane illumination light field and the target image reflectivity, and the generation of the target reflected photon source, provided in an exemplary embodiment of this application; Figure 6 This is a comparison diagram of the original target image, the simulated image without backscattering, and the simulated image with backscattering provided in an exemplary embodiment of this application; Figure 7 This is a comparison diagram of imaging results with and without backscattering under different water scattering asymmetry factors provided in an exemplary embodiment of this application; Figure 8 This is a comparison diagram of imaging results with and without backscattering under different simulated photon counts provided in an exemplary embodiment of this application; Figure 9 This is a schematic diagram of an underwater target active imaging simulation device provided in an exemplary embodiment of this application. Detailed Implementation
[0021] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. It should be noted that, unless otherwise specified, the embodiments and features in the embodiments of this application can be arbitrarily combined with each other.
[0022] Example 1: An exemplary embodiment of this application provides a Monte Carlo-based active imaging simulation method for underwater targets, such as... Figures 1 to 8 As shown, this method establishes an underwater target active imaging simulation model in four stages: "active light irradiation of the target - injection of target image information - propagation of reflected photons from the target - reconstruction of sensor image". Each stage operates under a unified three-dimensional coordinate system, a unified color channel and a unified photon weighting system, and data is connected through the target surface photon quantity map, target surface energy map, reflected photon batch, lens hit photon set, sensor hit information and backscattering energy map.
[0023] The method includes the following steps: Step S1, set up a three-dimensional rectangular coordinate system, such as... Figure 2 As shown, the Z-axis serves as the main propagation axis of the system. A simulation scenario for active underwater target imaging is constructed by aligning the target plane, lens aperture plane, field stop plane, and detection plane with parallel planes; the coordinates of the target plane's center are then set. The position coordinates of the center of the receiving lens and the position coordinates of the center of the detection plane Set water body parameters, including the water body's absorption coefficient, scattering coefficient, attenuation coefficient, and scattering asymmetry factor. Set the initial state of the illumination photons emitted by the active light source, and construct the active light source emitter, including the initial position of the illumination photons emitted by the active light source. Initial direction of motion Initial weights and color channels Constructing a receiving optical system, including setting the refractive index of the receiving lens. Front surface curvature radius , radius of curvature of the back surface Lens thickness Light transmission diameter And the spatial dimensions and pixel resolution of the detection plane; Active light source center Target plane center Center of receiving lens and the center of the detection plane The position coordinates are represented as follows: ; ; Set the physical width and height of the target plane to be respectively set as and divide it into A spatial grid; the physical width and height of the probe plane are respectively set to... and divided into 1 pixel.
[0024] The inherent optical parameters of the water body are set separately according to wavelength or color channel. For color channel c, the attenuation coefficient of the water body is... and single-scattering albedo They are respectively:
[0025] ; in, This represents the absorption coefficient corresponding to color channel c. The scattering coefficient is... The attenuation coefficient is... This refers to the single-scattering albedo. Specifically, setting the initial state of the illumination photons emitted by the active light source includes: Set the position coordinates of the center of the active light source The light source emission area is direction and Dimensions of direction and generate a quantity of within the launch area. The initial position of the illuminating photon; Set the initial direction of motion of the illuminating photons according to the type of light source; In this application, the active light source can be a parallel light source, a light source with a divergence angle, a Gaussian beam, or a Lambertian light source. Each photon is represented by a state vector, which includes the photon's current position. Current direction vector Current weight Color channels scattering number and survival status ; ; in, This represents the state vector of the k-th photon.
[0026] The initial position of the photon is uniformly sampled within a preset emission area or sampled according to the intensity distribution of the light source, and the initial direction of the photon is determined according to the type of light source.
[0027] For parallel light sources, such as Figure 4 As shown, the initial position of photons is uniformly sampled within a preset rectangular emission area, with the same initial direction; for a light source with a divergence angle, the initial position is determined based on the zenith angle. and azimuth Calculate the initial direction components: ; in, , , These represent the components of the initial direction vector of the photon on the X, Y, and Z axes, respectively.
[0028] For a Lambertian light source, two independent uniform random numbers can be used. and Cosine-weighted sampling is performed on the hemispherical direction, where , ; For a Gaussian beam, the initial position or emission angle of the photons is sampled according to a preset Gaussian distribution. The initial weight of each photon is set to... The color channels are determined based on the proportion of photons or the proportion of spectral energy in the channels.
[0029] The initial weights, color channels, scattering times, and survival states of each illumination photon are set to form an initial state set of illumination photons.
[0030] The construction of a receiving optical system specifically includes: The receiving lens is formed by constructing the front and rear surfaces of the receiving lens using two spherical surfaces, respectively. The coordinates of the centers of the front and rear surfaces of the lens are respectively... and The radii of curvature are respectively The refractive index of the receiving lens is The lens thickness is The diameter of the light transmission is A field stop plane and at least one detection plane are set behind the lens, and the center coordinates of the field stop, the aperture of the field stop, the center coordinates of the detection plane, the physical dimensions, and the pixel resolution are set; the front surface and the rear surface of the lens respectively satisfy: ; .
[0031] Step S2: Based on the initial state of the illumination photons emitted by the active light source, emit photons and determine the motion position of the illumination photons during their propagation in the water body using the Monte Carlo method. , direction vector of motion stride length and weight The illumination photons are traced to simulate the absorption and scattering processes that occur when they interact with molecules and suspended particles in the water. The position, color channel, and weighted energy information of the photons arriving at the target plane are statistically analyzed to obtain the illumination energy distribution on the target plane. and the energy distribution of backscattered photons formed by water scattering. ; In this application, the absorption, scattering, and spatial transport processes of both the illumination photons and the target reflected photons in water are simulated using the Monte Carlo method. Step S2 specifically includes the following steps: Step S21, based on the attenuation coefficient corresponding to the current color channel of the illumination photon. Generate interval Uniformly distributed random numbers Step length of a single motion to extract illumination photons ; in, ; Step S22, based on the current position of the illumination photon and the current direction of motion vector Update the position of the next illumination photon event. The absorption weighting method is used to process water absorption and update the weights of illumination photons after a single propagation event. ; in, = ; =
[0032] ; ; ; Indicates the current weight; Indicates single-scatter albedo; These represent the current positions of the illuminating photons. Components on the X, Y, and Z axes; These represent the current motion direction vectors respectively. Components on the X, Y, and Z axes; These represent the positions of the next illumination photon events. Components on the X, Y, and Z axes; like Less than the preset threshold Then, Russian roulette is used to determine whether the photon continues to propagate; if Then retain the photon and update its weight to... ;like If the photon is not emitted, then the emission is terminated; where, Indicates the probability of photon survival; This indicates the generation of uniformly random numbers; Step S23: Generate uniform random numbers based on the Henja-Greenstein scattering phase function. and And calculate the scattering zenith angle. and scattering azimuth angle ; ; ; in, It is the scattering asymmetry factor; when the scattering asymmetry factor When approaching 0, ;according to , Establish a local scattering coordinate system with the current direction of the photon, complete the transformation from the scattering direction to the global coordinate system, and increase the number of scattering events. .
[0033] Step S24, based on the obtained scattering zenith angle and scattering azimuth angle Update the photon motion direction vector ; ; And ensure that the updated direction vector satisfies the unit length condition: ; in, , , These are the x-axis, y-axis, and z-axis components of the photon direction vector after the next photon event.
[0034] After each photon event, boundary judgment is performed based on the photon's current position, weight, number of scatterings, and survival status. Photons that cross the simulation boundary, reach the target plane along the illumination propagation direction, enter the effective aperture of the receiving lens, fail to pass the field stop, or meet other termination conditions are recorded or terminated.
[0035] Before updating the photon position, retain the previous position. And determine by to Does the line segment cross the target plane? If it crosses the target plane, calculate the intersection point of the target plane based on the intersection parameters of the line segment and the target plane. : ; in, This represents the propagation path parameters from the current position of the photon to the target plane; Represents the z-axis coordinate of the target plane; This represents the z-coordinate of the photon's current position during the k-th event; This represents the component of the photon motion direction vector in the z-direction during the k-th event; Step S25: When the positions of two adjacent illumination photons cross the target plane, calculate the intersection point between the illumination photon and the target plane. And mapped to the target planar mesh The number of incident photons is accumulated according to the color channel. Illumination energy distribution on the target plane When a photon undergoes at least one scattering, its motion direction is towards the receiver, and it crosses a preset backscattering receiving plane, it is mapped onto a backscattering grid. The cumulative number of backscattered photons and the energy distribution of backscattered photons ; ; ; ; ; in, To fall into the target plane grid And it belongs to the set of photons in color channel C; To fall into the backscattering grid And it belongs to the set of photons in color channel C; This indicates the current weight of the illumination photons as they propagate through the water.
[0036] The forward illumination photon count grid, forward illumination energy grid, backscattered photon count grid, and backscattered energy grid are stored separately for each color channel. At the same time, the physical width, physical height, center coordinates, and grid resolution of the target plane and the backscattering receiving surface are also stored, providing a data basis for the subsequent construction of the target reflected photon source and the backscattering geometry alignment.
[0037] Step S3, transfer the target image Mapped to the target plane, based on the target image The grayscale value or color channel value of each pixel determines the target reflectivity at the corresponding location on the target plane. And combined with the illumination energy distribution of the target plane The initial position, initial reflection direction, initial weight, and color channel of the target reflected photon are set. Based on the Monte Carlo method, the motion position, motion direction, motion step size, and weight of the target reflected photon during its transmission in the water are tracked to simulate the absorption and scattering process of the target reflected photon in the water, and the target reflected photon reaching the effective light-passing area of the receiving lens is counted. Step S3 specifically includes the following steps: Step S31, Read the target image The target image is then normalized to the pixel values of each pixel to obtain the target surface reflectance per pixel and per color channel. ; ; in, The maximum allowed pixel value for the target image; when using When using a bit image Pick ; Step S32, transfer the target image to the first... line, number Column pixels mapped to the 3D position Pij on the target plane ;
[0038]
[0039] in, It is the pixel row index; It is a pixel column index; ; It is the physical coordinate of the pixel along the X-axis in three-dimensional space; It is the physical coordinate of the pixel along the Y-axis in three-dimensional space; It is the Z-axis height of the target plane (which is constant); It is the physical width of the target plane; It is the physical height of the target plane; This corresponds to the horizontal pixel resolution of the image; It corresponds to the vertical pixel resolution of the image.
[0040] Step S33, based on the number of incident photons on the target plane Calculate the number of reflected photons generated by each target pixel based on the target reflectivity: ; Alternatively, the number of reflected photons generated per target pixel can be kept constant, while the initial weight of the reflected photons can be set to the product of the incident energy and the target reflectivity: ; When using a fixed number of photons, The reflected photons are distributed proportionally according to the actual number of reflected photons generated at the target spatial sampling point, so that the sum of the weights of each reflected photon within the same spatial sampling point is equal to... Therefore, the target reflected photon source is simultaneously constrained by the target texture, color information, and active illumination spatial distribution, avoiding the direct equivalent of the target to a self-emitting surface source with fixed brightness.
[0041] When the target pixel reflectance is If no active illumination photons are received at the corresponding location, no reflected photons will be generated at that location; when the target pixel has a high reflectivity or a large number of incident photons, more reflected photons will be generated or a higher initial weight will be assigned.
[0042] Step S34, with the target plane position As the initial position of the target reflected photon, photons are repeatedly generated according to the number of target reflected photons in the corresponding color channel; Step S35: For each target reflected photon, sample points within the effective aperture plane of the receiving lens. ,set up and The sampling radius is a uniformly random number that is independent of each other. and azimuth satisfy: ; in, Indicates the diameter of the receiving lens; Let the coordinates of the lens center be... ,but Lens aperture sampling points It can be represented as: ; With the target image line, number Target plane pixel position corresponding to column pixel Pointing to the target point The unit vector is used as the initial reflection direction vector of the target reflected photon. ; ; Based on the number of reflected photons corresponding to each pixel and color channel, first count the total number of photons that need to be generated for a row or a pixel block, then calculate the maximum number of photons per batch based on the preset limit. The process is divided into multiple batches. For each batch, the initial position, initial orientation, weight, color channel, and liveness status of the reflected photons are generated in the central processing unit and transmitted to the graphics processor for parallel execution of Monte Carlo propagation between the target and the lens.
[0043] Step S36: Based on the initial position and initial reflection direction vector of the target reflected photon, update the position of the next target reflected photon event and the weight of the target reflected photon after one propagation event; Specifically, the free path sampling, position update, absorption, scattering, and Russian roulette processing of the target reflected photons are the same as the steps in step S2.
[0044] The reflection direction is extracted based on the Lambert cosine distribution within the hemisphere containing the normal to the target surface, and then random numbers are used. and Calculate the reflected zenith angle and reflection azimuth : ; When sampling is performed in the direction of importance oriented towards the lens aperture instead of direct Lambertian sampling, according to the probability density of the Lambertian physical direction... and actual sampling probability density Correct the weighting of the reflected photons from the target: ; By performing directional sampling and weight correction, the proportion of effective photons entering the receiving lens is increased, while maintaining the consistency of the target reflection energy statistics.
[0045] Step S37: When the positions of two adjacent reflected photons from the target cross the central plane of the receiving lens, calculate the intersection point of the photon trajectory and the central plane of the receiving lens. When the intersection The radial distance to the center of the receiving lens satisfies At that time, the photon is identified as the photon that has entered the effective light-passing area of the receiving lens.
[0046] The intersection of the photon trajectory and the central plane of the receiving lens The calculation method is as follows: When two consecutive positions of the target reflected photon cross the central plane of the receiving lens, calculate the intersection point of the photon trajectory and the central plane of the lens; let the position of the photon before entering the lens be... The direction of movement is The photon propagation path can then be represented as:
[0047] Let the center position of the receiving lens be... The normal vector of the central plane of the lens is Then the central plane of the lens satisfies:
[0048] Substituting the photon propagation path into the equation of the lens's central plane, we can obtain the intersection parameters:
[0049] This gives us the intersection point between the target's reflected photon and the central plane of the lens:
[0050] in, This represents the coordinates of the intersection point of the target reflected photons on the central plane of the receiving lens; Calculate the radial distance between the intersection point and the center of the lens:
[0051] When the following conditions are met:
[0052] The photon is identified as entering the effective light-passing area of the receiving lens; otherwise, the transmission of the photon is terminated.
[0053] Step S4: Calculate the coordinates of the intersection point between the target reflected photon and the front surface of the lens; perform ray tracing on the process of the target reflected photon passing through the receiving optical system; update the motion direction of the photon after refraction by the lens; calculate the coordinates of the intersection point between the photon emitted from the lens and the detection plane. ; Step S4 specifically includes the following steps: Step S41: Obtain the propagation path of the target reflected photon in the receiving lens and the spherical equations of the front and rear surfaces of the receiving lens, and solve for the intersection parameters of the target reflected photon and the front surface of the receiving lens. By selecting the positive real root that satisfies the propagation direction and is closest to the current photon position, the coordinates of the intersection point between the target reflected photon and the front surface of the receiving lens are obtained. ; The position of the photon before entering the lens is The direction of movement is Then the photon's transmission path Represented as: ;
[0054] in, Let t be the position of the photon. The initial position of the photon; The direction vector of the photon; For path parameters; The coordinates of the photon's position as it moves along the propagation path (any position on the photon's trajectory); These are the initial position coordinates; , , These are the direction vector components.
[0055] To determine whether a photon can enter the receiving lens, the photon propagation trajectory is solved simultaneously with the spherical equation of the front surface of the receiving lens. The front and rear surfaces of the lens are represented by spherical equations respectively. For a point with a center of curvature... , radius of curvature For any lens surface, its equation is: ; in, , These are the coordinates of the center of curvature on the X, Y, and Z axes, respectively. , , The coordinates are the points where the photon intersects the front surface of the lens as it travels along the propagation path.
[0056] Combining the equations for the light rays and the sphere, we obtain a quadratic equation for the parameter t: ; in, = , =2 ·( ), = ²; Select the positive real root that satisfies the propagation direction and is closest to the current photon position to obtain the intersection point of the photon and the lens surface. If the discriminant is less than If so, it is assumed that the photon does not intersect with the surface.
[0057] Step S42, based on the coordinates of the intersection point between the target reflected photon and the front surface of the receiving lens. With the center of the ball Calculate the unit normal vector at the intersection point. ; ; Step S43, based on the incident direction of the target reflected photon Interface normal vector Refractive index of receiving lens The refraction direction of the target reflected photon is calculated using Snell's law in vector form. ; ; ; ; in, Indicates the refractive index of the receiving lens; Angle of incidence; when If total internal reflection occurs, the photon either does not enter the next medium or continues to be tracked along the direction of reflection; if... The direction of refraction of the photons reflected from the target will then be determined. Normalized and used as the direction vector of motion after refraction; the above calculations are performed at the two interfaces where the photon enters the receiving lens in the water and where the receiving lens enters the water.
[0058] If reflection loss at the lens interface is considered, then according to the incident angle and angle of refraction Calculate the Fresnel reflectance of unpolarized light: ; The photon's weight is updated after passing through the interface. ; After the photon completes the intersection and refraction calculations of the incident and exit surfaces of the lens in sequence, it intersects with the field stop plane; photons that do not enter the effective aperture of the field stop terminate, while photons that pass through the field stop continue to propagate to one or more detection planes.
[0059] Step S44: Based on the motion direction vector after refraction, determine whether the intersection point of the target reflected photon and the field stop plane is located within the aperture of the aperture; for photons passing through the aperture, calculate the coordinates of the intersection point with the detection plane, and record the intersection point coordinates, color channel and remaining weight.
[0060] Let the center of the aperture be The aperture radius is The intersection of the photon and the aperture plane is Then the condition for passing through the aperture is:
[0061] in, The x-coordinate of the intersection point of the photon and the aperture plane; The ordinate of the point where the photon intersects the aperture plane; The x-coordinate of the center of the aperture is The vertical coordinate is the center of the optical cable.
[0062] Photons that do not pass through the field stop are discarded; photons that pass through the field stop continue to intersect with the detector plane. Let the detector plane be... Then the intersection parameters of the photon and the detector plane and the coordinates of the intersection point for: ; Step S5: Set the detection plane behind the receiving lens and obtain the intersection point coordinates. Mapping the data to pixels on the detector plane, we statistically analyze the position information, color channel information, and weighted energy information of the photons received by each pixel to obtain the energy distribution of the photons reflected from the target. ; Step S5 specifically includes the following steps: Step S51: Based on the physical width, physical height, center coordinates, and pixel resolution of the detection plane, map the intersection coordinates of each effective photon passing through the aperture with the detection plane to continuous pixel coordinates. ; ; in, These are the x-coordinate and y-coordinate of the center of the probe plane, respectively; , These are the x and y coordinates of the photon hitting the detection plane, respectively. These are the physical width and height of the detection plane, respectively. , These represent the horizontal and vertical pixel resolutions on the detection plane, respectively. Step S52, based on continuous pixel coordinates Relative to the center positions of the four adjacent pixels, a bilinear allocation method is used to distribute photon weights to the four adjacent pixels, and the target reflected photon energy distribution is obtained by accumulating according to the color channels. .
[0063] To reduce the steps and holes caused by nearest neighbor allocation, photon weights are bilinearly allocated based on the distances between continuous pixel coordinates and the centers of four adjacent pixels; let... Then four adjacent pixels , , , The obtained weights are as follows: ; ; By accumulating photons from different color channels and different batches, the forward imaging energy of the target, excluding backscattering, is obtained. .
[0064] Step S6: Distribute the energy of the photons reflected from the target. Energy distribution of backscattered photons in water Superimpose the data to obtain the energy distribution received on the probe plane. .
[0065] In step S6 Based on the physical dimensions, center coordinates, and pixel resolution of the detection plane, the backscattered energy distribution obtained in step S2 is... Resample to the same spatial grid as the energy distribution of the reflected photons from the target; for the center of each pixel on the probe plane, calculate its corresponding continuous coordinates in the backscattered energy map, and use bilinear interpolation to obtain the aligned backscattered energy.
[0066] Obtain the energy distribution received on the probe plane : ; in, This is the backscattering intensity adjustment coefficient, used to characterize active illumination power, receiver gain, exposure time, or model calibration coefficients.
[0067] To maintain comparability of image brightness before and after backscattering, the same energy reference value is preferably used for both the backscattered and non-backscattered images. Normalization can be performed; alternatively, the preset percentile energy of each color channel can be used as a reference value to reduce the impact of a small number of high-energy pixels on the display dynamic range.
[0068] Reference value The maximum value of the synthesis energy can be taken, or the 1st value of the synthesis energy can be taken. percentile : ; ; Normalized energy Image values mapped to 0 to 255; image pixel values when using A-law dynamic range compression. It can be represented as: ; in, The dynamic range compression factor is used; after the energy of each color channel is accumulated, normalized, dynamically range compressed and quantized, the simulation image without backscattering and the simulation image of active imaging of underwater targets including backscattering background are obtained.
[0069] During the simulation, the target surface photon quantity and energy maps, backscattered photon quantity and energy maps, target reflected photon source distribution, effective photon set entering the lens, photon hit coordinates and weights of each detection plane, forward imaging energy map, backscattering alignment energy map, and the final image are saved respectively during the active illumination phase. By changing at least one of the following: water absorption coefficient, scattering coefficient, scattering asymmetry factor, light source cross-sectional size, light source divergence angle, target reflectivity, propagation distance, lens focal length, field of view, aperture, detection plane position, photon quantity, and backscattering intensity adjustment coefficient, simulation results under different imaging conditions can be obtained in batches for evaluating image contrast, sharpness, color shift, background brightness, received energy, and limit detection distance.
[0070] like Figure 5 The diagram illustrates the coupling between the target plane illumination light field and the target image reflectivity, as well as the generation of the target reflected photon source. Figure 5 As can be seen, this method first obtains the spatial energy distribution of active illumination light on the target plane using the Monte Carlo photon transport model, and then couples the reflectivity information corresponding to each pixel of the target image with the illumination energy of the target plane to generate a target reflection photon source containing target texture information and illumination spatial distribution information. Compared with methods that directly use the target image as a fixed brightness surface source, the target reflection photon source generated by this method is simultaneously constrained by the active illumination propagation process and the target reflection characteristics, and can reflect the influence of water propagation loss and illumination inhomogeneity on the target imaging results.
[0071] like Figure 6 The image shown is a comparison of the original target image, the simulated image without backscattering, and the simulated image with backscattering. Figure 6 It can be seen that, without considering the effect of backscattering, the simulated image can well preserve the basic structure and texture information of the target, indicating that the established target reflected photon propagation model and receiving optical system model can effectively simulate the target echo imaging process. When the effect of backscattering is added, because some of the active illumination light is scattered by water particles during propagation and enters the receiving direction, additional background energy is formed on the detection plane, increasing the background brightness of the image, reducing the contrast between the target area and the background area, and affecting the imaging quality. This result verifies that the proposed method can simultaneously simulate the effective echo signal of the target and the water scattering background, and can more realistically describe the underwater active imaging process.
[0072] like Figure 7 The image shows a comparison of imaging results with and without backscattering under different water scattering asymmetry factors. Figure 7 It can be seen that as the water scattering asymmetry factor changes, the distribution of photon scattering directions alters, leading to changes in the number of effective photons reaching the receiver and the backscattered background energy. When the scattering asymmetry factor is large, scattered photons tend to maintain their original propagation direction, retaining more effective photons in the target echo and resulting in higher energy in the target area of the image. However, considering the effect of backscattering, scattered photons form background energy at the receiver, reducing the contrast between the target and the background. These results demonstrate that this method can effectively reflect the impact of different water scattering characteristics on active imaging results.
[0073] like Figure 8 The image shows a comparison of imaging results with and without backscattering under different simulated photon counts. Figure 8 It can be seen that when the number of simulated photons is small, due to the Monte Carlo method's reliance on random sampling and statistical photon propagation, the insufficient number of effective photons at the receiver leads to statistical fluctuations in the image and poor energy distribution stability in the target area. As the number of simulated photons increases, the statistical number of received photons improves, random errors decrease, the grayscale distribution in the target area becomes more stable, and image quality gradually improves. Furthermore, with the addition of backscattering, the statistical results of water scattering background become more stable with increasing simulated photons, more accurately reflecting image degradation characteristics in the actual underwater environment. These results verify that the number of simulated photons has a significant impact on the stability of Monte Carlo imaging results.
[0074] Example 2: This invention also provides an underwater target active imaging simulation device, comprising at least one processor and at least one memory, the processor and memory being coupled together; the memory stores a computer-executable program for the Monte Carlo-based underwater target active imaging simulation method as described in Embodiment 1; when the processor executes the computer-executable program stored in the memory, it can execute the Monte Carlo-based underwater target active imaging simulation method. The internal bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be categorized as an address bus, data bus, control bus, etc. For ease of illustration, the buses in the accompanying drawings are not limited to a single bus or a single type of bus. The memory may include high-speed RAM, and may also include non-volatile memory (NVM), such as at least one disk storage device, and may also be a USB flash drive, portable hard drive, read-only memory, disk, or optical disk, etc.
[0075] The device can be provided as a terminal, server, or other form of device.
[0076] Figure 9 This is a block diagram illustrating an illustrative device. The device may include one or more of the following components: a processing component, a memory, a power supply component, an input / output (I / O) interface, a sensor component, and a communication component. The processing component typically controls the overall operation of the electronic device and may include one or more processors to execute instructions to perform all or part of the steps of the methods described above. Furthermore, the processing component may include one or more modules to facilitate interaction between the processing component and other components.
[0077] Memory is configured to store various types of data to support the operation of electronic devices. Memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0078] In an exemplary embodiment, the electronic device may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0079] The present invention also provides a computer-readable medium storing a computer program, characterized in that the computer program, when executed by a processor, implements the Monte Carlo-based active imaging simulation method for underwater targets as described in Embodiment 1.
[0080] In this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that an article or device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such an article or device. Without further limitation, an element defined by the phrase "comprising..." does not exclude the presence of other identical elements in the article or device that includes said element.
[0081] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.
[0082] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if these modifications and variations fall within the scope of the claims of this application and their equivalents, the intent of this application also includes these modifications and variations.
Claims
1. A Monte Carlo-based active imaging simulation method for underwater targets, characterized in that, The method includes the following steps: Step S1: Set up a three-dimensional rectangular coordinate system and construct an underwater target active imaging simulation scene; set the position coordinates of the target plane center. The position coordinates of the center of the receiving lens and the position coordinates of the center of the detection plane ; Define the water body parameters, including the water body's absorption coefficient, scattering coefficient, attenuation coefficient, and scattering asymmetry factor. ; Define the initial state of the illumination photons emitted by the active light source, and construct the active light source emitter, including the initial position of the illumination photons emitted by the active light source. Initial direction of motion Initial weights and color channels Constructing a receiving optical system, including setting the refractive index of the receiving lens. Front surface curvature radius , radius of curvature of the back surface Lens thickness Light transmission diameter And the spatial dimensions and pixel resolution of the detection plane; Step S2: Based on the initial state of the illumination photons emitted by the active light source, emit photons and determine the motion position of the illumination photons during their propagation in the water body using the Monte Carlo method. , direction vector of motion stride length and weight The illumination photons are traced to simulate the absorption and scattering processes that occur when they interact with molecules and suspended particles in the water. The position, color channel, and weighted energy information of the photons arriving at the target plane are statistically analyzed to obtain the illumination energy distribution on the target plane. and the energy distribution of backscattered photons formed by water scattering. ; Step S3, transfer the target image Mapped to the target plane, based on the target image The grayscale value or color channel value of each pixel determines the target reflectivity at the corresponding location on the target plane. And combined with the illumination energy distribution of the target plane The initial position, initial reflection direction, initial weight, and color channel of the target reflected photon are set. Based on the Monte Carlo method, the motion position, motion direction, motion step size, and weight of the target reflected photon during its transmission in the water are tracked to simulate the absorption and scattering process of the target reflected photon in the water, and the target reflected photon reaching the effective light-passing area of the receiving lens is counted. Step S4: Calculate the coordinates of the intersection point between the target reflected photon and the front surface of the lens; perform ray tracing on the process of the target reflected photon passing through the receiving optical system; update the motion direction of the photon after refraction by the lens; calculate the coordinates of the intersection point between the photon emitted from the lens and the detection plane. ; Step S5: Set the detection plane behind the receiving lens and obtain the intersection point coordinates. Mapping the data to pixels on the detector plane, we statistically analyze the position information, color channel information, and weighted energy information of the photons received by each pixel to obtain the energy distribution of the photons reflected from the target. ; Step S6: Distribute the energy of the photons reflected from the target. Energy distribution of backscattered photons in water Superimpose the data to obtain the energy distribution received on the probe plane. .
2. The underwater target active imaging simulation method based on Monte Carlo as described in claim 1, characterized in that, Step S2 specifically includes the following steps: Step S21, based on the attenuation coefficient corresponding to the current color channel of the illumination photon. Generate interval Uniformly distributed random numbers Step length of a single motion to extract illumination photons ; in, ; Step S22, based on the current position of the illumination photon and the current direction of motion vector Update the position of the next illumination photon event. The absorption weighting method is used to process water absorption and update the weights of illumination photons after a single propagation event. ; in, = ; = ; ; ; Indicates the current weight; Indicates single-scatter albedo; like Less than the preset threshold Then, Russian roulette is used to determine whether the photon continues to propagate; if Then retain the photon and update its weight to... ;like If the photon is not emitted, then the emission is terminated; where, Indicates the probability of photon survival; This indicates the generation of uniformly random numbers; Step S23: Generate uniform random numbers based on the Henja-Greenstein scattering phase function. and And calculate the scattering zenith angle. and scattering azimuth angle ; ; ; in, It is the scattering asymmetry factor; Step S24, based on the obtained scattering zenith angle and scattering azimuth angle Update the photon motion direction vector ; ; Step S25: When the positions of two adjacent illumination photons cross the target plane, calculate the intersection point between the illumination photon and the target plane. And mapped to the target planar mesh The number of incident photons is accumulated according to the color channel. Illumination energy distribution on the target plane When a photon undergoes at least one scattering, its motion direction is towards the receiver, and it crosses a preset backscattering receiving plane, it is mapped onto a backscattering grid. The cumulative number of backscattered photons and the energy distribution of backscattered photons ; ; ; in, To fall into the target plane grid And it belongs to the set of photons in color channel C; To fall into the backscattering grid And it belongs to the set of photons in color channel C; This indicates the current weight of the illumination photons as they propagate through the water.
3. The underwater target active imaging simulation method based on Monte Carlo as described in claim 1, characterized in that, Step S3 specifically includes the following steps: Step S31, Read the target image The target image is then normalized to the pixel values of each pixel to obtain the target surface reflectance per pixel and per color channel. ; ; in, The maximum allowed pixel value for the target image; Step S32, transfer the target image to the first... line, number Column pixels mapped to the 3D position Pij on the target plane ; Step S33, based on the number of incident photons on the target plane Calculate the number of reflected photons generated by each target pixel based on the target reflectivity: ; Step S34, with the target plane position As the initial position of the target reflected photon, photons are repeatedly generated according to the number of target reflected photons in the corresponding color channel; Step S35: For each target reflected photon, sample points within the effective aperture plane of the receiving lens. ,set up and The sampling radius is a uniformly random number that is independent of each other. and azimuth satisfy: ; in, Indicates the diameter of the receiving lens; Lens aperture sampling points It can be represented as: ; With target pixel position Point to target point The unit vector is used as the initial reflection direction vector of the target reflected photon. ; ; Step S36: Based on the initial position and initial reflection direction vector of the target reflected photon, update the position of the next target reflected photon event and the weight of the target reflected photon after one propagation event; Step S37: When the positions of two adjacent reflected photons from the target cross the central plane of the receiving lens, calculate the intersection point of the photon trajectory and the central plane of the receiving lens. When the intersection The radial distance to the center of the receiving lens satisfies At that time, the photon is identified as the photon that has entered the effective light-passing area of the receiving lens.
4. The Monte Carlo-based active imaging simulation method for underwater targets according to claim 1, characterized in that, The construction of a receiving optical system specifically includes: The front and rear surfaces of the receiving lens are constructed using two spherical surfaces, respectively, with the coordinates of the centers of the front and rear surfaces being respectively... and The radii of curvature are respectively The refractive index of the receiving lens is The lens thickness is The diameter of the light transmission is A field stop plane and at least one detection plane are set behind the lens, and the center coordinates of the field stop, the aperture of the field stop, the center coordinates of the detection plane, the physical dimensions, and the pixel resolution are set; the front surface and the rear surface of the lens respectively satisfy: ; 。 5. The Monte Carlo-based active imaging simulation method for underwater targets according to claim 1, characterized in that, Step S4 specifically includes the following steps: Step S41: Obtain the propagation path of the target reflected photon in the receiving lens and the spherical equations of the front and rear surfaces of the receiving lens, and solve for the intersection parameters of the target reflected photon and the front surface of the receiving lens. By selecting the positive real root that satisfies the propagation direction and is closest to the current photon position, the coordinates of the intersection point between the target reflected photon and the front surface of the receiving lens are obtained. ; Step S42, based on the coordinates of the intersection point between the target reflected photon and the front surface of the receiving lens. With the center of the ball Calculate the unit normal vector at the intersection point. ; ; Step S43, based on the incident direction of the target reflected photon Interface normal vector Refractive index of receiving lens The refraction direction of the target reflected photon is calculated using Snell's law in vector form. ; ; ; ; in, Indicates the refractive index of the receiving lens; Angle of incidence; like The direction of refraction of the photons reflected from the target will then be determined. Normalized and used as the direction vector of motion after refraction; Step S44: Based on the motion direction vector after refraction, determine whether the intersection point of the target reflected photon and the field stop plane is located within the aperture of the aperture; for photons passing through the aperture, calculate the coordinates of the intersection point with the detection plane, and record the intersection point coordinates, color channel and remaining weight.
6. The Monte Carlo-based active imaging simulation method for underwater targets according to claim 1, characterized in that, Step S5 specifically includes the following steps: Step S51: Based on the physical width, physical height, center coordinates, and pixel resolution of the detection plane, map the intersection coordinates of each effective photon passing through the aperture with the detection plane to continuous pixel coordinates. ; ; in, These are the x-coordinate and y-coordinate of the center of the probe plane, respectively. , These are the x and y coordinates of the photon hitting the detection plane, respectively. These are the physical width and height of the detection plane, respectively. , These represent the horizontal and vertical pixel resolutions on the detection plane, respectively. Step S52, based on continuous pixel coordinates Relative to the center positions of the four adjacent pixels, a bilinear allocation method is used to distribute photon weights to the four adjacent pixels, and the target reflected photon energy distribution is obtained by accumulating according to the color channels. .
7. The Monte Carlo-based active imaging simulation method for underwater targets according to claim 1, characterized in that, In step S6 Based on the physical dimensions, center coordinates, and pixel resolution of the detection plane, the backscattered energy distribution obtained in step S2 is... Resample to a spatial grid with the same energy distribution of the photons reflected from the target; Obtain the energy distribution received on the probe plane : ; in, This is the backscattering intensity adjustment coefficient, used to characterize active illumination power, receiver gain, exposure time, or model calibration coefficients.
8. The Monte Carlo-based active imaging simulation method for underwater targets according to claim 1, characterized in that, In step S1, setting the initial state of the illumination photons emitted by the active light source specifically includes: Set the position coordinates of the center of the active light source The light source emission area is direction and Dimensions of direction and generate a quantity of within the launch area. The initial position of the illuminating photon; Set the initial direction of motion of the illuminating photons according to the type of light source; The initial weights, color channels, scattering times, and survival states of each illumination photon are set to form an initial state set of illumination photons.
9. An underwater target active imaging simulation device, characterized in that, The device includes at least one processor and at least one memory, the processor and the memory being coupled together; the memory stores a computer-executable program of the Monte Carlo-based underwater target active imaging simulation method as described in any one of claims 1 to 8; when the processor executes the computer-executable program stored in the memory, the processor can execute the Monte Carlo-based underwater target active imaging simulation method.
10. A computer-readable medium, wherein a computer program is stored on the computer-readable storage medium, characterized in that, When the computer program is executed by the processor, it implements the Monte Carlo-based active imaging simulation method for underwater targets as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Simulation method for reflecting polarized light by underwater target based on bidirectional reflection theory
CN113029342A
Target object transboundary mass imaging simulation method based on Monte Carlo
CN115630529A
