Domestic ocean satellite image noise processing method and device, electronic equipment and storage medium

The method dynamically adjusts the sliding window size based on image variability to optimize noise reduction and processing speed for ocean satellite imagery, overcoming the limitations of fixed window techniques.

CN120318112APending Publication Date: 2025-07-15SECOND INST OF OCEANOGRAPHY MNR
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510804624.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-17
Publication Date
2025-07-15

AI Technical Summary

Technical Problem

When denoising domestic marine satellite remote sensing images, the prior art cannot take into account the denoising effect and processing speed. Especially when the noise space distribution is uneven and the noise source is complex, it is difficult to achieve ideal denoising effect and efficient processing.

Method used

Adaptive sliding window technology is adopted to dynamically adjust the size of the sliding window according to the size of the coefficient of variation in the image area. Through preset denoising algorithm and amplification strategy, the appropriate sliding window is adaptively selected for denoising.

Benefits of technology

Adaptive denoising processing in different regions in domestic marine satellite images is realized, which not only ensures the denoising effect but also improves the processing speed, and solves the problem that both the effect and speed cannot be taken into account in the existing technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120318112A_ABST
    Figure CN120318112A_ABST
Patent Text Reader

Abstract

The invention provides a domestic ocean satellite image noise processing method and device, electronic equipment and a storage medium, and belongs to the technical field of image processing, in the method, self-adaptive amplification of a sliding window can be carried out according to the image quality (namely, the size of a variable coefficient) in the sliding window, and thus the image quality is improved. For different to-be-processed pixels in the same to-be-processed domestic ocean satellite image, the sizes of the sliding windows corresponding to the different to-be-processed pixels are not completely fixed, but the appropriate sliding window is selected according to the specific denoising effect, so that the optimal denoising effect and the efficient processing speed are achieved at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a method, device, electronic equipment and storage medium for processing noise of domestic ocean satellite images. Background Art

[0002] Since space satellites are inevitably affected by environmental interference, self-motion, circuit noise or system errors when acquiring and transmitting target images, satellite images are often contaminated by image noise. Especially for ocean satellite remote sensing imagers with high detection sensitivity, the image noise problem is often more prominent.

[0003] Common noise processing or denoising algorithms include Savitzky-Golay polynomial smoothing (SG smoothing), digital filtering, wavelet transform, penalized least squares method, moving average, etc. However, these algorithms are either only applicable to one-dimensional arrays or require users to manually set algorithm parameters based on experience. For example, the standard SG smoothing algorithm is only applicable to one-dimensional spectral data; the moving average method will average extreme values to surrounding pixels, which will expand the noise range, so it is often not effective in processing salt and pepper noise; the median filter method can handle salt and pepper noise well, but similar to the moving average method, this method requires manual specification of the width (or size) of the filter window. If the window is too large, it may blur areas with rich details and lose the detailed information of the remote sensing image; if the window is too small, it will not work well in areas with a lot of noise. However, the domestic marine satellite remote sensing images have a wide swath, and a single image can cover a large ocean or ground area, containing rich ground object information. Using a fixed-size window in the same image often makes it difficult to achieve a good denoising effect.

[0004] In view of the characteristics of domestic ocean satellite remote sensing images, such as wide swaths, large amount of data in a single image, uneven spatial distribution of noise, and complex noise sources (for example, streak noise and dark current noise belong to different types of noise), when denoising domestic ocean satellite remote sensing images, especially in the operational satellite remote sensing image data processing tasks with high real-time requirements, how to balance the denoising effect and processing speed has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] In view of this, the purpose of the present invention is to provide a method, device, electronic device and storage medium for processing noise of domestic ocean satellite images, so as to alleviate the technical problem that the existing technology cannot take into account both the denoising effect and the processing speed when denoising domestic ocean satellite remote sensing images.

