[go: up one dir, main page]

CN108510496B - A Blur Detection Method Based on SVD Decomposition in Image DCT Domain - Google Patents

A Blur Detection Method Based on SVD Decomposition in Image DCT Domain Download PDF

Info

Publication number
CN108510496B
CN108510496B CN201810313311.1A CN201810313311A CN108510496B CN 108510496 B CN108510496 B CN 108510496B CN 201810313311 A CN201810313311 A CN 201810313311A CN 108510496 B CN108510496 B CN 108510496B
Authority
CN
China
Prior art keywords
image
follows
blocks
block
calculate
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.)
Active
Application number
CN201810313311.1A
Other languages
Chinese (zh)
Other versions
CN108510496A (en
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.)
Hangzhou Dianzi University
Original Assignee
Hangzhou Dianzi 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 Hangzhou Dianzi University filed Critical Hangzhou Dianzi University
Priority to CN201810313311.1A priority Critical patent/CN108510496B/en
Publication of CN108510496A publication Critical patent/CN108510496A/en
Application granted granted Critical
Publication of CN108510496B publication Critical patent/CN108510496B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20021Dividing image into blocks, subimages or windows
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20048Transform domain processing
    • G06T2207/20052Discrete cosine transform [DCT]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30168Image quality inspection

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)

Abstract

本发明提出了一种基于图像DCT域的SVD分解的模糊检测方法。首先计算待测图像的梯度图,图像的边缘信息可以从梯度图中得到,然后把梯度图进行分块,并进行DCT变换,因为DCT域的交流系数反映了图像的边缘和清晰度,接着差分矩阵来分析DCT域的交流系数信息,通过计算差分矩阵的奇异值,并构造响应函数来表示块的图像的模糊程度,最终用均值和方差去归一化图像块响应之和,来消除图像内容的影响。实验表明该方法得到的模糊分数与人眼对图像的主观评价分数高度一致。本发明的检测模型考虑到图像变模糊过程中的边缘变宽,清晰度变弱等特点,并有效的消除图像内容的影响,因此检测准确率很高,而且检测效率快,整体性能优于前人的方法。

Figure 201810313311

The invention proposes a blur detection method based on the SVD decomposition of the image DCT domain. First calculate the gradient map of the image to be tested, and the edge information of the image can be obtained from the gradient map, then divide the gradient map into blocks, and perform DCT transformation, because the AC coefficient of the DCT domain reflects the edge and clarity of the image, and then the difference The matrix is used to analyze the AC coefficient information in the DCT domain. By calculating the singular value of the difference matrix, and constructing the response function to represent the blur degree of the image of the block, the mean and variance are used to normalize the sum of the image block responses to eliminate the image content. Impact. Experiments show that the fuzzy score obtained by this method is highly consistent with the subjective evaluation score of the image by the human eye. The detection model of the present invention takes into account the characteristics of wider edges and weaker definition in the process of image blurring, and effectively eliminates the influence of image content, so the detection accuracy is high, the detection efficiency is fast, and the overall performance is better than the previous one. the way of man.

Figure 201810313311

Description

基于图像DCT域的SVD分解的模糊检测方法A Blur Detection Method Based on SVD Decomposition in Image DCT Domain

技术领域technical field

本发明涉及图像模糊检测领域,提出了一种基于图像DCT域的SVD分解的模糊检测方法,该方法能够快速并且准确的检测出模糊图像。The invention relates to the field of image blur detection, and proposes a blur detection method based on SVD decomposition in the image DCT domain, which can quickly and accurately detect blurred images.

背景技术Background technique

数字图像作为信息传递的载体之一,在日常生活或工作中扮演着重要的角色。比如手机的普及使得手机拍照成为人们日常娱乐项目之一;卫星遥感图像给农业、工业和环境带来的便利等。但是数字图像在获取、压缩、传输和存储过程中不可避免地会引入一些失真,这不仅影响视觉体验,而且可能会带来巨大的损失。图像模糊是最常出现的一种失真类型,因此,图像模糊的检测越来越受到人们重视。As one of the carriers of information transmission, digital images play an important role in daily life or work. For example, the popularity of mobile phones has made mobile phone photography one of people's daily entertainment items; satellite remote sensing images have brought convenience to agriculture, industry and the environment. But digital images inevitably introduce some distortions in the process of acquisition, compression, transmission and storage, which not only affects the visual experience, but also may bring huge losses. Image blur is the most common type of distortion, so the detection of image blur is getting more and more attention.

