A similarity calculation method for the clipping effect of color-spun knitted fabrics

By using wavelet decomposition and HSV color space methods in color-spun knitted fabrics, texture and color features are extracted, and the appearance style and color similarity of the quilted pattern are calculated, which solves the subjectivity and low efficiency of fabric screen soft proofing evaluation in the existing technology. problem, achieving objective and real-time quantitative evaluation of fabric clipping effect.

CN114155384BActive Publication Date: 2024-09-06WUHAN TEXTILE UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111360167.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-17
Publication Date
2024-09-06
Estimated Expiration
2041-11-17

AI Technical Summary

Technical Problem

It is difficult to effectively evaluate and describe the difference between fabric screen soft proofing and physical samples with existing technology, and traditional manual evaluation is inefficient and subjective. The image quality evaluation method does not consider the visual characteristics of the human eye, resulting in evaluation results that are inconsistent with human eye perception and difficult to Applied to large-scale sample databases.

Method used

Using the similarity calculation method of the quilted effect of colored knitted fabrics, the texture features and color features of the image are extracted through wavelet decomposition, and a multi-channel directional gradient histogram and Gram matrix are constructed. Combined with the color quantification of the HSV color space, the quilted appearance style and Color similarity to achieve quantitative evaluation.

Benefits of technology

It achieves objective and real-time quantitative evaluation of the clipping effect of color-spun knitted fabrics, reduces manual subjectivity, is suitable for the evaluation of proofing effects in the design and development process of color-spun products, and has important guiding significance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114155384B
    Figure CN114155384B
Patent Text Reader

Abstract

The invention discloses a method for calculating the similarity of the clipping effect of a color-spun knitted fabric. The method comprises the following steps: collecting color-spun knitted fabrics with different types of clipping effects under the same shooting environment, and constructing a comparison database; filtering high-frequency redundant information of the image to be compared by multi-level wavelet decomposition, extracting HOG features of three channels of R, G and B, and constructing MC-HOG features; representing the clipping appearance style information of the image by a Gram matrix of the MC-HOG features, and measuring the clipping appearance difference of the color-spun knitted fabric by using the difference of the Gram matrix to obtain the clipping appearance style similarity; at the same time, converting two sample images to be compared into an HSV color space, performing color quantization on the chromaticity channel of the image, extracting its H-S color histogram features, and measuring the clipping color difference of the color-spun knitted fabric by using the difference to obtain the clipping color similarity, thereby realizing an objective evaluation of the appearance style and color similarity of the clipping effect of the color-spun knitted fabric in the process of screen soft proofing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of textile industry production and application, and particularly relates to a method for calculating the similarity of the clipping effect of a colored spun knitted fabric. Background Art

[0002] Color-dyed fabrics are made of dyed fibers of different color components mixed in different mass ratios to form colored yarns, which are then spun into fabrics with special color effects and appearance color styles. According to the unevenness of fiber mixing, colored yarns can be divided into solid-colored yarns with no color difference between each component fiber or heterochromatic yarns with obvious color difference, thus forming a solid color effect with uniform color or a clip effect with non-uniform color on the surface of the colored fabric; at the same time, the regularity of fiber distribution determines the appearance style of the clip effect. In the process of color-dyed product development or design, in order to obtain different clip effect styles, it is necessary to use computer simulation technology to simulate and display the proofing effect on the screen, evaluate it manually, and adjust the mixing parameters of the dyed fibers and the weaving process according to the evaluation results. This proofing method is called fabric screen soft proofing. Compared with physical sample proofing, screen soft proofing significantly reduces the consumable loss and production cost in the design and development process of color-spun products. However, due to different color space and proofing methods, there are differences between soft proofing and physical sample proofing. How to evaluate and describe this difference is the difficulty in the development and application of color-spun fabric screen soft proofing technology. Therefore, using digital image processing technology to establish a similarity evaluation index for the clipping effect of color-spun fabrics can not only overcome the subjectivity of traditional manual evaluation, intuitively reflect the difference between soft proofing and physical samples, but also construct a quantitative analysis index for evaluating proofing effects, laying a foundation for the development of color-spun knitted fabric screen soft proofing and the exploration of new computer simulation methods.

