Halftone image quality evaluation method based on gradient and texture, storage medium and electronic equipment

By combining gradient and texture features, the halftone image quality evaluation method solves the problem of inability to effectively reflect visual features in the existing technology, achieves more accurate evaluation results that are in line with human eye perception, and avoids the defects of image deformation.

CN118710619APending Publication Date: 2024-09-27HENAN UNIVERSITY
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410858290.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing halftone image quality evaluation methods cannot effectively reflect the visual characteristics of the image, especially the local structural features and texture features, resulting in evaluation results that are inconsistent with the subjective perception of the human eye, and commonly used partitioning methods can cause image deformation.

Method used

A halftone image quality evaluation method based on gradient and texture is adopted. The partition idea is combined with structural similarity, gradient features and texture features. Scharr operator is used to extract the gradient map and the autocorrelation function method is used to extract texture features. Different feature weights are given to obtain better results. Accurate evaluation results.

Benefits of technology

The comprehensiveness and practicality of halftone image quality evaluation is achieved, the evaluation results are more in line with the subjective perception of the human eye, and the accuracy and consistency of the evaluation are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710619A
    Figure CN118710619A
Patent Text Reader

Abstract

The invention discloses a gradient and texture-based halftone image quality evaluation method, a storage medium and electronic equipment, and the method comprises the following steps: carrying out the partitioning of an image through employing a partitioning thought, and calculating the similarity between the partitioned halftone image and an original image through employing the structural similarity (SSIM); extracting gradient maps of the halftone image and the original image by using a Scharr operator, and calculating a gradient feature difference value of the halftone image and the original image by using a variance and a covariance of the gradient maps; extracting a texture feature matrix of the image by using an autocorrelation function method, solving a corresponding standard deviation, and calculating texture similarity between the halftone image and the original image; and assigning different weights to the obtained three similarities to obtain a final evaluation result. According to the method, the halftone image quality evaluation is realized, the accuracy is ensured, and the subjective feeling of human eyes is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image quality, and in particular to a halftone image quality evaluation method based on gradient and texture, a storage medium and an electronic device. Background Art

[0002] At present, halftone technology solves the display and output problems of continuous-tone images on limited-tone devices and is widely used in the field of image transmission. In order to meet the requirements of output devices, multi-grayscale continuous-tone images are converted into halftone images through digital screening algorithms. Different screening algorithms produce different halftone images. We hope to use appropriate screening algorithms to make the quality of the halftone images as high as possible and as close to the original images as possible. At the same time, the quality of the halftone images can be used to judge the quality of the corresponding screening algorithms, so as to select the screening algorithm with the best performance and the most consistent with the subjective feelings of the human eye. It is also possible to guide the innovation and improvement of the screening algorithm by judging the quality of the halftone images. Therefore, it is necessary to evaluate the image quality of halftone images.

[0003] For the quality evaluation of halftone images, traditional objective evaluation methods are currently used directly, such as MSE (mean square error), PSNR (peak signal-to-noise ratio), SSIM (structural similarity), etc., but MSE is quite different from the subjective perception of the human eye. Both PSNR and SSIM consider the pixel differences at each position, ignoring the visual features of the image, especially the local structural features and the pixel information at other positions, and regard the image as isolated pixels. This is inconsistent with the original intention of combining halftone technology with the low-pass characteristics of the human eye, which makes the halftone image close to the continuous tone image in terms of local average grayscale.

[0004] Chen et al. improved SSIM in a paper titled "Study of Image Quality Assessment Based on Halftone Characteristies (PACKAGING ENGINEERING, vol. 33, no. 17, 2012)". Partitioning is used to simulate the blurred state of the human eye when viewing objects at a distance. Taking the partitioned original image as a reference, the similarity between the partitioned halftone image and the original image is obtained. The SSIM algorithm that regards each pixel as an isolated point is improved so that several adjacent pixels are formed into an area, mapped to a pixel point of the partitioned image, and the average value is taken as the pixel value of the pixel point of the partitioned image. This method is more accurate and more consistent with the subjective consistency of the human eye than the traditional method. However, the generated partitioned image will change with the size of the partition, resulting in image deformation. Therefore, although the theoretical results of this method are excellent, it is not applicable in practical applications.