[0006] In a first aspect, an embodiment of the present invention provides a method for processing noise of a domestic ocean satellite image, comprising: Obtain domestic ocean satellite images to be processed, and determine the size of the domestic ocean satellite images to be processed; Determine the image area to be processed in the domestic ocean satellite images to be processed, and perform the following denoising process on each pixel to be processed in the image area to be processed to obtain the corresponding denoised pixel, and then obtain the denoised domestic ocean satellite images corresponding to the domestic ocean satellite images to be processed: Determine the coordinate position of the current pixel to be processed in the domestic ocean satellite images to be processed; Determine the maximum amplification times of the sliding window according to the coordinate position and the size of the domestic ocean satellite images to be processed, and determine the maximum sliding window based on the maximum amplification times of the sliding window; Obtain the current sliding window, and use the current pixel to be processed in the image area to be processed as the center of the current sliding window; Calculate the coefficient of variation corresponding to the current sliding window according to the pixel values of the pixels in the image area to be processed and located in the current sliding window; If the coefficient of variation is less than the preset threshold, denoise the pixel value of the current pixel to be processed according to the preset denoising algorithm to obtain the corresponding denoised pixel; If the coefficient of variation is greater than the preset threshold, check whether the current sliding window reaches the maximum sliding window; If not, amplify the current sliding window according to the preset amplification strategy to obtain a new sliding window, and use the new sliding window as the current sliding window, and return to execute the step of using the current pixel to be processed in the image area to be processed as the center of the current sliding window until the corresponding denoised pixel is obtained, or the current sliding window reaches the maximum sliding window; If it reaches, set the pixel value of the current pixel to be processed to be empty to complete the denoising of the current pixel to be processed.

[0007] Furthermore, determining the image area to be processed in the domestic ocean satellite images to be processed includes: Use the pixels other than the edge pixels in the domestic ocean satellite images to be processed as the image area to be processed.

[0008] Furthermore, determining the maximum amplification times of the sliding window according to the coordinate position and the size of the domestic ocean satellite images to be processed includes: Calculate the maximum amplification times of the sliding window according to the calculation formula m = min(x, y, M - x + 1, N - y + 1) - 2, where m represents the maximum amplification times of the sliding window, x represents the abscissa in the coordinate position, y represents the ordinate in the coordinate position, M represents the number of rows in the size, and N represents the number of columns in the size.

[0009] Further, determining the maximum sliding window based on the maximum amplification times of the sliding window includes: Obtain a preset initial sliding window and the preset amplification strategy; Amplify the initial sliding window according to the preset amplification strategy and the maximum amplification times to obtain the maximum sliding window.

[0010] Further, if the current sliding window is the initial sliding window, the initial sliding window is a 3×3 window.

[0011] Further, denoise the pixel value of the current pixel to be processed according to a preset denoising algorithm, including: If , then the pixel value of the current pixel to be processed remains unchanged, where represents the current pixel to be processed, represents the average value of the pixel values of each pixel in the current sliding window, represents the standard deviation of the pixel values of each pixel in the current sliding window; If , then set the target pixel in the current sliding window to be empty, recalculate the average value of the pixel values of each pixel in the current sliding window, and then set the pixel value of the current pixel to be processed to the newly calculated average value, where the target pixel is a pixel whose difference between the pixel value and the average value calculated before being set to empty is greater than 3 times the standard deviation.

[0012] Further, amplify the current sliding window according to a preset amplification strategy, including: Amplify the current sliding window by one pixel size in each direction to obtain the new sliding window.

[0013] In a second aspect, an embodiment of the present invention further provides a domestic ocean satellite image noise processing device, including: An acquisition and determination unit for acquiring a domestic ocean satellite image to be processed and determining the size of the domestic ocean satellite image to be processed; A determination and denoising unit is configured to determine a to-be-processed image region in the to-be-processed domestic ocean satellite image, and perform the following denoising process on each to-be-processed pixel in the to-be-processed image region to obtain a corresponding denoised pixel, and further obtain a denoised domestic ocean satellite image corresponding to the to-be-processed domestic ocean satellite image: Determine the coordinate position of the current to-be-processed pixel in the to-be-processed domestic ocean satellite image; Determine the maximum amplification times of the sliding window according to the coordinate position and the size of the to-be-processed domestic ocean satellite image, and determine the maximum sliding window based on the maximum amplification times of the sliding window; Obtain the current sliding window, and use the current to-be-processed pixel in the to-be-processed image region as the center of the current sliding window; Calculate the coefficient of variation corresponding to the current sliding window according to the pixel values of the pixels in the to-be-processed image region and located in the current sliding window; If the coefficient of variation is less than a preset threshold, denoise the pixel value of the current to-be-processed pixel according to a preset denoising algorithm to obtain a corresponding denoised pixel; If the coefficient of variation is greater than the preset threshold, check whether the current sliding window reaches the maximum sliding window; If not, amplify the current sliding window according to a preset amplification strategy to obtain a new sliding window, and use the new sliding window as the current sliding window, and return to execute the step of using the current to-be-processed pixel in the to-be-processed image region as the center of the current sliding window until a corresponding denoised pixel is obtained, or until the current sliding window reaches the maximum sliding window; If it reaches, set the pixel value of the current to-be-processed pixel to be empty to complete the denoising of the current to-be-processed pixel.

