A kidney image processing method and system based on big data

Through big data technology analysis and Laplacian pyramid enhancement, a modified weight map is generated, which solves the problem of poor image quality in traditional kidney image diagnosis and improves the visibility and image quality of the lesion location.

CN118365531BActive Publication Date: 2024-09-03THE FIRST AFFILIATED HOSPITAL OF MEDICAL COLLEGE OF XIAN JIAOTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410767680.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-03
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

Traditional kidney image diagnosis relies on doctors' visual analysis, which is difficult to accurately identify complex cases and early lesions, and poor image quality affects judgment. How to enhance kidney image quality.

Method used

A kidney image processing method based on big data is used to obtain multiple initial images, perform scaling, alignment and cropping, analyze the consistency of gray values ​​to generate a corrected weight map, and use the Laplacian pyramid for image enhancement to improve the certainty of the location of the lesion. Depending on the quality.

Benefits of technology

It improves the visual quality of kidney images in locations with high lesion rates, prevents over-correction, and achieves enhancement of kidney image quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118365531B
    Figure CN118365531B
Patent Text Reader

Abstract

The present invention relates to the technical field of big data image analysis, and specifically discloses a kidney image processing method and system based on big data, which first obtains multiple initial kidney images based on big data technology, then scales, aligns and crops the multiple initial kidney images to obtain multiple aligned images, then analyzes the consistency of the grayscale values ​​of pixels at the same position in the multiple aligned images to obtain a correction weight map, and performs image enhancement processing based on the Laplacian pyramid on the preprocessed image according to the correction weight map to obtain a target image. Compared with the prior art, the present invention analyzes the initial kidney image from big data, identifies the position in the kidney that is prone to lesions according to the consistency of different kidney images, and establishes a correction weight map that can reflect the probability of such lesions, and then uses the correction weight map to perform targeted enhancement on the target kidney image, thereby improving the quality of the kidney image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of big data image analysis, and in particular to a kidney image processing method and system based on big data. Background Art

[0002] Renal images are presentations of renal structure and function information obtained through medical imaging equipment. These images usually include renal tomography, ultrasound imaging, magnetic resonance imaging, etc., which can show the anatomical structure, vascular distribution and possible lesions of the kidney.

[0003] In kidney image processing, there are high requirements for image quality and information accuracy. First, kidney images need to have good resolution to clearly show the tiny structures and lesions of the kidney. Second, the interference of noise and artifacts should be reduced as much as possible in the image to ensure that doctors can accurately identify and analyze the characteristics of the kidney. In addition, in the process of acquiring kidney images, it is necessary to avoid the influence of factors such as motion artifacts and respiratory artifacts to ensure the stability and accuracy of the image.

[0004] Traditional renal imaging diagnosis relies on the doctor's visual analysis and experience, but it has certain limitations when facing complex cases and early lesions. Poor quality renal images will greatly affect the doctor's judgment. Therefore, how to enhance renal images is a problem that people need to solve. Summary of the invention

[0005] The purpose of the present invention is to provide a kidney image processing method and system based on big data to solve the following technical problems:

[0006] How to enhance the quality of kidney images.

[0007] The purpose of the present invention can be achieved by the following technical solutions:

[0008] A kidney image processing method based on big data comprises the following steps:

[0009] Acquire multiple initial kidney images based on big data technology;

[0010] scaling, aligning and cropping the multiple initial kidney images to obtain multiple aligned images;

[0011] Analyze the consistency of the grayscale values ​​of pixels at the same position in multiple aligned images to obtain a correction weight map. The grayscale value corresponding to each pixel in the correction weight map is used to represent the correction strength of the pixel at the position when performing correction;

[0012] Acquire a target kidney image, and scale, align, and crop the target kidney image based on the aligned image to obtain a preprocessed image;

[0013] According to the modified weight map, the preprocessed image is subjected to image enhancement processing based on the Laplacian pyramid to obtain a target image;

[0014] The consistency of the grayscale values ​​of pixels at the same position in multiple aligned images is analyzed to obtain a correction weight map, including:

[0015] Obtaining the grayscale value of the pixel at the target pixel position in each aligned image to obtain a first grayscale set;

[0016] Obtaining the average grayscale value of pixels in the neighborhood of the target pixel position in each aligned image to obtain a second grayscale set;

[0017] Obtaining a correction weight of a target pixel position according to a reference image, statistical features of a first grayscale set, and statistical features of a second grayscale set;