人眼虽然具有区分模糊图像与清晰图像的能力,但存在耗时长,工作量大等缺点,因此,利用计算机对模糊图像进行检测就显得尤为重要。目前,已经有很多图像模糊检测方法,其大致上分为空域法、频域法和混合域法。总的来说,图像模糊会产生更宽的边缘,因此大部分空域方法都是基于图像的边缘宽度。如Marziliano等提出了基于Sobel算子的算法,该方法首先检测图像垂直方向的Sobel边缘,然后通过局部极值点得到图像边缘的宽度,最后图像的模糊定义为平均边缘宽度;如Ferzli和Karam提出一种视觉可见模糊(JustNoticable Blur,JNB)模型,该方法首先确定图像的边缘块和平滑块,然后计算边缘块的块边缘宽度,最后通过JNB模型得到图像的模糊程度。考虑到空域对图像特征表示的局限性,许多方法则将图像转换到频域,如DWT域或者DCT域。通过分析图像的频域非零系数分布,Marichal等提出一种基于图像DCT域的方法,该方法首先将图像分块,然后得到每一个8x8块的DCT系数,最后通过DCT非零系数的加权直方图来估计图像模糊。Tong等提出一种基于小波域的方法,该方法首先通过多尺度小波域系数对边缘进行分类,然后根据提出的规则来判断图像是否模糊,最后图像的模糊程度可以通过模糊边缘的数目得到。目前,已有学者提出将空域与频域结合的混合域算法,如Vu等也提出了一种基于混合域的综合评价算法(S3),通过Sigmoid函数变换得到频域特征,通过局部变分得到空域特征,最后的模糊估计通过取前两项的加权平均得到;如Li等提出的一种基于离散正交矩的算法,该方法首先通过梯度信息来估计图像的边缘,然后利用离散正交矩得到频域信息,最后计算图像的离散正交矩之和来表示图像的模糊程度。同时说明了空域和频域结合的算法具有更好的效果。Although the human eye has the ability to distinguish blurry images from clear images, it has disadvantages such as time-consuming and heavy workload. Therefore, it is particularly important to use computers to detect blurry images. At present, there are many image blur detection methods, which are roughly divided into spatial domain method, frequency domain method and mixed domain method. In general, image blurring produces wider edges, so most spatial methods are based on the edge width of the image. For example, Marziliano et al. proposed an algorithm based on the Sobel operator. This method first detects the Sobel edge in the vertical direction of the image, and then obtains the width of the image edge through the local extreme points. Finally, the blur of the image is defined as the average edge width; as proposed by Ferzli and Karam A visually visible blur (Just Noticable Blur, JNB) model, the method first determines the edge blocks and sliders of the image, then calculates the block edge width of the edge blocks, and finally obtains the blur degree of the image through the JNB model. Considering the limitation of image feature representation in spatial domain, many methods transform the image into frequency domain, such as DWT domain or DCT domain. By analyzing the distribution of non-zero coefficients in the frequency domain of the image, Marichal et al. proposed a method based on the DCT domain of the image. This method first divides the image into blocks, then obtains the DCT coefficients of each 8x8 block, and finally passes the weighted histogram of the DCT non-zero coefficients. figure to estimate image blur. Tong et al. proposed a method based on the wavelet domain. The method first classifies the edges through multi-scale wavelet domain coefficients, and then judges whether the image is blurred according to the proposed rules. Finally, the blurriness of the image can be obtained by the number of blurred edges. At present, some scholars have proposed a hybrid domain algorithm that combines the spatial domain and the frequency domain. For example, Vu et al. also proposed a comprehensive evaluation algorithm based on the hybrid domain (S3). The frequency domain features are obtained by transforming the Sigmoid function, and the local variation is used to obtain Spatial domain features, the final fuzzy estimation is obtained by taking the weighted average of the first two items; such as an algorithm based on discrete orthogonal moments proposed by Li et al., the method first estimates the edge of the image through gradient information, and then uses the discrete orthogonal moments. The frequency domain information is obtained, and finally the sum of the discrete orthogonal moments of the image is calculated to represent the blurriness of the image. At the same time, it shows that the algorithm combining spatial domain and frequency domain has better effect.

