CN108876738A - A kind of mono- scape image internal brightness compensation method of SAR based on gamma correction - Google Patents

A kind of mono- scape image internal brightness compensation method of SAR based on gamma correction Download PDF

Info

Publication number
CN108876738A
CN108876738A CN201810588116.XA CN201810588116A CN108876738A CN 108876738 A CN108876738 A CN 108876738A CN 201810588116 A CN201810588116 A CN 201810588116A CN 108876738 A CN108876738 A CN 108876738A
Authority
CN
China
Prior art keywords
image
gamma correction
gray value
pixel
normalized
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810588116.XA
Other languages
Chinese (zh)
Inventor
孙增国
李琦伟
张祎彬
吴杉
蔡畅
黄海超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shaanxi Normal University
Original Assignee
Shaanxi Normal University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shaanxi Normal University filed Critical Shaanxi Normal University
Priority to CN201810588116.XA priority Critical patent/CN108876738A/en
Publication of CN108876738A publication Critical patent/CN108876738A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/20Image enhancement or restoration using local operators
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10032Satellite or aerial image; Remote sensing
    • G06T2207/10044Radar image

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

本发明属于数字图像处理技术领域,具体涉及一种基于伽马校正的SAR单景图像内部亮度补偿方法,包括以下具体步骤:S1:通过遍历图像,找到像素点灰度最大值;S2:获得归一化图像;S3:进行伽马校正;S4:作差值图像,对归一化图像和校正后的图像作差值图像;S5:调整灰度级,将差值图像乘以像素点灰度最大值,得到差值图像灰度级范围为[0‑255],调整灰度级的结果图像即为算法处理的最终结果图像;S6:输出图像,输出S5处理后的图像。本发明的基于伽马校正的SAR单景图像内部亮度补偿方法具有能够实现图像亮度的精确补偿的特点,其匀色效果和保留信息更优。

The invention belongs to the technical field of digital image processing, and specifically relates to a gamma correction-based SAR single-scene image internal brightness compensation method, which includes the following specific steps: S1: find the maximum value of pixel grayscale by traversing the image; S2: obtain Normalized image; S3: Perform gamma correction; S4: Make a difference image, make a difference image between the normalized image and the corrected image; S5: Adjust the gray level, multiply the difference image by the pixel gray level The maximum value, the gray scale range of the obtained difference image is [0-255], and the result image of adjusting the gray scale is the final result image processed by the algorithm; S6: Output image, output the image processed by S5. The gamma correction-based SAR single-scene image internal brightness compensation method of the present invention has the characteristics of being able to realize accurate compensation of image brightness, and its color uniformity effect and information retention are better.

Description

一种基于伽马校正的SAR单景图像内部亮度补偿方法A Gamma Correction-Based Internal Brightness Compensation Method for SAR Single Scene Image

技术领域technical field

本发明属于图像处理技术领域,具体涉及一种基于伽马校正的SAR单景图像内部亮度补偿方法。The invention belongs to the technical field of image processing, and in particular relates to a method for compensating internal brightness of a SAR single scene image based on gamma correction.

背景技术Background technique

高分三号卫星是中国高分专项工程的一颗遥感卫星,是世界上成像模式最多的合成孔径雷达(SAR)卫星。卫星成像幅宽大,与高空间分辨率优势相结合,既能实现大范围普查,也能详查特定区域,可满足不同用户对不同目标成像的需求。Gaofen-3 satellite is a remote sensing satellite of China Gaofen Special Project, and it is the synthetic aperture radar (SAR) satellite with the most imaging modes in the world. The satellite imaging has a wide width, combined with the advantages of high spatial resolution, it can not only realize a large-scale general survey, but also a detailed survey of a specific area, which can meet the needs of different users for different target imaging.

然而由于SAR成像角度、地形、雷达天线图的变化以及特殊地物的强后向散射,单幅SAR影像内部出现亮度分布不均匀的问题,表现出明显的亮道,严重影响图像的后续处理与解译,所以能否有效地对图像进行匀色处理显得尤为重要。However, due to changes in SAR imaging angles, terrain, radar antenna patterns, and strong backscattering of special ground objects, there is a problem of uneven brightness distribution inside a single SAR image, showing obvious bright spots, which seriously affects subsequent image processing and Interpretation, so it is particularly important to be able to effectively process the color of the image.

高分三号卫星能够获得高分辨率的SAR图像,其具有明显的边缘、点、纹理等细节特征,所以如何在消除亮道的同时保留明显的细节信息是高分三SAR图像匀色处理的另一个重要目标。The Gaofen-3 satellite can obtain high-resolution SAR images, which have obvious details such as edges, points, and textures. Therefore, how to eliminate bright spots while retaining obvious detail information is the color-leveling process of Gaofen-3 SAR images. Another important goal.