[0003] At present, the evaluation of soft proofing effect of fabric screens at home and abroad mainly adopts manual subjective evaluation and qualitative analysis based on experience. The main method is to invite factory experts to visually compare the fabric proofing image with the real sample image using a five-point similarity scale (extremely different, slightly different, slightly similar, moderately similar, and extremely similar) to evaluate their similarity. However, this manual evaluation method is inefficient and is greatly affected by the subjective factors of the evaluation experts. It is not only difficult to make a unified and objective evaluation of the soft proofing effect, but also unable to cope with the evaluation task of large-scale sample databases in actual industry.

[0004] In addition, some research teams have applied full-reference objective image quality evaluation methods (such as MSE, PSNR, SSIM, etc.) to the evaluation of fabric screen soft proofing effects. However, these methods are based on the errors of corresponding pixels or structures between contrasting images and do not take into account the visual characteristics of the human eye. In the evaluation process of the similarity of the clipping effect of colored textiles, the appearance style of the clipping effect, that is, the regularity of fiber distribution, is a global macroscopic feature. The human eye's judgment of its similarity is also based on the perception of its global receptive field, and is not sensitive to the offset or error of local information in the image. Therefore, this type of method often results in evaluation results that are inconsistent with the subjective perception of the human eye.

[0005] With the development of computer graphics and digital image processing technology, people have proposed a variety of image texture features (such as LBP, GLCM, Tamura, HOG, etc.) to characterize the grayscale distribution of image pixels and their neighborhoods. This type of image texture features is less effective when used with traditional distance measurement methods (such as Euclidean distance, etc.) to evaluate the similarity of fabric images. However, based on the design of feature classifiers (such as SVM, neural networks, etc.), it can achieve a higher retrieval or classification accuracy in tasks such as fabric image retrieval or classification after sample training. This type of method relies on large-scale sample data and a long training process. It not only has high requirements on equipment configuration, but also lacks real-time performance. Therefore, it is difficult to apply it to the evaluation of soft proofing effects.

[0006] At the same time, due to the uneven light reflection caused by the hairiness on the surface of knitted fabrics, the undulation of yarns, and the uneven texture of fabrics, the change in gloss will affect the color, causing blurred, interfering or heterochromatic pixels in the image. These random variations will cause a sudden change in chromaticity values. At the same time, after the dyed fibers of different components are mixed, there will be a large number of mixed transition colors visually. If these changes in chromaticity values ​​are included in the statistical values, it will cause distortion, thereby affecting the evaluation of the color information of the monochrome fibers and the proportion of color mixing in the color-spun knitted fabric samples. Therefore, how to evaluate the color difference of the color-spun knitted fabric clipping effect is also a difficulty in the development of the current color-spun fabric screen soft proofing technology. Summary of the invention

[0007] In response to the above-mentioned status quo and problems, the present invention takes color-spun knitted fabrics as specific application objects and proposes a method for calculating the similarity of the clipping effect of color-spun knitted fabrics. This method quantitatively evaluates the appearance style and color similarity of the "clipping effect" through the texture and color characteristics of the proofing image and the actual sample image, which can not only intuitively and real-time reflect the difference between the proofing effect and the actual sample effect in the design and development process of color-spun products, but also lay the foundation for the exploration of new methods of computer simulation of color-spun knitted fabrics.

[0008] The purpose of the present invention is to solve the problem described in the background technology and to provide a method for calculating the similarity of the clipping effect of a color-spun knitted fabric.

[0009] The technical solution of the present invention is a method for calculating the similarity of the clipping effect of a colored spun knitted fabric, which specifically comprises the following steps:

[0010] Step 1, using colored spun yarn to prepare colored spun knitted fabric samples with different types of clipping effects, collecting sample images, and building a comparison sample database;

[0011] Step 2, select two sample images to be compared in the database, split them into three channels of R, G, and B, use wavelet decomposition to filter out high-frequency redundant information in the three channels respectively, and obtain approximate component images of the three channels;

[0012] Step 3, extract the directional gradient histogram (HOG) features of the approximate component images of each channel of the image, calculate the amplitude difference between the channels (RG, GB, RB) in each gradient direction, construct the directional gradient difference histogram (HOG-D) feature, and fuse it into a multi-channel directional gradient histogram (MC-HOG) feature;