[0014] In a third aspect, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the steps of the method according to any one of the above first aspects are implemented.

[0015] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium. The computer-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and run by a processor, the machine-executable instructions cause the processor to run the method according to any one of the above first aspects.

[0016] In an embodiment of the present invention, a method for processing noise in domestic ocean satellite images is provided, including: obtaining a domestic ocean satellite image to be processed and determining the size of the domestic ocean satellite image to be processed; determining a region of the image to be processed in the domestic ocean satellite image to be processed, and performing the following denoising process on each pixel to be processed in the region of the image to be processed to obtain a corresponding denoised pixel, and further obtaining a denoised domestic ocean satellite image corresponding to the domestic ocean satellite image to be processed: determining the coordinate position of the current pixel to be processed in the domestic ocean satellite image to be processed; determining the maximum amplification times of the sliding window according to the coordinate position and the size of the domestic ocean satellite image to be processed, and determining the maximum sliding window based on the maximum amplification times of the sliding window; obtaining the current sliding window and using the current pixel to be processed in the region of the image to be processed as the center of the current sliding window; calculating the coefficient of variation corresponding to the current sliding window according to the pixel values of the pixels within the current sliding window and in the region of the image to be processed; if the coefficient of variation is less than a preset threshold, denoising the pixel value of the current pixel to be processed according to a preset denoising algorithm to obtain a corresponding denoised pixel; if the coefficient of variation is greater than the preset threshold, checking whether the current sliding window reaches the maximum sliding window; if not, amplifying the current sliding window according to a preset amplification strategy to obtain a new sliding window, and using the new sliding window as the current sliding window, and returning to execute the step of using the current pixel to be processed in the region of the image to be processed as the center of the current sliding window until a corresponding denoised pixel is obtained, or until the current sliding window reaches the maximum sliding window; if it reaches, setting the pixel value of the current pixel to be processed to be empty to complete the denoising of the current pixel to be processed. As can be seen from the above description, in the method for processing noise in domestic ocean satellite images of the present invention, the sliding window can be adaptively amplified according to the image quality (i.e., the size of the coefficient of variation) within the sliding window. In this way, for different pixels to be processed in the same domestic ocean satellite image to be processed, the size of the corresponding sliding window is not completely fixed, but a suitable sliding window is selected according to the specific denoising effect, so as to achieve the optimal denoising effect and high processing speed at the same time, and alleviate the technical problem that the prior art cannot take into account both the denoising effect and the processing speed when denoising domestic ocean satellite remote sensing images. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for the description of the specific embodiments or the prior art. Obviously, the following drawings are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0018] Figure 1Flow chart of a method for processing noise in domestic ocean satellite images provided by an embodiment of the present invention; Figure 2 Schematic diagram of a 3×3 window provided by an embodiment of the present invention; Figure 3 Schematic diagram of a 5×5 window provided by an embodiment of the present invention; Figure 4 Schematic diagram of a device for processing noise in domestic ocean satellite images provided by an embodiment of the present invention; Figure 5 Schematic diagram of an electronic device provided by an embodiment of the present invention. Detailed implementation manners

[0019] Next, the technical solutions of the present invention will be clearly and completely described in conjunction with the embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0020] When traditional technologies denoise domestic ocean satellite remote sensing images, they cannot take into account both the denoising effect and the processing speed.

[0021] Based on this, in the method for processing noise in domestic ocean satellite images of the present invention, the adaptive amplification of the sliding window can be performed according to the image quality (i.e., the magnitude of the coefficient of variation) within the sliding window. In this way, for different pixels to be processed in the same domestic ocean satellite image to be processed, the size of the corresponding sliding window is not completely fixed, but a suitable sliding window is selected according to the specific denoising effect, so as to achieve both the optimal denoising effect and the high processing speed at the same time.

[0022] For the convenience of understanding this embodiment, first, a method for processing noise in domestic ocean satellite images disclosed in an embodiment of the present invention will be introduced in detail.

