Introduction

In recent years, underwater optical imaging technology has been widely used in the fields of underwater target detection, environmental monitoring, and ocean exploration. However, due to the influence of the underwater turbid medium, the underwater target signal light will be obscured by the background scattered light, resulting in a degradation of imaging quality. This problem seriously affects the accuracy and reliability of underwater detection and monitoring, and also negatively affects the real-time and imaging effects of underwater imaging systems. Therefore, the main difficulties that need to be solved in underwater imaging are to remove the background scattered light, restore a clear underwater scene, and enhance the imaging contrast and clarity [1].

In the process of underwater imaging, backscattered light is the main cause of poor imaging quality. For a long time, researchers at home and abroad have proposed various methods and techniques to minimize the effect of this scattering. For example, time gating [2, 3], acoustic imaging [4], super-resolution fusion [5], and ghost imaging [6]. However, all of these techniques suffer from the disadvantages of large mass, complex and cumbersome systems, and high costs, making it difficult to apply them to complex underwater environments. In contrast, polarization imaging techniques have attracted much attention due to their simple hardware, practical operation, and low price [1].The polarization imaging technique realizes clear underwater imaging by analyzing the polarization state of the target and the background to reflect the light intensity changes of the target signal light and the background scattered light and suppressing the influence of the background scattered light. The polarization imaging method can provide richer target information, which is a popular research direction in underwater imaging.

Common polarization imaging methods include polarization filters, polarization rotators, and polarization differential imaging, among which polarization differential imaging techniques are widely used in the field of optical imaging. The traditional polarization imaging method is to acquire two mutually orthogonal polarization images by changing the polarization angle of the polarization detector in an unordered manner [7], and these images are processed differentially to improve the contrast of the target signal. However, this method has some limitations, such as taking a lot of time to acquire multiple polarization images, which reduces the real-time performance of imaging [8]; moreover, in an underwater environment with strong scattering, the traditional polarization differential imaging method is still unable to effectively enhance the contrast and details of the images. To address the above problems, this paper proposes an improved underwater polarization differential imaging method, which uses the Stokes vector to calculate the polarization angle of the background scattered light, and then selects the best two mutually orthogonal polarization directions to differentiate the image. Compared with the conventional method, this method does not require a rotating detector, which improves the real time and efficiency of imaging. In addition, the method utilizes the polarization information of the background scattered light to determine the optimal combination of the polarization directions, which can effectively reduce the influence of the background scattered light on the imaging results and thus enhance the contrast and details of the image.

To verify the effectiveness of the method in this paper, a series of experiments were conducted and compared with the traditional polarization differential imaging method. The experimental results show that the improved underwater polarization differential imaging method proposed in this paper can significantly improve the clarity and contrast of images in a strong scattering underwater environment, effectively reduce the interference of the background scattered light, and at the same time have high real-time performance and imaging effect.

Theory

Principle of polarization difference imaging

In the process of underwater detection, the detector receives light partly from the backscattered light reflected by the scattering medium and partly from the target signal light reflected from the object. Polarization differential imaging uses two mutually orthogonal polarized images for the difference to obtain the image. It utilizes the difference in vibration direction between the two light vectors to eliminate the background scattered light [9]. Figure 1 shows the physical model of the polarization difference method [10],

Fig. 1
figure 1

Polarization differential imaging schematic

where T is the target signal light, B is the background scattered light, and P1 and P2 are the transmittance axes in both directions.

As shown in Fig. 1, assuming that the background scattered light and the target signal light are perfectly linearly polarized, the direction of the transmission axis is set at \(\pi /4\) to the direction of the background scattered light, and two polarization images with orthogonal polarization directions are acquired and differenced to obtain Eq. (1).

$$I_{pd} = I(0) - I(90) = \left[ {T(0) + B(0)} \right] - \left[ {T(90) + B(90)} \right]$$
(1)

Here, 0 and 90 represent the two directions of the transmission axis P1 and P2, respectively. Since the angle between the transmission axis and the background scattered light is \(\pi /4\), the intensity of the background scattered light in both directions can be determined according to Marius’ law [11]

$$B(0) = B(90) = \frac{B}{2}$$
(2)

Substituting Eq. (2) into Eq. (1),

$${\text{I}}_{{{\text{pd}}}} = {\text{T}}(0) - {\text{T}}(90)$$
(3)