[0013] Step 4, calculate the Gram matrix of the image MC-HOG features;

[0014] Step 5, measuring the difference in the style of the two sample images to be compared according to the difference in the Gram matrix, and obtaining the similarity of the style of the two sample images;

[0015] Step 6, convert the two sample images to be compared in step 2 into the HSV color space, and perform color quantization on the two chromaticity channels of hue H and saturation S;

[0016] Step 7, extracting the HS color histogram features of the H and S channels of the two images after color quantization;

[0017] Step 8, using the Euclidean distance of the HS color histogram feature to measure the difference in the color of the two sample images to be compared, and obtaining the color similarity of the color of the two samples.

[0018] It should be noted that in step 1, the color-spun knitted fabric samples with different types of clipping effects are made of dyed fibers with different colors, different mass ratios, different non-uniformity levels, and different mixing methods, and then woven into a fabric. The surface of the color-spun knitted fabric has different styles, i.e., clipping effects, due to the different regularities of the distribution of the dyed fibers of each component. In the process of collecting sample images, it is necessary to shoot in exactly the same environmental conditions (such as ambient humidity, light source, shooting angle, field of view, etc.), and the parameters of the camera (such as lens focal length, aperture size, white balance, etc.) are all kept consistent.

[0019] It should be noted that in step 2, the purpose of wavelet decomposition is to filter out the high-frequency redundant information of the knitted fabric structure contour, and use the approximate components obtained after decomposition to represent the main color appearance information of the image, thereby reducing interference factors for the evaluation of the similarity of the clip effect.

[0020] It should be noted that in step 3, the HOG features of each channel of the image are texture feature descriptors used by the present invention to characterize the image clipping effect, and the calculation process is as follows: first, perform Gamma correction on the image channel, adjust the contrast, and reduce the impact of light on the image; then, divide the image into multiple 8×8 block units, and calculate the gradient amplitude and direction of each block unit; finally, divide all directions (0 to 360 degrees) into 9 main directions and accumulate their corresponding gradient amplitudes to form a directional gradient histogram of each block unit on [0, 8]. Among them, the Gamma correction and the calculation method of the gradient amplitude and direction are shown in Formulas 1 to 5. In the formula, image represents the original image, x and y represent the horizontal and vertical coordinates of the pixel points respectively, I represents the image after Gamma correction, and G h (x,y),G v (x, y) represents the horizontal gradient and vertical gradient at the pixel point, respectively. M(x, y) and θ(x, y) represent the gradient amplitude and direction angle at the pixel point, respectively.

[0021] I(x,y)=(image(x,y)) γ Formula 1

[0022] G h (x,y)=I(x+1,y)-I(x-1,y) Formula 2

[0023] G v (x,y)=I(x,y+1)-I(x,y-1) Formula 3

[0024]

[0025] θ(x,y)=arctan(G h(x,y) / G v (x,y)) Formula 5

[0026] After the HOG features of the three grid channels R, G, and B of each block unit of the image are extracted, in order to characterize the correlation information between the channels, the amplitude differences between the channels (RG, GB, RB) in each gradient direction are calculated, and the histogram of directional gradient differences (HOG-D) features in the interval [0, 8] are constructed. All histogram features are cascaded in the form of [R, G, B, RG, GB, RB] and fused into MC-HOG features.

[0027] It should be noted that in step 4, the Gram matrix of the MC-HOG feature is a feature descriptor used by the present invention to characterize the image's floral appearance style, and its calculation process is: traverse the image, concatenate the MC-HOG features of each cell unit and its three adjacent cells (right, bottom, and bottom right) into a feature vector, construct a multi-dimensional MC-HOG feature vector of the image, calculate the pairwise inner products between the vectors, and form a Gram matrix.