[0018] According to the correction weights of all pixel positions, the grayscale value corresponding to each correction weight is determined and a correction weight map is established.

[0019] As a further solution of the present invention: the scaling, alignment and cropping of the multiple initial kidney images to obtain multiple aligned images includes:

[0020] Respectively identify the kidney structure feature points in each initial kidney image;

[0021] matching kidney structure feature points in a plurality of initial kidney images;

[0022] Select an initial kidney image as a reference image;

[0023] Taking the reference image as a reference, based on the matching relationship of kidney structure feature points in the multiple different initial kidney images, the multiple initial kidney images are scaled, aligned and cropped to obtain multiple aligned images.

[0024] As a further solution of the present invention: the correction weight of the target pixel position is obtained according to the reference image, the statistical characteristics of the first grayscale set and the statistical characteristics of the second grayscale set, including:

[0025] ;

[0026] Wherein, Wfix represents the correction weight of the target pixel position, gray is the gray value of the target pixel position in the reference image, e is a natural constant, D() represents the variance of a set, A() represents the average of a set, X represents the first gray set, Y represents the second gray set, and a, b, c and d are different weight coefficients respectively.

[0027] As a further solution of the present invention: performing image enhancement processing based on the Laplacian pyramid on the preprocessed image according to the modified weight map to obtain the target image includes:

[0028] Down-sampling the corrected weight map to obtain a weighted Gaussian pyramid consisting of multiple weighted Gaussian decomposition maps of different resolutions;

[0029] Downsampling the preprocessed image to obtain a preprocessed Gaussian pyramid consisting of a plurality of preprocessed Gaussian decomposition images of different resolutions, wherein the resolution of images in the same layer in the preprocessed Gaussian pyramid and the weighted Gaussian pyramid is the same;

[0030] The preprocessed Gaussian decomposition image in the preprocessed Gaussian pyramid is upsampled, and a residual is made between the upsampling result and the preprocessed Gaussian decomposition image with the same resolution, so as to obtain a Laplacian pyramid consisting of a plurality of Laplacian images with different resolutions, wherein the resolution of the images in the same layer in the Laplacian pyramid and the preprocessed Gaussian pyramid is the same;

[0031] Based on the weighted Gaussian pyramid, the preprocessed Gaussian pyramid and Laplacian pyramid are fused to obtain the target image.

[0032] As a further solution of the present invention: the method of obtaining a target image by fusing a preprocessed Gaussian pyramid and a Laplacian pyramid based on a weighted Gaussian pyramid includes:

[0033] Upsampling the preprocessed Gaussian decomposition image at the top layer of the preprocessed Gaussian pyramid to obtain a first fusion image;

[0034] Obtain a preprocessed Gaussian decomposition image with the same resolution as the first fusion image in the preprocessed Gaussian pyramid as the second fusion image;

[0035] Obtain a weighted Gaussian decomposition image in the weighted Gaussian pyramid with the same resolution as the first fusion image as a fusion weight image;

[0036] Obtain a Laplacian graph in the Laplacian pyramid with the same resolution as the first fusion graph as an edge fusion graph;

[0037] Based on the fusion weight map, the first fusion map, the second fusion map and the edge fusion map are fused to obtain a third fusion map;

[0038] Performing upsampling processing on the third fused image, and using the upsampling third fused image as a new first fused image;

[0039] Repeat the steps of obtaining a preprocessed Gaussian decomposition image with the same resolution as the first fusion image in the preprocessed Gaussian pyramid as the second fusion image, obtaining a weighted Gaussian decomposition image with the same resolution as the first fusion image in the weighted Gaussian pyramid as the fusion weight image, obtaining a Laplacian image with the same resolution as the first fusion image in the Laplacian pyramid as the edge fusion image, and fusing the first fusion image, the second fusion image and the edge fusion image based on the fusion weight image to obtain a third fusion image, until the third fusion image reaches the maximum resolution, and using the third fusion image finally obtained as the target image.

[0040] As a further solution of the present invention: the method of fusing the first fusion graph, the second fusion graph and the edge fusion graph based on the fusion weight graph to obtain the third fusion graph includes:

[0041] The grayscale value of a pixel in the third fused image is obtained based on the following formula:

[0042] ;