[0005] Edge structure information is crucial in the structural information of an image, and gradient features have been proven to be able to well reflect the edge texture features of an image. Liu et al. used gradient features to calculate the gradient similarity between images in a paper titled “Image Quality Assessment Based on GradientSimilarity (IEEE Transactions on Image Processing), vol. 21, no. 4, 2012”, and obtained the final image similarity by weighted summation of brightness similarity to evaluate the image quality, proving the importance of gradient features for image quality evaluation. Zhang et al. used the gradient of an image to describe the distortion of contrast in a paper titled “FSIM: A Feature Similarity Index for Image Quality Assessment (IEEE Transactions on Image Processing), vol. 20, no. 8, 2011”, and obtained the final evaluation result by weighting it with other feature similarities, also proving the significance of gradient features for image quality evaluation. Therefore, it is very meaningful to introduce gradient features in the halftone image quality evaluation method.

[0006] However, these traditional objective evaluation methods are not completely applicable to the quality evaluation of halftone images. Halftone images also have obvious texture features, and texture features can reflect the properties of the object itself. Therefore, extracting the texture features of the image in the halftone image quality evaluation helps to show the changes of the object in the image, which is more conducive to the comparison of image quality. At present, the commonly used texture feature extraction methods are algorithms based on statistical methods. The classic algorithms include gray level co-occurrence matrix, semi-variogram method, autocorrelation function method and LBP algorithm for extracting local features. Sklansky et al. mentioned in a paper entitled "Image segmentation and feature extraction (IEEE Transactions on Systems, Man, and Cybernetics), vol. 8, no. 5, 1975" that the autocorrelation function method extracts characteristic parameters such as texture coarseness and directionality by calculating the energy spectrum function of the image. Because the autocorrelation function has peaks and troughs, it is particularly suitable for regular texture images. Halftone images have typical periodic texture features, so the use of the autocorrelation function method for texture feature extraction is most effective.

[0007] The present invention uses the partitioning concept and combines gradient features and texture features to design a halftone image quality evaluation method based on gradient and texture. It not only realizes that the size of the halftone image remains unchanged after partitioning, but is more in line with practical applications. It also uses gradient features to extract the edge structure information of the image, and uses the autocorrelation function method to extract the texture feature information of the image. According to the characteristics of the halftone image, the quality is evaluated from multiple aspects and multiple features, ensuring the comprehensiveness and practicality of the evaluation results. Furthermore, referring to the idea of ​​3-SSIM, different weights are given to different features of the image, so that the evaluation results are more accurate and more in line with the subjective feelings of the human eye. . Summary of the invention

[0008] The purpose of the present invention is to provide a halftone image quality evaluation method based on gradient and texture, which can address the problems that existing image quality evaluation methods are not applicable to halftone image quality evaluation, and that existing halftone image quality evaluation methods cause deformation of intermediate generated partition images. Halftone image quality evaluation can be performed from multiple features in a targeted manner, and the evaluation results are more accurate and more in line with the subjective perception of the human eye.

[0009] The technical solution adopted by the present invention is:

[0010] The halftone image quality evaluation method based on gradient and texture includes:

[0011] Step 1: Use the partitioning idea to partition the image, and then use the structural similarity SSIM to calculate the structural similarity Partition-SSIM (x, y) between the partitioned original image x and the halftone image y;

[0012] Step 2: Use the Scharr operator to extract the gradient maps of the halftone image and the original image respectively, and use the variance and covariance of the gradient map to calculate the gradient feature difference value between the two, that is, the gradient similarity gs(x,y) between the halftone image and the original image;