[0028] It should be noted that in step 5, the elements of the Gram matrix are normalized to [0, 1]; on this basis, the difference of the Gram matrix is ​​used to measure the similarity of the two clip-on appearance styles, as shown in equations 6 and 7. Gram Represents the difference of Gram matrices, Gram1 and Gram2 represent the Gram matrices calculated from the two compared sample images, N and M represent the length of the matrix rows and columns, i and j represent the horizontal and vertical coordinates of the matrix elements, respectively. F is the similarity of the two sample images in terms of their appearance style, and λ is an artificially set correction coefficient. Gram Scale to [0, 1].

[0029]

[0030] Sim F =(1-10 λ ×E Gram )×100% Formula 7

[0031] It should be noted that in step 6, in order to reduce the interference of variant chromaticity values ​​and visual transition color information in the color-spun knitted fabric sample images, the chromaticity channels of the two sample images to be compared in step 2 are color quantized, the hue H is quantized into 16 levels, the saturation S is quantized into 4 levels, and the two-dimensional chromaticity features are divided into 64 HS intervals (16 levels × 4 levels).

[0032] It should be noted that in step 7, since the perception of the clip effect by the human eye is most affected by hue, followed by saturation, and least affected by brightness, and the brightness difference of the knitted fabric structure contour during the imaging process will have a significant impact on the determination of the clip effect, the brightness channel of the image is ignored, and the HS color histogram features of the two sample images to be compared after color quantization are extracted. The calculation method is: the distribution number of image pixels in 64 HS intervals (16 levels × 4 levels) after color quantization is accumulated, and a color histogram in [0, 63] is constructed.

[0033] It should be noted that, in step 8, the Euclidean distance of the HS color histogram feature is used to measure the color difference of the two sample images to be compared, as shown in equations 8 to 9. , Y represents the HS color histogram features of the two sample images to be compared, Dist represents the difference in their color features, and i represents the feature dimension. C is the similarity of the two compared sample images in terms of their appearance style, and μ is an artificially set correction coefficient, the purpose of which is to scale Dist to [0, 1].

[0034]

[0035] Sim C =(1-10 μ ×Dist)×100% Formula 9.

[0036] The invention takes the screen soft proofing effect evaluation of color-spun knitted fabrics as a specific application object, collects color-spun knitted fabrics with different types of clipping effects under the same shooting environment, and constructs a comparison sample image database; uses multi-level wavelet decomposition to filter the high-frequency redundant information of the image to be compared, extracts the HOG features of the three channels of R, G, and B, and constructs the MC-HOG features; on this basis, uses the Gram matrix of the MC-HOG features to characterize the clipping appearance style information of the image, and uses the difference of the Gram matrix to measure the clipping appearance difference of the color-spun knitted fabric to obtain the clipping appearance style similarity; at the same time, converts two sample images to be compared into the HSV color space, performs color quantization on the chromaticity channel of the image, extracts its HS color histogram features, and uses its difference to measure the clipping color difference of the color-spun knitted fabric to obtain the clipping color similarity, thereby realizing the objective evaluation of the appearance style and color similarity of the clipping effect of the color-spun knitted fabric in the screen soft proofing process, which has important guiding significance for the research and development, design and production process of color-spun products. Since the technical solution of the present invention has important application prospects and value, protecting the technical solution of the present invention will be of great significance to the competition for international leading position in related industries of my country. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1is a flow chart of an embodiment of the present invention.

[0038] Figure 2 These are some samples of color-spun knitted fabrics with different types of clipping effects in the embodiments of the present invention, which are spring bud yarn, neon yarn, Siro color spun yarn, hand-spun yarn, and spring bud slub yarn from top to bottom and from left to right.

[0039] Figure 3 It is an approximate component image under wavelet decomposition of levels 0 to 5 in an embodiment of the present invention.

[0040] Figure 4 HS color histograms of some samples in the embodiments of the present invention, where (1) and (2), (3) and (4) are two groups of samples of the same fabric (sample images originating from the same fabric) and their corresponding color histograms; (1) and (3), (2) and (3), (1) and (4), (2) and (4) are samples of different fabrics (sample images originating from different fabrics) and their corresponding color histograms. DETAILED DESCRIPTION

[0041] When the technical solution of the present invention is specifically implemented, those skilled in the art can use relevant data and computer software technology to run. In conjunction with the accompanying drawings, a specific description of the embodiments of the present invention is provided as follows.