2015年王邦松提出的利用频率域低通滤波的解决方案(王邦松.SAR影像自动配准与镶嵌方法研究[D].武汉大学,2015),参见图4,其频率域低通滤波的解决方案流程如下:首先将原始图像进行快速傅里叶变换得到傅里叶频谱图,通过给定截止频率得到频域高斯滤波器,将傅里叶频谱图与频域高斯滤波器相乘得到低通滤波后的频谱图,再将低通滤波后的频谱图进行快速傅里叶逆变换得到背景图像,最后将原始图像与背景图像对应像素点的像素值相减得到结果图像。从物理效果看,傅立叶变换是将图像从空间域转换到频率域,其逆变换是将图像从频率域转换到空间域。换句话说,傅立叶变换的物理意义是将图像的灰度分布函数变换为图像的频率分布函数,傅立叶逆变换是将图像的频率分布函数变换为灰度分布函数,傅立叶变换以前,图像是由对在连续空间上的采样得到一系列点的集合,通常用一个二维矩阵表示空间上各点。又因空间是三维的,图像是二维的,因此空间中物体在另一个维度上的关系就必须由梯度来表示,这样我们才能通过观察图像得知物体在三维空间中的对应关系。对图像进行二维傅立叶变换得到频谱图,就是图像梯度的分布图。In 2015, Wang Bangsong proposed a solution using frequency-domain low-pass filtering (Wang Bangsong. Research on SAR image automatic registration and mosaic method [D]. Wuhan University, 2015), see Figure 4, the solution flow of its frequency-domain low-pass filtering As follows: First, the original image is fast Fourier transformed to obtain a Fourier spectrogram, and a frequency-domain Gaussian filter is obtained by a given cutoff frequency, and the Fourier spectrogram is multiplied by a frequency-domain Gaussian filter to obtain a low-pass filter The spectrogram of the low-pass filtered spectrogram is subjected to inverse fast Fourier transform to obtain the background image, and finally the pixel value of the corresponding pixel of the original image and the background image is subtracted to obtain the result image. From the physical effect, the Fourier transform is to convert the image from the spatial domain to the frequency domain, and its inverse transform is to convert the image from the frequency domain to the spatial domain. In other words, the physical meaning of Fourier transform is to transform the grayscale distribution function of the image into the frequency distribution function of the image, and the inverse Fourier transform is to transform the frequency distribution function of the image into the grayscale distribution function. Before Fourier transform, the image is composed of Sampling in a continuous space obtains a set of points, and a two-dimensional matrix is usually used to represent each point in space. Because the space is three-dimensional and the image is two-dimensional, the relationship of objects in another dimension must be represented by gradients, so that we can know the corresponding relationship of objects in three-dimensional space by observing the image. Two-dimensional Fourier transform is performed on the image to obtain a spectrogram, which is the distribution map of the image gradient.

在图像处理中,高斯低通滤波器的诸多特性使其得到了广泛的应用,频率域的高斯低通滤波器的数学表达式为:In image processing, many characteristics of the Gaussian low-pass filter make it widely used. The mathematical expression of the Gaussian low-pass filter in the frequency domain is:

H为高斯低通滤波器,u,v分别为频率域的横向与纵向坐标,D(u,v)是频域坐标系中一点(u,v)到坐标原点(0,0)的平面距离,D0是滤波器的截止频率。H is a Gaussian low-pass filter, u, v are the horizontal and vertical coordinates in the frequency domain, respectively, D(u, v) is the plane distance from a point (u, v) in the frequency domain coordinate system to the coordinate origin (0,0) , D 0 is the cutoff frequency of the filter.

由上式可以看出,若给定的截止频率D0偏大,则会导致高斯低通滤波器数值偏大;若给定的截止频率D0偏小,则会导致高斯低通滤波器数值偏小。It can be seen from the above formula that if the given cut-off frequency D0 is too large, the value of the Gaussian low-pass filter will be too large; if the given cut-off frequency D0 is too small, the value of the Gaussian low-pass filter will be too large. On the small side.

低通滤波是要保留图像中的低频分量而去除图像中的高频分量。图像中的边缘和噪声都对应图像频域中的高频部分,通过在频域中的低通滤波可以除去或消弱噪声影响并模糊边缘轮廓。为了更好的除去或消弱噪声影响并模糊边缘轮廓,截止频率D0的选取不能偏小。Low-pass filtering is to retain the low-frequency components in the image and remove the high-frequency components in the image. Both the edge and the noise in the image correspond to the high-frequency part in the frequency domain of the image, and the low-pass filtering in the frequency domain can remove or weaken the influence of noise and blur the edge contour. In order to better remove or weaken the influence of noise and blur the edge contour, the selection of the cut-off frequency D 0 should not be too small.