A comparison of Eqs. (1) and (3) shows that the background scattered light is removed, while the target signal light is retained.

Principle of underwater imaging based on polarization difference.

Stokes vector is the mainstream method to characterize the polarized light, the Stokes vector of the beam can be calculated from the polarization images of the four polarization directions of 0\(^\circ\), 45\(^\circ\), 90\(^\circ\), and 135\(^\circ\), and the intensities of these four images can be expressed as I(0), I(45), I(90), and I(135), respectively, and then the stokes vector can be expressed as Eq. (4) [12, 13]

$$S = \left[ {\begin{array}{*{20}c} {S_{0} } \\ {S_{1} } \\ {S_{2} } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} {I(0) + I(90)} \\ {I(0) - I(90)} \\ {I(45) - I(135)} \\ \end{array} } \right]$$
(4)

Here, S0 denotes the total light intensity, S1 denotes the difference in light intensity between the horizontal and vertical line polarization components, and S2 denotes the difference in light intensity between the 45\(^\circ\) and 135\(^\circ\) line polarization components [14]. Then, the angle of polarization (AOP is denoted by \(\theta\)) can be expressed as Eq. (5) [15, 16].

$$\theta = \frac{1}{2}\arctan \frac{{S_{2} }}{{S_{1} }}$$
(5)

The Mueller matrix is usually used to describe the polarization information of an object, and when the angle between the transmission axis of the polarizer and the horizontal direction is \(\alpha\), the corresponding Mueller matrix of the polarizer is Eq. (6). [17, 18]

$$M = \frac{1}{2}\left[ {\begin{array}{*{20}c} 1 & {\cos 2\alpha } & {\sin 2\alpha } \\ {\cos 2\alpha } & {\cos^{2} 2\alpha } & {\sin 2\alpha \cos 2\alpha } \\ {\sin 2\alpha } & {\sin 2\alpha \cos 2\alpha } & {\sin^{2} 2\alpha } \\ \end{array} } \right]$$
(6)

Knowing the Stokes vector of a beam of light and the Mueller matrix of the polarizer, the Stokes vector of this beam of light when it passes through the polarizer is Eq. (7)

$$S_{{{\text{out}}}} = M \cdot S_{{{\text{in}}}}$$
(7)

From Eq. (7), when the Stokes vector of light and the Mueller matrix of the polarizer are known, the Stokes vector of light passing through any angle of the transmissive axis can be found, and according to the physical meaning of the Stokes vector, combined with the Eq. (7), it can be obtained that the light intensity of light passing through the polarizer is

$$I_{\alpha } = \frac{1}{2}\left( {S_{0} + S_{1} \cos 2\alpha + S_{2} \sin 2\alpha } \right)$$
(8)

Through Equation S0 = I(0) + I(90), it is known that S0 contains both target signal light and scattered light, while S1 and S2 are almost unaffected by the target signal light, so according to Eq. (5), it is known that the polarization angle AOP can provide more accurate information about the scattered light [19].

Different from the traditional polarization difference method, the method proposed in this paper does not need to rotate the angle of the polarizer but to find out the polarization angle image through formula (5), based on which the polarization angle with the highest frequency of occurrence is selected as the polarization angle of the scattered light and denoted by \(\theta\)A, and the polarization angle in the optimal mutually orthogonal direction is obtained through the polarization angle of the scattered light. To eliminate the scattered light in the \(\theta\)A polarization direction, the polarization angle in the parallel direction is obtained according to the principle of polarization difference as

$$\theta_{||} = \theta_{A} - \frac{\pi }{4}$$
(9)

The angle of polarization in the vertical direction is

$$\theta_{ \bot } = \theta_{A} + \frac{\pi }{4}$$
(10)

Substituting Eqs. (9) and (10) into Eq. (8) yields two mutually orthogonal images I and I of the optimal polarization direction, denoted respectively as

$$I_{||} = \frac{1}{2}\left[ {S_{0} + S_{1} \cos 2\theta_{||} + S_{2} \sin 2\theta_{||} } \right]$$
(11)
$$I_{ \bot } = \frac{1}{2}\left[ {S_{0} + S_{1} \cos 2\theta_{ \bot } + S_{2} \sin 2\theta_{ \bot } } \right]$$
(12)

According to the conventional polarization difference principle, we have

$$I_{{{\text{pd}}}} = I_{||} - I_{ \bot }$$
(13)