[0042] like Figure 1 As shown in the figure, the embodiment provides a method for calculating the similarity of the clipping effect of color-spun knitted fabrics, establishes a set of objective quantitative analysis and evaluation models for the screen soft proofing process in the textile industry, and can provide effective guidance for the design and development of color-spun products. The embodiment uses color-spun knitted fabric samples with different clipping effects provided by enterprise A (including five categories: spring bud yarn, neon color yarn, siro color spun yarn, hand-spun yarn, and spring bud bamboo yarn). Some sample images are shown in Figure 1. Figure 2 As shown. The algorithm computing device is Super Micro 7048GR-TR, Windows 10 operating system, Intel (R) Xeon (R) E5-2678V3*2CPU, 128G memory, NVIDIA Tesla M40*4 computing card; the algorithm development environment is MATLAB R2016a and Python 3.6. It should be noted that the present invention is not limited to the application support of the above samples and software platforms, and is also applicable to any corresponding data and software platform that can implement the method of the present invention.

[0043] The embodiment mainly includes the following steps:

[0044] 1) Collect sample images and build a comparison sample database

[0045] As shown above, 286 samples of five different types of color-spun fabric samples with different styles of clipping patterns are used in the embodiment. The color-spun knitted fabric samples with different types of clipping patterns are processed into color-spun yarns with unique color effects by dyeing fibers with different colors, different quality ratios, different non-uniformity levels, and different mixing methods, and then woven into fabrics. In the process of collecting sample images, it is necessary to shoot in exactly the same environmental conditions (such as ambient humidity, light source, shooting angle, field of view, etc.), and the parameters of the camera (such as lens focal length, aperture size, white balance, etc.) are all consistent. After the acquisition is completed, all sample images (resolution 4000×6000) are pre-processed, and each fabric sample image is cut into two images (resolution 3000×3000, from the same fabric sample), and then all images are uniformly scaled to a resolution of 1024×1024 to ensure that the detail scale of the image is basically consistent. The input data of the method of the present invention is complete.

[0046] 2) Split the two samples to be compared into three channels: R, G, and B, and use wavelet decomposition to filter out high-frequency redundant information

[0047] In the embodiment, the purpose of wavelet decomposition is to filter out high-frequency redundant information of the knitted fabric structure contour, and use the approximate components obtained after decomposition to characterize the main color appearance information of the image, thereby reducing interference factors for the evaluation of the similarity of the clip effect. However, the first-level wavelet decomposition is not enough to completely eliminate redundant information. Therefore, the present invention uses the approximate components obtained after the first-level wavelet decomposition as the input image, performs the next-level wavelet decomposition, and constructs a multi-level wavelet decomposition process. For the sample images obtained under the image acquisition conditions of the present invention, the present invention uses the category separable ratio (CSR) as an evaluation index for the degree of distinction between the five types of clip effect categories, and uses the clip appearance style evaluation method constructed by the present invention to conduct comparative experiments under 0-5 level wavelet decomposition. Assume that there are two types of fabric samples A and B with different clip effects, and the definition of their category separable ratio is shown in Formula 1. In the formula, F A,B represents the average inter-class distance between fabric samples of type A and fabric samples of type B, F A and F B They represent the average intra-class distances between Class A fabric samples and Class B fabric samples, respectively; m and n represent the number of Class A and Class B fabric samples, respectively. They represent the number of pairwise combinations of type A and type B fabric samples respectively.

[0048]

[0049] In the experiment, the approximate component images under the 0-5 level wavelet decomposition are as follows Figure 3The experimental results of the class separability ratio between each class of samples are shown in Table 1. The experimental results show that the sample images in the present invention have the best effect on eliminating redundant information and retaining color appearance information under the three-level wavelet decomposition, and at the same time achieve the best class distinction in the clip appearance style evaluation method.

[0050] Table 1 Experimental results of class separability ratio between samples of each class

[0051]

[0052] 3) Extract MC-HOG features of the two images to be compared