频率域低通滤波算法可以在一定程度上降低图像亮道,但并未有效地消除亮道现象,结果图像的灰度级仍然呈现出较为明显的差异;并且截止频率偏大导致高斯滤波器数值较大,相乘得到低通滤波后频谱图进行快速傅里叶逆变换得到的背景图像像素值大于原图像像素值,则差值图像的对应像素灰度值就会出现负值。而图像数据范围为[0-255],相减得到负值的像素点会自动补为0,这些像素点会把原来的细节信息显示为灰度值0的黑点,导致结果图像不仅丢失相应的细节信息,而且在亮度补偿图像上表现出黑点现象。总之,从匀色效果和信息保留两方面,都没有取得很好的效果。The frequency-domain low-pass filtering algorithm can reduce the bright channel of the image to a certain extent, but it does not effectively eliminate the bright channel phenomenon. As a result, the gray level of the image still shows obvious differences; Larger, multiplied to get the low-pass filtered spectrogram and perform inverse fast Fourier transform to get the background image pixel value is greater than the original image pixel value, then the corresponding pixel gray value of the difference image will appear negative. The image data range is [0-255], and the pixels with negative values obtained by subtraction will be automatically filled to 0, and these pixels will display the original detailed information as black dots with a gray value of 0, causing the resulting image not only to lose the corresponding details, and black spots appear on the brightness compensation image. In short, it has not achieved good results in terms of color uniformity and information retention.

发明内容Contents of the invention

为了解决现有技术中存在的上述问题,本发明提供了一种基于伽马校正的SAR单景图像内部亮度补偿方法,它利用幂律变换中的伽马校正方法,能够严格保证差值图像不会出现负值,减少了信息的损失,可保证图像亮度调整的精度,具备匀色效果和保留信息更优的特点。In order to solve the above-mentioned problems existing in the prior art, the present invention provides a SAR single-scene image internal brightness compensation method based on gamma correction, which utilizes the gamma correction method in power-law transformation to strictly ensure that the difference image is not There will be negative values, which reduces the loss of information, ensures the accuracy of image brightness adjustment, and has the characteristics of better color uniformity and information retention.

本发明要解决的技术问题通过以下技术方案实现:The technical problem to be solved in the present invention is realized through the following technical solutions:

包括以下具体步骤:Include the following specific steps:

S1:通过遍历图像,找到像素点灰度最大值ImaxS1: By traversing the image, find the maximum gray value I max of the pixel.

S2:获得归一化图像S2: Obtain a normalized image

用原始图像每一个像素点灰度值除以所述像素点灰度最大值Imax,获得归一化图像,即将原始图像的像素点灰度值映射至[0,1]范围内得到图像IN;即,归一化图像IN∈[0,1];Divide the gray value of each pixel of the original image by the maximum gray value of the pixel I max to obtain a normalized image, that is, map the gray value of the pixel of the original image to the range [0,1] to obtain the image I N ; that is, the normalized image I N ∈ [0,1];

S3:进行伽马校正S3: Perform gamma correction

对所述归一化图像使用伽马校正得到校正后的图像,其中,c(0<c<1)为常数,γ(γ>1)为伽马因子,由于IN∈[0,1],0<c<1,λ>1,易知JN∈[0,1),并且仅当IN取0时,JN为0;For the normalized image Use gamma correction The corrected image is obtained, where c (0<c<1) is a constant, γ (γ>1) is a gamma factor, since I N ∈ [0,1], 0<c<1, λ>1, It is easy to know that J N ∈ [0,1), and only when I N takes 0, J N is 0;

S4:作差值图像S4: make difference image

对所述归一化图像和所述校正后的图像作差值,得到差值图像为:ΔJ=IN-JN,其中,ΔJ≥0;For the normalized image and the rectified image Make a difference to obtain a difference image: ΔJ=I N -J N , where ΔJ≥0;

S5:调整灰度级S5: Adjust the gray level

将所述差值图像ΔJ=IN-JN乘以所述像素点灰度最大值Imax,得到调整灰度级的结果图像,所述调整灰度级的结果图像结果灰度级范围为[0-255],且所述调整灰度级的结果图像即为算法处理的最终结果图像;Multiplying the difference image ΔJ= IN-J N by the maximum value of pixel grayscale I max to obtain the result image of the adjusted gray level, the gray level range of the result image of the adjusted gray level is 0-255], and the result image of the gray scale adjustment is the final result image of algorithm processing;

S6:输出图像S6: output image

输出所述算法处理的最终结果图像。Output the final result image processed by the algorithm.

进一步的,在S1中,对于SAR单景图像,该图像为uint8格式,灰度值数据范围为[0-255],每一个像素点为[0-255]的一个灰度值,通过循环所有像素点遍历原始图像I,找到像素点灰度最大值ImaxFurther, in S1, for the SAR single-view image, the image is in uint8 format, the gray value data range is [0-255], and each pixel is a gray value of [0-255], by looping through all The pixels traverse the original image I to find the maximum gray value I max of the pixel.

与现有技术相比,本发明具有以下的有益效果:Compared with the prior art, the present invention has the following beneficial effects:

本发明利用幂律变换中伽马校正的方法,对归一化的图像进行处理,不但使伽马校正后的图像能够得到有效的亮度补偿,使图像取得更好的匀色效果;同时,使伽马校正后的图像像素灰度值不大于原来的归一化图像像素灰度值,避免了像素间对应相减出现负值的情况,减少了信息的损失,从而实现图像亮度的精确补偿。The present invention utilizes the method of gamma correction in power-law transformation to process the normalized image, which not only enables the gamma-corrected image to obtain effective brightness compensation, but also enables the image to obtain a better uniform color effect; at the same time, the The gray value of the image pixel after gamma correction is not greater than the gray value of the original normalized image pixel, which avoids the negative value of corresponding subtraction between pixels, reduces the loss of information, and thus realizes accurate compensation of image brightness.

附图说明Description of drawings

图1是本发明方法的流程图。Figure 1 is a flow chart of the method of the present invention.

图2(a)、图2(b)、图2(c)是一组高分三SAR图像通过不同方法处理后的图像对比;Figure 2(a), Figure 2(b), and Figure 2(c) are image comparisons of a set of high-resolution three SAR images processed by different methods;

其中,图2(a)为未经处理的原始图像;图2(b)为经频率域低通滤波处理后的图像,其中,截止频率为6;图2(c)为本发明方法处理后的图像,其中(c=0.7,γ=10)。Wherein, Fig. 2 (a) is the unprocessed original image; Fig. 2 (b) is the image processed by frequency domain low-pass filtering, wherein, the cut-off frequency is 6; Fig. 2 (c) is after the method of the present invention processes The image of , where (c=0.7, γ=10).

图3(a)、图3(b)、图3(c)是另一组高分三SAR图像通过不同方法处理后的图像对比;Figure 3(a), Figure 3(b), and Figure 3(c) are image comparisons of another group of high-resolution three-sar images processed by different methods;

其中,图3(a)为未经处理的原始图像;图3(b)为经频率域低通滤波处理后的图像,其中,截止频率为6;图3(c)为本发明方法处理后的图像,其中,(c=0.99,γ=20)。Wherein, Fig. 3 (a) is the unprocessed original image; Fig. 3 (b) is the image processed by frequency domain low-pass filtering, wherein, the cut-off frequency is 6; Fig. 3 (c) is after the method of the present invention processes The image of , where, (c=0.99, γ=20).

图4是频率域低通滤波方法的流程图。Fig. 4 is a flow chart of the low-pass filtering method in the frequency domain.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚明了,下面结合附图对本发明作以详细的描述。但是应该理解,这些描述只是示例性的,而并非限制本发明的范围。此外,在以下说明中,省略了部分公知常识和技术的描述,以避免不必要的混淆对本发明的理解。In order to make the object, technical solution and advantages of the present invention more clear, the present invention will be described in detail below in conjunction with the accompanying drawings. However, it should be understood that these descriptions are illustrative only and do not limit the scope of the present invention. In addition, in the following description, descriptions of some common knowledge and technologies are omitted to avoid unnecessary confusion of the understanding of the present invention.

由于SAR卫星成像角度、地形、雷达天线图的变化以及特殊地物的强后向散射,单幅SAR影像内部出现亮度分布不均匀的问题,表现出明显的亮道,严重影响图像的后续处理与解译,所以能否有效地对图像进行匀色处理显得尤为重要。Due to the change of SAR satellite imaging angle, terrain, radar antenna map and strong backscattering of special ground objects, there is a problem of uneven brightness distribution inside a single SAR image, showing obvious bright spots, which seriously affects the subsequent processing and processing of images. Interpretation, so it is particularly important to be able to effectively process the color of the image.

高分三号卫星能够获得高分辨率的SAR图像,其具有明显的边缘、点、纹理等细节特征,所以如何在消除亮道的同时保留明显的细节信息是高分三SAR图像匀色处理的另一个重要目标。The Gaofen-3 satellite can obtain high-resolution SAR images, which have obvious details such as edges, points, and textures. Therefore, how to eliminate bright spots while retaining obvious details is the color-leveling process of Gaofen-3 SAR images. Another important goal.

以下是实现其所需处理结果的具体实施程序:The following are specific implementation procedures to achieve its desired processing results:

参见图1,本发明一种基于伽马校正的SAR单景图像内部亮度补偿方法,其具体步骤如下:Referring to Fig. 1, a method for compensating internal brightness of a SAR single scene image based on gamma correction in the present invention, the specific steps are as follows:

S1:对于SAR单景图像,该图像为uint8格式,灰度值数据范围为[0-255],每一个像素点为[0-255]的一个灰度值,通过循环所有像素点遍历原始图像I,找到像素点灰度最大值ImaxS1: For a SAR single-scene image, the image is in uint8 format, the gray value data range is [0-255], each pixel is a gray value of [0-255], and the original image is traversed by looping through all pixels I, to find the maximum gray value I max of the pixel.

S2:获得归一化图像S2: Obtain a normalized image