[0043] Among them, i represents the row, j represents the column, p3 i,j is the gray value of the pixel in the i-th row and j-th column of the third fusion image, w i,j is the weight value corresponding to the grayscale value of the pixel in the i-th row and j-th column in the fusion weight map, lap i,j is the gray value of the pixel in the i-th row and j-th column of the edge fusion image, p2 i,j is the gray value of the pixel in the i-th row and j-th column of the second fused image, p1 i,j is the grayscale value of the pixel in the i-th row and j-th column in the first fused image.

[0044] The present invention also provides a kidney image processing system based on big data, comprising:

[0045] An image input module, used for acquiring multiple initial kidney images based on big data technology;

[0046] A first alignment module is used to scale, align and crop the multiple initial kidney images to obtain multiple aligned images;

[0047] A data analysis module is used to analyze the consistency of the grayscale values ​​of pixels at the same position in multiple aligned images to obtain a correction weight map. The grayscale value corresponding to each pixel in the correction weight map is used to represent the correction strength of the pixel at the position when performing correction;

[0048] A second alignment module is used to obtain a target kidney image, and scale, align and crop the target kidney image based on the aligned image to obtain a preprocessed image;

[0049] A fusion enhancement module is used to perform image enhancement processing based on the Laplacian pyramid on the pre-processed image according to the modified weight map to obtain a target image;

[0050] The consistency of the grayscale values ​​of pixels at the same position in multiple aligned images is analyzed to obtain a correction weight map, including:

[0051] Obtaining the grayscale value of the pixel at the target pixel position in each aligned image to obtain a first grayscale set;

[0052] Obtaining the average grayscale value of pixels in the neighborhood of the target pixel position in each aligned image to obtain a second grayscale set;

[0053] Obtaining a correction weight of a target pixel position according to a reference image, statistical features of a first grayscale set, and statistical features of a second grayscale set;

[0054] According to the correction weights of all pixel positions, the grayscale value corresponding to each correction weight is determined and a correction weight map is established.

[0055] Beneficial effects of the present invention:

[0056] The present invention provides a kidney image processing method based on big data, characterized in that it first obtains multiple initial kidney images based on big data technology, then scales, aligns and cuts the multiple initial kidney images to obtain multiple aligned images, then analyzes the consistency of the grayscale values ​​of pixels at the same position in the multiple aligned images to obtain a correction weight map, then obtains a target kidney image, scales, aligns and cuts the target kidney image based on the aligned image to obtain a preprocessed image, and finally performs image enhancement processing based on the Laplacian pyramid on the preprocessed image according to the correction weight map to obtain the target image. Compared with the prior art, the present invention analyzes the initial kidney image from big data, identifies the position in the kidney where lesions are prone to occur according to the consistency of different kidney images, and establishes a correction weight map that can reflect the probability of such lesions, and then uses the correction weight map to perform targeted enhancement on the target kidney image, which improves the visual quality of the image at the position with a high lesion rate on the one hand, and prevents the problem of over-correction on the other hand, thereby achieving quality enhancement of the kidney image. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] The present invention will be further described below in conjunction with the accompanying drawings.

[0058] Figure 1 is a method flow chart of a kidney image processing method based on big data of the present invention;

[0059] Figure 2 for Figure 1 The method flow chart of step S103 in FIG.

[0060] Figure 3 for Figure 1 The method flow chart of step S105;

[0061] Figure 4 This is a schematic diagram of the structure of the kidney image processing system based on big data provided by the present invention. DETAILED DESCRIPTION

[0062] 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.

[0063] See also Figure 1 The present invention is a kidney image processing method based on big data, comprising the following steps:

[0064] S101. Acquire multiple initial kidney images based on big data technology;

[0065] S102, scaling, aligning and cropping the multiple initial kidney images to obtain multiple aligned images;

[0066] S103, analyzing the consistency of the grayscale values ​​of pixels at the same position in the multiple aligned images to obtain a correction weight map, wherein the grayscale value corresponding to each pixel in the correction weight map is used to represent the correction strength of the pixel at the position when performing correction;

[0067] S104, acquiring a target kidney image, and scaling, aligning, and cropping the target kidney image based on the aligned image to obtain a preprocessed image;

[0068] S105 . According to the modified weight map, perform image enhancement processing based on the Laplacian pyramid on the preprocessed image to obtain a target image.

[0069] Compared with the prior art, the present invention analyzes the initial kidney image from big data, identifies the locations in the kidney where lesions are prone to occur based on the consistency of different kidney images, and establishes a correction weight map that can reflect the probability of such lesions. The correction weight map is then used to perform targeted enhancement of the target kidney image. On the one hand, the visual quality of the image at locations with high lesion rates is improved, and on the other hand, the problem of over-correction is prevented, thereby achieving quality enhancement of the kidney image.