[0013] Step 3: Use the autocorrelation function method to extract the texture feature matrix of the halftone image and the original image respectively, and calculate the corresponding standard deviation to calculate the texture similarity T(x,y) between the halftone image and the original image;

[0014] Step 4: Assign different weights to Partition-SSIM(x,y), gs(x,y), and T(x,y) obtained in steps 1-3 and multiply them to obtain the final evaluation result, that is, the similarity PGT_SSIM(x,y) between the halftone image and the original image.

[0015] The step 1 comprises:

[0016] Step 1.1: Partition the image into m0×n0: Where f(i,j) is the input image; (i,j) is the coordinate, which is intended to obtain the mean value of the pixels of the input image by partition, the size is M×N, m0 is the length of the image, and n0 is the width of the image; A(a,b) is the partitioned image, (a,b) is the coordinate, which is intended to restore the partition and give the value of the output image pixel one by one, the size is M×N, the value range of a is [m0(s-1)+1,m0s], the value range of b is [n0(t-1)+1,n0t], s=1,2,…m; t=1,2, …n; i=1,2,…M; j=1,2,…N; where m=M / m0; n=N / n0, if it is not divisible, it is rounded up, s, t, i, j are just numbers for convenience of calculation and have no practical meaning; s, t are used to restrict f(i, j) to take values ​​just within each partition, and the average value of the pixels in each partition block is calculated. Correspondingly, the coordinates a, b of the output image use the same restrictions as the coordinates (i, j) of the input image to ensure that the pixels in the same partition are filled one by one;

[0017] Step 1.2: Use the SSIM method on the partitioned image to obtain the structural similarity between the partitioned original image x and the halftone image y in C1=(K1×L) 2 , C2=(K2×L) 2 , K1=0.01, K2=0.03, L=255; s=1,2,…m,t=1,2,…n,μ x and μ y represents the mean of x and y, σ x and σ y represents the variance of x and y, σ xy represents the covariance between x and y, M and N represent the length and width of the image.

[0018] The step 2 comprises the following steps:

[0019] Step 2.1: Use the Scharr operator to extract the gradient map g of the original image x , the gradient map g of the halftone image y ;

[0020] Step 2.2: Calculate g x , g y The variance Var(g x ), Var(g y ) and covariance Cov(g x ,g y ), get the gradient difference between the original image and the halftone image, where c2 and c3 are non-zero constants,

[0021] Step 2.3: To make the value in the range [0,1], get the gradient feature difference value

[0022] The step 3 comprises the following steps:

[0023] Step 3.1: Use the autocorrelation function to extract the texture features of the image surface and obtain the matrix of texture changes. Where f is the read image, the image size is m×n, where the length is m and the width is n, ε, η are the offset variables of the autocorrelation function C, w is a constant, and the values ​​of x and y are restricted to be within the image range in the ε and η directions; j = 1, 2, 3, ..., m, k = 1, 2, 3, ..., n;

[0024] Step 3.2: Calculate the standard deviation t of the original image texture matrix x , halftone image matrix standard deviation t y , and then calculate the texture similarity between the original image x and the halftone image y Among them, Std() is the standard deviation.

[0025] The step 4 comprises the following steps:

[0026] Step 4.1: Assign different weights to the features of different regions of the image. The weight of the structural similarity Partition-SSIM(x,y) obtained by comparing the features of the entire image is assigned to 0.25, the weight of the gradient feature difference gs(x,y) obtained by extracting gradient features is assigned to 0.5, and the weight of the texture similarity T(x,y) obtained by extracting texture features is assigned to 0.25;

[0027] Step 4.2: Get the final evaluation result PGT_SSIM(x,y);

[0028] PGT_SSIM(x,y)=Partition-SSIM(x,y) 0.25 ×gs(x,y) 0.5 ×T(x,y) 0.25 .

[0029] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the device where the computer-readable storage medium is located executes any one of the above-mentioned halftone image quality evaluation methods based on gradient and texture.

[0030] An electronic device comprises: a memory and a processor, wherein the memory stores a program that can be run on the processor, and when the processor executes the program, the halftone image quality evaluation method based on gradient and texture as described above is implemented.