现有的图像模糊检测方法有很多,它们都利用模糊图像特点:随着加大图像的模糊程度,图像的边缘会变得更宽,轮廓越来越不明显。There are many existing image blur detection methods, all of which utilize the characteristics of blurred images: as the blurring degree of the image increases, the edges of the image will become wider and the outline will become less and less obvious.

发明内容SUMMARY OF THE INVENTION

通过比较上述方法的特点,提出了一种基于图像DCT域的SVD分解的检测方法,该方法结合了图像空域和频域信息。首先计算图像的梯度图,图像的边缘信息可以从梯度图中得到,然后把梯度图进行分块,并进行DCT变换,因为DCT域的交流系数反映了图像的边缘和清晰度,接着用差分矩阵来分析DCT域的交流系数信息,通过计算差分矩阵的奇异值,并构造响应函数来表示块的图像的模糊程度,最终用均值和方差进行归一化来消除图像内容的影响。By comparing the characteristics of the above methods, a detection method based on SVD decomposition in the image DCT domain is proposed, which combines the image spatial domain and frequency domain information. First calculate the gradient map of the image, the edge information of the image can be obtained from the gradient map, then divide the gradient map into blocks, and perform DCT transformation, because the AC coefficient of the DCT domain reflects the edge and clarity of the image, and then use the difference matrix. To analyze the AC coefficient information of the DCT domain, calculate the singular value of the difference matrix, and construct the response function to represent the blur degree of the image of the block, and finally use the mean and variance to normalize to eliminate the influence of the image content.

本发明的技术方案步骤如下:The technical solution steps of the present invention are as follows:

步骤1:计算待检测图像的梯度图,并对梯度图像进行分块,块的大小为p×p。Step 1: Calculate the gradient map of the image to be detected, and divide the gradient image into blocks with a size of p×p.

步骤2:对每个梯度图像块进行DCT变换,得到DCT系数并去掉直流系数。Step 2: Perform DCT transformation on each gradient image block to obtain DCT coefficients and remove the DC coefficients.

步骤3:计算DCT系数的水平方向和垂直方向的差分矩阵。Step 3: Calculate the difference matrix of the horizontal and vertical directions of the DCT coefficients.

步骤4:计算差分矩阵的奇异值,并由响应函数得到块的响应。Step 4: Calculate the singular values of the difference matrix and get the block response from the response function.

步骤5:对所有块的响应求和得到整幅图像的响应E。Step 5: Sum the responses of all blocks to get the response E of the whole image.

步骤6:对图像进行分块(块大小同步骤1),计算每个图像块的均值和方差,对所有块的均值和方差分别求和,得到整幅图像的均值C和方差V。Step 6: Divide the image into blocks (the block size is the same as that of step 1), calculate the mean and variance of each image block, and sum the mean and variance of all blocks respectively to obtain the mean C and variance V of the entire image.

步骤7:用步骤6得到的C和V对步骤5中E进行归一化,得出最终的模糊分数S。Step 7: Normalize E in step 5 with C and V obtained in step 6 to obtain the final fuzzy score S.

步骤8:通过比较S与选取的阈值T的大小,将图像分为清晰和模糊两类。Step 8: By comparing the size of S and the selected threshold T, the image is divided into two categories: clear and blurred.

本发明的有益效果:Beneficial effects of the present invention:

本发明结合了图像空域和频域的信息,有效的提高了模糊检测的准确率,弥补只使用空域或者频域的缺陷。在空域中得到图像边缘信息,在频域中得到图像的模糊程度(响应),这样既保留了图像空域信息的直观性,又保留了图像频域信息的有效性。此外,本发明还对图像频域得到的响应进行归一化操作,消除了图像内容的影响。The invention combines the information of the image space domain and the frequency domain, effectively improves the accuracy of the blur detection, and makes up for the defect of only using the space domain or the frequency domain. The image edge information is obtained in the spatial domain, and the blur degree (response) of the image is obtained in the frequency domain, which not only retains the intuition of the image spatial domain information, but also retains the validity of the image frequency domain information. In addition, the present invention also performs normalization operation on the response obtained in the frequency domain of the image, thereby eliminating the influence of the image content.

附图说明Description of drawings

图1算法流程图。Figure 1 algorithm flow chart.