[0023] Embodiment 1: According to an embodiment of the present invention, an embodiment of a method for processing noise in domestic ocean satellite images is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0024] Figure 1 is a flowchart of a method for processing noise in domestic ocean satellite images according to an embodiment of the present invention. As Figure 1 shown, the method includes the following steps: Step S102: Obtain the domestic ocean satellite image to be processed and determine the size of the domestic ocean satellite image to be processed; Step S104: Determine the image area to be processed in the domestic ocean satellite image to be processed, and perform the following denoising process on each pixel to be processed in the image area to be processed to obtain the corresponding denoised pixel, and then obtain the denoised domestic ocean satellite image corresponding to the domestic ocean satellite image to be processed: Determine the coordinate position of the current pixel to be processed in the domestic ocean satellite image to be processed; Determine the maximum amplification times of the sliding window according to the coordinate position and the size of the domestic ocean satellite image to be processed, and determine the maximum sliding window based on the maximum amplification times of the sliding window; Obtain the current sliding window, and use the current pixel to be processed in the image area to be processed as the center of the current sliding window; Calculate the coefficient of variation corresponding to the current sliding window according to the pixel values of the pixels within the image area to be processed and located in the current sliding window; If the coefficient of variation is less than the preset threshold, denoise the pixel value of the current pixel to be processed according to the preset denoising algorithm to obtain the corresponding denoised pixel; If the coefficient of variation is greater than the preset threshold, check whether the current sliding window reaches the maximum sliding window; If not, amplify the current sliding window according to the preset amplification strategy to obtain a new sliding window, and use the new sliding window as the current sliding window, and return to execute the step of using the current pixel to be processed in the image area to be processed as the center of the current sliding window until the corresponding denoised pixel is obtained or the current sliding window reaches the maximum sliding window; If it reaches, set the pixel value of the current pixel to be processed to be empty to complete the denoising of the current pixel to be processed.

[0025] Specifically, when performing denoising processing on each pixel to be processed, traverse each pixel to be processed in the image area to be processed for pixel-by-pixel smoothing. When implementing, pixel-by-pixel smoothing can be performed on the image area to be processed in the direction from top to bottom and from left to right.

[0026] The above coordinate position is specifically the row number (i.e., the abscissa) and column number (i.e., the ordinate) of the current pixel to be processed in the domestic ocean satellite image to be processed.

[0027] As Figure 2 shown, if the current sliding window is the initial sliding window, that is, a 3×3 window, use the current pixel to be processed in the image area to be processed as the center of the current sliding window.

[0028] The calculation formula of the above coefficient of variation is: , where, represents the coefficient of variation, represents the average value of the pixel values of each pixel in the current sliding window, represents the standard deviation of the pixel values of each pixel in the current sliding window.

[0029] The above preset threshold can be 0.15, which is an empirical value. If the above coefficient of variation is less than the preset threshold, it indicates that the discreteness of the pixels to be processed within the current sliding window is not obvious; if the above coefficient of variation is greater than the preset threshold, it indicates that the discreteness of the pixels to be processed within the current sliding window is obvious, and it is meaningless to perform denoising on this basis. Therefore, the size of the current sliding window is increased, such as Figure 3 , expanding the 3×3 window to a 5×5 window.

[0030] In an embodiment of the present invention, a method for processing noise in domestic ocean satellite images is provided, including: obtaining a domestic ocean satellite image to be processed and determining the size of the domestic ocean satellite image to be processed; determining a region of the image to be processed in the domestic ocean satellite image to be processed, and performing the following denoising processing on each pixel to be processed in the region of the image to be processed to obtain a corresponding denoised pixel, and further obtaining a denoised domestic ocean satellite image corresponding to the domestic ocean satellite image to be processed: determining the coordinate position of the current pixel to be processed in the domestic ocean satellite image to be processed; determining the maximum amplification times of the sliding window according to the coordinate position and the size of the domestic ocean satellite image to be processed, and determining the maximum sliding window based on the maximum amplification times of the sliding window; obtaining the current sliding window and using the current pixel to be processed in the region of the image to be processed as the center of the current sliding window; calculating the coefficient of variation corresponding to the current sliding window according to the pixel values of the pixels within the region of the image to be processed and located in the current sliding window; if the coefficient of variation is less than a preset threshold, denoise the pixel value of the current pixel to be processed according to a preset denoising algorithm to obtain a corresponding denoised pixel; if the coefficient of variation is greater than the preset threshold, check whether the current sliding window reaches the maximum sliding window; if not, amplify the current sliding window according to a preset amplification strategy to obtain a new sliding window, and use the new sliding window as the current sliding window, and return to execute the step of using the current pixel to be processed in the region of the image to be processed as the center of the current sliding window until a corresponding denoised pixel is obtained or the current sliding window reaches the maximum sliding window; if so, set the pixel value of the current pixel to be processed to null to complete the denoising of the current pixel to be processed. As can be seen from the above description, in the method for processing noise in domestic ocean satellite images of the present invention, the sliding window can be adaptively amplified according to the image quality (i.e., the size of the coefficient of variation) within the sliding window. In this way, for different pixels to be processed in the same domestic ocean satellite image to be processed, the size of the corresponding sliding window is not completely fixed, but a suitable sliding window is selected according to the specific denoising effect, so as to simultaneously achieve the optimal denoising effect and high processing speed, and alleviate the technical problem that the prior art cannot balance the denoising effect and processing speed when denoising domestic ocean satellite remote sensing images.

