CN107292821B - A kind of super-resolution image reconstruction method and system - Google Patents
A kind of super-resolution image reconstruction method and system Download PDFInfo
- Publication number
- CN107292821B CN107292821B CN201710488490.8A CN201710488490A CN107292821B CN 107292821 B CN107292821 B CN 107292821B CN 201710488490 A CN201710488490 A CN 201710488490A CN 107292821 B CN107292821 B CN 107292821B
- Authority
- CN
- China
- Prior art keywords
- image
- image block
- dictionary
- resolution
- low
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 17
- 238000012549 training Methods 0.000 claims abstract description 50
- 238000012360 testing method Methods 0.000 claims abstract description 24
- 239000011159 matrix material Substances 0.000 claims description 11
- 238000003709 image segmentation Methods 0.000 claims description 6
- 238000000605 extraction Methods 0.000 claims description 5
- 238000010276 construction Methods 0.000 claims description 3
- 230000003044 adaptive effect Effects 0.000 description 4
- 238000011160 research Methods 0.000 description 4
- 238000001604 Rao's score test Methods 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000000691 measurement method Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000010845 search algorithm Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/4053—Scaling of whole images or parts thereof, e.g. expanding or contracting based on super-resolution, i.e. the output image resolution being higher than the sensor resolution
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/21—Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
- G06F18/214—Generating training patterns; Bootstrap methods, e.g. bagging or boosting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/28—Determining representative reference patterns, e.g. by averaging or distorting; Generating dictionaries
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/513—Sparse representations
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Bioinformatics & Computational Biology (AREA)
- General Engineering & Computer Science (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Multimedia (AREA)
- Image Analysis (AREA)
Abstract
本发明提供一种超分辨率图像重建方法及系统,包括对训练影像库中训练影像的所有像素进行K均值分类,记录聚类中心;对各训练影像进行图像分块,基于聚类中心按照最小距离原则对所有训练影像的图像块进行分类,记录各图像块所属类别,分别求取每个类别的联合字典;对待重建的低分测试影像进行分块,并计算每个图像块与各聚类中心的距离,按照最小距离原则进行分类,自适应选择相应类别的联合字典进行稀疏建模,求解得到稀疏系数;利用联合字典和稀疏系数,重建低分测试影像中每个图像块相应的高分辨率图像块,得到整幅低分测试影像相应的最优重建影像。本发明能自适应地训练联合字典,并且自适应地选择合适的字典进行稀疏建模,重建精度更好。
The present invention provides a method and system for super-resolution image reconstruction, including performing K -means classification on all pixels of the training images in the training image library, and recording the cluster centers; The distance principle classifies the image blocks of all training images, records the category of each image block, and obtains the joint dictionary of each category respectively; divides the low-scoring test image to be reconstructed into blocks, and calculates the relationship between each image block and each cluster The distance between the centers is classified according to the principle of the minimum distance, and the joint dictionary of the corresponding category is adaptively selected for sparse modeling, and the sparse coefficient is obtained by solving; the joint dictionary and the sparse coefficient are used to reconstruct the corresponding high-resolution of each image block in the low-scoring test image The optimal reconstruction image corresponding to the entire low-scoring test image is obtained. The invention can adaptively train joint dictionaries, and adaptively select appropriate dictionaries for sparse modeling, with better reconstruction accuracy.
Description
技术领域technical field
本发明属于计算机视觉领域,特别涉及一种通过训练联合字典和自适应稀疏建模,对影像进行超分辨率重建的技术方案。The invention belongs to the field of computer vision, and in particular relates to a technical scheme for super-resolution reconstruction of images by training a joint dictionary and adaptive sparse modeling.
背景技术Background technique
超分辨率重建技术(SR)是指利用一定的方法,将一幅或者多幅低分辨影像重构成具有更高像素密度和细节信息的高分辨率影像。在生物医学、遥感监测、公共安全等领域发挥着十分重要的作用。Super-resolution reconstruction (SR) refers to the use of certain methods to reconstruct one or more low-resolution images into high-resolution images with higher pixel density and detailed information. It plays a very important role in the fields of biomedicine, remote sensing monitoring, and public safety.
信号稀疏性表达一直以来都为研究人员所关注,如经典图像压缩算法JPEG的基本原理就是利用影像在DCT域中的稀疏性对其进行压缩。2006年Candes等人提出压缩感知理论并对其进行系统论证之后,利用信号的稀疏性进行分析与应用更是成为了研究热点。The expression of signal sparsity has always been concerned by researchers. For example, the basic principle of the classic image compression algorithm JPEG is to use the image sparsity in the DCT domain to compress it. In 2006, after Candes et al. proposed the compressed sensing theory and demonstrated it systematically, the use of signal sparsity for analysis and application has become a research hotspot.
图像的超分辨率重建算法一直是研究者们关心的问题。高分辨率影像经过形变、模糊、抽样以及加入系统噪声之后降质为低分辨率影像。如何逆向求解,还原或者构建出更加清晰的影像成为大家研究的重点。图像的过完备稀疏表示成为了近年来的主流图像表示模型,利用图像稀疏性进行影像去噪和超分辨率重建的研究也因此持续不断。自2008年Yang等人从压缩感知中获得启发,利用稀疏编码进行超分重建之后,该方法的研究持续升温。该方法通过字典和稀疏系数建立起高、低分辨率图像块的对应关系,首先从图像训练库中获取对应的高、低分辨率图像块,然后运用特征符号搜索算法(Feature-Sign Search,FSS)解决求解字典和稀疏系数时的l1约束优化问题,并通过联合训练高、低分辨率字典对,使得LR图像块和HR图像块在对应的字典中具有相同的稀疏系数。重构时通过LR图像块和LR字典求得稀疏系数,再利用HR字典和该稀疏系数求得对应的HR图像块。经典的基于稀疏表达的超分辨率重建存在两方面的不足:①采用FSS线性规划训练字典,运算量较大;②训练字典时仅采用梯度特征区分图像块,字典表示能力有限。Image super-resolution reconstruction algorithms have always been a concern of researchers. High-resolution images are degraded to low-resolution images by warping, blurring, sampling, and adding system noise. How to reverse solve, restore or construct a clearer image has become the focus of everyone's research. The over-complete sparse representation of images has become the mainstream image representation model in recent years, and research on image denoising and super-resolution reconstruction using image sparsity continues. Since Yang et al. got inspiration from compressed sensing in 2008 and used sparse coding for super-resolution reconstruction, the research on this method has continued to heat up. This method establishes the corresponding relationship between high-resolution and low-resolution image blocks through dictionaries and sparse coefficients. First, the corresponding high-resolution and low-resolution image blocks are obtained from the image training library, and then the Feature-Sign Search algorithm (Feature-Sign Search, FSS ) to solve the l + 1 constrained optimization problem when solving dictionaries and sparse coefficients, and through joint training of high-resolution and low-resolution dictionary pairs, LR image blocks and HR image blocks have the same sparse coefficients in the corresponding dictionaries. During reconstruction, the sparse coefficients are obtained through the LR image blocks and the LR dictionary, and then the corresponding HR image blocks are obtained by using the HR dictionary and the sparse coefficients. The classic super-resolution reconstruction based on sparse expression has two shortcomings: ① FSS linear programming is used to train the dictionary, which requires a large amount of calculation; ② only gradient features are used to distinguish image blocks when training the dictionary, and the dictionary has limited representation ability.
发明内容Contents of the invention
针对现有方法的不足,发明了一种基于稀疏表达和自适应多分辨率联合字典的超分辨率重建方法和系统,有效的弥补原有方法字典能力表示不足的缺点,提高图像超分辨率重建精度。Aiming at the deficiencies of existing methods, a super-resolution reconstruction method and system based on sparse representation and adaptive multi-resolution joint dictionary was invented, which can effectively make up for the shortcomings of the original method’s insufficient representation of dictionary capabilities and improve image super-resolution reconstruction. precision.
为实现上述目的,本发明的技术方案提供一种超分辨率图像重建方法,包括以下步骤,In order to achieve the above object, the technical solution of the present invention provides a super-resolution image reconstruction method, comprising the following steps,
步骤a,对训练影像库中训练影像的所有像素进行K均值分类,记录聚类中心;对各训练影像进行图像分块,基于聚类中心按照最小距离原则对所有训练影像的图像块进行分类,记录各图像块所属类别;Step a: Carry out K-means classification to all pixels of the training image in the training image database, and record the clustering center; perform image segmentation on each training image, and classify the image blocks of all training images based on the clustering center according to the principle of minimum distance, Record the category to which each image block belongs;
步骤b,根据步骤a的图像块分类结果,分别求取每个类别Ck的联合字典{Dh,Dl},k=1,…,K,其中,Dh是高分字典,Dl为低分字典;Step b, according to the image block classification results in step a, respectively obtain the joint dictionary {D h , D l } of each category C k , k=1,...,K, where D h is a high-scoring dictionary, D l is a low score dictionary;
步骤c,对待重建的低分测试影像y进行分块,并计算每个图像块与各聚类中心的距离,按照最小距离原则进行分类,自适应选择相应类别的联合字典进行稀疏建模,求解得到稀疏系数α*;Step c, divide the low-scoring test image y to be reconstructed into blocks, calculate the distance between each image block and each cluster center, classify according to the principle of minimum distance, adaptively select the joint dictionary of the corresponding category for sparse modeling, and solve Get the sparse coefficient α * ;
步骤d,利用联合字典和稀疏系数α*,重建低分测试影像y中每个图像块yi相应的高分辨率图像块 得到整幅低分测试影像y相应的最优重建影像。Step d, use the joint dictionary and the sparse coefficient α * to reconstruct the corresponding high-resolution image patch for each image patch y i in the low-scoring test image y The optimal reconstructed image corresponding to the entire low-scoring test image y is obtained.
而且,最小距离原则采用欧式距离实现。Moreover, the minimum distance principle is implemented using Euclidean distance.
而且,步骤c中,设某图像块yi属于类别Ck,选择相应的第k类联合字典{Dh,Dl},按照下述公式进行稀疏表达,Moreover, in step c, assuming that a certain image block y i belongs to category C k , select the corresponding k-th joint dictionary {D h , D l }, and perform sparse expression according to the following formula,
其中,α为稀疏系数,向量向量β是预设参数,矩阵P是提取当前图像块和先前重建的高分辨率图像块之间的重叠区域的矩阵,ω是当前图像块和先前重建的高分辨率图像块上的重叠区域的像素值,F是线性特征提取算子。Among them, α is the sparse coefficient, the vector vector β is a preset parameter, the matrix P is a matrix for extracting the overlapping area between the current image block and the previously reconstructed high-resolution image block, and ω is the pixel of the overlapping area on the current image block and the previously reconstructed high-resolution image block value, F is a linear feature extraction operator.
本发明还提供一种超分辨率图像重建系统,包括以下模块,The present invention also provides a super-resolution image reconstruction system, comprising the following modules,
第一模块,用于对训练影像库中训练影像的所有像素进行K均值分类,记录聚类中心;对各训练影像进行图像分块,基于聚类中心按照最小距离原则对所有训练影像的图像块进行分类,记录各图像块所属类别;The first module is used to classify all pixels of the training image in the training image library by K-means, and record the clustering center; perform image segmentation on each training image, and divide the image blocks of all training images based on the principle of minimum distance based on the clustering center Classify and record the category to which each image block belongs;
第二模块,用于根据步骤a的图像块分类结果,分别求取每个类别Ck的联合字典{Dh,Dl},k=1,…,K,其中,Dh是高分字典,Dl为低分字典;The second module is used to obtain the joint dictionary {D h , D l } of each category C k according to the image block classification result in step a, k=1,...,K, where D h is a high-scoring dictionary , D l is a low score dictionary;
第三模块,用于对待重建的低分测试影像y进行分块,并计算每个图像块与各聚类中心的距离,按照最小距离原则进行分类,自适应选择相应类别的联合字典进行稀疏建模,求解得到稀疏系数α*;The third module is used to block the low-scoring test image y to be reconstructed, and calculate the distance between each image block and each cluster center, classify according to the principle of minimum distance, and adaptively select the joint dictionary of the corresponding category for sparse construction Modulus, solve to get the sparse coefficient α * ;
第四模块,用于利用联合字典和稀疏系数α*,重建低分测试影像y中每个图像块yi相应的高分辨率图像块 得到整幅低分测试影像y相应的最优重建影像。The fourth module is used to reconstruct the high-resolution image block corresponding to each image block y i in the low-scoring test image y by using the joint dictionary and the sparse coefficient α * The optimal reconstructed image corresponding to the entire low-scoring test image y is obtained.
而且,最小距离原则采用欧式距离实现。Moreover, the minimum distance principle is implemented using Euclidean distance.
而且,第三模块中,设某图像块yi属于类别Ck,选择相应的第k类联合字典{Dh,Dl},按照下述公式进行稀疏表达,Moreover, in the third module, assuming that a certain image block y i belongs to category C k , select the corresponding k-th joint dictionary {D h , D l }, and perform sparse expression according to the following formula,
其中,α为稀疏系数,向量向量β是预设参数,矩阵P是提取当前图像块和先前重建的高分辨率图像块之间的重叠区域的矩阵,ω是当前图像块和先前重建的高分辨率图像块上的重叠区域的像素值,F是线性特征提取算子。Among them, α is the sparse coefficient, the vector vector β is a preset parameter, the matrix P is a matrix for extracting the overlapping area between the current image block and the previously reconstructed high-resolution image block, and ω is the pixel of the overlapping area on the current image block and the previously reconstructed high-resolution image block value, F is a linear feature extraction operator.
针对现有技术中字典表示能力不足的缺点,本发明利用训练影像库中的训练影像的所有像素进行分类,再决定各图像块分类,自适应构建联合字典加以改进,希望能更好地对图像进行表示。相比于现有的方法,本发明能自适应地训练联合字典,并且能够根据图像块的基本特征自适应地选择合适的字典进行稀疏建模,精度更好,可以在医疗图像、卫星图像和视频等应用领域推广使用,具有重要的市场价值。Aiming at the shortcomings of insufficient representation ability of dictionaries in the prior art, the present invention classifies all pixels of the training images in the training image library, and then determines the classification of each image block, and self-adaptively constructs a joint dictionary for improvement, hoping to better image to express. Compared with the existing methods, the present invention can adaptively train the joint dictionary, and can adaptively select the appropriate dictionary for sparse modeling according to the basic characteristics of the image block, with better precision, and can be used in medical images, satellite images and The popularization and use of video and other application fields has important market value.
附图说明Description of drawings
图1为本发明实施例的流程图。Fig. 1 is a flowchart of an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚明了,下面结合具体实施方式并参照附图,对本发明进一步详细说明。应该理解,这些描述只是示例性的,而并非要限制本发明的范围。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in combination with specific embodiments and with reference to the accompanying drawings. It should be understood that these descriptions are exemplary only, and are not intended to limit the scope of the present invention.
如图1,本发明实施例提出对影像进行基于稀疏表达的自适应多分辨率联合字典的超分辨率重建,先对训练图像库进行自适应地联合字典训练,再对模糊影像进行稀疏建模,得到稀疏系数后重建影像并输出。具体过程如下:As shown in Figure 1, the embodiment of the present invention proposes to perform super-resolution reconstruction of the image based on an adaptive multi-resolution joint dictionary based on sparse expression, first perform adaptive joint dictionary training on the training image database, and then perform sparse modeling on the blurred image , reconstruct the image after obtaining the sparse coefficients and output it. The specific process is as follows:
步骤a,对训练影像库中的训练影像的所有像素进行K均值分类,记录聚类中心,对训练影像进行分块分类;Step a, performing K-means classification on all pixels of the training image in the training image library, recording the cluster center, and performing block classification on the training image;
实施例中,训练影像库中有若干高分辨率的训练影像,读取所有训练影像的像素并利用K均值算法求取K个聚类中心,并对训练影像进行图像分块,基于聚类中心按照最小距离原则对所有训练影像的图像块进行分类,记录下每张训练影像的各图像块所属类别。具体实施时,用户可自行预设K的取值,以及划分图像块的尺寸参数。优选地,图像分块采用有重叠的划分,即两个相邻的块之间有若干像素是重叠的,例如每个图像块尺寸为40×40,相邻图像块之间重叠5个像素。In the embodiment, there are several high-resolution training images in the training image library, read the pixels of all the training images and use the K-means algorithm to obtain K cluster centers, and perform image segmentation on the training images, based on the cluster centers Classify the image blocks of all training images according to the principle of minimum distance, and record the category of each image block of each training image. During specific implementation, the user can preset the value of K and the size parameters of the divided image blocks. Preferably, the image block adopts overlapping division, that is, several pixels overlap between two adjacent blocks, for example, the size of each image block is 40×40, and 5 pixels overlap between adjacent image blocks.
为便于实施参考起见,提供K均值算法如下:For the convenience of implementation and reference, the K-means algorithm is provided as follows:
1)从N张训练影像的所有像素中随机选取K个像素值作为聚类中心;1) Randomly select K pixel values from all the pixels of the N training images as the cluster centers;
2)对剩余的每个像素,计算其到每个质心的距离,并把它归到最近的质心的类;2) For each remaining pixel, calculate its distance to each centroid, and classify it into the nearest centroid class;
3)重新计算已经得到的各个类的聚类中心;3) Recalculate the cluster center of each class that has been obtained;
4)迭代2)~3)直至新的聚类中心与原聚类中心相等或小于预设的指定阈值,算法结束。4) Iterate 2) to 3) until the new cluster center is equal to the original cluster center or less than the preset specified threshold, and the algorithm ends.
实施例的步骤a中,设zn,n=1,…,N是训练图像库中的待训练图像。利用K均值算法对所有高分辨率的训练影像中像素xq进行聚类,q=1,…,Q,Q为所有训练影像的像素总数。产生K个类别,设某类别记为其中Ck为第k类,为类别Ck中的第t个像素样本,qk为类别Ck中的像素个数,满足计算Ck的类中心以及半径 In step a of the embodiment, it is assumed that z n , n=1, . . . , N are images to be trained in the training image database. Use the K-means algorithm to cluster the pixels x q in all high-resolution training images, q=1,...,Q, Q is the total number of pixels in all training images. Generate K categories, let a category be recorded as where C k is the kth class, is the tth pixel sample in class C k , q k is the number of pixels in class C k , satisfying Compute the class center of C k and the radius
对任一训练图像上的某图像块,比较到各个类中心μk的距离,根据最小值确认所属类别。具体实施时,用户可选择距离度量方式,例如欧氏距离、马氏距离等。实施例优先采用欧式距离。For a certain image block on any training image, compare the distance to each class center μ k , and confirm the category according to the minimum value. During specific implementation, the user may select a distance measurement method, such as Euclidean distance, Mahalanobis distance, and the like. The embodiment preferably adopts the Euclidean distance.
步骤b,根据步骤a的图像块分类结果,逐类进行联合字典的训练;Step b, according to the image block classification result of step a, carry out the training of joint dictionary class by class;
每张训练影像作为高分影像,都有对应的低分影像,低分影像上划分和训练影像上的高分辨率图像块一一对应的低分辨率图像块。As a high-scoring image, each training image has a corresponding low-scoring image, and the low-scoring image is divided into low-resolution image blocks corresponding to the high-resolution image blocks on the training image.
根据属于各类别Ck的高分辨率图像块和相应低分辨率图像块,分别求取每个类别Ck的联合字典{Dh,Dl},k=1,…,K。其中,Dh是高分字典,Dl为低分字典。According to the high-resolution image blocks and corresponding low-resolution image blocks belonging to each category C k , the joint dictionary {D h , D l }, k =1, . Among them, D h is a high score dictionary, and D l is a low score dictionary.
实施例的步骤b中,对于不同类别Ck,求解得到高分辨率图像块与低分辨率图像块间的联合字典{Dh,Dl},求解公式如下:In step b of the embodiment, for different categories of C k , the joint dictionary {D h , D l } between the high-resolution image block and the low-resolution image block is obtained, and the solution formula is as follows:
式中,Z表示稀疏系数矩阵,Xh是高分辨率图像块,Yl是对应的低分辨率图像块。N和M分别是高分辨率和低分辨率图像块展开成一维向量形式的维度,具体实施时可以采用上到下从左到右等方式展开图像块。参数λ用于平衡解的稀疏性,具体实施时可取经验值。In the formula, Z represents a sparse coefficient matrix, X h is a high-resolution image block, and Y l is a corresponding low-resolution image block. N and M are respectively the dimensions of the high-resolution and low-resolution image blocks expanded into a one-dimensional vector form, and the image blocks can be expanded from top to bottom and from left to right during specific implementation. The parameter λ is used to balance the sparsity of the solution, and an empirical value can be used for specific implementation.
步骤c,对待重建的低分测试影像y进行分块,并计算每个图像块yi与各聚类中心的距离,按照最小距离原则对图像块yi进行分类,选择相应类别的联合字典进行稀疏建模,求解稀疏系数;Step c: Divide the low-scoring test image y to be reconstructed into blocks, and calculate the distance between each image block y i and each cluster center, classify the image block y i according to the principle of minimum distance, and select the joint dictionary of the corresponding category to perform Sparse modeling, solving sparse coefficients;
实施例的步骤c中,对低分测试影像y进行分块,分别求图像块到各聚类中心μk的欧式距离,并按照最小距离分类:即对于低分测试影像y中某图像块yi,其所属类 (dk代表当前图像块到第k个聚类中心的距离,表示取最小的dk)。In step c of the embodiment, the low-scoring test image y is divided into blocks, and the Euclidean distances from the image block to each cluster center μ k are respectively calculated, and classified according to the minimum distance: that is, for a certain image block y in the low-scoring test image y i , its class (d k represents the distance from the current image block to the kth cluster center, means take the smallest d k ).
实施例中最小距离原则和步骤a一致,采用欧式距离实现。对待重建的低分测试影像y进行分块的方式,与训练图像对应的低分影像分块方式一致。The minimum distance principle in the embodiment is the same as step a, and the Euclidean distance is used to realize it. The way to block the low-score test image y to be reconstructed is consistent with the low-score image block method corresponding to the training image.
选择相应的第k类联合字典{Dh,Dl},按照下述公式进行稀疏表达:Select the corresponding k-th joint dictionary {D h , D l }, and perform sparse expression according to the following formula:
其中,α为稀疏系数,向量向量β是为了保持高分辨率图像块匹配低分辨率输入和邻域之间的一致性的预设参数,实施例中β取经验值(如部分文献令β=1)。矩阵P是提取当前图像块和先前重建的高分辨率图像块之间的重叠区域的矩阵,ω包含了当前图像块和先前重建的高分辨率图像块上的重叠区域的像素值。F是线性特征提取算子。由此得到最优的稀疏系数,记为α*。Among them, α is the sparse coefficient, the vector vector β is a preset parameter for maintaining the consistency between the high-resolution image block matching the low-resolution input and the neighborhood. In the embodiment, β is an empirical value (for example, β=1 in some documents). The matrix P is a matrix for extracting the overlapping area between the current image block and the previously reconstructed high-resolution image block, and ω contains the pixel values of the overlapping area on the current image block and the previously reconstructed high-resolution image block. F is a linear feature extraction operator. From this, the optimal sparse coefficient is obtained, denoted as α * .
步骤d,利用联合字典和稀疏系数α*重建低分测试影像y中每个图像块yi相应的高分辨率图像块 将低分测试影像y中各图像块分别重建后放入对应的高分辨率影像的对应位置,对于重叠部分采取求均值的方式,这样就可输出整幅低分测试影像y相应的最优重建影像。Step d, use the joint dictionary and the sparse coefficient α * to reconstruct the corresponding high-resolution image patch for each image patch y i in the low-scoring test image y Reconstruct each image block in the low-scoring test image y and put it into the corresponding position of the corresponding high-resolution image, and take the mean value for the overlapping part, so that the corresponding optimal reconstruction of the entire low-scoring test image y can be output image.
具体实施时,本发明所提供方法可基于软件技术实现自动运行流程,也可采用模块化方式实现相应系统。During specific implementation, the method provided by the present invention can realize the automatic operation process based on software technology, and can also realize the corresponding system in a modular manner.
本发明实施例还提供一种超分辨率图像重建系统,包括以下模块,The embodiment of the present invention also provides a super-resolution image reconstruction system, including the following modules,
第一模块,用于对训练影像库中训练影像的所有像素进行K均值分类,记录聚类中心;对各训练影像进行图像分块,基于聚类中心按照最小距离原则对所有训练影像的图像块进行分类,记录各图像块所属类别;The first module is used to classify all pixels of the training image in the training image library by K-means, and record the clustering center; perform image segmentation on each training image, and divide the image blocks of all training images based on the principle of minimum distance based on the clustering center Classify and record the category to which each image block belongs;
第二模块,用于根据步骤a的图像块分类结果,分别求取每个类别Ck的联合字典{Dh,Dl},k=1,…,K,其中,Dh是高分字典,Dl为低分字典;The second module is used to obtain the joint dictionary {D h , D l } of each category C k according to the image block classification result in step a, k=1,...,K, where D h is a high-scoring dictionary , D l is a low score dictionary;
第三模块,用于对待重建的低分测试影像y进行分块,并计算每个图像块与各聚类中心的距离,按照最小距离原则进行分类,自适应选择相应类别的联合字典进行稀疏建模,求解得到稀疏系数α*;The third module is used to block the low-scoring test image y to be reconstructed, and calculate the distance between each image block and each cluster center, classify according to the principle of minimum distance, and adaptively select the joint dictionary of the corresponding category for sparse construction Modulus, solve to get the sparse coefficient α * ;
第四模块,用于利用联合字典和稀疏系数α*,重建低分测试影像y中每个图像块yi相应的高分辨率图像块 得到整幅低分测试影像y相应的最优重建影像。The fourth module is used to reconstruct the high-resolution image block corresponding to each image block y i in the low-scoring test image y by using the joint dictionary and the sparse coefficient α * The optimal reconstructed image corresponding to the entire low-scoring test image y is obtained.
各模块具体实现可参见相应步骤,本发明不予赘述。For the specific implementation of each module, reference may be made to the corresponding steps, which will not be described in detail in the present invention.
综上所述,本发明先是通过训练影像库自适应地构建多个联合字典,然后对影像进行分块处理,每一块图像块都自适应地选择相应的字典进行稀疏重建,输出高分影像。该技术方案结合了联合字典以及自适应选择多字典的优点,是重建出更高质量的影像的保证。To sum up, the present invention first constructs multiple joint dictionaries adaptively through the training image database, and then divides the images into blocks. Each image block adaptively selects the corresponding dictionary for sparse reconstruction, and outputs a high-scoring image. The technical solution combines the advantages of joint dictionaries and self-adaptive selection of multiple dictionaries, which guarantees the reconstruction of higher quality images.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710488490.8A CN107292821B (en) | 2017-06-23 | 2017-06-23 | A kind of super-resolution image reconstruction method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710488490.8A CN107292821B (en) | 2017-06-23 | 2017-06-23 | A kind of super-resolution image reconstruction method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107292821A CN107292821A (en) | 2017-10-24 |
CN107292821B true CN107292821B (en) | 2019-09-10 |
Family
ID=60098769
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710488490.8A Active CN107292821B (en) | 2017-06-23 | 2017-06-23 | A kind of super-resolution image reconstruction method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107292821B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108335264B (en) * | 2018-01-30 | 2021-08-03 | 武汉大学 | An Image Super-Resolution Method Based on Mixed-Resolution Sparse Dictionary Learning |
CN109886900B (en) * | 2019-03-15 | 2023-04-28 | 西北大学 | A Synthetic Rain Map Rain Removal Method Based on Dictionary Training and Sparse Representation |
CN110826467B (en) * | 2019-11-22 | 2023-09-29 | 中南大学湘雅三医院 | Electron microscope image reconstruction system and method thereof |
CN111260558B (en) * | 2020-01-22 | 2021-10-22 | 武汉大学 | A variable magnification image super-resolution network model |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102902961A (en) * | 2012-09-21 | 2013-01-30 | 武汉大学 | Face super-resolution processing method based on K neighbor sparse coding average value constraint |
CN103150713A (en) * | 2013-01-29 | 2013-06-12 | 南京理工大学 | Image super-resolution method of utilizing image block classification sparse representation and self-adaptive aggregation |
CN106204667A (en) * | 2016-07-01 | 2016-12-07 | 山东大学 | A kind of similarity solved in image super-resolution rebuilding retains the sparse coding method of problem |
-
2017
- 2017-06-23 CN CN201710488490.8A patent/CN107292821B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102902961A (en) * | 2012-09-21 | 2013-01-30 | 武汉大学 | Face super-resolution processing method based on K neighbor sparse coding average value constraint |
CN103150713A (en) * | 2013-01-29 | 2013-06-12 | 南京理工大学 | Image super-resolution method of utilizing image block classification sparse representation and self-adaptive aggregation |
CN106204667A (en) * | 2016-07-01 | 2016-12-07 | 山东大学 | A kind of similarity solved in image super-resolution rebuilding retains the sparse coding method of problem |
Also Published As
Publication number | Publication date |
---|---|
CN107292821A (en) | 2017-10-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Gondara | Medical image denoising using convolutional denoising autoencoders | |
WO2022267641A1 (en) | Image defogging method and system based on cyclic generative adversarial network | |
CN110111256B (en) | Image super-resolution reconstruction method based on residual distillation network | |
US9349072B2 (en) | Local feature based image compression | |
CN106383891B (en) | A distributed retrieval method for medical images based on deep hashing | |
CN107292821B (en) | A kind of super-resolution image reconstruction method and system | |
CN103065153A (en) | Video key frame extraction method based on color quantization and clusters | |
CN106920214A (en) | Spatial target images super resolution ratio reconstruction method | |
Zhao et al. | A deep cascade of neural networks for image inpainting, deblurring and denoising | |
CN104270640B (en) | Spectrum picture lossless compression method based on support vector regression | |
CN104077742A (en) | GABOR characteristic based face sketch synthetic method and system | |
CN118486029A (en) | A target detection method for nuclear medicine imaging equipment based on improved DETR model | |
Chen et al. | Simswap++: Towards faster and high-quality identity swapping | |
CN114283301A (en) | A Transformer-based adaptive medical image classification method and system | |
CN111833284B (en) | A method for multi-source image fusion based on low-rank decomposition and convolutional sparse coding | |
CN111882512A (en) | Image fusion method, device and equipment based on deep learning and storage medium | |
CN107784664A (en) | A kind of fast robust method for tracking target sparse based on K | |
Liu et al. | Image super-resolution via hierarchical and collaborative sparse representation | |
CN113920015A (en) | An edge-preserving super-resolution reconstruction method for infrared images based on generative adversarial networks | |
Ding et al. | Multi-organ registration with continual learning | |
CN118644677A (en) | A frequency-domain-aware semi-supervised medical image segmentation method with consistency regularization | |
CN109460788B (en) | Hyperspectral image classification method based on low-rank-sparse information combination network | |
CN112801908B (en) | Image denoising method, apparatus, computer equipment and storage medium | |
CN115147317A (en) | A method and system for enhancing color quality of point cloud based on convolutional neural network | |
Eldib et al. | Web image mining age estimation framework |
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 |