图2清晰图像样本。Figure 2. Clear image sample.

图3模糊图像样本。Figure 3 Blurred image sample.

图4LIVE图像库中58幅图像的模糊分数。Figure 4. Blur scores for 58 images in the LIVE image library.

图5清晰图像样本和模糊图像样本的检测结果。Figure 5. Detection results of clear image samples and blurred image samples.

具体实施方式Detailed ways

下面结合附图,对本发明的具体实施方案作进一步详细描述。基于图像DCT域的SVD分解的模糊检测方法,其具体步骤描述如图1所示:The specific embodiments of the present invention will be described in further detail below with reference to the accompanying drawings. The fuzzy detection method based on the SVD decomposition of the image DCT domain, and its specific steps are described in Figure 1:

步骤1:计算待检测图像的梯度图,并对梯度图像进行分块,块的大小为p×p。Step 1: Calculate the gradient map of the image to be detected, and divide the gradient image into blocks with a size of p×p.

步骤2:对每个梯度图像块进行DCT变换,得到DCT系数并去掉直流系数。Step 2: Perform DCT transformation on each gradient image block to obtain DCT coefficients and remove the DC coefficients.

步骤3:计算DCT系数的水平和垂直方向的差分矩阵。Step 3: Calculate the difference matrix of the horizontal and vertical directions of the DCT coefficients.

步骤4:计算差分矩阵的奇异值,并由响应函数得到块的响应。Step 4: Calculate the singular values of the difference matrix and get the block response from the response function.

步骤5:对所有块的响应求和,得到整幅图像的总响应E。Step 5: Sum the responses of all blocks to get the total response E of the whole image.

步骤6:对图像进行分块(块大小同步骤1),计算每个图像块的均值和方差,对所有块的均值和方差分别求和,得到整幅图像的均值C和方差V。Step 6: Divide the image into blocks (the block size is the same as that of step 1), calculate the mean and variance of each image block, and sum the mean and variance of all blocks respectively to obtain the mean C and variance V of the entire image.

步骤7:用步骤6得到的C和V对步骤5中E进行归一化,得出最终的模糊分数S。Step 7: Normalize E in step 5 with C and V obtained in step 6 to obtain the final fuzzy score S.

步骤8:通过比较S与选取的阈值T的大小,将图像分为清晰和模糊两类。Step 8: By comparing the size of S and the selected threshold T, the image is divided into two categories: clear and blurred.

步骤1具体如下:计算待测图像I的梯度图G,公式如下:Step 1 is as follows: Calculate the gradient map G of the image I to be tested, and the formula is as follows:

Figure BDA0001622405700000031
Figure BDA0001622405700000031

Ix=I*[-101],Iy=I*[-101]T I x =I*[-101],I y =I*[-101] T

其中*是卷积操作,然后对梯度图像G进行分块,每个分块设为Bk,k=(1,2,…,N),N是图像块的总个数,块大小为p×p,实验中p=6。Where * is the convolution operation, and then the gradient image G is divided into blocks, each block is set to B k , k=(1,2,...,N), N is the total number of image blocks, and the block size is p ×p, p=6 in the experiment.

步骤2具体如下:将图像块Bk变换到DCT域Dk,并去掉直流系数,公式如下:Step 2 is as follows: transform the image block B k to the DCT domain D k , and remove the DC coefficient, the formula is as follows:

Dk=DCT(Bk)D k =DCT(B k )

Figure BDA0001622405700000041
Figure BDA0001622405700000041

其中i,j∈{1…p}。where i,j∈{1…p}.

步骤3具体如下:分别计算水平方向和垂直方向的差分矩阵,公式如下:Step 3 is as follows: Calculate the difference matrix in the horizontal direction and the vertical direction respectively, and the formula is as follows:

Figure BDA0001622405700000042
Figure BDA0001622405700000042

其中i∈{1,…,p},j∈{1,…,p-1}。where i∈{1,…,p},j∈{1,…,p-1}.

Figure BDA0001622405700000043
Figure BDA0001622405700000043

其中i∈{1,…,p-1},j∈{1,…,p}。where i∈{1,…,p-1},j∈{1,…,p}.

步骤4具体如下:计算差分矩阵的奇异值,公式如下:Step 4 is as follows: Calculate the singular value of the difference matrix, the formula is as follows:

Figure BDA0001622405700000044
Figure BDA0001622405700000044

(:)表示把矩阵转成一个列向量,F的大小为p(p-1)×2,然后对F进行奇异值分解得到奇异值s1,s2,由响应函数e得到图像块的能量。(:) means to convert the matrix into a column vector, the size of F is p(p-1)×2, and then perform singular value decomposition on F to obtain singular values s 1 , s 2 , and obtain the energy of the image block from the response function e .

ek=s1×s2-α(s1+s2)2 e k =s 1 ×s 2 -α(s 1 +s 2 ) 2

其中α是常数,实验中α=0.01。where α is a constant, and α=0.01 in the experiment.

步骤5具体如下:计算待测图像所有块的响应进行求和,得到整张图像的总响应E,公式如下:Step 5 is as follows: Calculate and sum up the responses of all blocks of the image to be tested to obtain the total response E of the entire image. The formula is as follows:

Figure BDA0001622405700000045
Figure BDA0001622405700000045

其中N为图像块的总个数。where N is the total number of image blocks.

步骤6具体如下:对待测图像分块,过程同步骤1,并计算每块的均值ck和方差vk,然后计算所有块的均值之和C,方差之和V,公式如下:Step 6 is as follows: the image to be tested is divided into blocks, the process is the same as step 1, and the mean value ck and variance vk of each block are calculated, and then the sum of the mean values C and the sum of variances V of all blocks are calculated, and the formula is as follows:

Figure BDA0001622405700000046
Figure BDA0001622405700000046

Figure BDA0001622405700000047
Figure BDA0001622405700000047

步骤7具体如下:用V和C对E进行归一化,得到最终的模糊分数S,公式如下:Step 7 is as follows: normalize E with V and C to obtain the final fuzzy score S, the formula is as follows:

Figure BDA0001622405700000051
Figure BDA0001622405700000051

步骤8具体如下:首先确定清晰图像与模糊图像间的阈值T。通过步骤7可以得到清晰图像(见附图2)和模糊图像(见附图3)的模糊分数S,分析这两类图像得到的数据S,可以看出清晰图像比模糊图像的S要高很多(见附图5)。为了保证实验数据的充分,在LIVE图像库中选取大量样本(模糊图像和清晰图像数量各一半)进行测试,确定最后的阈值T(见附图4)。最终选择的阈值为T=15(附图4中黑色的线),当T>15表示图像是清晰的,当T≤15表示图像是模糊的。Step 8 is as follows: First, determine the threshold value T between the clear image and the blurred image. Through step 7, the blur score S of the clear image (see Figure 2) and the blurred image (see Figure 3) can be obtained. After analyzing the data S obtained from these two types of images, it can be seen that the clear image is much higher than the blurred image. (See Figure 5). In order to ensure sufficient experimental data, a large number of samples (half the number of blurred and clear images) are selected from the LIVE image library for testing, and the final threshold T is determined (see Figure 4). The final selected threshold is T=15 (the black line in FIG. 4 ). When T>15, the image is clear, and when T≤15, the image is blurred.

Claims (5)