[0031] The present invention utilizes the partitioning concept and combines gradient features and texture features to achieve that the size of the halftone image remains unchanged after partitioning, which is more in line with practical applications; further, by extracting the edge structure information of the image using the gradient feature and extracting the texture feature information of the image using the autocorrelation function method, the quality of the halftone image is evaluated from multiple aspects and multiple features, ensuring the comprehensiveness and practicality of the evaluation results. Furthermore, referring to the concept of 3-SSIM, different weights are assigned to different features of the image, making the evaluation results more accurate and more in line with the subjective feelings of the human eye. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0033] Figure 1 It is a schematic diagram of the flow chart of the present invention;

[0034] Figure 2 A schematic diagram of using different screening algorithms to process an image in an embodiment of the present invention;

[0035] Figure 3 This is a diagram showing the improvement effect of the existing halftone image quality evaluation method in an embodiment of the present invention;

[0036] Figure 4 This is a graph of image scoring results obtained using different partitioning methods in an embodiment of the present invention;

[0037] Figure 5 It is a gradient feature map extracted by using different operators in the embodiment of the present invention;

[0038] Figure 6 is a texture detection diagram of each halftone image in an embodiment of the present invention;

[0039] Figure 7 is a graph showing the scoring results of five halftone images used in the embodiment of the present invention;

[0040] Figure 8 4 is a comparison chart of evaluation results of different schemes in the embodiments of the present invention. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] like Figure 1 , 2 As shown in 3, the present invention comprises the following steps:

[0043] Step 1: Use the partitioning idea to partition the image, and then use the structural similarity (SSIM) to calculate the similarity between the partitioned halftone image and the original image;

[0044] Furthermore, the aforementioned step 1 includes the following sub-steps:

[0045] Step 1.1: Partition the image into m0×n0: Where f(i,j) is the input image, size is M×N, A(a,b) is the partitioned image, size is M×N, the value range of a is [m0(s-1)+1,m0s], the value range of b is [n0(t-1)+1,n0t], s=1,2,…m;t=1,2,…n;i=1,2,…M;j=1,2,…N. Where m=M / m0;n=N / n0, if it is not divisible, it is rounded up. In this paper, m 0=1 , n 0=4 ;

[0046] Step 2: Use the Scharr operator to extract the gradient map of the halftone image and the original image, and use the variance and covariance of the gradient map to calculate the gradient feature difference between the two; use the SSIM method on the partitioned image to obtain the structural similarity between the partitioned original image and the halftone image in C1=(K1×L) 2 , C2=(K2×L) 2 , K1=0.01, K2=0.03, L=255.

[0047] Furthermore, the aforementioned step 2 includes the following sub-steps:

[0048] Step 2.1: Use the Scharr operator to extract the gradient map g of the original image x , the gradient map g of the halftone image y ;

[0049] Step 2.2: Calculate g x , g yThe variance Var(g x ), Var(g y ) and covariance Cov(g x ,g y ), get the gradient difference between the original image and the halftone image, where c2 and c3 are non-zero constants,

[0050] Step 2.3: To make the value in the range [0,1], get the gradient difference value

[0051] Step 3: Use the autocorrelation function method to extract the texture feature matrix of the image, and find the corresponding standard deviation to calculate the texture similarity between the halftone image and the original image; further, the aforementioned step S103 includes the following sub-steps:

[0052] Step 3.1: Use the autocorrelation function to extract the texture features of the image surface and obtain the matrix of texture changes. Where f is the read image, the image size is j×k, ε, η are the offset variables of the autocorrelation function C, w is a constant, and the values ​​of x and y are restricted to be within the image range in the ε and η directions;

[0053] Step 3.2: Calculate the standard deviation t of the original image texture matrix x , halftone image matrix standard deviation t y , and then calculate the texture similarity between the halftone image and the original image Among them, Std() is the standard deviation.

