Aiming at the shortcomings of traditional bilateral filtering in suppressing speckle noise in SAR ship images, especially strong speckle noise and loss of image edge details, it proposes an improved bilateral filtering algorithm based on fast adaptive threshold and variable window in this paper. The algorithm was used to suppress speckle noise in SAR ship images. The traditional bilateral filtering cannot effectively filter out the strong speckle noise, but the SAR image has strong speckle noise because of the defects of its imaging principle. To solve these problems, an image sample truncation method based on fast adaptive truncation statistical characteristics is designed to adjust the photometric similarity weight characteristics to realize the adaptive adjustment of spatial standard deviation and gray standard deviation. After the local reference window is modified and truncated according to the local characteristics of the image, the adjusted combined similarity weight value greatly reduces the impact of strong speckle noise on the image. It is smoothed into speckle signal with strong impulse noise. In the traditional bilateral filtering, in order to enhance the effect of smoothing noise, it is necessary to specify a large value of geometric diffusion factor and gray similarity diffusion factor, resulting in the loss of image details. Based on the variable window size filtering method, when the extended local reference window is in the case of nonuniform edge, its window can be enlarged to make the speckle noise stronger. When an extended window contains details such as edges and textures, its size is not expanded to maintain image detail. This method can further smooth the speckle noise in the uniform region while preserving the edge details of the image. Finally, the adaptive truncated sample is used as the input of the bilateral filter. The image sample truncation method based on fast adaptive threshold can effectively eliminate the strong speckle noise information that affects the photometric similarity and weight accuracy of the image. The method based on variable window can greatly enhance the smoothness of the edge area of the image. The experimental results show that improved adaptive bilateral filtering algorithm improves the speckle noise removal ability by 16.06% compared with the traditional bilateral filtering algorithm in the speckle noise suppression of the SAR ship image, and the preservation performance of the image edge after filtering is improved by 5.41%. Compared with the original image, the filtered image has a 1.2% improvement in structural similarity. The algorithm can effectively suppress speckle noise and has a good ability to retain edge and texture information of the SAR ship image, which has strong practicability.