[0053] In the embodiment, the HOG feature of each channel of the image is a texture feature descriptor used by the present invention to characterize the image clipping effect, and the calculation process is as follows: first, perform Gamma correction on the image channel, adjust the contrast, and reduce the influence of light on the image; then, divide the image into multiple 8×8 block units, and calculate the gradient amplitude and direction of each block unit respectively; finally, divide all directions (0 to 360 degrees) into 9 main directions and accumulate their corresponding gradient amplitudes to form a directional gradient histogram of each block unit on [0, 8]. Among them, the Gamma correction and the calculation method of the gradient amplitude and direction are shown in Formulas 1 to 5. In the formula, image represents the original image, x and y represent the horizontal and vertical coordinates of the pixel points respectively, I represents the image after Gamma correction, and G h (x,y),G v (x, y) represents the horizontal gradient and vertical gradient at the pixel point, respectively. M(x, y) and θ(x, y) represent the gradient amplitude and direction angle at the pixel point, respectively.

[0054] I(x,y)=(image(x,y)) γ Formula 1

[0055] G h (x,y)=I(x+1,y)-I(x-1,y) Formula 2

[0056] G v (x,y)=I(x,y+1)-I(x,y-1) Formula 3

[0057]

[0058] θ(x,y)=arctan(G h (x,y) / G v (x,y)) Formula 5

[0059] After the HOG features of the three grid channels R, G, and B of each block unit of the image are extracted, in order to characterize the correlation information between the channels, the amplitude differences between the channels (RG, GB, RB) in each gradient direction are calculated, and the histogram of directional gradient differences (HOG-D) features in the interval [0, 8] are constructed. All histogram features are cascaded in the form of [R, G, B, RG, GB, RB] and fused into MC-HOG features.

[0060] 4) Calculate the Gram matrix of the image MC-HOG features;

[0061] In the embodiment, the Gram matrix of the MC-HOG feature is a feature descriptor used by the present invention to characterize the image style of the mosaic appearance, and its calculation process is: traverse the image, cascade the MC-HOG features of each cell unit and its three adjacent cells (right, bottom, bottom right) into a feature vector, construct a multi-dimensional MC-HOG feature vector of the image, calculate the pairwise inner product between the vectors, and form a Gram matrix.

[0062] 5) Using the difference of Gram matrix to obtain the similarity of the style of the clip pattern;

[0063] In the embodiment, the elements of the Gram matrix are normalized to [0, 1]; on this basis, the difference of the Gram matrix is ​​used to measure the similarity of the two clip flower appearance styles, as shown in equations 6 and 7. Gram represents the difference of Gram matrices, Gram1 and Gram2 represent the Gram matrices calculated from the two compared sample images, N and M represent the length of the matrix rows and columns, i and j represent the horizontal and vertical coordinates of the matrix elements, and Sim F is the similarity of the two sample images in terms of their appearance style, and λ is an artificially set correction coefficient. Gram Scale to [0, 1].

[0064]

[0065] Sim F =(1-10 λ ×E Gram )×100% Formula 7

[0066] In order to prove the effectiveness and generalization of the method of the present invention, the class separable ratio defined in 2) is used as the class discrimination evaluation index, and the clip appearance style similarity evaluation method constructed by the present invention and the commonly used image texture features (LBP, GLCM, HOG, Tamura) and image quality evaluation indexes (PSNR, SSIM) are used to construct a comparative experiment. The comparative experiment settings are shown in Table 2, and the experimental results are shown in Table 3. The experimental results show that compared with the above evaluation indicators, the method of the present invention has better class discrimination.

[0067] Table 2 Comparative experimental settings

[0068] Experimental Group Image features Similarity measurement method 1 LBP Euclidean distance 2 GLCM Euclidean distance 3 HOG Euclidean distance 4 Tamura Euclidean distance 5 PSNR \ 6 SSIM \ 7 Methods <![CDATA[E Gram ]]>

[0069] Table 3 Experimental results

[0070]

[0071] 6) Convert the sample image to be compared into the HSV color space and perform color quantization;

[0072] In the embodiment, in order to reduce the interference of variant chromaticity values ​​and visual transition color information in the sample image of the colored spun knitted fabric, the chromaticity channels of the two sample images to be compared in step 2 are color quantized, the hue H is quantized into 16 levels, the saturation S is quantized into 4 levels, and the two-dimensional chromaticity features are divided into 64 HS intervals (16 levels × 4 levels).