[0070] In the above step S101, multiple initial kidney images are obtained based on big data technology, and data mining and medical image database methods can be used. First, data mining technology can be used to extract a large amount of kidney image data from existing medical image databases. These databases include public medical image databases, image storage systems within hospitals, and data sets of scientific research institutions. Secondly, these data can be screened and classified with the help of natural language processing and machine learning algorithms to obtain representative and diverse kidney image samples, and sort out multiple initial kidney images of the same angle and the same scanning position. Finally, in order to ensure the quality and privacy security of the data, measures such as data anonymization and authority control need to be taken to ensure the legitimacy and credibility of the data. Through these methods, multiple initial kidney images can be effectively obtained to provide reliable data support for subsequent processing.

[0071] Further, in a preferred embodiment, the above step S102, scaling, aligning and cropping the multiple initial kidney images to obtain multiple aligned images, specifically includes:

[0072] Respectively identify the kidney structure feature points in each initial kidney image;

[0073] matching kidney structure feature points in a plurality of initial kidney images;

[0074] Select an initial kidney image as a reference image;

[0075] Taking the reference image as a reference, based on the matching relationship of kidney structure feature points in the multiple different initial kidney images, the multiple initial kidney images are scaled, aligned and cropped to obtain multiple aligned images.

[0076] In the above process, the structural feature point detection can be implemented by any existing method such as SIFT, SURF, etc. The kidney structural feature point is a landmark point in the kidney that has identification features and can be used for image positioning adjustment, which can be:

[0077] Points near renal tubules: The renal tubules show a characteristic arrangement in the image and can be detected by image processing techniques and used as feature points.

[0078] Points near the renal corpuscle: The renal corpuscle is located at a specific position in the kidney, and its position information can be used as a feature point for registration and alignment.

[0079] Boundary points of kidney segmentation: The segmentation boundary between the kidney and surrounding tissues can provide important feature information and contribute to the accuracy of image registration.

[0080] Through the above-mentioned kidney structure feature points, the transformation mode of each initial kidney image can be obtained, thereby achieving alignment.

[0081] Further, combined with Figure 2 As shown, in a preferred embodiment, the above step S103, analyzing the consistency of the gray values ​​of pixels at the same position in the multiple aligned images to obtain a modified weight map, specifically includes:

[0082] S201, obtaining the grayscale value of the pixel at the target pixel position in each aligned image to obtain a first grayscale set;

[0083] S202, obtaining an average grayscale value of pixels in a neighborhood of a target pixel position in each aligned image to obtain a second grayscale set;

[0084] S203, obtaining a correction weight of a target pixel position according to the reference image, the statistical features of the first grayscale set, and the statistical features of the second grayscale set;

[0085] S204: According to the correction weights of all pixel positions, determine the grayscale value corresponding to each correction weight and establish a correction weight map.

[0086] The above process describes the pixel distribution law of the target pixel position through the statistical characteristics of the first grayscale set, and describes the distribution law of the pixels around the target pixel position through the statistical characteristics of the second grayscale set. In this way, when calculating the correction weight, not only the grayscale consistency of the target pixel itself is considered, but also the grayscale change relationship between it and the surrounding pixels is considered, so that the final calculated correction weight takes into account both local accuracy and global accuracy. The larger the correction weight, the greater the grayscale change of the local position where the position is located in different aligned images, and the higher the probability of lesions in the kidney area corresponding to the position. When performing subsequent image enhancement, the correction force of the position should be greater to enhance the clarity and details here.

[0087] In a preferred embodiment, the step S203, obtaining the correction weight of the target pixel position according to the reference image, the statistical features of the first grayscale set and the statistical features of the second grayscale set, includes:

[0088] ;

[0089] Wherein, Wfix represents the correction weight of the target pixel position, gray is the gray value of the target pixel position in the reference image, e is a natural constant, D() represents the variance of a set, A() represents the average of a set, X represents the first gray set, Y represents the second gray set, and a, b, c and d are different weight coefficients respectively.

[0090] The significance of the above formula is that, when calculating the correction weight, not only the degree of unity between the first grayscale set and the second grayscale set itself is considered, but also the difference between the first grayscale set and the second grayscale set is considered, thereby reducing the influence of the uneven brightness of the image itself (which may be the influence of the contrast agent) on the correction weight, making the correction weight more accurate.