[0031] The above briefly introduces the method for processing noise in domestic ocean satellite images of the present invention, and the following will describe the specific content involved in detail.

[0032] In an alternative embodiment of the present invention, determining the region of the image to be processed in the domestic ocean satellite image to be processed specifically includes the following steps: Using the pixels other than the edge pixels in the domestic ocean satellite image to be processed as the region of the image to be processed.

[0033] In an alternative embodiment of the present invention, the maximum amplification times of the sliding window are determined according to the coordinate position and the size of the domestic ocean satellite image to be processed, which specifically includes the following steps: Calculate the maximum amplification times of the sliding window according to the calculation formula m = min(x, y, M - x + 1, N - y + 1) - 2, where m represents the maximum amplification times of the sliding window, x represents the abscissa in the coordinate position, y represents the ordinate in the coordinate position, M represents the number of rows in the size, and N represents the number of columns in the size.

[0034] In an alternative embodiment of the present invention, the maximum sliding window is determined based on the maximum amplification times of the sliding window, which specifically includes the following steps: (1) Obtain a preset initial sliding window and a preset amplification strategy; The above initial sliding window is a 3×3 window, and the above preset amplification strategy is a strategy of amplifying the current sliding window by one pixel size in each direction.

[0035] (2) Amplify the initial sliding window according to the preset amplification strategy and the maximum amplification times to obtain the maximum sliding window.

[0036] Specifically, if the initial sliding window is a 3×3 window, the preset amplification strategy is a strategy of amplifying the current sliding window by one pixel size in each direction, and the maximum amplification times is 2, then the new sliding window obtained after the first amplification is a 4×4 window, and the new sliding window obtained after the second amplification is a 5×5 window.

[0037] In an alternative embodiment of the present invention, if the current sliding window is the initial sliding window, the initial sliding window is a 3×3 window.

[0038] In an alternative embodiment of the present invention, the pixel value of the current pixel to be processed is denoised according to a preset denoising algorithm, which specifically includes the following steps: (1) If , the pixel value of the current pixel to be processed remains unchanged, where represents the current pixel to be processed, represents the average value of the pixel values of the pixels in the current sliding window, and represents the standard deviation of the pixel values of the pixels in the current sliding window; (2) If , the target pixel in the current sliding window is set to empty, and the average value of the pixel values of the pixels in the current sliding window is recalculated, and then the pixel value of the current pixel to be processed is set to the newly calculated average value, where the target pixel is a pixel whose difference between the pixel value and the average value calculated before being set to empty is greater than 3 times the standard deviation.

[0039] In an alternative embodiment of the present invention, the current sliding window is amplified according to a preset amplification strategy, which specifically includes the following steps: The current sliding window is amplified by one pixel size in each direction to obtain a new sliding window.

[0040] Embodiment 2: The embodiment of the present invention also provides a domestic ocean satellite image noise processing device, which is mainly used to execute the domestic ocean satellite image noise processing method provided in Embodiment 1 of the present invention. The following specifically introduces the domestic ocean satellite image noise processing device provided in the embodiment of the present invention.

[0041] Figure 4 is a schematic diagram of a domestic ocean satellite image noise processing device according to an embodiment of the present invention. As Figure 4 shown, the device mainly includes: an acquisition and determination unit 10, a determination and denoising unit 20, where: The acquisition and determination unit is used to acquire the domestic ocean satellite image to be processed and determine the size of the domestic ocean satellite image to be processed. The determination and denoising unit is used to determine the image area to be processed in the domestic ocean satellite image to be processed, and perform the following denoising processing on each pixel to be processed in the image area to be processed to obtain the corresponding denoised pixel, and further obtain the denoised domestic ocean satellite image corresponding to the domestic ocean satellite image to be processed: Determine the coordinate position of the current pixel to be processed in the domestic ocean satellite image to be processed; Determine the maximum amplification times of the sliding window according to the coordinate position and the size of the domestic ocean satellite image to be processed, and determine the maximum sliding window based on the maximum amplification times of the sliding window; Acquire the current sliding window, and use the current pixel to be processed in the image area to be processed as the center of the current sliding window; Calculate the coefficient of variation corresponding to the current sliding window according to the pixel values of the pixels in the current sliding window within the image area to be processed; If the coefficient of variation is less than the preset threshold, denoise the pixel value of the current pixel to be processed according to the preset denoising algorithm to obtain the corresponding denoised pixel; If the coefficient of variation is greater than the preset threshold, check whether the current sliding window reaches the maximum sliding window; If not, amplify the current sliding window according to the preset amplification strategy to obtain a new sliding window, and use the new sliding window as the current sliding window, and return to execute the step of using the current pixel to be processed in the image area to be processed as the center of the current sliding window until the corresponding denoised pixel is obtained, or the current sliding window reaches the maximum sliding window; If the condition is met, set the pixel value of the currently to-be-processed pixel to empty to complete the denoising of the currently to-be-processed pixel.