[0054] Step 4: Assign different weights to the similarities obtained in steps 1-3 to obtain the final evaluation result.

[0055] Furthermore, the aforementioned step 4 includes the following sub-steps:

[0056] Step 4.1: Assign different weights to the features of different regions of the image. The weight of the structural similarity Partition-SSIM(x,y) obtained by comparing the features of the entire image is assigned to 0.25, the weight of the gradient feature difference gs(x,y) obtained by extracting gradient features is assigned to 0.5, and the weight of the texture similarity T(x,y) obtained by extracting texture features is assigned to 0.25;

[0057] Step 4.2: Get the final evaluation result PGT_SSIM(x,y).

[0058] PGT_SSIM(x,y)=Partition-SSIM(x,y) 0.25 ×gs(x,y) 0.5 ×T(x,y)0.25

[0059] The invention extracts the overall and local features of the image, and uses the features of three different aspects of the image for calculation, so the evaluation results are more comprehensive. The human visual features are used to partition the image, which is more in line with the characteristics of the halftone image. The calculated halftone image is similar to the original image in structure and is more in line with the subjective consistency of the human eye; the extracted gradient map is used for calculation, which can better reflect the similarity between the original image and the halftone image in the edge contour; the typical periodic texture features on the surface of the halftone image are extracted, which can accurately reflect the roughness of the image, and the texture feature standard deviation of the image is used to calculate the texture similarity, which can better measure the texture similarity between the original image and the halftone image; different weights are assigned to features of different importance, so that the evaluation results are more scientific and accurate. The invention is fast, simple, and highly portable. The halftone image quality evaluation results obtained using the invention are highly accurate and more in line with the subjective consistency of the human eye.

[0060] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the device where the computer-readable storage medium is located executes the halftone image quality assessment method based on gradient and texture as described above. The computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory and other memory.

[0061] An electronic device comprises: a memory and a processor, wherein the memory stores a program that can be run on the processor, and when the processor executes the program, the halftone image quality evaluation method based on gradient and texture as described above is implemented.

[0062] If the module / unit integrated in the electronic device described in this application is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware devices through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented.

[0063] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.

[0064] The computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions are executed by a processor in an electronic device to implement the halftone image quality assessment method based on gradient and texture as described in any of the above embodiments.

[0065] To verify the effect of the present invention, the following experiment was performed:

[0066] Five screening algorithms are used to process the classic character image "Lena", namely: Floyd dithering, Random dithering, Bayer dithering, Stucki dithering and Jarvis dithering. These five screening algorithms are typical screening algorithms. Figure 2 The images processed by the screening algorithm are given. The quality of halftone images produced by different screening algorithms is also different. 20 observers were selected to conduct subjective quality evaluation on each image using the MOS subjective evaluation method. The final image scores were: Floyd-3.15; Random-2.10; Bayer-2.65; Stucki-3.25; Jarvis-3.40. The comparison schemes include the traditional objective image quality evaluation method Structural Similarity (SSIM) and the existing halftone image quality evaluation method d_SSIM. Combined with the subjective scores, the evaluation indicators Pearson Linear Correlation Coefficient (PLCC), Spearman Rank Order Correlation Coefficient (SROCC), and Kendall Rank Order Correlation Coefficient (KROCC) are used to compare different schemes.

[0067] Figure 3 The improved effect diagram of the existing halftone image quality evaluation algorithm is given. The improved partitioning algorithm is more in line with the observation habits of the human eye. The present invention uses 1×2 partitions, 1×4 partitions, 2×2 partitions, 3×3 partitions, 4×4 partitions, 8×8 partitions, and 16×16 partitions to partition the halftone image, and then obtain the Partition-SSIM (x, y) score. Figure 4 The evaluation results of different partitioning methods are given. From the evaluation results, it can be seen that the score of 1×4 partition is consistent with the subjective score, so this partitioning has the best evaluation effect.