用原始图像每一个像素点灰度值除以所述像素点灰度最大值Imax,获得归一化图像,即将原始图像的像素点灰度值映射至[0,1]范围内得到图像IN;即,归一化图像IN∈[0,1];Divide the gray value of each pixel of the original image by the maximum gray value of the pixel I max to obtain a normalized image, that is, map the gray value of the pixel of the original image to the range [0,1] to obtain the image I N ; that is, the normalized image I N ∈ [0,1];

S3:进行伽马校正S3: Perform gamma correction

对所述归一化图像使用伽马校正得到校正后的图像,其中,c(0<c<1)为常数,γ(γ>1)为伽马因子,由于IN∈[0,1],0<c<1,λ>1,易知JN∈[0,1),并且仅当IN取0时,JN为0;For the normalized image Use gamma correction The corrected image is obtained, where c (0<c<1) is a constant, γ (γ>1) is a gamma factor, since I N ∈ [0,1], 0<c<1, λ>1, It is easy to know that J N ∈ [0,1), and only when I N takes 0, J N is 0;

S4:作差值图像S4: make difference image

对所述归一化图像和所述校正后的图像作差值,得到差值图像为:ΔJ=IN-JN,其中,ΔJ≥0;For the normalized image and the rectified image Make a difference to obtain a difference image: ΔJ=I N -J N , where ΔJ≥0;

S5:调整灰度级S5: Adjust the gray level

将所述差值图像ΔJ=IN-JN乘以所述像素点灰度最大值Imax,得到调整灰度级的结果图像,所述调整灰度级的结果图像结果灰度级范围为[0-255],且所述调整灰度级的结果图像即为算法处理的最终结果图像;Multiplying the difference image ΔJ= IN-J N by the maximum value of pixel grayscale I max to obtain the result image of the adjusted gray level, the gray level range of the result image of the adjusted gray level is 0-255], and the result image of the gray scale adjustment is the final result image of algorithm processing;

S6:输出图像S6: output image

输出所述算法处理的最终结果图像。Output the final result image processed by the algorithm.

以下为具体的结果比对和分析:The following is the specific result comparison and analysis:

对比例1:Comparative example 1:

参见图2(a)是未经处理的原始图像;See Figure 2(a) for the unprocessed original image;

图2(b)是原图经频率域低通滤波处理后的图像,其中,截止频率为6;Figure 2(b) is the original image processed by low-pass filtering in the frequency domain, where the cutoff frequency is 6;

图2(c)是本发明方法处理后得到的图像,其中c=0.7,γ=10;Fig. 2 (c) is the image obtained after the method of the present invention is processed, and wherein c=0.7, γ=10;

对比图2(a)和图2(b),可知,参见图2(a),未经处理的原始图像由于辐射校正的原因,SAR图像上出现亮度不均匀的问题,表现出明显的亮道现象。为了后续处理的顺利开展,必须要对图像的亮度进行补偿,即对图像中的亮道进行匀色处理。显然,参见图2(b),经频率域低通滤波方法处理后的图像,可以看出能够一定程度上降低图像亮道,但并没有有效的消除亮道现象,结果图像的灰度级仍然呈现出较为明显的差异,即并没有取得较好的亮度补偿和匀色效果。特别是,由于频率域低通滤波方法不能保证背景图像的灰度级严格小于原始图像,因此差值图像的灰度级会出现负数情况,因而损失了相应的细节信息,在图像上表现出很多黑点现象。Comparing Figure 2(a) and Figure 2(b), we can see that, referring to Figure 2(a), the unprocessed original image has the problem of uneven brightness on the SAR image due to radiation correction, showing obvious bright spots Phenomenon. In order to carry out the subsequent processing smoothly, the brightness of the image must be compensated, that is, the bright channels in the image must be uniformly processed. Obviously, referring to Figure 2(b), the image processed by the frequency-domain low-pass filtering method can be seen to reduce the image bright channel to a certain extent, but it does not effectively eliminate the bright channel phenomenon, and the gray level of the result image is still It shows a more obvious difference, that is, it does not achieve better brightness compensation and color uniformity. In particular, since the low-pass filtering method in the frequency domain cannot guarantee that the gray level of the background image is strictly smaller than the original image, the gray level of the difference image will appear negative, thus losing the corresponding detail information and showing a lot of black spot phenomenon.

其中,匀色是对一幅或多幅影像内的亮度、反差、色调、饱和度分布不均匀现象进行校正,使影像各个位置的亮度、反差、色调、饱和度基本一致。亮度补偿就是一种匀色处理。Among them, color uniformity is to correct the uneven distribution of brightness, contrast, hue, and saturation in one or more images, so that the brightness, contrast, hue, and saturation of each position of the image are basically consistent. Brightness compensation is a kind of uniform color processing.