[0091] Furthermore, the specific method of obtaining the target kidney image in step S104 and scaling, aligning and cropping the target kidney image based on the aligned image to obtain the pre-processed image may be the same as step S102.

[0092] Further, combined with Figure 3 As shown, in a preferred embodiment, the above step S105, according to the modified weight map, performs image enhancement processing based on the Laplacian pyramid on the pre-processed image to obtain the target image, specifically includes:

[0093] S301, downsampling the corrected weight map to obtain a weighted Gaussian pyramid consisting of a plurality of weighted Gaussian decomposition maps of different resolutions;

[0094] S302, downsampling the preprocessed image to obtain a preprocessed Gaussian pyramid consisting of a plurality of preprocessed Gaussian decomposition images of different resolutions, wherein the resolution of images in the same layer in the preprocessed Gaussian pyramid and the weighted Gaussian pyramid is the same;

[0095] S303, upsampling the preprocessed Gaussian decomposition image in the preprocessed Gaussian pyramid, and performing a residual between the upsampling result and the preprocessed Gaussian decomposition image with the same resolution, to obtain a Laplacian pyramid consisting of a plurality of Laplacian images with different resolutions, wherein the resolution of the images at the same layer in the Laplacian pyramid and the preprocessed Gaussian pyramid is the same;

[0096] S304 , based on the weighted Gaussian pyramid, the preprocessed Gaussian pyramid and the Laplacian pyramid are fused to obtain a target image.

[0097] The above process is combined with the modified weight map to perform image enhancement processing on the preprocessed image based on the Laplacian pyramid, so that the location of possible kidney lesions in the preprocessed image is clearer and the probability of misjudgment by doctors is reduced.

[0098] Specifically, in a preferred embodiment, the above step S304, based on the weighted Gaussian pyramid, fusing the pre-processed Gaussian pyramid and the Laplacian pyramid to obtain the target image, specifically includes:

[0099] Upsampling the preprocessed Gaussian decomposition image at the top layer of the preprocessed Gaussian pyramid to obtain a first fusion image;

[0100] Obtain a preprocessed Gaussian decomposition image with the same resolution as the first fusion image in the preprocessed Gaussian pyramid as the second fusion image;

[0101] Obtain a weighted Gaussian decomposition image in the weighted Gaussian pyramid with the same resolution as the first fusion image as a fusion weight image;

[0102] Obtain a Laplacian graph in the Laplacian pyramid with the same resolution as the first fusion graph as an edge fusion graph;

[0103] Based on the fusion weight map, the first fusion map, the second fusion map and the edge fusion map are fused to obtain a third fusion map;

[0104] Performing upsampling processing on the third fused image, and using the upsampling third fused image as a new first fused image;

[0105] Repeat the steps of obtaining a preprocessed Gaussian decomposition image with the same resolution as the first fusion image in the preprocessed Gaussian pyramid as the second fusion image, obtaining a weighted Gaussian decomposition image with the same resolution as the first fusion image in the weighted Gaussian pyramid as the fusion weight image, obtaining a Laplacian image with the same resolution as the first fusion image in the Laplacian pyramid as the edge fusion image, and fusing the first fusion image, the second fusion image and the edge fusion image based on the fusion weight image to obtain a third fusion image, until the third fusion image reaches the maximum resolution, and using the third fusion image finally obtained as the target image.

[0106] It can be seen that the above process is essentially an improvement on the existing image enhancement method based on the Laplacian pyramid. On the one hand, when performing image fusion at each layer, this embodiment fuses three images, namely the first fusion image, the second fusion image and the edge fusion image, wherein the second fusion image (i.e., the original image obtained from the pre-processed Gaussian pyramid that has only been processed by downsampling) increases the stability of image fusion and reduces the loss of image details when the image is upsampled. On the other hand, this embodiment controls the proportion of the influence of different images during fusion through the fusion weight map, prevents over-correction, and avoids the re-generation of noise during image enhancement.

[0107] Further, in a preferred embodiment, the above step of fusing the first fusion image, the second fusion image and the edge fusion image based on the fusion weight image to obtain the third fusion image specifically includes:

[0108] The grayscale value of a pixel in the third fused image is obtained based on the following formula:

[0109] ;