1.基于图像DCT域的SVD分解的模糊检测方法,首先计算待测图像的梯度图像,图像的边缘信息可以从梯度图中得到,然后把梯度图进行分块,并进行DCT变换,因为DCT域的交流系数反映了图像的边缘和清晰度,接着用差分矩阵来分析DCT域的交流系数信息,并计算差分矩阵的奇异值,通过奇异值构造响应函数来表示块的图像的模糊程度,最终用均值和方差进行归一化来消除图像内容的影响;具体步骤如下:1. The blur detection method based on the SVD decomposition of the image DCT domain, first calculate the gradient image of the image to be tested, the edge information of the image can be obtained from the gradient map, and then divide the gradient map into blocks and perform DCT transformation, because the DCT domain The AC coefficient reflects the edge and sharpness of the image. Then, the difference matrix is used to analyze the AC coefficient information in the DCT domain, and the singular value of the difference matrix is calculated. The response function is constructed by the singular value to represent the blur degree of the image of the block. Finally, use The mean and variance are normalized to eliminate the influence of image content; the specific steps are as follows: 步骤1:计算待检测图像的梯度图,并对梯度图像进行分块,块的大小为p×p;Step 1: Calculate the gradient map of the image to be detected, and divide the gradient image into blocks, and the size of the block is p×p; 步骤2:对每个梯度图像块进行DCT变换,得到DCT系数并去掉直流系数;Step 2: Perform DCT transformation on each gradient image block to obtain DCT coefficients and remove the DC coefficients; 步骤3:计算DCT系数的水平方向和垂直方向的差分矩阵;Step 3: Calculate the difference matrix of the horizontal and vertical directions of the DCT coefficients; 步骤4:计算差分矩阵的奇异值,并由响应函数得到块的响应;Step 4: Calculate the singular values of the difference matrix, and get the block response from the response function; 步骤5:对所有块的响应求和,得到整幅图像的响应E;Step 5: Sum the responses of all blocks to obtain the response E of the entire image; 步骤6:对图像进行分块(块大小同步骤1),计算每个图像块的均值和方差,对所有块的均值和方差分别求和,得到整幅图像的均值C和方差V;Step 6: Divide the image into blocks (the block size is the same as that in step 1), calculate the mean and variance of each image block, and sum the mean and variance of all blocks respectively to obtain the mean C and variance V of the entire image; 步骤7:用步骤6得到的C和V对步骤5中E进行归一化,得出最终的模糊分数S;Step 7: Normalize E in step 5 with C and V obtained in step 6 to obtain the final fuzzy score S; 步骤8:通过比较S与选取的阈值T的大小,将图像分为清晰和模糊两类;Step 8: By comparing the size of S and the selected threshold T, the image is divided into two categories: clear and blurred; 步骤1具体过程如下:The specific process of step 1 is as follows: 计算待测图像I的梯度图G,公式如下:Calculate the gradient map G of the image I to be tested, the formula is as follows:
Figure FDA0002534470950000011
Figure FDA0002534470950000011
Ix=I*[-1 0 1],Iy=I*[-1 0 1]T I x =I*[-1 0 1],I y =I*[-1 0 1] T 其中*是卷积操作,然后对梯度图像G进行分块,每个分块设为Bk,k=(1,2,...,N),N是图像块的总个数,块大小为p×p,实验中p=6;Where * is the convolution operation, and then the gradient image G is divided into blocks, each block is set to B k , k=(1,2,...,N), N is the total number of image blocks, block size is p×p, p=6 in the experiment; 步骤2具体过程如下:The specific process of step 2 is as follows: 将图像块Bk变换到DCT域Dk,并去掉直流系数,公式如下:Transform the image block B k to the DCT domain D k , and remove the DC coefficients, the formula is as follows: Dk=DCT(Bk)D k =DCT(B k )
Figure FDA0002534470950000021
Figure FDA0002534470950000021
其中i,j∈{1...p};where i,j∈{1...p}; 步骤3具体过程如下:The specific process of step 3 is as follows: 分别计算水平方向和垂直方向的差分矩阵,公式如下:Calculate the difference matrix in the horizontal and vertical directions respectively, the formula is as follows:
Figure FDA0002534470950000022
Figure FDA0002534470950000022
其中i∈{1,...,p},j∈{1,...,p-1};where i∈{1,...,p},j∈{1,...,p-1};
Figure FDA0002534470950000023
Figure FDA0002534470950000023
其中i∈{1,...,p-1},j∈{1,...,p};where i∈{1,...,p-1},j∈{1,...,p}; 步骤4具体过程如下:The specific process of step 4 is as follows: 计算差分矩阵的奇异值,公式如下:Calculate the singular values of the difference matrix, the formula is as follows:
Figure FDA0002534470950000024
Figure FDA0002534470950000024
(:)表示把矩阵转成一个列向量,F的大小为p(p-1)×2,然后对F进行奇异值分解得到奇异值s1,s2;由响应函数e得到图像块的响应;(:) means to convert the matrix into a column vector, the size of F is p(p-1)×2, and then perform singular value decomposition on F to obtain singular values s 1 , s 2 ; obtain the response of the image block from the response function e ; ek=s1×s2-α(s1+s2)2 e k =s 1 ×s 2 -α(s 1 +s 2 ) 2 其中α是常数,实验中α=0.01。where α is a constant, and α=0.01 in the experiment.
2.根据权利要求1所述的基于图像DCT域的SVD分解的模糊检测方法,其特征在于步骤5具体过程如下:2. the fuzzy detection method based on the SVD decomposition of image DCT domain according to claim 1, is characterized in that step 5 concrete process is as follows: 计算待测图像所有块的响应进行求和,得到整张图像的总响应E,公式如下:Calculate and sum the responses of all blocks of the image to be tested to obtain the total response E of the entire image. The formula is as follows:
Figure FDA0002534470950000025
Figure FDA0002534470950000025
其中N为图像块的总个数。where N is the total number of image blocks.
3.根据权利要求2所述的基于图像DCT域的SVD分解的模糊检测方法,其特征在于步骤6具体过程如下:3. the fuzzy detection method based on the SVD decomposition of the image DCT domain according to claim 2, is characterized in that the concrete process of step 6 is as follows: 对待测图像分块,过程同步骤1,并计算每块的均值ck和方差vk,然后计算所有块的均值之和C,方差之和V,公式如下:The image to be tested is divided into blocks, the process is the same as step 1, and the mean value ck and variance vk of each block are calculated, and then the sum of the mean value C and the sum of variance V of all blocks is calculated, and the formula is as follows:
Figure FDA0002534470950000031
Figure FDA0002534470950000031
Figure FDA0002534470950000032
Figure FDA0002534470950000032
4.根据权利要求3所述的基于图像DCT域的SVD分解的模糊检测方法,其特征在于步骤7具体过程如下:4. the fuzzy detection method based on the SVD decomposition of image DCT domain according to claim 3, is characterized in that step 7 concrete process is as follows: 用C和V对E进行归一化,得到最终的模糊分数S,公式如下:Normalize E with C and V to get the final fuzzy score S, the formula is as follows:
Figure FDA0002534470950000033
Figure FDA0002534470950000033
5.根据权利要求4所述的基于图像DCT域的SVD分解的模糊检测方法,其特征在于步骤8具体过程如下:5. the fuzzy detection method based on the SVD decomposition of image DCT domain according to claim 4, is characterized in that step 8 concrete process is as follows: 首先确定清晰图像与模糊图像间的阈值T;通过步骤8可以得到清晰图像和模糊图像的模糊分数S,分析这两类图像得到的数据S,可以看出清晰图像比模糊图像的S要高很多;为了保证实验数据的充分,在LIVE图像库中选取大量样本进行测试,确定最后的阈值T;最终选择的阈值为T=15,当T>15表示图像是清晰的,当T≤15表示图像是模糊的。First determine the threshold value T between the clear image and the blurred image; through step 8, the blur score S of the clear image and the blurred image can be obtained, and by analyzing the data S obtained from these two types of images, it can be seen that the clear image is much higher than the blurred image. ; In order to ensure sufficient experimental data, a large number of samples are selected in the LIVE image library for testing, and the final threshold T is determined; the final threshold selected is T=15, when T>15 means the image is clear, when T≤15 means the image is fuzzy.
CN201810313311.1A 2018-04-09 2018-04-09 A Blur Detection Method Based on SVD Decomposition in Image DCT Domain Active CN108510496B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810313311.1A CN108510496B (en) 2018-04-09 2018-04-09 A Blur Detection Method Based on SVD Decomposition in Image DCT Domain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810313311.1A CN108510496B (en) 2018-04-09 2018-04-09 A Blur Detection Method Based on SVD Decomposition in Image DCT Domain