图2(c)是本发明基于伽马校正的SAR单景图像内部亮度补偿方法处理的图像,参见图2(c),本发明所提的基于伽马校正的亮度补偿方法,通过对归一化图像进行合理的幂率变换的伽马校正,能够有效消除亮道现象的影响,获得较为理想的匀色效果。同时,本发明所提方法能够保证差值图像的灰度级不会出现负数,因而可以有效保留图像的细节信息,避免了黑点现象的出现,使后续的处理得以高效开展。总之,从匀色效果和信息保留两方面,所提方法明显优于频率域低通滤波方法。Fig. 2 (c) is the image processed by the SAR single scene image internal brightness compensation method based on gamma correction in the present invention, referring to Fig. 2 (c), the brightness compensation method based on gamma correction proposed in the present invention, by normalizing The gamma correction of reasonable power-law transformation can effectively eliminate the influence of bright channel phenomenon and obtain a more ideal color uniformity effect. At the same time, the method proposed in the present invention can ensure that the gray level of the difference image will not have negative numbers, so that the detailed information of the image can be effectively preserved, the occurrence of black spots can be avoided, and subsequent processing can be carried out efficiently. In short, the proposed method is significantly better than the frequency domain low-pass filtering method in terms of color uniformity effect and information retention.

综上,对比图2(a)、图2(b)、图2(c),可知,未经处理的原始图像SAR图像上出现亮度不均匀的问题,表现出明显的亮道现象;而经频率域低通滤波处理后的图像,可以看出能够一定程度上降低图像亮道,但并没有有效的消除亮道现象,结果图像的灰度级仍然呈现出较为明显的差异;同时,因为差值图像的灰度级会出现负数,不能有效保留图像的细节信息;本发明方法处理的图像,能够有效消除亮道现象的影响,获得较为理想的匀色效果,本发明所提方法能够保证差值图像的灰度级不会出现负数,因而可以有效保留图像的细节信息,避免了黑点现象的出现,使后续的处理得以高效开展。In summary, comparing Fig. 2(a), Fig. 2(b) and Fig. 2(c), it can be seen that the unprocessed original image SAR image has the problem of uneven brightness, showing obvious bright channel phenomenon; The image processed by low-pass filtering in the frequency domain can be seen to reduce the image bright channel to a certain extent, but it does not effectively eliminate the bright channel phenomenon. As a result, the gray level of the image still shows a relatively obvious difference; The gray level of the value image will appear negative, and the detailed information of the image cannot be effectively preserved; the image processed by the method of the present invention can effectively eliminate the influence of the bright channel phenomenon, and obtain a relatively ideal color uniform effect. The gray level of the value image will not appear negative, so the detailed information of the image can be effectively preserved, the appearance of black spots can be avoided, and the subsequent processing can be carried out efficiently.

为了能够进一步说明本发明方法处理后的图像效果优于王邦松(王邦松.SAR影像自动配准与镶嵌方法研究[D].武汉大学,2015)论文中提到的频率域低通滤波的处理方法,作了以下进一步的对比:In order to be able to further illustrate that the image effect after the method of the present invention is processed is better than the processing method of frequency domain low-pass filtering mentioned in the paper of Wang Bangsong (Wang Bangsong. Research on SAR image automatic registration and mosaic method [D]. Wuhan University, 2015), The following further comparisons were made:

对比例2:Comparative example 2:

与对比例1不同组的高分三SAR图像;参见图3(a)、参见图3(b)、参见图3(c);High score three SAR images of different groups from Comparative Example 1; see Figure 3(a), see Figure 3(b), see Figure 3(c);

图3(a)为未经处理的原始图像;Figure 3(a) is the unprocessed original image;

图3(b)是原图经频率域低通滤波处理后的图像,其中,截止频率为6;Figure 3(b) is the original image processed by low-pass filtering in the frequency domain, where the cutoff frequency is 6;

图3(c)是本发明方法处理后得到的图像,其中c=0.99,γ=20;Fig. 3 (c) is the image obtained after the method of the present invention is processed, and wherein c=0.99, γ=20;

对比图3(a)、图3(b)和图3(c)同样可以得到,未经处理的原始图像SAR图像上出现亮度不均匀的问题,表现出明显的亮道现象;而经频率域低通滤波处理后的图像,可以看出能够一定程度上降低图像亮道,但并没有有效的消除亮道现象,结果图像的灰度级仍然呈现出较为明显的差异;同时,因为差值图像的灰度级会出现负数,不能有效保留图像的细节信息;本发明方法处理的图像,能够有效消除亮道现象的影响,获得较为理想的匀色效果,本发明所提方法能够保证差值图像的灰度级不会出现负数,因而可以有效保留图像的细节信息,避免了黑点现象的出现,使后续的处理得以高效开展。Comparing Figure 3(a), Figure 3(b) and Figure 3(c), it can also be obtained that the unprocessed original image SAR image has the problem of uneven brightness, showing obvious bright channel phenomenon; It can be seen that the image after low-pass filtering can reduce the bright channel to a certain extent, but it does not effectively eliminate the bright channel phenomenon. As a result, the gray level of the image still shows obvious differences; at the same time, because the difference image Negative numbers will appear in the gray level, and the detailed information of the image cannot be effectively preserved; the image processed by the method of the present invention can effectively eliminate the influence of the bright channel phenomenon, and obtain a relatively ideal color uniformity effect, and the method proposed by the present invention can ensure that the difference image There will be no negative gray level, so the detailed information of the image can be effectively preserved, the appearance of black spots can be avoided, and the subsequent processing can be carried out efficiently.