[0110] Among them, i represents the row, j represents the column, p3 i,j is the gray value of the pixel in the i-th row and j-th column of the third fusion image, wi,j is the weight value corresponding to the gray value of the pixel in the i-th row and j-th column in the fusion weight map, lap i,j is the gray value of the pixel in the i-th row and j-th column of the edge fusion image, p2 i,j is the gray value of the pixel in the i-th row and j-th column of the second fused image, p1 i,j is the grayscale value of the pixel in the i-th row and j-th column in the first fused image.

[0111] The significance of the above formula is that, when continuing to enhance, the edge of the kidney image is mainly corrected to make the outline of the image details clearer, which is of great significance in the field of kidney image analysis. At the same time, the above formula reduces the proportion of the newly obtained upsampled image (that is, the newly fused image) during fusion, and increases the influence of the second fused image (that is, the image in the preprocessed Gaussian pyramid) during fusion, so that the image is optimized and enhanced while retaining the original information as much as possible.

[0112] Further, combined with Figure 4 As shown, the present invention also provides a kidney image processing system based on big data, comprising:

[0113] An image input module 410, for acquiring a plurality of initial kidney images based on big data technology;

[0114] A first alignment module 420 is used to scale, align and crop the multiple initial kidney images to obtain multiple aligned images;

[0115] The data analysis module 430 is used to analyze the consistency of the grayscale values ​​of pixels at the same position in the multiple aligned images to obtain a correction weight map, and the grayscale value corresponding to each pixel in the correction weight map is used to represent the correction strength of the pixel at the position when performing correction;

[0116] A second alignment module 440 is used to obtain a target kidney image, and scale, align and crop the target kidney image based on the aligned image to obtain a pre-processed image;

[0117] The fusion enhancement module 450 is used to perform image enhancement processing based on the Laplacian pyramid on the pre-processed image according to the modified weight map to obtain a target image.

[0118] The present invention provides a kidney image processing method based on big data, characterized in that it first obtains multiple initial kidney images based on big data technology, then scales, aligns and cuts the multiple initial kidney images to obtain multiple aligned images, then analyzes the consistency of the grayscale values ​​of pixels at the same position in the multiple aligned images to obtain a correction weight map, then obtains a target kidney image, scales, aligns and cuts the target kidney image based on the aligned image to obtain a preprocessed image, and finally performs image enhancement processing based on the Laplacian pyramid on the preprocessed image according to the correction weight map to obtain the target image. Compared with the prior art, the present invention analyzes the initial kidney image from big data, identifies the position in the kidney where lesions are prone to occur according to the consistency of different kidney images, and establishes a correction weight map that can reflect the probability of such lesions, and then uses the correction weight map to perform targeted enhancement on the target kidney image, which improves the visual quality of the image at the position with a high lesion rate on the one hand, and prevents the problem of over-correction on the other hand, thereby achieving quality enhancement of the kidney image.

[0119] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.

Claims