Publications (2)

Publication Number Publication Date
CN108510496A CN108510496A (en) 2018-09-07
CN108510496B true CN108510496B (en) 2020-09-22

Family

ID=63381063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810313311.1A Active CN108510496B (en) 2018-04-09 2018-04-09 A Blur Detection Method Based on SVD Decomposition in Image DCT Domain

Country Status (1)

Country Link
CN (1) CN108510496B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110211105B (en) * 2019-05-24 2021-09-07 厦门美柚股份有限公司 Blurred image detection method, device and system
CN110390700B (en) * 2019-07-05 2021-02-26 浙江大学 Image domain accurate dual-energy CT multi-material decomposition method based on block matching
CN110619647B (en) * 2019-09-16 2022-12-30 中山大学 Method for positioning fuzzy region of image based on combination of edge point frequency domain and spatial domain characteristics
CN110782442B (en) * 2019-10-23 2023-03-24 国网陕西省电力公司宝鸡供电公司 Image artificial fuzzy detection method based on multi-domain coupling
CN114972141B (en) * 2022-05-13 2024-12-17 华侨大学 Bimodal focusing analysis method of reblurring theory
CN115049658B (en) * 2022-08-15 2022-12-16 合肥的卢深视科技有限公司 RGB-D camera quality detection method, electronic device and storage medium
CN118552515A (en) * 2024-06-19 2024-08-27 浙江大学 Ultraviolet image blurring detection method based on DFT matrix integer approximate decomposition

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101950422A (en) * 2010-09-29 2011-01-19 北京航空航天大学 Singular value decomposition(SVD)-based image quality evaluation method
US8111929B2 (en) * 2008-02-29 2012-02-07 Interra Systems Inc. Method and system to detect and quantify blockiness in video files
CN103093430A (en) * 2013-01-25 2013-05-08 西安电子科技大学 Heart magnetic resonance imaging (MRI) image deblurring method based on sparse low rank and dictionary learning
CN106485703A (en) * 2016-09-30 2017-03-08 杭州电子科技大学 Fuzzy detection method based on image gradient dct transform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8111929B2 (en) * 2008-02-29 2012-02-07 Interra Systems Inc. Method and system to detect and quantify blockiness in video files
CN101950422A (en) * 2010-09-29 2011-01-19 北京航空航天大学 Singular value decomposition(SVD)-based image quality evaluation method
CN103093430A (en) * 2013-01-25 2013-05-08 西安电子科技大学 Heart magnetic resonance imaging (MRI) image deblurring method based on sparse low rank and dictionary learning
CN106485703A (en) * 2016-09-30 2017-03-08 杭州电子科技大学 Fuzzy detection method based on image gradient dct transform

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"No-Reference and Robust Image Sharpness Evaluation Based on Multiscale Spatial and Spectral Features";Leida Li et al.;《IEEE TRANSACTIONS ON MULTIMEDIA》;20170531;第19卷(第5期);第1030-1040页 *
"半参考和无参考图像质量评价新方法研究";桑庆兵;《中国博士学位论文全文数据库 信息科技辑》;20140515;第I138-61页 *