可见,本发明方法能够有效的消除亮道现象,获得较为理想的匀色效果;同时,能够保证差值图像的灰度级不会出现负数,因而可以有效保留图像的细节信息,避免了黑点现象的出现。It can be seen that the method of the present invention can effectively eliminate the bright channel phenomenon and obtain a relatively ideal color uniformity effect; at the same time, it can ensure that the gray level of the difference image will not have negative numbers, so that the detailed information of the image can be effectively preserved and black spots can be avoided. the emergence of the phenomenon.

以上内容是结合具体的优选实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, and it cannot be assumed that the specific implementation of the present invention is limited to these descriptions. For those of ordinary skill in the technical field of the present invention, without departing from the concept of the present invention, some simple deduction or replacement can be made, which should be regarded as belonging to the protection scope of the present invention.

Claims (2)

1.一种基于伽马校正的SAR单景图像内部亮度补偿方法,其特征在于,具体步骤如下:1. A method for compensating brightness inside a SAR single scene image based on gamma correction, characterized in that, the specific steps are as follows: S1:通过遍历图像,找到像素点灰度最大值ImaxS1: By traversing the image, find the maximum pixel gray value I max ; S2:获得归一化图像S2: Obtain a normalized image 用原始图像每一个像素点灰度值除以像素点灰度最大值Imax,获得归一化图像,即将原始图像的像素点灰度值映射至[0,1]范围内得到图像IN;即,归一化图像IN∈[0,1];Divide each pixel gray value of the original image by the maximum pixel gray value I max to obtain a normalized image, that is, map the pixel gray value of the original image to the range [0,1] to obtain the image I N ; That is, the normalized image I N ∈ [0,1]; S3:进行伽马校正S3: Perform gamma correction 对归一化图像使用伽马校正得到校正后的图像,其中,c(0<c<1)为常数,γ(γ>1)为伽马因子,由于IN∈[0,1],0<c<1,λ>1,易知JN∈[0,1),并且仅当IN取0时,JN为0;For normalized images Use gamma correction The corrected image is obtained, where c (0<c<1) is a constant, γ (γ>1) is a gamma factor, since I N ∈ [0,1], 0<c<1, λ>1, It is easy to know that J N ∈ [0,1), and only when I N takes 0, J N is 0; S4:作差值图像S4: make difference image 对归一化图像和校正后的图像作差值图像得:ΔJ=IN-JN,其中,ΔJ≥0;For normalized images and corrected image Make difference image: ΔJ=I N -J N , where, ΔJ≥0; S5:调整灰度级S5: Adjust the gray level 将差值图像ΔJ=IN-JN乘以像素点灰度最大值Imax,得到差值图像灰度级范围为[0-255],调整灰度级的结果图像即为算法处理的最终结果图像;Multiply the difference image ΔJ=I N -J N by the maximum value of pixel grayscale I max to get the grayscale range of the difference image is [0-255], and the resulting image after adjusting the grayscale is the final result of the algorithm processing result image; S6:输出图像S6: output image 输出S5处理后的图像。Output the image processed by S5. 2.根据权利要求1所述的一种基于伽马校正的SAR单景图像内部亮度补偿方法,其特征在于,所述S1具体是:2. A kind of SAR single scene image internal brightness compensation method based on gamma correction according to claim 1, it is characterized in that, described S1 is specifically: 对于SAR单景图像,该图像为uint8格式,灰度值数据范围为[0-255],每一个像素点为[0-255]的一个灰度值,通过循环所有像素点遍历原始图像I,找到像素点灰度最大值ImaxFor the SAR single-view image, the image is in uint8 format, the gray value data range is [0-255], each pixel is a gray value of [0-255], and the original image I is traversed by looping through all the pixels, Find the maximum pixel gray value I max .
CN201810588116.XA 2018-06-08 2018-06-08 A kind of mono- scape image internal brightness compensation method of SAR based on gamma correction Pending CN108876738A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810588116.XA CN108876738A (en) 2018-06-08 2018-06-08 A kind of mono- scape image internal brightness compensation method of SAR based on gamma correction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810588116.XA CN108876738A (en) 2018-06-08 2018-06-08 A kind of mono- scape image internal brightness compensation method of SAR based on gamma correction

Publications (1)

Publication Number Publication Date
CN108876738A true CN108876738A (en) 2018-11-23

Family