[0042] In an embodiment of the present invention, a domestic ocean satellite image noise processing device is provided, including: obtaining a to-be-processed domestic ocean satellite image and determining the size of the to-be-processed domestic ocean satellite image; determining a to-be-processed image area in the to-be-processed domestic ocean satellite image, and performing the following denoising processing on each to-be-processed pixel in the to-be-processed image area to obtain the corresponding denoised pixel, and further obtaining the denoised domestic ocean satellite image corresponding to the to-be-processed domestic ocean satellite image: determining the coordinate position of the currently to-be-processed pixel in the to-be-processed domestic ocean satellite image; determining the maximum amplification times of the sliding window according to the coordinate position and the size of the to-be-processed domestic ocean satellite image, and determining the maximum sliding window based on the maximum amplification times of the sliding window; obtaining the current sliding window, and using the currently to-be-processed pixel in the to-be-processed image area as the center of the current sliding window; calculating the coefficient of variation corresponding to the current sliding window according to the pixel values of the pixels in the to-be-processed image area and located in the current sliding window; if the coefficient of variation is less than the preset threshold, denoise the pixel value of the currently to-be-processed pixel according to the preset denoising algorithm to obtain the corresponding denoised pixel; if the coefficient of variation is greater than the preset threshold, check whether the current sliding window reaches the maximum sliding window; if not, amplify the current sliding window according to the preset amplification strategy to obtain a new sliding window, and use the new sliding window as the current sliding window, and return to execute the step of using the currently to-be-processed pixel in the to-be-processed image area as the center of the current sliding window until the corresponding denoised pixel is obtained, or until the current sliding window reaches the maximum sliding window; if it reaches, set the pixel value of the currently to-be-processed pixel to empty to complete the denoising of the currently to-be-processed pixel. It can be seen from the above description that in the domestic ocean satellite image noise processing device of the present invention, the sliding window can be adaptively amplified according to the image quality (i.e., the size of the coefficient of variation) in the sliding window. In this way, for different to-be-processed pixels in the same to-be-processed domestic ocean satellite image, the size of the corresponding sliding window is not completely fixed, but a suitable sliding window is selected according to the specific denoising effect, so as to achieve the optimal denoising effect and high processing speed at the same time, and alleviate the technical problem that the prior art cannot take into account both the denoising effect and the processing speed when denoising domestic ocean satellite remote sensing images.

[0043] Optionally, the determining and denoising unit is further configured to: use the pixels other than the edge pixels in the to-be-processed domestic ocean satellite image as the to-be-processed image area.

[0044] Optionally, the determination and denoising unit is further configured to: calculate the maximum amplification times of the sliding window according to the arithmetic formula m = min(x, y, M - x + 1, N - y + 1) - 2 for the maximum amplification times, where m represents the maximum amplification times of the sliding window, x represents the abscissa in the coordinate position, y represents the ordinate in the coordinate position, M represents the number of rows in the size, and N represents the number of columns in the size.

[0045] Optionally, the determination and denoising unit is further configured to: obtain a preset initial sliding window and a preset amplification strategy; amplify the initial sliding window according to the preset amplification strategy and the maximum amplification times to obtain the maximum sliding window.

[0046] Optionally, if the current sliding window is the initial sliding window, the initial sliding window is a 3×3 window.

[0047] Optionally, the determination and denoising unit is further configured to: if , then the pixel value of the current pixel to be processed remains unchanged, where represents the current pixel to be processed, represents the average value of the pixel values of the pixels in the current sliding window, represents the standard deviation of the pixel values of the pixels in the current sliding window; if , then the target pixel in the current sliding window is set to empty, and the average value of the pixel values of the pixels in the current sliding window is recalculated, and then the pixel value of the current pixel to be processed is set to the newly calculated average value, where the target pixel is a pixel whose difference between the pixel value and the average value calculated before being set empty is greater than 3 times the standard deviation.

