[go: up one dir, main page]

CN119180818A - Image complexity calculation method and system considering multi-scale fusion - Google Patents

Image complexity calculation method and system considering multi-scale fusion Download PDF

Info

Publication number
CN119180818A
CN119180818A CN202411687098.2A CN202411687098A CN119180818A CN 119180818 A CN119180818 A CN 119180818A CN 202411687098 A CN202411687098 A CN 202411687098A CN 119180818 A CN119180818 A CN 119180818A
Authority
CN
China
Prior art keywords
image
complexity
coarse
renormalized
image obtained
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.)
Granted
Application number
CN202411687098.2A
Other languages
Chinese (zh)
Other versions
CN119180818B (en
Inventor
包兴先
李江昊
金晰然
王茂洁
郝颖奎
吴微
杨硕
孙昊楠
马祖亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China University of Petroleum East China
Original Assignee
China University of Petroleum East China
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China University of Petroleum East China filed Critical China University of Petroleum East China
Priority to CN202411687098.2A priority Critical patent/CN119180818B/en
Publication of CN119180818A publication Critical patent/CN119180818A/en
Application granted granted Critical
Publication of CN119180818B publication Critical patent/CN119180818B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection

Landscapes

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

Abstract

The invention belongs to the technical field of image processing, and discloses a method and a system for calculating image complexity by considering multi-scale fusion. The method comprises determining whether the pixel values of the input image are the same, and determining the widths of two super-parametric filtersAnd the number of iterationsCalculating the number of iterationsCoarse granularity processing to obtain the first imageReformed image obtained after sub-coarse granularityAnd to the firstReformed image obtained after sub-coarse granularityExpanding to obtain the firstReformed image obtained by sub-coarseningExtended Image. The invention expands the application range of the technology, and makes the technology more suitable for the analysis requirement of the common user on the complexity of the conventional image.

Description

Image complexity calculation method and system considering multi-scale fusion
Technical Field
The invention belongs to the technical field of image processing, and particularly relates to an image complexity calculation method and system considering multi-scale fusion.
Background
Measurement of image complexity has important applications in a number of fields, including computer vision, pattern recognition, image compression, biomedical image analysis, and the like. The quantization of complexity can help not only improve the accuracy of image processing and analysis, but also provide important information about the structure and content of the image. The definition of complexity is generally related to the structural features and content density of an image, reflecting the amount of information contained in the image and its organization.
The prior art methods of computing image complexity are diverse, and involve feature extraction from simple edge detection to deep learning. By the method, the complexity of the image can be quantitatively analyzed, and the processing strategy is optimized and the information processing efficiency is improved according to specific requirements. The image complexity calculation has very key practical application value for improving the image processing technology, enhancing the user experience and optimizing the resource use.
Wherein prior art Bagrov A A, iakovlev I A, iliasov A A, et al . Multiscale structural complexity of natural patterns[J]. Proceedings of the National Academy of Sciences, 2020, 117(48): 30241-30251, provide a complexity calculation method through coarsening. This method first gradually downsamples the original image to produce a series of progressively lower resolution images. The width and height of these images are adjusted to be uniform, and then the complexity of the images is calculated using the initially and finally generated images. By analyzing the variations between images of different resolutions, the method attempts to capture the overall complexity characteristics of the image. Although this method is simple and easy to implement, it has certain limitations.
Through the above analysis, the problems and defects existing in the prior art are as follows:
(1) The method requires the images to be consistent in width and height before processing, and is not suitable for the requirement of a common user on analyzing the complexity of the conventional images;
(2) According to the method, the complexity is calculated by only utilizing the initial and final generated reformation images, and the image information of each scale in the coarse granularity process is ignored, so that the description of the image complexity is not comprehensive enough;
(3) The final complexity calculation result is usually between 0 and 1, and the smaller numerical range makes the complexity difference between different images indistinguishable, so that the effectiveness of the method in practical application is limited;
(4) The method is computationally inefficient in processing high resolution images or large-scale data sets, which becomes a bottleneck in practical applications.
These drawbacks indicate that existing coarsening methods have room for improvement in accuracy, comprehensiveness and computational efficiency.
Disclosure of Invention
In order to overcome the problems in the related art, the embodiment of the invention provides a method and a system for calculating image complexity by considering multi-scale fusion.
The technical scheme is that the image complexity calculating method considering multi-scale fusion comprises the following steps:
S1, judging whether pixel values of the width and the height of an input image are the same, if not, filling an image background, and if the larger value is an odd number, changing the image size +1 into an even number;
S2, determining widths of two super-parametric filters And the number of iterationsCalculating the number of iterationsIs a value range of (a);
S3, performing coarse granularity treatment on the image to sequentially obtain the first Reformed image after sub-coarse granularity;
S4, the second pairReformed image obtained after sub-coarse granularityExpanding to obtain an expanded image;
S5, calculating the firstReformed image obtained after sub-coarse granularityIs a spread image of (a)And the firstReformed image obtained by sub-coarseningDegree of overlap between;
S6, calculating image complexity
In step S1, after filling the image background, normalizing the image data, wherein the background filling mode is divided into edge filling and positioning filling, the positioning filling is that the original image is placed on the left side of the background filling area for contrast analysis, and the normalization processing calculation formula is as follows:
;
;
;
In the formula, Respectively the first image after pretreatmentLine 1The RGB channel normalized values for the column pixels,Respectively the first in the original imageLine 1RGB channel values for column pixels.
In step S2, the filter widthFilter widthAnd the number of iterationsIs two super parameters in the coarse granularity process, and the width and height of the reformed image obtained by coarse granularity are reduced each timeMultiple times, and minimum value of width and height is 1, iteration timesThe value range calculation formula of (2) is:
;
In the formula, Is the firstThe side length of the image obtained by the sub-coarse granularity is an integer,Is the side length of the original image.
In step S3, coarse granularity processing is performed on the image, including:
In the course of coarsening, an image is divided into a plurality of sizes Adding the values of each pixel of the pixel block to obtain an average value to obtain a pixel point, replacing the original pixel block with the pixel point, traversing each pixel block to complete one-time coarse granularity, and the firstReformed image obtained after sub-coarse granularityThe calculation formula is as follows:
;
In the formula, Is the firstSecond coarsely grained reformed imageLine 1Column pixel points; is the first image before coarsening Line 1Column pixel block of the first columnLine 1Column pixel points; Is the first Second coarsely grained reformed imageLine 1And (5) column pixel points.
In step S4, for the firstReformed image obtained after sub-coarse granularityThe nearest neighbor up-sampling expansion is adopted for expansion to obtain the firstReformed image obtained by sub-coarseningIs a spread image of (a)The calculation formula of the nearest neighbor upsampling extension is:
;
In the formula, Is thatFirst, theLine 1The pixel points of the column are arranged,Is thatFirst, theLine 1The pixel points of the column are arranged,Is thatFirst, theLine 1The pixel points of the column are arranged,Is thatFirst, theLine 1And (5) column pixel points.
Further, the image is reformedIs of the side length ofReformed image obtained after sub-coarse granularityA kind of electronic deviceDouble expanding imageAnd (3) withUniform size and satisfiesWherein, the method comprises the steps of,Is the firstThe side length of the image obtained by the sub-coarse granularity is an integer,In order to expand the side length of the image after expansion,Is thatIs used for expanding the image.
In step S5, the first is calculatedReformed image obtained after sub-coarse granularityIs a spread image of (a)And the firstReformed image obtained by sub-coarseningDegree of overlap betweenComprising:
Is that Is the first of (2)Line 1The column of pixels, which is a vector,And (3) withThe product of (2) is a vector product, and the calculation formula is as follows:
;
In the formula, Is the first-1 St coarsening of the obtained reformed imageLine 1And (5) column pixel points.
In step S6, image complexityThe calculation formula of (2) is as follows:
;
;
In the formula, As a component of the complexity C,Is the firstReformed image obtained by sub-coarseningIs a spread image of (a)And the firstReformed image obtained by sub-coarseningThe overlap ratio between the two.
Further, image complexityObtained by exponential function amplificationThe expression is:
;
In the formula, For the amplified image complexity, C is the original image complexity,Is the base of natural logarithms.
It is another object of the present invention to provide an image complexity calculation system taking into account multi-scale fusion, the system implementing the image complexity calculation method taking into account multi-scale fusion, the system comprising:
The image background filling module is used for judging whether the pixel values of the width and the height of the input image are the same, if not, filling the image background, and if the larger value is an odd number, the image size is +1 and becomes an even number;
The iteration number value range determining module is used for determining the widths of two super-parameter filters And the number of iterationsCalculating the number of iterationsIs a value range of (a);
a reorganization image acquisition module for determining two super-parametric filter widths And the number of iterationsThen, coarsening the image to obtain the first image in turnReformed image after sub-coarse granularity;
An extended and reorganized image acquisition module, for the firstReformed image obtained after sub-coarse granularityExpanding to obtain an expanded image;
The coincidence degree calculating module calculates the firstReformed image obtained after sub-coarse granularityIs a spread image of (a)And the firstReformed image obtained by sub-coarseningDegree of overlap between;
An image complexity calculating module for calculating image complexityAmplifying by exponential function
By combining all the technical schemes, the invention has the following beneficial effects:
In terms of image size limitation, the current technology requires that the processed images must be consistent in width and height, which limits the applicability of the method in common applications. The invention provides a complexity evaluation method capable of processing images with any aspect ratio, thereby expanding the application range of the technology and enabling the technology to be more suitable for the analysis requirement of common users on the complexity of conventional images.
In terms of complexity evaluation comprehensiveness, the existing method only considers the initial state and the final state of the image, and ignores information of each intermediate scale in the coarse graining process. The present invention proposes a new computational framework that incorporates images of all or more intermediate coarse-grain scales into the complexity computation to provide a more comprehensive and detailed image complexity description, thereby reflecting the true complexity of the image more accurately.
The complexity value generated by the traditional method is between 0 and 1 on the aspect of the result discrimination, so that the complexity difference between different images is not easy to identify. The invention aims to develop a new measurement standard or adjust the existing algorithm to increase the value range of the output complexity value, so that the complexity difference between different images can be distinguished more easily.
In terms of computational efficiency, conventional methods are inefficient in processing high resolution images or large data volume image sets. The invention provides a more efficient algorithm implementation or a more optimized calculation resource management scheme to improve the calculation efficiency of the coarse graining process and complexity evaluation, thereby being more suitable for the processing requirements of high-resolution images or large-scale image sets.
And aiming at the condition that the width and the height of the original images are inconsistent, adopting a filling strategy to adjust the images, so that all the processed images have uniform width and height, and ensuring the universality and the adaptability of the algorithm.
The invention not only considers the complexity of the final coarse-grained image, but also integrates the complexity changes of the images at each stage in the middle into the final complexity assessment, and the overall complexity is assessed by integrating the continuous changes. The complexity calculation efficiency is greatly improved by adjusting the numerical range of the complexity output (for example, from 0-1 to wider numerical values such as 21, 43 and 72), so that the degree of differentiation of the result is higher, the analysis and the interpretation are more convenient, and the algorithm optimization and the simplification of the calculation flow are realized. The method and the device can be applied to multiple fields of automatic classification, evaluation, search optimization and the like of the images by adopting multi-scale fusion to analyze the images and more accurately evaluate the complexity of the images.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure;
FIG. 1 is a schematic diagram of an image complexity calculation method considering multi-scale fusion according to an embodiment of the present invention;
FIG. 2 is a simplified schematic illustration of an image expansion provided by an embodiment of the present invention;
FIG. 3 is a schematic diagram of an image complexity calculation system that takes into account multi-scale fusion according to an embodiment of the present invention;
FIG. 4 is a schematic illustration of an edge-filled black filling experiment according to an embodiment of the present invention;
FIG. 5 is a second experimental illustration of edge filling with black filling background according to an embodiment of the present invention;
FIG. 6 is a third experimental illustration of edge filling with black filling background provided by an embodiment of the present invention;
FIG. 7 is a fourth experimental illustration of edge filling with black filling background provided by an embodiment of the present invention;
FIG. 8 is a fifth experimental illustration of edge filling with black filling background provided by an embodiment of the present invention;
FIG. 9 is a sixth experimental illustration of edge filling with black filling background provided by an embodiment of the present invention;
in the figure, the method comprises a1 image background filling module, a2 iteration number value range determining module, a3 reforming image obtaining module, a 4 expansion reforming image obtaining module, a 5 contact ratio calculating module and a 6 image complexity calculating module.
Detailed Description
In order that the above objects, features and advantages of the invention will be readily understood, a more particular description of the invention will be rendered by reference to the appended drawings. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. The invention may be embodied in many other forms than described herein and similarly modified by those skilled in the art without departing from the spirit or scope of the invention, which is therefore not limited to the specific embodiments disclosed below.
The embodiment of the invention provides an image complexity calculation method, which realizes more accurate and efficient evaluation of image complexity through wide-high consistency adjustment, multi-scale complexity calculation, adjustment of a complexity output range and optimization of calculation efficiency. The method expands the numerical range of complexity output by comprehensively analyzing the changes of images with different sizes, optimizes the algorithm to improve the calculation efficiency, and is particularly suitable for processing large-scale image data. The image complexity calculating method and system considering multi-scale fusion provided by the embodiment of the invention have the innovation points that:
Embodiment 1 of the present invention provides an improved image complexity calculation method considering multi-scale fusion, which mainly includes:
(1) And adjusting the width and height consistency, namely adjusting the original image with any aspect ratio by using a filling or other image processing methods to adapt to the requirements of a complexity algorithm, and ensuring the width and height consistency of the image.
(2) Multi-scale complexity calculation, namely evaluating the overall image complexity by comprehensively analyzing the image changes of each size in the coarsening process instead of considering the original image and the picture coarsened for the last time.
(3) And (3) adjusting the complexity output range, namely innovatively expanding the complexity output numerical range, so that the result distinguishing degree is improved, and the complexity evaluation is finer and more practical.
(4) Optimization of computational efficiency by improving the algorithm and simplifying the computational process, improves the efficiency of complexity computation, especially when processing large-scale image data requiring a large amount of computation.
Embodiment 2, as a further detailed technical solution of the present invention, provides an image complexity calculating method considering multi-scale fusion according to an embodiment of the present invention, which specifically includes the following steps:
S1, judging whether pixel values of the width and the height of an input image are the same, if not, filling an image background, and if the larger value is an odd number, changing the image size +1 into an even number;
The background color of the general image filling is black, but since the invention needs to perform normalization processing (preprocessing) on the image data, the calculation formula of the normalization processing is as follows:
;
;
;
In the middle of Respectively the first image after pretreatmentLine 1The RGB channel normalized values for the column pixels,Respectively the first in the original imageLine 1RGB channel values for column pixels. Therefore, when the RGB channel value of the filling background is (128,128,128), the normalized value of the RGB channel after normalization of the filling background is (0, 0), so the invention performs classified discussion on the color of the channel background. In addition, the background filling mode is generally divided into edge filling and positioning filling (the original image is placed on the left side of the background filling area for comparison analysis), so the invention also carries out classified discussion on the filling mode of the channel background.
S2, determining widths of two super-parametric filtersAnd the number of iterationsCalculating the number of iterationsIs a value range of (a);
Specifically, the filter width is determined In general. Number of iterationsIs an superparameter in the coarsening process, and the width and height of the reformed image obtained by coarsening each time can be reducedThe minimum value is 1, so the invention innovatively provides that the value range of the iteration times N can be calculated according to the following formula:
;
In the formula, Is the firstThe side length of the image obtained by the sub-coarse granularity is an integer,Is the side length of the original image.
The technical function of equation (4) is to determine the range of values of the number of iterations N.
S3, determining widths of two super-parametric filtersAnd the number of iterationsThen, coarsening the image to obtain the first image in turnReformed image after sub-coarse granularity;
Carry out the first step on the imagePerforming coarse graining treatment to obtain a product with a side length of the first sizeReformed image obtained after sub-coarse graining;
In the course of coarsening, the division of an image into multiple dimensions isThen adding the values of the pixels of the pixel block to obtain an average value to obtain a pixel point, and replacing the original pixel block with the pixel point. Traversing each pixel block, sequentially performing the operation, and finally finishing one coarse granularity to obtain an image with a side length of coarse granularityThe specific calculation formula is as follows:
;
In the formula, Is the firstSecond coarsely grained reformed imageLine 1Column pixel points; is the first image before coarsening Line 1Column pixel block of the first columnLine 1Column pixel points; Is the first Second coarsely grained reformed imageLine 1And (5) column pixel points.
First, theImages before sub-coarseningI.e. the firstReformed image obtained after sub-coarse grainingTherefore, the firstReformed image obtained after sub-coarse grainingIs the firstReformed image obtained after sub-coarse grainingA kind of electronic device;
S4, the second pairReformed image obtained after sub-coarse granularityExpanding to obtain an expanded image;
Specifically, assume thatIs the firstThe reformed image obtained after the sub-coarse grain,Is the original image. The invention is applied to a multi-scale fusion technology when calculating the complexity of the image, and needs to calculateAnd (3) withThe overlap ratio between the two.
Due toIs of side length ofA kind of electronic deviceIn the process of calculationAnd (3) withIn the overlap ratio of (2), the dimensions are required to be uniform, and thus forPerforming expansion (nearest neighbor upsampling) to obtain the firstReformed image obtained by sub-coarseningIs a spread image of (a)As shown in the extended image in fig. 1, the calculation formula of the nearest neighbor upsampling extension is:
;
In the formula, Is thatFirst, theLine 1The pixel points of the column are arranged,Is thatFirst, theLine 1The pixel points of the column are arranged,Is thatFirst, theLine 1The pixel points of the column are arranged,Is thatFirst, theLine 1And (5) column pixel points.
A simple calculation of the image expansion is shown in fig. 2, in which,Is the firstThe side length of the image obtained by the sub-coarse granularity is an integer,Is the side length of the expanded image and meets the following requirements,Is thatIs a picture of the expansion image of (a);
S5, calculating the first Reformed image obtained after sub-coarse granularityIs a spread image of (a)And the firstReformed image obtained by sub-coarseningDegree of overlap between;
Assume thatIs thatIs the first of (2)Line 1The pixel points are listed, so that it is a vector,And (3) withThe product of (2) is a vector product. The innovation of the invention proposes to calculate the firstReformed image obtained after sub-coarse granularityIs a spread image of (a)And the firstReformed image obtained by sub-coarseningDegree of overlap betweenThe calculation formula is as follows:
;
In the formula, Is the first-1 St coarsening of the obtained reformed imageLine 1And (5) column pixel points.
S6, calculating image complexityThe calculation formula is as follows:
;
;
In the formula, Is of complexityIs used for the control of the degree of freedom of the composition,Is the firstReformed image obtained by sub-coarseningIs a spread image of (a)And the firstReformed image obtained by sub-coarseningThe overlap ratio between the two.
Complexity of the imageObtained by exponential function amplificationThe expression is:
;
In the formula, In order to achieve an enlarged image complexity,For the complexity of the original image it is,Is the base of natural logarithms.
According to the embodiment, the image is adjusted by adopting the filling strategy aiming at the condition that the width and the height of the original image are inconsistent, so that all processed images have uniform width and height, and the universality and the adaptability of the algorithm are ensured.
The invention not only considers the complexity of the final coarse-grained image, but also integrates the complexity changes of the images at each stage in the middle into the final complexity assessment, and the overall complexity is assessed by integrating the continuous changes.
By adjusting the range of values of the complexity output (e.g., from 0-1 to a wider range of values such as 21, 43, 72), the discrimination of the results is higher, facilitating analysis and interpretation;
and the complexity calculation efficiency is greatly improved through algorithm optimization and calculation flow simplification.
Embodiment 3 as shown in fig. 3, an image complexity calculation system considering multi-scale fusion according to an embodiment of the present invention includes:
The image background filling module 1 is used for judging whether the pixel values of the width and the height of the input image are the same, if not, filling the image background, and if the larger value is odd, the image size +1 is changed into even;
the iteration number value range determining module 2 is used for determining the widths of two super-parameter filters And the number of iterationsCalculating the number of iterationsIs a value range of (a);
a reorganization image acquisition module 3 for determining two super-parametric filter widths And the number of iterationsThen, coarsening the image to obtain the first image in turnReformed image after sub-coarse granularity;
An extended and reorganized image acquisition module 4 for the firstReformed image obtained after sub-coarse granularityExpanding to obtain an expanded image;
The overlap ratio calculation module 5 calculates the firstReformed image obtained after sub-coarse granularityIs a spread image of (a)And the firstReformed image obtained by sub-coarseningDegree of overlap between;
An image complexity calculation module 6 for calculating image complexityAmplification is performed by an exponential function.
The technical improvement point can be applied to the following fields:
Petroleum leakage detection-image complexity can be used to detect the severity of petroleum leakage in sea water. By analyzing the image of the oil film in the seawater, the distribution and diffusion condition of the oil stain can be evaluated, so that corresponding cleaning measures can be adopted.
Magnetic field detection in which image complexity can be used to analyze the strength and distribution of a magnetic field. By visualizing the magnetic field lines, the complexity of the magnetic field can be more intuitively understood, which is important for physical experiment and engineering applications.
Medical imaging analysis in the field of medical imaging, image complexity may help doctors analyze the complexity of a lesion region, such as in MRI or CT scanning, complexity analysis may help identify and differentiate between different tissue types.
Remote sensing image analysis in the remote sensing field, image complexity can be used to analyze surface coverage types and changes, which is critical to environmental monitoring and urban planning.
According to the embodiment, the application range of the algorithm is widened, more kinds of images can be processed, the original aspect ratio of the images is not required to be limited, and the use convenience of a user is improved.
The invention provides finer and dynamic complexity assessment, which can reflect the change and characteristics of the image content more truly.
The invention improves the sensitivity and practicability of complexity evaluation, so that the complexity comparison among different images is more obvious, and the invention is convenient for further data processing and application.
The invention reduces the consumption of computing resources, accelerates the processing speed, has obvious advantages especially when processing a large number of or high-resolution images, and improves the user experience.
The image complexity under different conditions is compared according to the above procedure, the initial conditions α=2, k=11 are given, and the experimental legends of edge filling and black filling background are given, as shown in fig. 4-9. The Python version used in the invention is 3.8.0, the Pytorch-cuda version is 11.7, the GPU is GTX-1660-Super, the CPU is i5-12400F, and the comparative test analysis results are shown in Table 1:
TABLE 1 image complexity (C) comparison experiment results
Experimental results show that the MSE of the edge filling-gray is minimum, the average running time of the invention is 3945.44, the running time of the prior art is 31937.38s, 27991.94s are saved, and the efficiency is improved by about 87.65%.
(8) The image complexity results in table 1 are amplified in combination with equation (9), and the results are shown in table 2:
TABLE 2 image complexity (C m) vs. experimental results
Experimental results show that the amplified data is more distinct and that the MES has the same law as before.
While the invention has been described with respect to what is presently considered to be the most practical and preferred embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, but on the contrary, is intended to cover various modifications, equivalents, and alternatives falling within the spirit and scope of the invention.

Claims (10)

1.一种考虑多尺度融合的图像复杂度计算方法,其特征在于,该方法包括:1. A method for calculating image complexity considering multi-scale fusion, characterized in that the method comprises: S1,判断输入图像宽、高的像素值是否相同,如果不相同则对图像背景进行填充,如果较大的值为奇数,则该图像尺寸+1,变为偶数;S1, determine whether the pixel values of the width and height of the input image are the same. If they are not the same, fill the image background. If the larger value is an odd number, the image size is increased by 1 to become an even number; S2,确定两个超参数过滤器宽度与迭代次数,计算迭代次数的取值范围;S2, determines the width of two hyperparameter filters With the number of iterations , calculate the number of iterations The value range of S3,对图像进行粗粒度化处理,依次得到第次粗粒度后的重整化图像S3, performs coarse-grained processing on the image, and obtains the Renormalized image after sub-coarse granularity ; S4,对第次粗粒度后得到的重整化图像进行扩展,得到扩展图像S4, for The renormalized image obtained after the second coarse granularity Expand and get the extended image ; S5,计算第次粗粒度后得到的重整化图像的扩展图像与第次粗粒度化得到的重整化图像之间的重合度S5, calculate the The renormalized image obtained after the second coarse granularity Extended image of With The renormalized image obtained by sub-coarse granularization The overlap between ; S6,计算图像复杂度S6, Calculate image complexity . 2.根据权利要求1所述的考虑多尺度融合的图像复杂度计算方法,其特征在于,在步骤S1中,对图像背景进行填充后,对图像数据进行归一化处理,背景填充的方式分为边缘填充及定位填充,定位填充为将原始图像放置在背景填充区域的左侧进行对比分析,归一化处理计算公式为:2. According to the image complexity calculation method considering multi-scale fusion as described in claim 1, it is characterized in that in step S1, after the image background is filled, the image data is normalized, and the background filling method is divided into edge filling and positioning filling. Positioning filling is to place the original image on the left side of the background filling area for comparative analysis, and the normalization calculation formula is: ; ; ; 式中,分别为预处理后图像的第行、第列像素的RGB通道归一化值,分别为原图像中第行、第列像素的RGB通道值。In the formula, They are the first Row, No. The normalized values of the RGB channels of the column pixels, They are the first Row, No. RGB channel values of the column pixels. 3.根据权利要求1所述的考虑多尺度融合的图像复杂度计算方法,其特征在于,在步骤S2中,过滤器宽度,过滤器宽度与迭代次数是粗粒度化过程中的两个超参数,每次粗粒度化得到的重整化图像的宽高缩小倍,且宽高的最小值为1,迭代次数的取值范围计算公式为:3. The image complexity calculation method considering multi-scale fusion according to claim 1, characterized in that in step S2, the filter width , filter width With the number of iterations are two hyperparameters in the coarse-graining process. The width and height of the renormalized image obtained by each coarse-graining are reduced. times, and the minimum width and height is 1, the number of iterations The value range calculation formula is: ; 式中,为第次粗粒度得到的图像的边长且为整数,为原始图像的边长。In the formula, For the The side length of the image obtained at the second coarse granularity is an integer, is the side length of the original image. 4.根据权利要求3所述的考虑多尺度融合的图像复杂度计算方法,其特征在于,在步骤S3中,对图像进行粗粒度化处理,包括:4. The method for calculating image complexity considering multi-scale fusion according to claim 3, characterized in that in step S3, the image is subjected to coarse-grained processing, comprising: 在粗粒度化的过程中,将图像划分为多个尺寸大小为的像素块,将像素块各个像素的值相加取平均值得到一个像素点,用该像素点取代原像素块;对各个像素块进行遍历,完成一次粗粒度化,第次粗粒度后得到的重整化图像,计算公式为:In the coarse-graining process, the image is divided into multiple sizes The pixel block is formed by adding the values of each pixel in the pixel block and taking the average value to obtain a pixel point, which is used to replace the original pixel block; each pixel block is traversed to complete a coarse-graining. The renormalized image obtained after the second coarse granularity , the calculation formula is: ; 式中,为第次粗粒度化得到的重整化图像的第行、第列像素点;为粗粒度化前图像的第行、第列像素块的第行、第列像素点;为第次粗粒度化得到的重整化图像的第行、第列像素点。In the formula, For the The renormalized image obtained by the second coarse-graining is Row, No. Column pixels; is the image before coarse-graining Row, No. The first pixel block Row, No. Column pixels; For the The renormalized image obtained by the second coarse-graining is Row, No. Column pixels. 5.根据权利要求1所述的考虑多尺度融合的图像复杂度计算方法,其特征在于,在步骤S4中,对第次粗粒度后得到的重整化图像进行扩展采用最近邻上采样扩展,得到第次粗粒度化得到的重整化图像的扩展图像,最近邻上采样扩展的计算公式为:5. The method for calculating image complexity considering multi-scale fusion according to claim 1, characterized in that in step S4, The renormalized image obtained after the second coarse granularity The nearest neighbor upsampling expansion is used to obtain the The renormalized image obtained by sub-coarse granularization Extended image of , the calculation formula for the nearest neighbor upsampling expansion is: ; 式中,行、第列像素点,行、第列像素点,行、第列像素点,行、第列像素点。In the formula, for No. Row, No. Column pixels, for No. Row, No. Column pixels, for No. Row, No. Column pixels, for No. Row, No. Column pixels. 6.根据权利要求5所述的考虑多尺度融合的图像复杂度计算方法,其特征在于,重整化图像的边长为第次粗粒度后得到的重整化图像倍,扩展图像尺寸一致;且满足;其中,为第次粗粒度得到的图像的边长且为整数,为扩展后图像的边长,的扩展图像。6. The image complexity calculation method considering multi-scale fusion according to claim 5 is characterized in that the renormalized image The side length is The renormalized image obtained after the second coarse granularity of times, expand the image and The size is consistent; and meets ;in, For the The side length of the image obtained at the second coarse granularity is an integer, is the side length of the expanded image, for The extended image of . 7.根据权利要求1所述的考虑多尺度融合的图像复杂度计算方法,其特征在于,在步骤S5中,计算第次粗粒度后得到的重整化图像的扩展图像与第次粗粒度化得到的重整化图像之间的重合度,包括:7. The method for calculating image complexity considering multi-scale fusion according to claim 1, characterized in that in step S5, The renormalized image obtained after the second coarse granularity Extended image of With The renormalized image obtained by sub-coarse granularization The overlap between ,include: 的第行、第列像素点,为一个向量,的乘积为向量积;计算公式为: for No. Row, No. Column pixel points, a vector, and The product of is the vector product; the calculation formula is: ; 式中,为第-1次粗粒度化得到的重整化图像的第行、第列像素点。In the formula, For the The renormalized image obtained by -1 times of coarse granularity is Row, No. Column pixels. 8.根据权利要求1所述的考虑多尺度融合的图像复杂度计算方法,其特征在于,在步骤S6中,图像复杂度的计算公式为:8. The method for calculating image complexity considering multi-scale fusion according to claim 1, characterized in that in step S6, the image complexity The calculation formula is: ; ; 式中,为复杂度C的分量,为第次粗粒度化得到的重整化图像的扩展图像与第次粗粒度化得到的重整化图像之间的重合度。In the formula, is the component of complexity C, For the The renormalized image obtained by sub-coarse granularization Extended image of With The renormalized image obtained by sub-coarse granularization The overlap between . 9.根据权利要求1所述的考虑多尺度融合的图像复杂度计算方法,其特征在于,将图像复杂度通过指数函数放大得到,表达式为:9. The method for calculating image complexity considering multi-scale fusion according to claim 1, characterized in that the image complexity By exponentially magnifying , the expression is: ; 式中,为放大后的图像复杂度,C为原图像复杂度,为自然对数的底数。In the formula, is the complexity of the enlarged image, C is the complexity of the original image, is the base of natural logarithms. 10.一种考虑多尺度融合的图像复杂度计算系统,其特征在于,该系统实施如权利要求1-9任意一项所述考虑多尺度融合的图像复杂度计算方法,该系统包括:10. A system for calculating image complexity considering multi-scale fusion, characterized in that the system implements the method for calculating image complexity considering multi-scale fusion as claimed in any one of claims 1 to 9, and the system comprises: 图像背景填充模块(1),用于判断输入图像宽、高的像素值是否相同,如果不相同则对图像背景进行填充,如果较大的值为奇数,则该图像尺寸+1,变为偶数;The image background filling module (1) is used to determine whether the pixel values of the width and height of the input image are the same. If they are not the same, the image background is filled. If the larger value is an odd number, the image size is increased by 1 to become an even number. 迭代次数取值范围确定模块(2),用于确定两个超参数过滤器宽度与迭代次数,计算迭代次数的取值范围;Iteration number range determination module (2) is used to determine the width of two hyperparameter filters With the number of iterations , calculate the number of iterations The value range of 重整化图像获得模块(3),用于确定两个超参数过滤器宽度与迭代次数之后,对图像进行粗粒度化处理,依次得到第次粗粒度后的重整化图像The renormalized image is obtained by module (3), which is used to determine the two hyperparameter filter widths. With the number of iterations After that, the image is processed into coarse grains, and the Renormalized image after sub-coarse granularity ; 扩展重整化图像获得模块(4),对第次粗粒度后得到的重整化图像进行扩展,得到扩展图像Expand the renormalized image acquisition module (4) to The renormalized image obtained after the second coarse granularity Expand and get the extended image ; 重合度计算模块(5),计算第次粗粒度后得到的重整化图像的扩展图像与第次粗粒度化得到的重整化图像之间的重合度The overlap calculation module (5) calculates the The renormalized image obtained after the second coarse granularity Extended image of With The renormalized image obtained by sub-coarse granularization The overlap between ; 图像复杂度计算模块(6),用于计算图像复杂度,通过指数函数进行放大。Image complexity calculation module (6), used to calculate image complexity , amplified by an exponential function.
CN202411687098.2A 2024-11-25 2024-11-25 Image complexity calculation method and system considering multi-scale fusion Active CN119180818B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411687098.2A CN119180818B (en) 2024-11-25 2024-11-25 Image complexity calculation method and system considering multi-scale fusion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411687098.2A CN119180818B (en) 2024-11-25 2024-11-25 Image complexity calculation method and system considering multi-scale fusion

Publications (2)

Publication Number Publication Date
CN119180818A true CN119180818A (en) 2024-12-24
CN119180818B CN119180818B (en) 2025-04-29

Family

ID=93903781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411687098.2A Active CN119180818B (en) 2024-11-25 2024-11-25 Image complexity calculation method and system considering multi-scale fusion

Country Status (1)

Country Link
CN (1) CN119180818B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100008424A1 (en) * 2005-03-31 2010-01-14 Pace Charles P Computer method and apparatus for processing image data
CN102496157A (en) * 2011-11-22 2012-06-13 上海电力学院 Image detection method based on Gaussian multi-scale transform and color complexity
US20210125001A1 (en) * 2018-07-18 2021-04-29 Shenzhen Malong Technologies Co., Ltd. Complexity-Based Progressive Training for Machine Vision Models
CN113034348A (en) * 2021-03-24 2021-06-25 北京字节跳动网络技术有限公司 Image processing method, image processing apparatus, storage medium, and device
US20220148299A1 (en) * 2019-05-24 2022-05-12 Google Llc Image extension neural networks
CN114745541A (en) * 2021-01-07 2022-07-12 腾讯科技(深圳)有限公司 Method for processing video frame image and electronic equipment
CN116823627A (en) * 2022-03-21 2023-09-29 南京大学 A fast denoising method for super-large images based on image complexity evaluation
CN117253124A (en) * 2023-09-26 2023-12-19 山西大学 An image visual complexity assessment method based on deep ordered regression

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100008424A1 (en) * 2005-03-31 2010-01-14 Pace Charles P Computer method and apparatus for processing image data
CN102496157A (en) * 2011-11-22 2012-06-13 上海电力学院 Image detection method based on Gaussian multi-scale transform and color complexity
US20210125001A1 (en) * 2018-07-18 2021-04-29 Shenzhen Malong Technologies Co., Ltd. Complexity-Based Progressive Training for Machine Vision Models
US20220148299A1 (en) * 2019-05-24 2022-05-12 Google Llc Image extension neural networks
CN114745541A (en) * 2021-01-07 2022-07-12 腾讯科技(深圳)有限公司 Method for processing video frame image and electronic equipment
CN113034348A (en) * 2021-03-24 2021-06-25 北京字节跳动网络技术有限公司 Image processing method, image processing apparatus, storage medium, and device
CN116823627A (en) * 2022-03-21 2023-09-29 南京大学 A fast denoising method for super-large images based on image complexity evaluation
CN117253124A (en) * 2023-09-26 2023-12-19 山西大学 An image visual complexity assessment method based on deep ordered regression

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ANDREY A. BAGROV ET AL: "Multiscale structural complexity of natural patterns", PROCEEDINGS OF THE NATIONAL ACADEMY OF SCIENCE, 16 March 2020 (2020-03-16) *
WANG, HAO ET AL: "Research on Image Complexity Evaluation Method Based on Color Information", LIDAR IMAGING DETECTION AND TARGET RECOGNITION 2017, 13 March 2018 (2018-03-13) *
史晓亚;陈子言;马莹晓;: "基于粒度分层技术与FCM算法的图像分割", 无线互联科技, no. 13, 10 July 2017 (2017-07-10) *

Also Published As

Publication number Publication date
CN119180818B (en) 2025-04-29

Similar Documents

Publication Publication Date Title
JP7569479B2 (en) DEFECT DETECTION METHOD, APPARATUS AND SYSTEM
CN110189255B (en) Face detection method based on two-level detection
CN115019370A (en) Depth counterfeit video detection method based on double fine-grained artifacts
CN111161222B (en) A Visual Saliency Based Defect Detection Method for Printing Cylinders
CN116797590B (en) Mura defect detection method and system based on machine vision
CN102006497B (en) No-reference blurred image evaluation method based on local statistical characteristics of images
Sun et al. Recaptured image forensics algorithm based on image texture feature
CN117974576A (en) Image quality detection method, device, computer equipment and storage medium
CN119180818B (en) Image complexity calculation method and system considering multi-scale fusion
CN115272250B (en) Method, apparatus, computer device and storage medium for determining focus position
Zhong et al. A novel steganalysis method with deep learning for different texture complexity images
CN115908363A (en) Tumor cell counting method, device, equipment and storage medium
CN114820576A (en) Mammary gland feature extraction and detection model training method and device
CN112163999B (en) Image reconstruction method and device, electronic equipment and readable storage medium
CN120612292A (en) A hybrid network model-based display screen defect image synthesis method
CN105260714A (en) Method for detecting variation in information extraction performance of visible light remote sensing image
CN116703685A (en) Image dewatering printing method, device, equipment and medium
CN116363108A (en) Small target detection method for tiny lymph node images based on attention mechanism
CN120876478B (en) Photovoltaic panel hot spot detection optimization method based on dual-model dynamic architecture
CN120495217B (en) A method and system for detecting scratches on the surface of steel wheels
CN111724384A (en) Method and device for identifying pattern screen image, computer equipment and storage medium
CN117692350B (en) Fingerprint-based flow prediction method and system
CN118196524B (en) High-resolution image target recognition method based on multi-feature interactive learning
CN120198471B (en) Unsupervised video SAR image registration method, device, equipment and medium
Liu et al. Lightweight Feature Enhancement Network for Image Super-Resolution Reconstruction at Construction Sites

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