ID=64337598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810588116.XA Pending CN108876738A (en) 2018-06-08 2018-06-08 A kind of mono- scape image internal brightness compensation method of SAR based on gamma correction

Country Status (1)

Country Link
CN (1) CN108876738A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110132823A (en) * 2019-05-15 2019-08-16 林伟阳 A Cell Counting Method Based on Template Matching and Finding Outlines
CN110246091A (en) * 2019-04-25 2019-09-17 新疆大学 The method and apparatus for determining SAR figure diff area
CN112950657A (en) * 2021-03-29 2021-06-11 合肥京东方显示技术有限公司 Gamma value correction method, gamma value correction device, electronic device, and readable storage medium
CN113870233A (en) * 2021-09-30 2021-12-31 常州市宏发纵横新材料科技股份有限公司 Binding yarn detection method, computer equipment and storage medium
CN115628579A (en) * 2021-07-13 2023-01-20 海信集团控股股份有限公司 A kind of intelligent refrigerator and item identification method
WO2023142915A1 (en) * 2022-01-29 2023-08-03 京东方科技集团股份有限公司 Image processing method, apparatus and device, and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567959A (en) * 2010-12-31 2012-07-11 新奥特(北京)视频技术有限公司 Multi-way image grey adjusting method
US20170098429A1 (en) * 2009-09-01 2017-04-06 Entertainment Experience Llc Method for producing a color image and imaging device employing same
CN107527333A (en) * 2017-07-31 2017-12-29 湖北工业大学 A kind of rapid image Enhancement Method based on gamma transformation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170098429A1 (en) * 2009-09-01 2017-04-06 Entertainment Experience Llc Method for producing a color image and imaging device employing same
CN102567959A (en) * 2010-12-31 2012-07-11 新奥特(北京)视频技术有限公司 Multi-way image grey adjusting method
CN107527333A (en) * 2017-07-31 2017-12-29 湖北工业大学 A kind of rapid image Enhancement Method based on gamma transformation

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘祖根著: "《图像隐写分析算法研究及其应用》", 31 January 2016, 西南交通大学出版社 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110246091A (en) * 2019-04-25 2019-09-17 新疆大学 The method and apparatus for determining SAR figure diff area
CN110132823A (en) * 2019-05-15 2019-08-16 林伟阳 A Cell Counting Method Based on Template Matching and Finding Outlines
CN112950657A (en) * 2021-03-29 2021-06-11 合肥京东方显示技术有限公司 Gamma value correction method, gamma value correction device, electronic device, and readable storage medium
CN115628579A (en) * 2021-07-13 2023-01-20 海信集团控股股份有限公司 A kind of intelligent refrigerator and item identification method
CN113870233A (en) * 2021-09-30 2021-12-31 常州市宏发纵横新材料科技股份有限公司 Binding yarn detection method, computer equipment and storage medium
WO2023142915A1 (en) * 2022-01-29 2023-08-03 京东方科技集团股份有限公司 Image processing method, apparatus and device, and storage medium

Similar Documents

Publication Publication Date Title
CN108876738A (en) A kind of mono- scape image internal brightness compensation method of SAR based on gamma correction
CN110310237B (en) Method and system for removing image moire, measuring brightness of display panel sub-pixel point and repairing Mura defect
Wang et al. Variational single nighttime image haze removal with a gray haze-line prior
CN105654437B (en) A kind of Enhancement Method of pair of low-light (level) image
CN107358585B (en) Foggy day image enhancement method based on fractional order differential and dark channel prior
CN111968065B (en) Self-adaptive enhancement method for image with uneven brightness
CN108765342A (en) A kind of underwater image restoration method based on improvement dark
CN104063848A (en) Enhancement method and device for low-illumination image
WO2012119189A1 (en) Colour calibration method for an image capture device
Gao et al. Sandstorm image enhancement based on YUV space
CN105139343A (en) Image processing method and device
CN107784639B (en) Improved multilateral filtering denoising method for remote sensing image of unmanned aerial vehicle
Yu et al. Image and video dehazing using view-based cluster segmentation
CN113450272B (en) Image enhancement method based on sinusoidal variation and application thereof
CN106981052B (en) Adaptive uneven brightness variation correction method based on variation frame
CN112435184A (en) Haze sky image identification method based on Retinex and quaternion
CN109272465B (en) Aviation image color consistency processing algorithm
Anantrasirichai et al. Mitigating the effects of atmospheric distortion using DT-CWT fusion
CN110992287B (en) A method for sharpening video with non-uniform illumination
WO2006055493B1 (en) Correction of image color levels
CN114612344B (en) Image sharpening device and method
CN105225203B (en) Noise suppressing method and device
CN111429383A (en) Image noise reduction method and device and computer readable storage medium
CN113706405B (en) Image striping method combining feature extraction and nonlinear fitting
CN111445394B (en) Visible light image self-adaptive enhancement method for air-to-ground observation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181123

RJ01 Rejection of invention patent application after publication