[0048] Optionally, the determination and denoising unit is further configured to: amplify the current sliding window by one pixel size in each direction to obtain a new sliding window.

[0049] The device provided by the embodiments of the present invention has the same implementation principle and the same technical effects as those of the foregoing method embodiments. For the sake of brief description, for the parts not mentioned in the device embodiments, reference may be made to the corresponding contents in the foregoing method embodiments.

[0050] As Figure 5 shown, an electronic device 600 provided by an embodiment of the present application includes: a processor 601, a memory 602, and a bus. The memory 602 stores machine-readable instructions executable by the processor 601. When the electronic device runs, the processor 601 communicates with the memory 602 through the bus, and the processor 601 executes the machine-readable instructions to perform the steps of the above-mentioned method for processing noise in domestic ocean satellite images.

[0051] Specifically, the above-mentioned memory 602 and processor 601 can be general-purpose memory and processor, which are not specifically limited here. When the processor 601 runs the computer program stored in the memory 602, it can execute the above-mentioned method for processing noise in domestic ocean satellite images.

[0052] The processor 601 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit in the hardware of the processor 601 or the instructions in the form of software. The above-mentioned processor 601 can be a general-purpose processor, including a central processing unit (CPU for short), a network processor (NP for short), etc.; it can also be a digital signal processor (DSP for short), an application specific integrated circuit (ASIC for short), a field-programmable gate array (FPGA for short), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the art such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers, etc. This storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and combines its hardware to complete the steps of the above method.

[0053] Corresponding to the above-mentioned method for processing noise in domestic ocean satellite images, an embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium stores machine-executable instructions. When the computer-executable instructions are called and run by the processor, the computer-executable instructions cause the processor to run the steps of the above-mentioned method for processing noise in domestic ocean satellite images.

[0054] The domestic marine satellite image noise processing device provided by the embodiments of the present application can be specific hardware on the device or software or firmware installed on the device, etc. The device provided by the embodiments of the present application has the same implementation principle and technical effects as those of the foregoing method embodiments. For the sake of brief description, for the parts not mentioned in the device embodiments, reference can be made to the corresponding content in the foregoing method embodiments. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the foregoing-described systems, devices, and units can all refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein.

[0055] In the embodiments provided by the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation. For another example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some communication interfaces. The indirect couplings or communication connections of the devices or units can be in electrical, mechanical, or other forms.

[0056] For another example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions, and operations of the devices, methods, and computer program products according to multiple embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, as well as the combinations of the blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.

[0057] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0058] In addition, each functional unit in the embodiments provided in this application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.

[0059] If the above-mentioned functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that makes a contribution to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing an electronic device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the domestic ocean satellite image noise processing method described in each embodiment of this application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM for short), random access memories (RAM for short), magnetic disks, or optical discs that can store program codes.

[0060] It should be noted that similar reference numerals and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.

[0061] Finally, it should be noted that: the above-mentioned embodiments are only specific implementation manners of this application, used to illustrate the technical solutions of this application, rather than limiting them. The protection scope of this application is not limited thereto. Although this application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: any person skilled in the art within the technical scope disclosed in this application can still modify the technical solutions recorded in the foregoing embodiments, or can easily think of changes, or perform equivalent replacements on some of the technical features; and these modifications, changes, or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of this application. All should be covered within the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims

1. A method for processing noise in domestic ocean satellite images, characterized in that, Including: Obtain domestic ocean satellite images to be processed, and determine the size of the domestic ocean satellite images to be processed; Determine a region of the image to be processed in the domestic ocean satellite images to be processed, and perform denoising processing on each pixel to be processed in the region of the image to be processed as follows to obtain corresponding denoised pixels, and then obtain denoised domestic ocean satellite images corresponding to the domestic ocean satellite images to be processed: Determine the coordinate position of the current pixel to be processed in the domestic ocean satellite images to be processed; Determine the maximum amplification times of the sliding window according to the coordinate position and the size of the domestic ocean satellite images to be processed, and determine the maximum sliding window based on the maximum amplification times of the sliding window; Obtain the current sliding window, and use the current pixel to be processed in the region of the image to be processed as the center of the current sliding window; Calculate the coefficient of variation corresponding to the current sliding window according to the pixel values of the pixels within the region of the image to be processed and located in the current sliding window; If the coefficient of variation is less than a preset threshold, denoise the pixel value of the current pixel to be processed according to a preset denoising algorithm to obtain a corresponding denoised pixel; If the coefficient of variation is greater than the preset threshold, check whether the current sliding window reaches the maximum sliding window; If not, amplify the current sliding window according to a preset amplification strategy to obtain a new sliding window, and use the new sliding window as the current sliding window, and return to execute the step of using the current pixel to be processed in the region of the image to be processed as the center of the current sliding window until a corresponding denoised pixel is obtained, or until the current sliding window reaches the maximum sliding window; If it reaches, set the pixel value of the current pixel to be processed to be empty to complete the denoising of the current pixel to be processed.