1. A kidney image processing method based on big data, It is characterized in that The following steps are involved: Acquire multiple initial kidney images based on big data technology; scaling, aligning and cropping the multiple initial kidney images to obtain multiple aligned images; Analyze the consistency of the grayscale values ​​of pixels at the same position in multiple aligned images to obtain a correction weight map. The grayscale value corresponding to each pixel in the correction weight map is used to represent the correction strength of the pixel at the position when performing correction; Acquire a target kidney image, and scale, align, and crop the target kidney image based on the aligned image to obtain a preprocessed image; According to the modified weight map, the preprocessed image is subjected to image enhancement processing based on the Laplacian pyramid to obtain a target image; The consistency of the grayscale values ​​of pixels at the same position in multiple aligned images is analyzed to obtain a correction weight map, including: Obtaining the grayscale value of the pixel at the target pixel position in each aligned image to obtain a first grayscale set; Obtaining the average grayscale value of pixels in the neighborhood of the target pixel position in each aligned image to obtain a second grayscale set; Obtaining a correction weight of a target pixel position according to a reference image, statistical features of a first grayscale set, and statistical features of a second grayscale set; According to the correction weights of all pixel positions, the gray value corresponding to each correction weight is determined and a correction weight map is established; The step of obtaining the correction weight of the target pixel position according to the reference image, the statistical features of the first grayscale set, and the statistical features of the second grayscale set includes: ; Wherein, Wfix represents the correction weight of the target pixel position, gray is the gray value of the target pixel position in the reference image, e is a natural constant, D() represents the variance of a set, A() represents the average of a set, X represents the first gray set, Y represents the second gray set, and a, b, c and d are different weight coefficients respectively; The method of performing image enhancement processing based on the Laplacian pyramid on the preprocessed image according to the modified weight map to obtain the target image includes: Down-sampling the corrected weight map to obtain a weighted Gaussian pyramid consisting of multiple weighted Gaussian decomposition maps of different resolutions; Downsampling the preprocessed image to obtain a preprocessed Gaussian pyramid consisting of a plurality of preprocessed Gaussian decomposition images of different resolutions, wherein the resolution of images in the same layer in the preprocessed Gaussian pyramid and the weighted Gaussian pyramid is the same; The preprocessed Gaussian decomposition image in the preprocessed Gaussian pyramid is upsampled, and a residual is made between the upsampling result and the preprocessed Gaussian decomposition image with the same resolution, so as to obtain a Laplacian pyramid consisting of a plurality of Laplacian images with different resolutions, wherein the resolution of the images in the same layer in the Laplacian pyramid and the preprocessed Gaussian pyramid is the same; Based on the weighted Gaussian pyramid, the preprocessed Gaussian pyramid and Laplacian pyramid are fused to obtain the target image; The method of obtaining a target image by fusing the preprocessed Gaussian pyramid and the Laplacian pyramid based on the weighted Gaussian pyramid includes: Upsampling the preprocessed Gaussian decomposition image at the top layer of the preprocessed Gaussian pyramid to obtain a first fusion image; Obtain a preprocessed Gaussian decomposition image with the same resolution as the first fusion image in the preprocessed Gaussian pyramid as the second fusion image; Obtain a weighted Gaussian decomposition image in the weighted Gaussian pyramid with the same resolution as the first fusion image as a fusion weight image; Obtain a Laplacian graph in the Laplacian pyramid with the same resolution as the first fusion graph as an edge fusion graph; Based on the fusion weight map, the first fusion map, the second fusion map and the edge fusion map are fused to obtain a third fusion map; Performing upsampling processing on the third fused image, and using the upsampling third fused image as a new first fused image; Repeat the steps of obtaining a preprocessed Gaussian decomposition image with the same resolution as the first fusion image in the preprocessed Gaussian pyramid as the second fusion image, obtaining a weighted Gaussian decomposition image with the same resolution as the first fusion image in the weighted Gaussian pyramid as the fusion weight image, obtaining a Laplacian image with the same resolution as the first fusion image in the Laplacian pyramid as the edge fusion image, fusing the first fusion image, the second fusion image and the edge fusion image based on the fusion weight image to obtain a third fusion image, until the third fusion image reaches the maximum resolution, and using the third fusion image finally obtained as the target image; The step of fusing the first fusion graph, the second fusion graph and the edge fusion graph based on the fusion weight graph to obtain a third fusion graph includes: The grayscale value of a pixel in the third fused image is obtained based on the following formula: ; Among them, i represents the row, j represents the column, p3 i,j is the gray value of the pixel in the i-th row and j-th column of the third fusion image, w i,j is the weight value corresponding to the grayscale value of the pixel in the i-th row and j-th column in the fusion weight map, lap i,j is the gray value of the pixel in the i-th row and j-th column of the edge fusion image, p2 i,j is the gray value of the pixel in the i-th row and j-th column of the second fused image, p1 i,j is the grayscale value of the pixel in the i-th row and j-th column in the first fused image.

2. The kidney image processing method based on big data according to claim 1, It is characterized in that The scaling, alignment and cropping of the multiple initial kidney images to obtain multiple aligned images includes: Respectively identify the kidney structure feature points in each initial kidney image; matching kidney structure feature points in a plurality of initial kidney images; Select an initial kidney image as a reference image; Taking the reference image as a reference, based on the matching relationship of kidney structure feature points in the multiple different initial kidney images, the multiple initial kidney images are scaled, aligned and cropped to obtain multiple aligned images.