[0068] Figure 5 Taking the original Lena image and the Bayer dithered image as examples, the gradient feature maps extracted using different operators are given. The Laplacian operator is very sensitive to noise and will lose some edge information. Compared with the Prewitt operator, the Sobel operator reduces the edge blurring when processing images and achieves better results. However, for the weak edge information in the image, its extraction effect is poor. The Scharr operator has high precision, is more stable, and can show more details of the edge information. Therefore, the Scharr operator is used in this paper to calculate the gradient features.

[0069] Figure 6 The texture detection maps of each halftone image are given. The images are all 3D images. As ε and η increase, the images change rapidly, indicating that their surface textures are relatively rough. The images tend to be stable, indicating that their textures are smooth. The greater the surface roughness, the faster the curve changes; the smaller the roughness, the slower the curve changes. It can be seen from the images that the texture changes of the halftone images are consistent with the theory and have a certain periodicity. Compared with the curve of the original image, the curves of Random and Bayer change particularly rapidly.

[0070] Figure 7 The scores of different schemes for five halftone images are given. The higher the score, the closer the quality of the halftone image is to the original image, and the better the performance of the corresponding screening algorithm. That is, Random < Bayer < Floyd < Stucki < Jarvis. The scores of SSIM on Random and Bayer images are opposite to the human eye, which does not conform to the subjective consistency of the human eye. Both the d_SSIM and PGT-SSIM methods have good subjective consistency, and the performance advantages and disadvantages of the five screening algorithms obtained are consistent with the MOS scores. Figure 8 The scores of different schemes are given. Compared with the SSIM method, the PGT-SSIM method has significantly improved performance in various indicators; compared with the Partition-SSIM method, the SROCC and KROCC are the same, but the PLCC has increased by 0.0995, which is about 11% higher.

[0071] In summary, the halftone image quality evaluation method based on gradient and texture provided by the present invention not only realizes that the size of the halftone image remains unchanged after partitioning, but is more in line with practical applications. In view of the characteristics of the halftone image, the edge structure information of the image is extracted by using the gradient feature, and the texture feature information of the image is extracted by using the autocorrelation function method, and the quality evaluation is performed from multiple aspects and multiple features, thus ensuring the comprehensiveness and practicality of the evaluation results. Furthermore, referring to the idea of ​​3-SSIM, different weights are assigned to different features of the image, so that the evaluation results are more accurate and more in line with the subjective perception of the human eye. Finally, the PLCC score of the method is 11% higher than that of the existing halftone image quality evaluation method.

[0072] Finally, it should be noted that in the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0073] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0074] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the patent application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent application shall be subject to the attached claims.

[0075] It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or inherent to these processes, methods, products or apparatuses.

[0076] Note that the above are only preferred embodiments of the present invention and the principles of the application technology. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention is described in more detail through the above embodiments, the present invention is not limited to the specific embodiments described herein, and may include more other effective embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A halftone image quality evaluation method based on gradient and texture, characterized in that: include: Step 1: Use the partitioning idea to partition the image, and then use the structural similarity SSIM to calculate the structural similarity Partition-SSIM (x, y) between the partitioned original image x and the halftone image y; Step 2: Use the Scharr operator to extract the gradient maps of the halftone image and the original image respectively, and use the variance and covariance of the gradient map to calculate the gradient feature difference value between the two, that is, the gradient similarity gs(x,y) between the halftone image and the original image; Step 3: Use the autocorrelation function method to extract the texture feature matrix of the halftone image and the original image respectively, and calculate the corresponding standard deviation to calculate the texture similarity T(x,y) between the halftone image and the original image; Step 4: Assign different weights to Partition-SSIM(x,y), gs(x,y), and T(x,y) obtained in steps 1-3 and multiply them to obtain the final evaluation result, that is, the similarity PGT_SSIM(x,y) between the halftone image and the original image.