[0073] 7) Extract HS color histogram features;

[0074] In the embodiment, since the perception of the clip effect by the human eye is most affected by hue, followed by saturation, and least affected by brightness, and the brightness difference generated by the knitted fabric structure contour during the imaging process will have a significant impact on the determination of the clip effect, the brightness channel of the image is ignored, and the HS color histogram features of the two sample images to be compared after color quantization are extracted. The calculation method is: the distribution number of image pixels in 64 HS intervals (16 levels × 4 levels) after color quantization is accumulated, and a color histogram in [0, 63] is constructed.

[0075] 8) Using the Euclidean distance of HS color histogram features to obtain the color similarity of the clips;

[0076] In the embodiment, the Euclidean distance of the HS color histogram feature is used to measure the color difference of the two sample images to be compared, as shown in equations 8 to 9. , Y represents the HS color histogram features of the two sample images to be compared, Dist represents the difference in their color features, and i represents the feature dimension. Cis the similarity of the two compared sample images in terms of their appearance style, and μ is an artificially set correction coefficient, the purpose of which is to scale Dist to [0, 1].

[0077]

[0078] Sim C =(1-10 μ ×Dist)×100% Formula 9

[0079] In order to measure the similarity between the color matching of the screen soft proofing effect and the real sample, the clip color evaluation model constructed by the present invention is used to compare the same fabric samples (images of the same fabric sample in this type of sample) with each type of fabric sample with clip effect. Figure 4 In (1) and (2), the color matching information is similar) and different fabric samples (in this type of sample, the images from different fabric samples are compared two by two, e.g. Figure 4 In (1) and (3), the color matching information is different) to construct a comparative experiment. The HS color histograms of some samples in the experiment are as follows: Figure 4 The experimental results are shown in Table 4. The experimental results show that the color similarity evaluation index of the pattern constructed by the present invention can effectively judge the similarity of the color ratio information of the samples.

[0080] Table 4 Experimental results

[0081]

[0082]

[0083] The specific embodiments described herein are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the appended claims.

Claims

1. A method for calculating the similarity of the clipping effect of a colored spun knitted fabric. It is characterized in that The steps include: Step 1, using colored spun yarn to prepare colored spun knitted fabric samples with different types of clipping effects, collecting sample images, and building a comparison sample database; Step 2, select two sample images to be compared in the database, split them into three channels of R, G, and B, and then filter the high-frequency redundant information in the three channels to obtain approximate component images of the three channels; Step 3, extract the HOG features of the histogram of directional gradients of the approximate component images of each channel of the image, calculate the amplitude difference between the channels (RG, GB, RB) in each gradient direction, construct the HOG-D features of the histogram of directional gradient differences, and fuse them into the MC-HOG features of the multi-channel histogram of directional gradients; Step 4, calculate the Gram matrix of the image MC-HOG features; In step 4, the Gram matrix of the MC-HOG feature is a feature descriptor used to characterize the image's floral appearance style. The calculation process is as follows: traverse the image, concatenate the MC-HOG features of each cell unit and its three adjacent cells into a feature vector, construct a multi-dimensional MC-HOG feature vector of the image, and calculate the inner product between the two vectors to form a Gram matrix. Step 5, measuring the difference in the style of the two sample images to be compared according to the difference in the Gram matrix, and obtaining the similarity of the style of the two sample images; In step 5, the elements of the Gram matrix are normalized to [0, 1]; On this basis, the difference of Gram matrix is ​​used to measure the similarity of the two patterns’ appearance styles, as shown in equations 6 to 7; Formula 6 Formula 7 In the formula represents the difference of Gram matrix, , Respectively represent the Gram matrices calculated from two compared sample images, Respectively represent the horizontal and vertical coordinates of the matrix elements, is the similarity of the flower pattern appearance style of the two compared sample images, is an artificial correction factor, the purpose of which is to Scale to [0, 1]; Step 6, convert the two sample images to be compared in step 2 into the HSV color space, and perform color quantization on the two chromaticity channels of hue H and saturation S; Step 7, extracting the HS color histogram features of the H and S channels of the two images after color quantization; Step 8, using the Euclidean distance of the HS color histogram feature to measure the difference in the color of the two sample images to be compared, to obtain the color similarity of the color of the two samples.