Also Published As

Publication number Publication date
CN108510496A (en) 2018-09-07

Similar Documents

Publication Publication Date Title
CN108510496B (en) A Blur Detection Method Based on SVD Decomposition in Image DCT Domain
Zoran et al. Scale invariance and noise in natural images
Li et al. No-reference image blur assessment based on discrete orthogonal moments
Ciancio et al. No-reference blur assessment of digital pictures based on multifeature classifiers
CN101567044B (en) Method for detecting quality of human face image
Shen et al. Hybrid no-reference natural image quality assessment of noisy, blurry, JPEG2000, and JPEG images
Malik et al. The statistical quantized histogram texture features analysis for image retrieval based on median and laplacian filters in the dct domain
George et al. A survey on different approaches used in image quality assessment
CN110717922A (en) A method and device for evaluating image clarity
WO2011097697A1 (en) Method and system for determining a quality measure for an image using multi-level decomposition of images
CN103413277B (en) Blind camera shake deblurring method based on L0 sparse priors
WO2014070273A1 (en) Recursive conditional means image denoising
CN104318545B (en) A kind of quality evaluating method for greasy weather polarization image
Jia et al. Image denoising via sparse representation over grouped dictionaries with adaptive atom size
CN110070539A (en) Image quality evaluating method based on comentropy
CN108399620B (en) An Image Quality Evaluation Method Based on Low-Rank Sparse Matrix Decomposition
Ma et al. Efficient saliency analysis based on wavelet transform and entropy theory
CN109741300B (en) A method and device for fast detection of image saliency suitable for video coding
CN108629771B (en) A kind of blind evaluation method of picture quality with scale robustness
CN104021567A (en) Gaussian Blurred Image Tampering Detection Method Based on First Number Law
Gu et al. Learning a blind image quality index based on visual saliency guided sampling and Gabor filtering
Chen et al. Bayesian video super-resolution with heavy-tailed prior models
Cai et al. Image Blur Assessment with Feature Points.
CN106485703A (en) Fuzzy detection method based on image gradient dct transform
CN104143188A (en) Image quality assessment method based on multi-scale edge representation

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
GR01 Patent grant
GR01 Patent grant