2. The halftone image quality evaluation method based on gradient and texture according to claim 1, characterized in that: The step 1 comprises: Step 1.1: Partition the image into m0×n0: Where f(i,j) is the input image; (i,j) is the coordinate, which is intended to obtain the mean value of the pixels of the input image by partition, the size is M×N, m0 is the length of the image, and n0 is the width of the image; A(a,b) is the partitioned image, (a,b) is the coordinate, which is intended to restore the partition and give the value of the output image pixel one by one, the size is M×N, the value range of a is [m0(s-1)+1,m0s], the value range of b is [n0(t-1)+1,n0t], s=1,2,...m; t=1,2,.. .n; i = 1, 2, ... M; j = 1, 2, ... N; where m = M / m0; n = N / n0, if it is not divisible, it is rounded up, s, t, i, j are just numbers for convenience of calculation and have no practical meaning; s, t are used to restrict f(i, j) to take values ​​just within each partition, and the average value of the pixels in each partition block is calculated. Correspondingly, the coordinates a and b of the output image use the same restrictions as the coordinates (i, j) of the input image to ensure that the pixels in the same partition are filled one by one; Step 1.2: Use the SSIM method on the partitioned image to obtain the structural similarity between the partitioned original image x and the halftone image y in C1=(K1×L) 2 , C2=(K2×L) 2 , K1=0.01, K2=0.03, L=255; s=1,2,…m,t=1,2,…n,μ x and μ y represents the mean of x and y, σ x and σ y represents the variance of x and y, σ xy represents the covariance between x and y, M and N represent the length and width of the image.

3. The halftone image quality evaluation method based on gradient and texture according to claim 1, characterized in that: The step 2 comprises the following steps: Step 2.1: Use the Scharr operator to extract the gradient map g of the original image x , the gradient map g of the halftone image y ; Step 2.2: Calculate g x , g y The variance Var(g x ), Var(g y ) and covariance Cov(g x ,g y ), get the gradient difference between the original image and the halftone image, where c2 and c3 are non-zero constants, Step 2.3: To make the value in the range [0,1], get the gradient feature difference value 4. The halftone image quality evaluation method based on gradient and texture according to claim 1, characterized in that: The step 3 comprises the following steps: Step 3.1: Use the autocorrelation function to extract the texture features of the image surface and obtain the matrix of texture changes. Where f is the read image, the image size is m×n, where the length is m and the width is n, ε, η are the offset variables of the autocorrelation function C, w is a constant, and the values ​​of x and y are restricted to be within the image range in the ε and η directions; j = 1, 2, 3, ..., m, k = 1, 2, 3, ..., n; Step 3.2: Calculate the standard deviation t of the original image texture matrix x , halftone image matrix standard deviation t y , and then calculate the texture similarity between the original image x and the halftone image y Among them, Std() is the standard deviation.

5. The halftone image quality evaluation method based on gradient and texture according to claim 1, characterized in that: The step 4 comprises the following steps: Step 4.1: Assign different weights to the features of different regions of the image. The weight of the structural similarity Partition-SSIM(x,y) obtained by comparing the features of the entire image is assigned to 0.25, the weight of the gradient feature difference gs(x,y) obtained by extracting gradient features is assigned to 0.5, and the weight of the texture similarity T(x,y) obtained by extracting texture features is assigned to 0.25; Step 4.2: Get the final evaluation result PGT_SSIM(x,y); PGT_SSIM(x,y)=Partition-SSIM(x,y) 0.25 ×gs(x,y) 0.5 ×T(x,y) 0.25 。 6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the device where the computer-readable storage medium is located executes the halftone image quality evaluation method based on gradient and texture as described in any one of claims 1 to 5.

7. An electronic device, characterized in that: include: A memory and a processor, wherein the memory stores a program that can be run on the processor, and when the processor executes the program, the halftone image quality evaluation method based on gradient and texture as described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Reference-free noise image quality evaluation method based on gradient similarity

    CN104103064A

  • Depth digital halftone method based on error feedback

    CN117201692A

  • Digital halftoning technique based on 1-D multi-scale dot assignment

    US20060256124A1