Substituting Eqs. (11) and (12) into Eq. (13) yields

$$I_{{{\text{pd}}}} = S_{1} \sin 2\theta_{{\text{A}}} - S_{2} \cos 2\theta_{{\text{A}}}$$
(14)

Equation (14) is the result obtained by our method. This method utilizes Stokes vectors to calculate the polarization angle, which increases the real-time performance of underwater imaging. And the polarization angle with the highest frequency of occurrence in the AOP image is used as the estimation of the backscattered light, which can be filtered out most of the backscattered light by the difference, increasing the effectiveness of underwater imaging.

Experimental results and discussions

The experimental setup of polarization-based differential underwater imaging is shown in Fig. 2. The illumination source is the CEL-LED100HA high-power LED light source system. The LED lamp has a light output of 20W, a 55-mm-diameter light outlet, and a spot diameter adjustment of 30 mm using a condensing lens, which allows the light to pass through the polarizer. The light system also allows for fast and stable adjustment of the light output intensity, which can be used in underwater environments with varying levels of light and darkness. The LED lamp was chosen because of its ability to achieve high power output in a relatively small device, which makes it possible to transplant the polarization imaging system into the current underwater imaging system. The camera model used in this experiment is the phx050s-pc polarization camera, which has four different angles of polarizers on the sensor placed on a single image element, allowing for the simultaneous acquisition of polarized images from four angles, which allows the system to be applied in dynamic environmental environments. Water is mixed with other scattering media in a glass tank to simulate an underwater scattering environment. The light output from the LEDs is transformed into fully linearly polarized light through a polarizer, which is then reflected by the target object and finally received by the detector. A diagram of our experimental equipment for underwater polarization imaging is shown in Fig. 3.

Fig. 2
figure 2

Diagram of the experimental setup for underwater polarization imaging. P1 polarizer. C polarization camera. L light source. T target

Fig. 3
figure 3

Physical diagram of underwater polarization imaging experimental equipment

The algorithms in this paper are validated in the MATLAB 2022 software environment for underwater imaging.

According to the experimental setup in Fig. 2, firstly, to verify the effect of directly transmitted light and scattered light on the polarization angle AOP, a metal coin was chosen as the experimental object, which was glued to a plastic plate and immersed in water. Then, add milk to the water to make it turbid, and use the polarization camera to obtain the polarization images of the \(0^\circ\), \(45^\circ\), \(90^\circ\), and \(135^\circ\) directions, respectively. As shown in Fig. 4(a–d), it can be seen that the visibility of the target is very low, and the detailed information of the object can hardly be seen under the turbid water.

Fig. 4
figure 4

a, b, c, d Polarization images in \(0^\circ\), \(45^\circ\), \(90^\circ\), and \(135^\circ\) directions, respectively

The AOP image can be obtained through Eq. (5), as shown in Fig. 5a. It can be seen through the AOP image that there is a slight difference between the target and the surroundings, which means that the polarization direction of the target signal light is different from that of the scattered light. To be able to obtain the polarization direction of the scattered light more accurately, the polarization angle with the highest frequency of occurrence in the non-target region is selected as the estimated value of the polarization angle of the scattered light, as shown in the histogram of the polarization angle distribution in Fig. 5b.

Fig. 5
figure 5

a Polarization angle (AOP) image; b Histogram of polarization angle distribution

These polarized images are then processed to verify the effectiveness of our method. The images recovered using our method are shown in Fig. 6c. Comparing Fig. 6c with Fig. 6a, it can be seen that the visibility of Fig. 6a is very low and the details of the object are hardly visible, while the visibility of the image in Fig. 6c is improved and the image quality is much better. The detailed information about the object is easier to distinguish, especially the flower pattern on the coin, which becomes clearer. This indicates that this method can effectively remove scattered light. In addition, we also compared the method in this paper with the difference method and light intensity difference method of Jinping Zhu’s group [20], and the results of the two difference methods are shown in Fig. 6b and d. The comparison shows that the method proposed in this paper has clearer images, more obvious details, and is superior in suppressing backward scattered light.

Fig. 6
figure 6

Plot of the processing effect of different methods. a Raw image. b Image processed by intensity difference method. c Image processed by our method. d Image processed by Zhu’s method [20]