3. A kidney image processing system based on big data, It is characterized in that include: An image input module, used for acquiring multiple initial kidney images based on big data technology; A first alignment module is used to scale, align and crop the multiple initial kidney images to obtain multiple aligned images; A data analysis module is used to analyze the consistency of the grayscale values ​​of pixels at the same position in multiple aligned images to obtain a correction weight map. The grayscale value corresponding to each pixel in the correction weight map is used to represent the correction strength of the pixel at the position when performing correction; A second alignment module is used to obtain a target kidney image, and scale, align and crop the target kidney image based on the aligned image to obtain a preprocessed image; A fusion enhancement module is used to perform image enhancement processing based on the Laplacian pyramid on the pre-processed image according to the modified weight map to obtain a target image; Analyze the consistency of the grayscale values ​​of pixels at the same position in multiple aligned images to obtain a correction weight map, including: Obtaining the grayscale value of the pixel at the target pixel position in each aligned image to obtain a first grayscale set; Obtaining the average grayscale value of pixels in the neighborhood of the target pixel position in each aligned image to obtain a second grayscale set; Obtaining a correction weight of a target pixel position according to a reference image, statistical features of a first grayscale set, and statistical features of a second grayscale set; According to the correction weights of all pixel positions, the gray value corresponding to each correction weight is determined and a correction weight map is established; The step of obtaining the correction weight of the target pixel position according to the reference image, the statistical features of the first grayscale set, and the statistical features of the second grayscale set includes: ; Wherein, Wfix represents the correction weight of the target pixel position, gray is the gray value of the target pixel position in the reference image, e is a natural constant, D() represents the variance of a set, A() represents the average of a set, X represents the first gray set, Y represents the second gray set, and a, b, c and d are different weight coefficients respectively; The method of performing image enhancement processing based on the Laplacian pyramid on the preprocessed image according to the modified weight map to obtain the target image includes: Down-sampling the corrected weight map to obtain a weighted Gaussian pyramid consisting of multiple weighted Gaussian decomposition maps of different resolutions; Downsampling the preprocessed image to obtain a preprocessed Gaussian pyramid consisting of a plurality of preprocessed Gaussian decomposition images of different resolutions, wherein the resolution of images in the same layer in the preprocessed Gaussian pyramid and the weighted Gaussian pyramid is the same; The preprocessed Gaussian decomposition image in the preprocessed Gaussian pyramid is upsampled, and a residual is made between the upsampling result and the preprocessed Gaussian decomposition image with the same resolution, so as to obtain a Laplacian pyramid consisting of a plurality of Laplacian images with different resolutions, wherein the resolution of the images in the same layer in the Laplacian pyramid and the preprocessed Gaussian pyramid is the same; Based on the weighted Gaussian pyramid, the preprocessed Gaussian pyramid and Laplacian pyramid are fused to obtain the target image; The method of obtaining a target image by fusing the preprocessed Gaussian pyramid and the Laplacian pyramid based on the weighted Gaussian pyramid includes: Upsampling the preprocessed Gaussian decomposition image at the top layer of the preprocessed Gaussian pyramid to obtain a first fusion image; Obtain a preprocessed Gaussian decomposition image with the same resolution as the first fusion image in the preprocessed Gaussian pyramid as the second fusion image; Obtain a weighted Gaussian decomposition image in the weighted Gaussian pyramid with the same resolution as the first fusion image as a fusion weight image; Obtain a Laplacian graph in the Laplacian pyramid with the same resolution as the first fusion graph as an edge fusion graph; Based on the fusion weight map, the first fusion map, the second fusion map and the edge fusion map are fused to obtain a third fusion map; Performing upsampling processing on the third fused image, and using the upsampling third fused image as a new first fused image; Repeat the steps of obtaining a preprocessed Gaussian decomposition image with the same resolution as the first fusion image in the preprocessed Gaussian pyramid as the second fusion image, obtaining a weighted Gaussian decomposition image with the same resolution as the first fusion image in the weighted Gaussian pyramid as the fusion weight image, obtaining a Laplacian image with the same resolution as the first fusion image in the Laplacian pyramid as the edge fusion image, fusing the first fusion image, the second fusion image and the edge fusion image based on the fusion weight image to obtain a third fusion image, until the third fusion image reaches the maximum resolution, and using the third fusion image finally obtained as the target image; The step of fusing the first fusion graph, the second fusion graph and the edge fusion graph based on the fusion weight graph to obtain a third fusion graph includes: The grayscale value of a pixel in the third fused image is obtained based on the following formula: ; Among them, i represents the row, j represents the column, p3 i,j is the gray value of the pixel in the i-th row and j-th column of the third fusion image, w i,j is the weight value corresponding to the grayscale value of the pixel in the i-th row and j-th column in the fusion weight map, lap i,j is the gray value of the pixel in the i-th row and j-th column of the edge fusion image, p2 i,j is the gray value of the pixel in the i-th row and j-th column of the second fused image, p1 i,j is the grayscale value of the pixel in the i-th row and j-th column in the first fused image.