2. The method according to claim 1, wherein Determine a region of the image to be processed in the domestic ocean satellite images to be processed, including: Use the pixels other than the edge pixels in the domestic ocean satellite images to be processed as the region of the image to be processed.

3. The method according to claim 1, wherein Determine the maximum amplification times of the sliding window according to the coordinate position and the size of the domestic ocean satellite images to be processed, including: Calculate the maximum amplification times of the sliding window according to the calculation formula for the maximum amplification times \(m = \min(x,y,M - x + 1,N - y + 1)-2\), where \(m\) represents the maximum amplification times of the sliding window, \(x\) represents the abscissa in the coordinate position, \(y\) represents the ordinate in the coordinate position, \(M\) represents the number of rows in the size, and \(N\) represents the number of columns in the size.

4. The method according to claim 1, wherein Determine the maximum sliding window based on the maximum amplification times of the sliding window, including: Obtain a preset initial sliding window and the preset amplification strategy; Amplify the initial sliding window according to the preset amplification strategy and the maximum amplification times to obtain the maximum sliding window.

5. The method according to claim 4, characterized in that, If the current sliding window is the initial sliding window, the initial sliding window is a \(3\times3\) window.

6. The method according to claim 1, characterized in that, Denoise the pixel value of the current pixel to be processed according to a preset denoising algorithm, including: If , the pixel value of the current pixel to be processed remains unchanged, where represents the current pixel to be processed, represents the average value of the pixel values of the pixels in the current sliding window, represents the standard deviation of the pixel values of the pixels in the current sliding window; If , then set the target pixels in the current sliding window to be empty, recalculate the average value of the pixel values of each pixel in the current sliding window, and then set the pixel value of the current pixel to be processed to the newly calculated average value, where the target pixel is a pixel whose difference between the pixel value and the average value calculated before being set empty is greater than three times the standard deviation.

7. The method according to claim 1, characterized in that, Amplify the current sliding window according to a preset amplification strategy, including: Amplify the current sliding window by one pixel size in all directions to obtain the new sliding window.

8. A domestic marine satellite image noise processing device, characterized in that, Including: An acquisition and determination unit, configured to acquire a domestic ocean satellite image to be processed and determine the size of the domestic ocean satellite image to be processed; A determination and denoising unit, configured to determine a to-be-processed image area in the domestic ocean satellite image to be processed, and perform the following denoising process on each to-be-processed pixel in the to-be-processed image area to obtain a corresponding denoised pixel, and further obtain a denoised domestic ocean satellite image corresponding to the domestic ocean satellite image to be processed: Determine the coordinate position of the current to-be-processed pixel in the domestic ocean satellite image to be processed; Determine the maximum amplification times of the sliding window according to the coordinate position and the size of the domestic ocean satellite image to be processed, and determine the maximum sliding window based on the maximum amplification times of the sliding window; Acquire the current sliding window, and use the current to-be-processed pixel in the to-be-processed image area as the center of the current sliding window; Calculate the coefficient of variation corresponding to the current sliding window according to the pixel values of the pixels in the to-be-processed image area and within the current sliding window; If the coefficient of variation is less than a preset threshold, denoise the pixel value of the current to-be-processed pixel according to a preset denoising algorithm to obtain a corresponding denoised pixel; If the coefficient of variation is greater than the preset threshold, check whether the current sliding window reaches the maximum sliding window; If not, amplify the current sliding window according to a preset amplification strategy to obtain a new sliding window, and use the new sliding window as the current sliding window, and return to execute the step of using the current to-be-processed pixel in the to-be-processed image area as the center of the current sliding window until a corresponding denoised pixel is obtained, or until the current sliding window reaches the maximum sliding window; If it reaches, set the pixel value of the current to-be-processed pixel to be empty to complete the denoising of the current to-be-processed pixel.

9. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7 above.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and run by the processor, the machine-executable instructions cause the processor to run the method according to any one of claims 1 to 7 above.

Citation Information

Patent Citations

  • Filtering method in image processing procedure, and device thereof

    CN104240183A

  • Image type judgment method and device, equipment and storage medium

    CN116935137A

  • Blind image denoising method and apparatus, electronic device, and storage medium

    WO2023284236A1