2. A method for calculating the similarity of the clipping effect of a colored spun knitted fabric as claimed in claim 1, Features: In step 1, the samples of color-spun knitted fabrics with different types of pattern effects are made by processing dyed fibers with different colors, different mass ratios, different non-uniformity degrees, and different mixing methods into color-spun yarns with unique color effects, and then weaving them into fabrics; in the process of collecting sample images, it is necessary to shoot under exactly the same environmental conditions, including environmental humidity, light source, shooting angle, and field of view. The parameters of the camera are all kept consistent, including lens focal length, aperture size, and white balance.

3. A method for calculating the similarity of the clipping effect of a colored spun knitted fabric as claimed in claim 1, Features: In step 2, wavelet decomposition is used to filter the high-frequency redundant information in the three channels. The purpose is to filter the high-frequency redundant information of the knitted fabric structure contour, and the approximate components obtained after decomposition are used to represent the main color appearance information of the image, thereby reducing interference factors for the evaluation of the similarity of the clip effect.

4. A method for calculating the similarity of the clipping effect of a colored spun knitted fabric as claimed in claim 1, Features: In step 3, the HOG feature of each channel of the image is a texture feature descriptor used to characterize the image clipping effect. The calculation process is as follows: first, perform Gamma correction on the image channel to adjust the contrast and reduce the impact of light on the image; then, divide the image into multiple 8×8 block units, and calculate the gradient amplitude and direction of each block unit respectively; finally, divide all directions, that is, 0~360 degrees, into 9 directions and accumulate their corresponding gradient amplitudes to form a directional gradient histogram of each block unit on [0, 8]; among which, the Gamma correction and the gradient amplitude and direction calculation methods are shown in equations 1 to 5, where represents the original image, Respectively represent the horizontal and vertical coordinates of the pixel point, represents the image after Gamma correction, , Respectively represent the horizontal gradient and vertical gradient at the pixel point, , Respectively represent the gradient amplitude and direction angle at the pixel point; Formula 1 Formula 2 Formula 3 Formula 4 Formula 5 After the HOG features of the three grid channels R, G, and B of each block unit of the image are extracted, in order to characterize the correlation information between the channels, the amplitude differences between the channels (RG, GB, RB) in each gradient direction are calculated, and the histogram of directional gradient differences (HOG-D) features in the interval [0, 8] are constructed. All histogram features are cascaded in the form of [R, G, B, RG, GB, RB] and fused into MC-HOG features.

5. A method for calculating similarity of the clipping effect of a colored spun knitted fabric as claimed in claim 1, Features: In step 6, in order to reduce the interference of variant chromaticity values ​​and visual transition color information in the color-spun knitted fabric sample images, the chromaticity channels of the two sample images to be compared in step 2 are color quantized, the hue H is quantized into 16 levels, the saturation S is quantized into 4 levels, and the two-dimensional chromaticity features are divided into 64 HS intervals, i.e., 16 levels × 4 levels.

6. A method for calculating the similarity of the clipping effect of a colored spun knitted fabric as claimed in claim 5, Features: In step 7, since the human eye's perception of the clip effect is most affected by hue, followed by saturation, and least affected by brightness, and the brightness difference of the knitted fabric structure outline during the imaging process will have a significant impact on the determination of the clip effect, the brightness channel of the image is ignored, and the HS color histogram features of the two sample images to be compared after color quantization are extracted. The calculation method is: the distribution number of image pixels in 64 HS intervals after color quantization is accumulated, and a color histogram in [0, 63] is constructed.

7. A method for calculating similarity of the clipping effect of a colored spun knitted fabric as claimed in claim 1, Features: In step 8, the Euclidean distance of the HS color histogram feature is used to measure the color difference of the two sample images to be compared, as shown in equations 8 to 9; Formula 8 Formula 9 In the formula Represent the HS color histogram features of the two sample images to be compared, Indicates the difference in color characteristics, Represents the feature dimension; is the similarity of the flower pattern appearance style of the two compared sample images, is an artificial correction factor, the purpose of which is to Scale to [0, 1].