The change in image contrast can be visualized by a histogram. Figure 7(a–d) shows the histograms of Fig. 6(a–d), respectively. The gray-scale distribution of Fig. 7a is mainly concentrated in a narrow range, which means that the detailed information of the image is submerged, and the gray-scale distributions of Fig. 7b and d are widened compared with Fig. 7a, while the gray-scale distribution of Fig. 7c is much wider than that of Fig. 7(a, b and d). Therefore, Fig. 7c can be easily recognized with more details.

Fig. 7
figure 7

ad Histograms of Fig. 5ad, respectively

In this paper, three metrics, namely information entropy, standard deviation [21], and contrast, are used to quantitatively evaluate the image quality. The information entropy, standard deviation, and contrast corresponding to each image in Fig. 6 are given as shown in Table 1. As shown in Table 1, the information entropy, standard deviation, and contrast of the method proposed in this paper are significantly higher than those of other methods, which indicates that the image quality obtained by this paper’s method is higher, which coincides with the intuitive judgment of the recovery results of this paper’s method in Fig. 6.

Table 1 Evaluation of image quality by different indicators

To further verify the imaging capability of the proposed technique for targets with different polarization degrees, different materials were selected for underwater imaging experiments, and the results are shown in Fig. 8. In Fig. 8e1, for example, the badminton ball is affected by the strong scattering of light waves, and the detail information is not easy to distinguish, while in Fig. 8b2, the detail information of the badminton ball is clearer after the algorithm is recovered. In Fig. 8c1, the pattern on the clothes of the doll is affected by scattering, and almost no information can be seen, but the pattern of the figure in Fig. 8c2 after recovery is visible, and the other images in Fig. 8 have similar effects. To objectively evaluate the image quality, as shown in Table 2, we calculated the contrast, information entropy, and standard deviation of each group of images in Fig. 8. As can be seen from the table, the quality indexes of each group of images have been significantly improved, which reflects the effectiveness of the algorithm and fully proves the general applicability of the method for imaging targets with different materials.

Fig. 8
figure 8

a1, b1, c1, d1, and e1 are the original images affected by scattered light. a2, b2, c2, d2, and e2 are the images processed using the method of this paper

Table 2 Comparison of image quality metrics

To verify the effectiveness of the algorithm in different concentrations of turbid water, turbid underwater environments with relatively low concentrations of fat milk solution (2.15 g/L) and high concentrations of fat milk solution (3.25 g/L) were set up, respectively. The experimental results are shown in Fig. 9. In the middle- and high-concentration turbid underwater, the detailed information of the image is buried, and the polarization difference-based underwater image restoration method can effectively remove the background scattered light and restore the detailed information of the target. To evaluate the image quality more comprehensively, in Table 3, we calculate the contrast, information entropy, and standard deviation of each image in Fig. 9. From Table 3, we can see that all the indexes of the images processed by our method are better than the original images, which indicates that our method can improve the clarity of underwater images under different turbid conditions.

Fig. 9
figure 9

a11, b11, a21, and b21 are light intensity maps of different targets in medium- and high-concentration scattering media, respectively. a12, b12, a22 and b22 are images processed with the method herein

Table 3 Comparison of image quality metrics for different levels of turbidity

Conclusion

In this paper, an improved polarization differential imaging method is proposed for the problem of poor effectiveness and real-time performance of the traditional polarization differential technique in the underwater imaging process. Compared with the traditional polarization imaging method, the method in this paper uses the polarization angle of the background scattered light to select the best two mutually orthogonal polarization directions for the difference, which effectively improves the contrast and details of the image. The experimental results show that compared with the traditional polarization differential imaging method, the method in this paper has better effectiveness and real-time performance and can effectively improve the image quality of the strong scattering underwater environment.

The research in this paper has certain theoretical and practical significance. Theoretically, this paper proposes a new underwater polarization imaging method based on the polarization difference technique, which uses the polarization angle of the background scattered light to select the best polarization direction, which improves the contrast and details of the image, thus making the imaging effect of underwater detection more ideal. In practical application, the method in this paper also has high practicability and feasibility and can be applied to underwater detection, marine resources investigation, underwater archaeology, and other fields, which provides certain references and references for the development and application of underwater imaging technology.

In general, the research results of this paper have high academic value and practical significance and provide new ideas and methods for the development of underwater imaging technology. However, there are some shortcomings in the research of this paper, such as the small sample size of experimental data, the experimental environment control is not strict enough, and other problems, which need to be further improved and perfected in future research.