Image processing system and method based on spatial light modulator, medium and equipment
By combining amplitude and phase spatial light modulators and detectors, a compact optical neural network architecture is solved, and the flexibility and accuracy limitations of optical neural networks in the prior art are achieved, and efficient nonlinear computing is achieved.
Patent Information
- Application Number
- CN202510243269.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-03
- Publication Date
- 2025-07-18
AI Technical Summary
Existing optical neural networks rely on a single type of spatial light modulator, resulting in limited flexibility and computational accuracy of input data, and low system complexity and energy efficiency.
Combining amplitude and phase-type spatial light modulators and detectors, the phase and amplitude modulation of the light field is achieved through the control processing module, and a compact optical neural network architecture is built to perform nonlinear processing.
It improves the modeling ability and inference accuracy of optical neural networks, simplifies the system structure, and improves the computing speed and energy efficiency.
Smart Images

Figure CN120338008A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of spatial light modulators, and particularly to an image processing system, method, medium, and device based on a spatial light modulator. Background Art
[0002] Optical neural networks are one of the typical applications of optical computing. They simulate the operation process of neural networks through optical elements, providing a new computing method. Current research mainly focuses on using optical systems to achieve linear calculations and non-linear excitations of neural networks. Among them, the SLM (Spatial Light Modulator) is the core device for implementing optical neural networks. The SLM dynamically modulates the amplitude or phase of light waves through external control and can be used to simulate the weight matrix operation in neural networks.
[0003] However, most current optical neural networks rely on a single type of SLM, resulting in limitations in the flexibility of input data and calculation accuracy. At the same time, non-linear operations in optical systems usually rely on optoelectronic conversion to complete. For example, the light intensity signal is converted into an electrical signal through a photodetector, and then the non-linear activation function is realized by an electronic circuit. Although this optoelectronic hybrid architecture is feasible, it increases the system complexity and limits the calculation speed and energy efficiency. Summary of the Invention
[0004] Based on this, it is necessary to propose an image processing system, method, medium, and device based on a spatial light modulator for the above problems.
[0005] An image processing system based on a spatial light modulator, the system includes: an amplitude-type spatial light modulator, a phase-type spatial light modulator, a detector, and a control and processing module.
[0006] The control and processing module is configured to load the gray value of the target image to the amplitude-type spatial light modulator; and load the current weight matrix to the phase-type spatial light modulator.
[0007] The amplitude-type spatial light modulator is configured to modulate the plane light according to the gray value of the target image to obtain a first light intensity distribution.
[0008] The phase-type spatial light modulator is configured to modulate the phase of the first light intensity distribution according to the current weight matrix to obtain a current light field including light intensity and phase weights.
[0009] The detector is configured to perform non-linear processing on the light field to obtain a light intensity distribution map of the light field, and transmit the light intensity distribution map of the light field to the control and processing module.
[0010] The control processing module updates the target image to the light intensity distribution map of the light field, and updates the weight matrix to the next group for the next modulation.
[0011] Among them, the system further includes:
[0012] A light source for emitting plane light to the amplitude-type spatial light modulator.
[0013] An image processing method based on a spatial light modulator, the method includes:
[0014] Modulate parallel light according to the gray value of the target image to obtain the first light intensity distribution.
[0015] Modulate the phase of the first light intensity distribution according to the current weight matrix to obtain the light field of the current layer including the light intensity and phase weights.
[0016] Detect the second light intensity distribution of the light field, perform non-linear processing on the second light intensity distribution to obtain the light intensity distribution map of the light field.
[0017] Update the target image to the light intensity distribution map of the light field, update the weight matrix to the next group, obtain the output light field of the current layer for the next diffraction modulation until the number of layers corresponding to the weight matrix is the preset number of layers, and obtain the final output light field.
[0018] Among them, the modulating the parallel light according to the gray value of the target image to obtain the first light intensity distribution specifically includes:
[0019] Obtain the two-dimensional matrix of the gray value of the target image.
[0020] Use the two-dimensional matrix and the light source intensity of the parallel light to encode the parallel light to obtain the first light intensity distribution.
[0021] Among them, the using the two-dimensional matrix and the light source intensity of the parallel light to encode the parallel light to obtain the first light intensity distribution specifically includes:
[0022] Use the two-dimensional matrix and the light source intensity of the parallel light to determine the light intensity distribution encoding model.
[0023] Input the two-dimensional matrix of the current gray value into the light intensity distribution encoding model to encode the parallel light to obtain the first light intensity distribution.
[0024] Among them, the using the two-dimensional matrix and the light source intensity of the parallel light to determine the light intensity distribution encoding model specifically includes:
[0025] According to Determine the light intensity distribution encoding model, where I i(x, y) is the first light intensity distribution, and A is the light source intensity. is a two-dimensional matrix of gray values.
[0026] Among them, modulating the phase of the first light intensity distribution according to the current weight matrix to obtain an optical field including light intensity and phase weights of the current layer specifically includes:
[0027] Constructing a phase modulation model according to the weight matrix and the first light intensity distribution.
[0028] Inputting the current weight matrix into the phase modulation model to obtain the current optical field including light intensity and phase weights.
[0029] Among them, constructing the phase modulation model according to the weight matrix and the first light intensity distribution specifically includes:
[0030] According to Construct the phase modulation model, where I i (x, y) is the first light intensity distribution, E i (x, y) is the optical field including light intensity and phase weights, and φ i (x, y) is the phase distribution corresponding to the weight matrix.
[0031] A computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the processor executes the steps of the method described above.
[0032] A computer device includes a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor executes the steps of the method described above.
[0033] Adopting the embodiments of the present invention has the following beneficial effects:
[0034] The present invention realizes the phase and amplitude modulation of the optical field by combining an amplitude-type spatial light modulator and a phase-type spatial light modulator, which not only ensures the flexible encoding of the gray values of the target image but also improves the accuracy of the weight matrix operation. And an integrated amplitude-type spatial light modulator, a phase-type spatial light modulator, and a detector are used to construct a compact optical neural network architecture. The system structure is simple. The detector performs nonlinear processing on the optical field to construct a full-optical nonlinear excitation module, so as to simulate the weights and nonlinear activation operations of the optical neural network and more efficiently complete the nonlinear mapping of complex data, significantly improving the modeling ability and inference accuracy of the optical neural network and further improving the system performance. Description of the Drawings
[0035] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0036] Among them:
[0037] Figure 1 It is a schematic structural diagram of an embodiment of an image processing system based on a spatial light modulator provided by the present invention;
[0038] Figure 2 It is a schematic structural diagram of another embodiment of an image processing system based on a spatial light modulator provided by the present invention;
[0039] Figure 3 It is a schematic flowchart of an embodiment of an image processing method based on a spatial light modulator provided by the present invention;
[0040] Figure 4 It is a schematic structural diagram of an embodiment of the device provided by the present invention;
[0041] Figure 5 It is a schematic structural diagram of an embodiment of the medium provided by the present invention. Detailed implementation manners
[0042] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.
[0043] As Figure 1 shown, Figure 1 It is a schematic structural diagram of an embodiment of an image processing system based on a spatial light modulator provided by the present invention. An image processing system 10 based on a spatial light modulator, the system includes: an amplitude-type spatial light modulator 11, a phase-type spatial light modulator 12, a detector 13, and a control and processing module 14.
[0044] The control and processing module 14 is used to load the gray value of the target image to the amplitude-type spatial light modulator; and load the current weight matrix to the phase-type spatial light modulator.
[0045] Exemplarily, the control processing module 14 obtains the target image to be processed in real time, as well as the weight matrix modulated by the phase-type spatial light modulator 12 each time, loads the gray value of the target image to the amplitude-type spatial light modulator; and loads the current weight matrix to the phase-type spatial light modulator.
[0046] The amplitude-type spatial light modulator 11 is used to modulate the plane light according to the gray value of the target image to obtain the first light intensity distribution.
[0047] Exemplarily, the working principle of the amplitude-type spatial light modulator 11 is to achieve light intensity modulation by changing the intensity distribution of the incident plane light. Its core component is a pixel array composed of liquid crystal materials, and these pixels can dynamically adjust the light transmittance, so as to accurately map the data matrix into the light intensity distribution. Specifically, a two-dimensional matrix of the gray value of the target image is obtained. The light intensity distribution coding model is determined by using the two-dimensional matrix and the light source intensity of the parallel light. The current two-dimensional matrix of the gray value is input into the light intensity distribution coding model to encode the parallel light and obtain the first light intensity distribution.
[0048] The phase-type spatial light modulator 12 is used to modulate the phase of the first light intensity distribution according to the current weight matrix to obtain the light field of the current layer including the light intensity and phase weight.
[0049] Exemplarily, the phase-type spatial light modulator 12 is composed of a liquid crystal array, and simulates the weight operation of the neural network by performing phase modulation on the first light intensity distribution. Specifically, it receives the first light intensity distribution output by the amplitude-type spatial light modulator 11, constructs a phase modulation model according to the weight matrix and the first light intensity distribution; inputs the current weight matrix into the phase modulation model to obtain the current light field including the light intensity and phase weight.
[0050] The detector 13 is used to perform nonlinear processing on the light field, obtain the light intensity distribution map of the light field, and transmit the light intensity distribution map of the light field to the control processing module.
[0051] Exemplarily, after being modulated by the phase-type spatial light modulator 12, the light field carries the current phase weight information. The detector 13 applies a nonlinear excitation function to the light field, thereby realizing the nonlinear processing in the optical system. Among them, the nonlinear excitation is the key step to simulate the nonlinear calculation of the optical neural network, and provides a stronger expression ability for the optical neural network model.
[0052] The control processing module 14 updates the target image to the light intensity distribution map of the light field, and updates the weight matrix to the next group for the next modulation.
[0053] Exemplarily, the control processing module 14 updates the target image to the light intensity distribution map of the light field, and updates the weight matrix to the next group for the next modulation. The light intensity distribution map of the light field after non-linear processing is used as the input again and transmitted to the amplitude-type spatial light modulator 11, and is modulated by the phase-type spatial light modulator 12 and the detector 13 in sequence. The amplitude-type spatial light modulator 11 modulates the plane light according to the gray value of the light intensity distribution map of the light field to obtain the first light intensity distribution as the current input. Subsequently, the phase-type spatial light modulator 12 modulates the phase of the first light intensity distribution using the corresponding weight matrix to obtain the current light field containing the light intensity and phase weights, completing the current phase operation. Further, the detector 13 performs non-linear processing on the light field to obtain the light intensity distribution map of the light field and transmits the light intensity distribution map of the light field to the control processing module. The cooperation of these three processes constitutes the basic unit of the optical neural network. Through multiple iterations, the alternating operations of the amplitude-type spatial light modulator 11, the phase-type spatial light modulator 12, and the detector 13 process the light intensity distribution layer by layer, gradually completing the optical simulation of the deep neural network.
[0054] It should be noted that an image processing system based on a spatial light modulator provided by the present invention is equivalent to an optical neural network including an amplitude-type spatial light modulator 11, a phase-type spatial light modulator 12, a detector 13, and a control processing module 14. The amplitude-type spatial light modulator 11, the phase-type spatial light modulator 12, and the detector 13 are used to perform modulation in a loop, and the number of loops can be determined according to actual situations. After performing modulation in a loop, the final output light field of the target image is output.
[0055] As can be seen from the above description, the present invention realizes the phase and amplitude modulation of the light field by combining the amplitude-type spatial light modulator and the phase-type spatial light modulator, which not only ensures the flexible coding of the gray value of the target image but also improves the accuracy of the weight matrix operation. And by integrating the amplitude-type spatial light modulator, the phase-type spatial light modulator, and the detector, a compact optical neural network architecture is constructed. The system structure is simple. By performing non-linear processing on the light field by the detector, a full-optical non-linear excitation module is constructed, so as to simulate the weights and non-linear activation operations of the optical neural network and more efficiently complete the non-linear mapping of complex data, significantly improving the modeling ability and inference accuracy of the optical neural network and further improving the system performance.
[0056] As Figure 2 shown, Figure 2 FIG. is a schematic structural diagram of another embodiment of an image processing system based on a spatial light modulator provided by the present invention. An image processing system based on a spatial light modulator further includes: a light source 15 for emitting plane light to the amplitude-type spatial light modulator 11.
[0057] Exemplarily, the light source module 15 is used to emit parallel light. For example, the light source module 15 can specifically be a laser.
[0058] Referring to Figure 2 and Figure 3 , Figure 3 FIG. is a schematic flow chart of an embodiment of an image processing method based on a spatial light modulator provided by the present invention. An image processing method based on a spatial light modulator, the method includes:
[0059] S101: Modulate the parallel light according to the gray value of the target image to obtain a first light intensity distribution.
[0060] Exemplarily, the light source module 15 emits parallel light to the amplitude-type spatial light modulator 11. The amplitude-type spatial light modulator 11 obtains a two-dimensional matrix of the gray value of the target image, and determines a light intensity distribution coding model by using the two-dimensional matrix and the light source intensity of the parallel light. The light intensity distribution coding model is:
[0061]
[0062] where, I i (x, y) is the first light intensity distribution, A is the light source intensity, is the two-dimensional matrix of the gray value.
[0063] Further, input the current two-dimensional matrix of the gray value into the light intensity distribution coding model to encode the parallel light and obtain the first light intensity distribution.
[0064] S102: Modulate the phase of the first light intensity distribution according to the current weight matrix to obtain a light field of the current layer including the light intensity and phase weights.
[0065] Exemplarily, the phase-type spatial light modulator 12 receives the first light intensity distribution output by the amplitude-type spatial light modulator 11, and constructs a phase modulation model according to the weight matrix and the first light intensity distribution. The phase modulation model is:
[0066]
[0067] where, I i (x, y) is the first light intensity distribution, E i (x, y) is the light field including the light intensity and phase weights, φ i (x, y) is the phase distribution corresponding to the weight matrix, and i is the number of layers.
[0068] The phase distribution corresponding to the weight matrix is:
[0069]
[0070] Wherein, λ is the wavelength of incident light, n(x, y) is the refractive index distribution of the liquid crystal, and d is the thickness of the liquid crystal.
[0071] Further, input the current weight matrix into the phase modulation model to obtain the current optical field including the light intensity and phase weights.
[0072] S103: Perform non - linear processing on the optical field to obtain the light intensity distribution map of the optical field.
[0073] Exemplarily, the detector 13 performs non - linear processing on the optical field to obtain the light intensity distribution map of the optical field, thereby realizing non - linear processing in the optical system.
[0074] S104: Update the target image to the light intensity distribution map of the optical field, update the weight matrix to the next group, obtain the output optical field of the current layer for the next diffraction modulation until the number of layers corresponding to the weight matrix is the preset number of layers, and obtain the final output optical field.
[0075] Exemplarily, the control processing module 14 updates the target image to the light intensity distribution map of the optical field and updates the weight matrix to the next group. The light intensity distribution map of the optical field after non - linear activation processing is used as the input again and transmitted to the amplitude - type spatial light modulator 11, and then sequentially passes through the phase - type spatial light modulator 12 and the detector 13 for modulation. The amplitude - type spatial light modulator 11 modulates the plane light according to the gray value of the light intensity distribution map of the optical field to obtain the first light intensity distribution as the current input. Subsequently, the phase - type spatial light modulator 12 uses the corresponding weight matrix to modulate the phase of the first light intensity distribution to obtain the current optical field including the light intensity and phase weights, completing the current phase operation. Further, the detector 13 performs non - linear processing on the current optical field to obtain the light intensity distribution map of the optical field and transmits the light intensity distribution map of the optical field to the control processing module 14. Through multiple iterations, until the number of layers corresponding to the weight matrix is the preset number of layers N, the final output optical field is obtained.
[0076] Specifically, at the Nth layer, input the current weight matrix into the phase modulation model to obtain the current optical field including the light intensity and phase weights:
[0077]
[0078] Wherein, I i (x, y) is the first light intensity distribution of the (N - 1)th layer, E N (x, y) is the optical field including the light intensity and phase weights of the Nth layer, φ N (x, y) is the phase distribution corresponding to the weight matrix of the Nth layer.
[0079] Further, at the Nth layer, the detector 15 performs non - linear processing on the optical field through a non - linear activation function to obtain the final output optical field:
[0080] O out (x, y) = f(|E N (x, y)| 2 )
[0081] where O out is the final output optical field, E N (x, y) is the optical field of the Nth layer containing light intensity and phase weights, and f() is a non-linear excitation function.
[0082] Moreover, the detector 15 records the final light intensity distribution of the final output optical field.
[0083] As can be seen from the above description, the present invention first modulates parallel light using the gray value of the target image to generate a first light intensity distribution; then, according to a weight matrix, modulates the phase of the first light intensity distribution, endows it with detailed information on light intensity and phase, and performs non-linear processing to obtain the light intensity distribution map of the optical field; finally, in combination with the updated weight matrix, updates the target image to the light intensity distribution map of the optical field, and performs multi-level modulation in a loop to finally generate a final output optical field with rich optical field information, realizing fine processing of the target image.
[0084] As Figure 4 shown, Figure 4 is a schematic structural diagram of an embodiment of the device provided by the present invention. The device 20 includes a memory 21 and a processor 22. The memory 21 stores a computer program, and the processor 22 executes the computer program during operation to implement the method as Figure 3 shown.
[0085] Regarding the specific technical details of an image processing method based on a spatial light modulator implemented when the above device 20 executes a computer program, they have been elaborated in detail in the foregoing method steps, so no further description will be given here.
[0086] As Figure 5 shown, Figure 5 is a schematic structural diagram of an embodiment of the medium provided by the present invention. The medium 30 stores at least one computer program 31, and the computer program 31 is executed by the processor 22 to implement the method as Figure 3 shown. For the detailed method, reference can be made to the above, and no further description will be given here. In one embodiment, the medium 30 can be a storage chip, a hard disk, a mobile hard disk, a USB flash drive, an optical disc, or other writable and readable storage tools, or a server, etc.
[0087] The above description is of specific embodiments of this specification, and other embodiments are within the scope of the appended claims. In some cases, the acts or steps recited in the claims may be performed in a different order than in the embodiments and still achieve the desired result. Additionally, the processes depicted in the figures do not necessarily have to be performed in the particular order or continuous sequence shown to achieve the desired result. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0088] Each embodiment in this specification is described in a progressive manner. For the same or similar parts among the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the apparatus, device, and non-volatile computer-readable storage medium, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiments.
[0089] The apparatus, device, and non-volatile computer-readable storage medium provided in the embodiments of this specification correspond to the method. Therefore, the apparatus, device, and non-volatile computer storage medium also have beneficial technical effects similar to the corresponding method. Since the beneficial technical effects of the method have been described in detail above, the beneficial technical effects of the corresponding apparatus, device, and non-volatile computer storage medium will not be elaborated here.
[0090] The systems, apparatuses, modules, or units illustrated in the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or any combination of these devices.
[0091] For convenience of description, when describing the above apparatus, it is divided into various units according to functions for separate description. Of course, when implementing this specification, the functions of each unit can be realized in the same or multiple software and / or hardware. Those skilled in the art should understand that the embodiments of this specification can be provided as a method, a system, or a computer program product. Therefore, the embodiments of this specification can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of this specification can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) containing computer-usable program code.
[0092] A computer-readable medium includes both permanent and non-permanent, removable and non-removable media that can store information by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transitory medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer-readable medium does not include transitory computer-readable media such as modulated data signals and carrier waves.
[0093] Each embodiment in this specification is described in a progressive manner. For the same or similar parts among the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments. In particular, for system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and reference can be made to the relevant parts of the method embodiments for the related content.
[0094] The above-disclosed are only the preferred embodiments of the present invention. Of course, the scope of the rights of the present invention cannot be limited thereby. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope covered by the present invention.
Claims
1. An image processing system based on a spatial light modulator, characterized in that, The system includes: an amplitude-type spatial light modulator, a phase-type spatial light modulator, a detector, and a control and processing module. The control and processing module is configured to load the gray values of the target image to the amplitude-type spatial light modulator; and load the current weight matrix to the phase-type spatial light modulator. The amplitude-type spatial light modulator is configured to modulate the plane light according to the gray values of the target image to obtain a first light intensity distribution. The phase-type spatial light modulator is configured to modulate the phase of the first light intensity distribution according to the current weight matrix to obtain a current light field including light intensity and phase weights. The detector is configured to perform non-linear processing on the light field to obtain a light intensity distribution map of the light field, and transmit the light intensity distribution map of the light field to the control and processing module. The control and processing module updates the target image to the light intensity distribution map of the light field, and updates the weight matrix to the next group for the next modulation.
2. The image processing system based on a spatial light modulator according to claim 1, wherein The system further includes: A light source for emitting plane light to the amplitude-type spatial light modulator.
3. An image processing method based on a spatial light modulator, characterized in that The method includes: Modulating parallel light according to the gray values of the target image to obtain a first light intensity distribution. Modulating the phase of the first light intensity distribution according to the current weight matrix to obtain a current light field including light intensity and phase weights of the current layer. Performing non-linear processing on the light field to obtain a light intensity distribution map of the light field. Updating the target image to the light intensity distribution map of the light field, updating the weight matrix to the next group, obtaining the output light field of the current layer for the next diffraction modulation until the number of layers corresponding to the weight matrix is the preset number of layers, and obtaining the final output light field.
4. The image processing method based on a spatial light modulator according to claim 3, wherein The modulating parallel light according to the gray values of the target image to obtain a first light intensity distribution specifically includes: Obtaining a two-dimensional matrix of the gray values of the target image. Encoding the parallel light by using the two-dimensional matrix and the light source intensity of the parallel light to obtain a first light intensity distribution.
5. The image processing method based on a spatial light modulator according to claim 4, wherein The encoding the parallel light by using the two-dimensional matrix and the light source intensity of the parallel light to obtain a first light intensity distribution specifically includes: Determining a light intensity distribution encoding model by using the two-dimensional matrix and the light source intensity of the parallel light. Inputting the current two-dimensional matrix of the gray values into the light intensity distribution encoding model to encode the parallel light to obtain a first light intensity distribution.
6. The image processing method based on a spatial light modulator according to claim 4, wherein The determining a light intensity distribution encoding model by using the two-dimensional matrix and the light source intensity of the parallel light specifically includes: According to Determine the light intensity distribution coding model, where I i (x, y) is the first light intensity distribution, A is the light source intensity, is the two-dimensional matrix of gray values.
7. The image processing method based on a spatial light modulator according to claim 5, characterized in that, The modulating the phase of the first light intensity distribution according to the current weight matrix to obtain a current light field including light intensity and phase weights of the current layer specifically includes: Constructing a phase modulation model according to the weight matrix and the first light intensity distribution. Inputting the current weight matrix into the phase modulation model to obtain a current light field including light intensity and phase weights.
8. The image processing method based on a spatial light modulator according to claim 7, wherein The constructing a phase modulation model according to the weight matrix and the first light intensity distribution specifically includes: According to Construct the phase modulation model, where I i (x, y) is the first light intensity distribution, and E i (x, y) is the optical field including light intensity and phase weights, and φ i (x, y) is the phase distribution corresponding to the weight matrix.
9. A computer-readable storage medium storing a computer program, which when executed by a processor causes the processor to execute the steps of the method according to any one of claims 3 to 8.
10. A computer device, comprising a memory and a processor, where the memory stores a computer program, and when the computer program is executed by the processor, the processor is caused to execute the steps of the method according to any one of claims 3 to 8.