Window parameter determination method and device, electronic equipment and storage medium

By determining the proportion of high-signal and low-signal pixels in the medical image sequence, selecting the effective pixel type, and automatically determining the window parameters, the problem of inconsistent brightness in medical image processing is solved, the observation effect of the image is improved, and the clinical needs are met.

CN118587307APending Publication Date: 2024-09-03BEIJING WANDONG MEDICAL TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410584020.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-11
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing medical image processing technology is difficult to accurately determine window parameters, resulting in inconsistent brightness of medical images and unable to meet the needs of clinical observation.

Method used

By acquiring the medical image sequence, determine the proportion of high-signal pixels and low-signal pixels in the foreground pixels, select the pixel type with the highest proportion as the effective pixel type, and determine the target window parameters based on this type to ensure that the pixel distribution of the image conforms to clinical observation. need.

Benefits of technology

It realizes the automatic determination of window parameters based on the pixel distribution of medical image sequences, solves the problem of inconsistent brightness between layers, improves the observation effect of medical images, and meets the needs of clinical observation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587307A
    Figure CN118587307A
Patent Text Reader

Abstract

The embodiment of the invention provides a window parameter determination method and device, electronic equipment and a storage medium, and the method comprises the steps: determining a high-signal pixel proportion and a low-signal pixel proportion in foreground pixels of a medical image sequence through obtaining the medical image sequence, and determining the pixel type with the highest proportion in the high signal pixel proportion and the low signal pixel proportion as an effective pixel type, obtaining effective pixels in the first medical image based on the effective pixel type, and determining a target window parameter of the first medical image based on the effective pixels. By adopting the method, the effective pixels corresponding to the target tissue can be automatically obtained according to the pixels of the sequence image, and the window parameters are calculated for the effective pixels, so that the windowing image better meets the clinical observation requirement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of medical image processing technology, and in particular to a method, device, electronic device and storage medium for determining window parameters. Background Art

[0002] DICOM (Digital Imaging and Communications in Medicine) is a standard for medical image processing and transmission, used to transmit and share medical images and related information between medical devices (such as X-ray, CT scan, MRI, etc.). Windowing is an important step in DICOM image processing, which is used to adjust the contrast and brightness of the image so that doctors can view the image more clearly and make an accurate diagnosis.

[0003] Therefore, how to confirm the window parameters is an urgent problem to be solved in order to improve the quality of medical image observation. Summary of the invention

[0004] The main purpose of this application is to provide a window parameter determination method, device, electronic device and storage medium, aiming to realize intelligent window parameter determination so that the window opening effect is more in line with clinical observation needs. The technical solution is as follows:

[0005] In a first aspect, an embodiment of the present specification provides a method for determining a window parameter, including:

[0006] Acquire a medical image sequence; the medical image sequence includes a plurality of medical images that are acquired continuously and arranged in sequence;

[0007] Determining a high signal pixel ratio and a low signal pixel ratio in foreground pixels of the medical image sequence;

[0008] Determine the pixel type with the highest proportion among the high-signal pixel proportion and the low-signal pixel proportion as the effective pixel type; and obtain effective pixels in a first medical image based on the effective pixel type; the first medical image is any medical image in the medical image sequence;

[0009] A target window parameter of the first medical image is determined based on the valid pixels.

[0010] In a second aspect, an embodiment of the present specification provides a device for determining a window parameter, including:

[0011] An acquisition module, used for acquiring a medical image sequence; the medical image sequence comprises a plurality of medical images acquired continuously and arranged in sequence;

[0012] A signal separation module, used to determine the proportion of high-signal pixels and the proportion of low-signal pixels in the foreground pixels of the medical image sequence;

[0013] A comparison module, configured to determine the pixel type with the highest proportion among the high-signal pixel proportion and the low-signal pixel proportion as the effective pixel type; an effective pixel determination module, configured to obtain effective pixels in a first medical image based on the effective pixel type; the first medical image is any medical image in the medical image sequence;

[0014] A window confirmation module is used to determine target window parameters of the first medical image based on the valid pixels.

[0015] In a third aspect, an embodiment of the present specification provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the above method when executed by the processor.

[0016] In a fourth aspect, an embodiment of the present specification provides a storage medium having a computer program stored thereon, and the computer program implements the steps of the above method when executed by a processor.

[0017] In the embodiment of the present specification, by acquiring a medical image sequence, determining the proportion of high-signal pixels and low-signal pixels in the foreground pixels of the medical image sequence, determining the pixel type with the highest proportion in the high-signal pixel proportion and the low-signal pixel proportion as the effective pixel type, acquiring the effective pixels in the first medical image based on the effective pixel type, and determining the target window parameters of the first medical image based on the effective pixels. The window parameter determination method can determine the area to be observed in the image according to the effective pixels of a single medical image in the full sequence of medical images, calculate the pixel distribution of the image window position according to the pixel distribution of the area to determine the pixel type corresponding to the target tissue to be observed in the medical image sequence, that is, whether it is a high signal or a low signal, select the pixel type with a high proportion in the foreground pixels as the effective pixel type, for a single medical image (the first medical image), extract the effective pixels of the area to be observed in the first medical image according to the effective pixel type as the basis for calculating the window parameters, and can determine the window parameters for each medical image in a targeted manner according to the medical image sequence, thereby making the windowed image more in line with clinical observation needs. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0019] Figure 1is an example schematic diagram of a method for determining window parameters provided in an embodiment of this specification;

[0020] Figure 2 It is a flowchart of a method for determining window parameters provided in an embodiment of this specification;

[0021] Figure 3 is an example schematic diagram of a method for determining window parameters provided in an embodiment of this specification;

[0022] Figure 4 is an example schematic diagram of a method for determining window parameters provided in an embodiment of this specification;

[0023] Figure 5 It is a flowchart of a method for determining window parameters provided in an embodiment of this specification;

[0024] Figure 6 is an example schematic diagram of a method for determining window parameters provided in an embodiment of this specification;

[0025] Figure 7 is an example schematic diagram of a method for determining window parameters provided in an embodiment of this specification;

[0026] Figure 8 It is a flowchart of a method for determining window parameters provided in an embodiment of this specification;

[0027] Fig. 9 is an example schematic diagram of a method for determining window parameters provided in an embodiment of this specification;

[0028] Fig.10 It is a structural schematic diagram of a window parameter determination device provided in an embodiment of this specification;

[0029] Fig.11 It is a structural schematic diagram of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION

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

[0031] In the description of this specification, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In the description of this specification, it should be noted that, unless otherwise clearly specified and limited, "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. For those of ordinary skill in the art, the specific meanings of the above terms in this specification can be understood in specific circumstances. In addition, in the description of this specification, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are an "or" relationship.

[0032] In the embodiments of this specification, the window parameter determination method is used in the scenario of determining the window parameters of a medical image sequence. A medical image sequence generally refers to a series of continuously acquired medical images, which are arranged in a certain order so that doctors or professionals can observe and analyze them continuously. Common types of medical image sequences include tomographic images, such as computed tomography (CT) or magnetic resonance imaging (MR) sequences: these sequences include multiple continuous tomographic images, which are acquired along different planes of the patient's body to present different structures and tissues inside the body. For example, a brain CT or MR sequence can display brain tissue and vascular structures at different levels.

[0033] Among them, MR images are based on very different physical principles and image composition than other medical images such as X-rays and CT scans. MR images are generated by measuring the response of human tissue to different magnetic fields, so their image features and contrast presentation are different from other image types. MR imaging is affected by many factors, including magnetic field strength, scanning sequence, and the effect of tissues such as fat and water on the signal. The complexity of these factors requires that the methods and strategies for MR image windowing need to be adjusted and optimized according to specific circumstances, which is different from other medical image windowing methods.

[0034] Specifically, MR images are sequential, and the peak position of each tissue in the statistical histogram of the normalized image in the MR image changes with the imaging parameters. MR images are sequential, which means that the tissues contained in the layers may be different, such as Figure 1 As shown, Figure 1is an example schematic diagram of a method for determining window parameters provided in an embodiment of this specification, Figure 1 (a) shows the edge layer and middle layer images of the lumbar spine WFS sequence. The middle layer image contains high-signal cerebrospinal fluid, which will construct a high-signal peak on the foreground pixel statistical histogram. In the related art, the invalid area of ​​the image is truncated according to the upper and lower percentiles, that is, the entire medical image sequence is windowed with a fixed range, which will cause a large difference in the dynamic range of the middle layer image and the edge layer image, resulting in inconsistent brightness. Figure 1 As shown in (b), this problem of inconsistent brightness is particularly prominent in the examination of the middle layer containing high signal tissue, which is pointed out to be inconsistent with clinical observation habits.

[0035] Based on the above situation, an embodiment of the present application proposes a window parameter determination method, which can be applicable to the window parameter determination of an MR medical image sequence. It can determine the pixel type corresponding to the target tissue to be observed in the medical image sequence according to the foreground pixel distribution of the entire sequence of medical images, that is, whether it is a high signal or a low signal, and select the pixel type with a high proportion of foreground pixels as the effective pixel type. For any medical image in the medical image sequence, the effective pixels of the first medical image are extracted according to the effective pixel type as the basis for calculating the window parameters. The windowing parameters can be determined in a targeted manner according to the medical image sequence, thereby making the windowed image more in line with clinical observation needs.

[0036] It should be noted that the window parameter determination method provided in the embodiments of this specification is not limited to determining the window parameters of MR medical image sequences, but is also applicable to other types of medical sequence images.

[0037] The window parameter determination device provided in the embodiments of the present specification can be a terminal device such as a mobile phone, a computer, or a tablet computer, or can be a module in the terminal device for implementing the window parameter determination method. The window parameter determination device can obtain a medical image sequence, determine the proportion of high-signal pixels and the proportion of low-signal pixels in the foreground pixels of the medical image sequence, determine the pixel type with the highest proportion among the high-signal pixel proportion and the low-signal pixel proportion as the effective pixel type, obtain effective pixels in the first medical image based on the effective pixel type, and determine the target window parameters of the first medical image based on the effective pixels.

[0038] The window parameter determination method provided in this specification is described in detail below in conjunction with specific embodiments.

[0039] See also Figure 2 , is a flow chart of a method for determining window parameters according to an embodiment of this specification. Figure 2 As shown, the method in the embodiment of this specification may include the following steps S101 to S105.

[0040] S101, acquiring a medical image sequence;

[0041] In one embodiment, the medical image sequence includes a plurality of medical images that are continuously acquired and arranged in sequence. Specifically, the medical image of the target part can be acquired by a medical imaging device, and the medical imaging device can be an MR (Magnetic Resonance) scanning device and a CT (Computed Tomography) scanning device, etc. After determining the part to be inspected, the medical imaging device is used to perform a scan, and the preset scanning parameters are followed to acquire a medical image sequence of the part to be inspected. It should be noted that for nuclear magnetic resonance imaging, different magnetic resonance scanning sequences can be obtained by combining the scanning parameters of the radio frequency pulse (excitation link), the acquisition signal and the gradient field. The same tissue presents different signal intensities in different sequences.

[0042] S102, determining a high signal pixel ratio and a low signal pixel ratio in foreground pixels of the medical image sequence;

[0043] In one embodiment, the foreground pixels represent the pixels of the tissue area, that is, the area covered by the pixels of interest. The foreground pixels in the medical image sequence refer to the foreground pixels obtained by extracting foreground pixels from all medical images in the medical image sequence. Since the signal values ​​of each tissue in MRI vary with the imaging parameters, the target tissue to be observed may present different signals in different sequences. Figure 3 As shown, Figure 3 An example schematic diagram of a window parameter determination method is provided for the embodiments of this specification, showing a brain sequence, where the left image is a brain image corresponding to the T1 sequence, showing a low signal, and the right image is a brain image corresponding to the FLAIR sequence, showing a high signal. In order to clarify whether the target tissue is a low signal or a high signal, a judgment needs to be made based on the pixel distribution. Considering the situation where the edge layer image does not contain the target tissue or the target tissue accounts for a low proportion, the target pixel judgment is made in the statistical histogram of the full sequence of medical images. Specifically, after separating the high and low signals in the foreground pixels of the full sequence of medical images, the effective pixels are extracted according to the judgment results as the basis for calculating the window parameters.

[0044] In a feasible implementation, by performing high- and low-signal segmentation on foreground pixels, high-signal pixels and low-signal pixels are obtained, and the proportion of low-signal pixels and high-signal pixels in the foreground pixels are further confirmed. Exemplarily, when extracting foreground pixels for each image in a medical image sequence, for example, a deep learning method, an adaptive threshold method, a specified threshold method, or other threshold methods can be used. After the foreground pixel extraction of the entire sequence of images is completed, a statistical histogram is constructed based on the foreground pixels of the entire sequence, and the high and low signal thresholds of the histogram are calculated. The threshold calculation can use the maximum inter-class variance method, etc., which is not specifically limited.

[0045] S103, determining the pixel type with the highest proportion among the high signal pixel proportion and the low signal pixel proportion as the valid pixel type;

[0046] In one embodiment, the proportion of high-signal pixels and the proportion of low-signal pixels are compared to identify the pixel type with the highest proportion, and the pixel type with the highest proportion is determined as the effective pixel type. The effective pixel type represents the pixel type corresponding to the target tissue contained in the medical image, that is, high signal or low signal.

[0047] S104, acquiring valid pixels in the first medical image based on the valid pixel type;

[0048] In one embodiment, the first medical image is any medical image in the medical image sequence. After determining the effective pixel type, effective pixel extraction is performed on the first medical image according to the effective pixel type to exclude irrelevant information such as background. Exemplarily, foreground pixel extraction can be performed on the first medical image, and then high- and low-signal separation can be performed on the foreground pixels to obtain high-signal pixels and low-signal pixels therein. If the effective pixel type is high signal, the high-signal pixels therein are determined as effective pixels, and if the effective pixel type is low signal, the low-signal pixels therein are determined as effective pixels.

[0049] S105: Determine target window parameters of the first medical image based on the valid pixels.

[0050] In one embodiment, the effective pixels of the first medical image represent the pixels required to observe the medical image. In order to make the effective pixels clearer and easier to observe, the target window parameters can be determined according to the effective pixels. The target window parameters may include window width, window position, etc. The first medical image is any medical image in a medical image sequence. The window parameters can be determined in this way for any image in the medical image sequence, so that different images in the same sequence can be processed separately to ensure the windowing effect of the medical image sequence.

[0051] In a feasible implementation, a statistical histogram is constructed based on valid pixels, and a grayscale value corresponding to a specified percentile (such as 85%) is found based on the cumulative histogram. This grayscale value is the estimated value of the window level.

[0052] See also Figure 4 , Figure 4 The present invention provides an example schematic diagram of a method for determining window parameters. Figure 4 As shown, after removing the background pixels in the image, the effective pixels to be observed are extracted (some sequences are high signal pixels and some are low signal pixels). Figure 4 After determining that the effective pixel type is low signal according to the full sequence medical image, the foreground pixel area (mask) of the first medical image is confirmed, and the high signal pixels in the image corresponding to the foreground pixel mask are eliminated according to the effective pixel type to obtain the effective pixel mask, and the corresponding pixel area is determined in the first medical image according to the effective pixel mask, that is, the effective pixel is confirmed.

[0053] In an embodiment of the present specification, by acquiring a medical image sequence, all medical image foreground pixels in the entire sequence are divided into high and low signals, and the clinical interest region in the sequence is acquired according to the number of signals, that is, the pixel type with the highest proportion in the high signal pixel proportion and the low signal pixel proportion is determined as the effective pixel type (clinical interest region), and the effective pixels in the first medical image are acquired based on the effective pixel type, and the target window parameters of the first medical image are determined based on the effective pixels. The window parameter determination method calculates the window parameters according to the pixel dynamic range of the effective pixels in the medical image sequence, and can cope with medical images acquired by different imaging parameters, imaging sites, signal acquisition methods and post-processing methods. The target tissue is automatically acquired according to the sequence image pixels, and the window parameters are calculated for the target tissue, so that the windowed image is more in line with clinical observation needs.

[0054] See also Figure 5 , is a flow chart of a method for determining window parameters provided in an embodiment of this specification. Figure 5 As shown, the method in the embodiment of this specification may include the following steps S201-S212.

[0055] S201, acquiring a medical image sequence;

[0056] For details, please refer to step S101 of the above-mentioned embodiment of the specification, which will not be elaborated here.

[0057] S202, extracting foreground pixels of the medical image sequence;

[0058] Specifically, foreground pixels are extracted from each medical image in the medical image sequence to obtain foreground pixels of each medical image. The foreground pixels of the medical image sequence refer to the set of corresponding foreground pixels of all medical images in the medical image sequence. Exemplarily, a method based on deep learning, an adaptive threshold method, a specified threshold method, etc. can be used to perform foreground and background segmentation on the medical image sequence.

[0059] In one embodiment, extracting foreground pixels of the medical image sequence may include the following steps S2021-S2023:

[0060] S2021, generating a second statistical histogram corresponding to a second medical image in the medical image sequence;

[0061] The second medical image is any medical image in the medical image sequence. It should be noted that the first medical image and the second medical image are both any medical images in the medical image sequence, and thus the second medical image may be the same as or different from the first medical image, without specific limitation.

[0062] Specifically, usually the medical images in the medical image sequence are grayscale images, and for the grayscale images, the number of pixels at each grayscale level (usually 0-4095) is counted to obtain a histogram. This can be achieved by traversing each pixel of the image and increasing the histogram counter of the corresponding grayscale level accordingly, and then, using a chart library (such as Matplotlib) to visualize the histogram data as a histogram chart to obtain a second statistical histogram.

[0063] S2022, determining the inter-class variances corresponding to the pixel values ​​in the second statistical histogram, and determining the pixel value corresponding to the largest inter-class variance among the inter-class variances as the background segmentation threshold;

[0064] Specifically, the maximum inter-class variance method is used to calculate the foreground and background segmentation thresholds of the second medical image, and the image pixels are divided into two categories, greater than the threshold and less than the threshold, using the threshold. The threshold that maximizes the inter-class variance is traversed on the second statistical histogram as the foreground and background segmentation threshold. The inter-class variance is calculated as:

[0065] σ 2 =p 1 p 2 (m 1 -m 2 ) 2

[0066] where p 1 、p 2 is the proportion of the two types of pixels in the image pixels; m 1 、m 2is the number of pixels of two categories; the histogram value range of the image is traversed to calculate the inter-class variance corresponding to each pixel value, and the pixel value corresponding to the largest variance is selected as the threshold for image foreground and background segmentation.

[0067] S2023: Extract foreground pixels of the medical image sequence based on the background segmentation threshold corresponding to each of the second medical images in the medical image sequence.

[0068] Specifically, after the second statistical histogram is traversed to obtain the background segmentation threshold, the background segmentation threshold is used to segment the second medical image into foreground and background. Pixel values ​​greater than the background segmentation threshold are marked as foreground, pixels less than or equal to the background segmentation threshold are marked as background, and pixels marked as foreground parts are foreground pixels. For example, the background segmentation threshold is used for truncation to obtain the foreground pixels of the second medical image, and the background pixels in the second medical image are set to 0. Since the second medical image is any medical image in the medical image sequence, the foreground pixels corresponding to each medical image in the medical image sequence can be obtained by the same method as that for obtaining the second medical image, and the set of foreground pixels corresponding to each medical image is used as the foreground pixels of the medical image sequence.

[0069] S203, generating a first statistical histogram according to the foreground pixels, and determining a first signal segmentation threshold based on the first statistical histogram;

[0070] Specifically, statistics are performed on the foreground pixels corresponding to the full sequence of medical images to obtain a first statistical histogram. Exemplarily, the maximum inter-class variance method is used to calculate the high and low signal segmentation thresholds, that is, the first signal segmentation threshold. Among them, in image segmentation, the inter-class variance represents the degree of difference between the two regions after segmentation, which can also be understood as the degree of difference between the target and the background after segmentation. Therefore, the core idea of ​​the maximum inter-class variance method is to select a threshold value so that the inter-class variance of the two regions after segmentation is maximized, that is, to maximize the difference between the target and the background. The specific steps are as follows: calculate the histogram of the image, for each possible threshold, divide the image into two classes: background and foreground, for each segmented class, calculate its inter-class variance, and find the threshold that maximizes the inter-class variance, that is, the first signal segmentation threshold.

[0071] S204, segmenting the foreground pixels into high-signal pixels and low-signal pixels based on the first signal segmentation threshold;

[0072] Specifically, the first signal segmentation threshold is used to segment the foreground pixels of each medical image to obtain high-signal pixels and low-signal pixels. Figure 6 , Figure 6 is a schematic diagram of an example of a method for determining window parameters provided in an embodiment of this specification, showing Figure 2The left picture shows the schematic diagram after foreground pixel extraction and high and low signal segmentation. The low signal accounts for the largest proportion.

[0073] S205, determining a high signal pixel ratio of the high signal pixels and a low signal pixel ratio of the low signal pixels;

[0074] Specifically, the number of pixels in the image that are higher than the threshold is divided by the total number of pixels to obtain the proportion of high-signal pixels. The number of pixels in the image that are lower than the threshold is divided by the total number of pixels to obtain the proportion of low-signal pixels.

[0075] S206, determining the pixel type with the highest proportion among the high signal pixel proportion and the low signal pixel proportion as the valid pixel type;

[0076] Specifically, the pixel type with a high proportion in the foreground pixels is determined as the effective pixel type, that is, the high-signal pixel proportion and the low-signal pixel proportion are used to determine whether the region of interest in the foreground pixels is low-signal or high-signal. Since the foreground pixels represent pixels of the tissue area, the pixel with the highest proportion in the acquired tissue area image is the main pixel type of the tissue area. Therefore, the pixel type with the highest proportion is determined as the effective pixel type.

[0077] S207, acquiring target foreground pixels of the first medical image;

[0078] Specifically, foreground pixels are extracted from the first medical image to obtain target foreground pixels. Exemplarily, the maximum inter-class variance method can be used to determine the foreground and background segmentation threshold of the first medical image, and the target foreground pixels of the first medical image are extracted according to the foreground and background segmentation threshold.

[0079] S208, determining a second signal segmentation threshold based on the target foreground pixel;

[0080] Specifically, the second signal segmentation threshold is determined according to the target foreground pixel, and the second signal segmentation threshold is used to perform high and low signal segmentation on the target foreground pixel. Exemplarily, the second signal segmentation threshold may be determined by using the maximum inter-class variance method.

[0081] S209, based on the second signal segmentation threshold, segmenting the target foreground pixel into target high signal pixels and target low signal pixels;

[0082] Specifically, the target foreground pixels are segmented into target high signal pixels and target low signal pixels using the determined second signal segmentation threshold. This can be achieved by simple pixel value comparison, where pixel values ​​greater than the threshold are considered to be target high signal pixels, and pixels less than or equal to the threshold are considered to be target low signal pixels. The target foreground pixels are segmented according to the threshold to obtain a set of target high signal pixels and target low signal pixels.

[0083] S210, determining a valid pixel among the target high signal pixel and the target low signal pixel based on a valid pixel type;

[0084] Specifically, it is determined whether to select a target high-signal pixel or a target low-signal pixel as a valid pixel according to the valid pixel type. For example, if the valid pixel type is high-signal, the high-signal pixel is selected as the valid pixel.

[0085] See also Figure 7 , Figure 7 is a schematic diagram of an example of a method for determining window parameters provided in an embodiment of this specification, showing Figure 3 The extraction result of effective pixel extraction of the entire brain T1 sequence on the left side.

[0086] S211, generating a third statistical histogram of the first medical image according to the valid pixels, and determining a first initial window parameter of the first medical image based on the third statistical histogram;

[0087] Specifically, after extracting valid pixels from the first medical image, the valid pixels are statistically analyzed to obtain a third statistical histogram, and the first initial window parameter of the first medical image is determined according to the third statistical histogram. In a feasible implementation, the method for generating a statistical histogram can refer to the above-mentioned method for generating a statistical histogram, and is not specifically limited. The first initial window parameter is obtained by calculating a given percentile based on the third statistical histogram of valid pixels. For example, the third initial window parameter with a given percentile of 85% is the pixel value corresponding to 0.85 of the cumulative distribution. Optionally, the fourth initial window parameter obtained after calculating a given percentile based on the third statistical histogram of valid pixels can also be adjusted according to demand, for example, a given multiple (e.g., 2 times) of the fourth initial window parameter is selected as the first initial window parameter.

[0088] S212: Determine target window parameters of the first medical image based on the first initial window parameters and second initial window parameters of the intermediate layer image of the medical image sequence.

[0089] In one embodiment, the intermediate layer image is one or more medical images in the middle position of the medical image sequence. It is understandable that each medical image in the medical image sequence has a serial number, so according to the size of the serial number, the medical image with the serial number in the middle of the entire medical image sequence can be selected as the intermediate layer image. Because the intermediate layer generally contains the main parts and tissues we want to observe, clinical observation is generally performed on the intermediate layer image, so the initial window parameters of any image are smoothed by the second initial window parameters of the intermediate layer image. Among them, the second initial window parameter determination method of the intermediate layer image is the same as that of the first medical image, that is, the foreground pixels of the intermediate layer image are extracted and divided into high signal pixels and low signal pixels, the effective pixels of the intermediate layer image are selected according to the effective pixel type, and the initial window parameters of the image are calculated according to the specified percentile of the statistical histogram constructed according to the effective pixels.

[0090] Further, in one embodiment, there are multiple intermediate layer images, and determining the target window parameter of the first medical image based on the first initial window parameter and the second initial window parameter of the intermediate layer image of the medical image sequence includes:

[0091] S2121, acquiring an intermediate layer image of the medical image sequence;

[0092] Specifically, a preset number of intermediate layer images may be acquired according to demand, for example, images of the intermediate five layers. For example, the medical image sequence has 21 medical images in total, and the intermediate five layers of images are numbered 9, 10, 11, 12, and 13.

[0093] S2122, determining a third initial window parameter of each of the intermediate layer images;

[0094] Specifically, the third initial window parameters of each intermediate layer image are obtained. The method for determining the third initial window parameters is the same as the method for determining the first initial window parameters of the first medical image, and will not be described in detail here.

[0095] S2123, determining an initial window parameter mean based on each of the third initial window parameters, and determining the initial window parameter mean as a second initial window parameter;

[0096] Specifically, the mean of the third initial window parameter is calculated to obtain the initial window parameter mean, and the initial window parameter mean is determined as the second initial window parameter.

[0097] S2124: Perform weighted calculation on the first initial window parameter and the second initial window parameter to obtain a target window parameter of the first medical image.

[0098] Specifically, the target window parameter is calculated according to the formula: wl c =αwlm +(1-α)wl c '

[0099] Among them wl c is the target window parameter of the first medical image; wl m wl is the mean value of the initial window parameter of the intermediate layer image; c ' is the first initial window parameter of the first medical image; α is the weight. The weight can be set according to actual needs.

[0100] In an embodiment of the present specification, a medical image sequence is acquired, foreground pixels of the medical image sequence are extracted, a first statistical histogram is generated according to the foreground pixels, a first signal segmentation threshold is determined based on the first statistical histogram, the foreground pixels are segmented into high-signal pixels and low-signal pixels based on the first signal segmentation threshold, the high-signal pixel ratio of the high-signal pixels and the low-signal pixel ratio of the low-signal pixels are determined, target foreground pixels of the first medical image are acquired, a second signal segmentation threshold is determined based on the target foreground pixels, the target foreground pixels are segmented into target high-signal pixels and target low-signal pixels based on the second signal segmentation threshold, the pixel type with the highest ratio in the high-signal pixel ratio and the low-signal pixel ratio is determined as the valid pixel type, valid pixels are determined in the target high-signal pixels and the target low-signal pixels based on the valid pixel type, a third statistical histogram of the first medical image is generated according to the valid pixels, a first initial window parameter of the first medical image is determined based on the third statistical histogram, and the target window parameter of the first medical image is determined based on the first initial window parameter and the second initial window parameter of the intermediate layer image of the medical image sequence. By being able to accurately identify the valid pixels containing the tissue to be observed in the first medical image, and confirming the window parameters based on the valid pixels, and further using the intermediate layer images of the sequence to smooth the window parameters, the observation effect of each medical image in the medical image sequence is improved, and the problem of inconsistent brightness between layers is solved.

[0101] See also Figure 8 , is a flow chart of a method for determining window parameters provided in an embodiment of this specification. Figure 8 As shown, the method of the embodiment of this specification may include the following steps S301-S304:

[0102] S301, determining effective window parameters of the first medical image based on the effective pixels;

[0103] Specifically, the method for determining the effective window parameters may refer to the method for determining the first window parameters in the above-mentioned embodiment of the specification, which will not be described in detail here.

[0104] S302, determining the detection parts and sequence types included in the medical image sequence;

[0105] Specifically, since clinical engineers have their own observation habits for medical images, in order to facilitate clinical engineers to observe, clinical engineers can pre-set window scaling parameters for different detection parts and different sequence types. Therefore, after acquiring the medical image sequence, the detection parts and sequence types contained in the medical image sequence are determined for confirmation of the window scaling parameters. The detection part can be input before starting the image scan, or it can be identified based on the medical image. The sequence type refers to the image sequence obtained using different image acquisition parameters. For example, the sequence type can be T1, T2, FLAIR, etc.

[0106] S303, acquiring a window scaling parameter based on the detection part and the sequence type;

[0107] Specifically, the corresponding window scaling parameters are obtained according to the detection part and sequence type. The window scaling parameters are used to adjust the contrast and brightness of the image. When the window parameter is the window width, the contrast of the image can be adjusted by the window scaling parameters. Increasing the window width will increase the contrast of the image, making the details in the image clearer. When the window parameter is the window position, the brightness of the image can be adjusted by the window scaling parameters. Adjusting the window position can change the overall brightness level of the image, but will not affect the contrast of the image.

[0108] Optionally, by collecting the clinical engineer's image adjustment data, the clinical engineer's image preference can be profiled to determine the clinical engineer's brightness and contrast preferences for different detection sites and sequence types.

[0109] For example, the detection part is brain, the sequence type is T1, and the corresponding window scaling parameter is w1; the detection part is spine, the sequence type is T1, and the corresponding window scaling parameter is w2.

[0110] S304: Determine a target window parameter of the first medical image based on the window scaling parameter and the effective window parameter.

[0111] Specifically, the window scaling parameter is multiplied by the effective window parameter to obtain the target window parameter of the first medical image.

[0112] See also Fig. 9 , Fig. 9 An exemplary schematic diagram of a method for determining window parameters is provided for the embodiment of this specification, showing a medical image processed with different window scaling parameters.

[0113] In the embodiment of the present specification, by determining the effective window parameters of the first medical image based on effective pixels, obtaining the detection part and sequence type of the medical sequence image, determining the corresponding window scaling parameters, and determining the target window parameters of the first medical image based on the window scaling parameters and the effective window parameters. Determining the window scaling parameters based on the sequence type and the detection part can achieve a more reasonable windowing effect and adapt to the observation habits of different users.

[0114] The following will be combined with the attached Fig.10 , the window parameter determination device provided in the embodiment of this specification is introduced in detail. It should be noted that the attached Fig.10 The window parameter determination device in the embodiment of the present invention is used to execute the present invention Figure 2-Figure 9 For the convenience of explanation, only the part related to the embodiment of this specification is shown. For the specific technical details not disclosed, please refer to this specification. Figure 2-Figure 9 The embodiment shown.

[0115] See also Fig.10 , which shows a schematic diagram of the structure of a window parameter determination device provided by an exemplary embodiment of the present application. The window parameter determination device can be implemented as all or part of the device through software, hardware or a combination of both. The device 1 includes an acquisition module 11, a signal separation module 12, a comparison module 13, an effective pixel determination module 14 and a window confirmation module 15.

[0116] An acquisition module 11 is used to acquire a medical image sequence; the medical image sequence includes a plurality of medical images that are acquired continuously and arranged in sequence;

[0117] A signal separation module 12, used to determine the proportion of high signal pixels and the proportion of low signal pixels in the foreground pixels of the medical image sequence;

[0118] A comparison module 13, configured to determine the pixel type with the highest proportion among the high signal pixel proportion and the low signal pixel proportion as the effective pixel type;

[0119] An effective pixel determination module 14 is used to obtain effective pixels in a first medical image based on the effective pixel type; the first medical image is any medical image in the medical image sequence;

[0120] The window confirmation module 15 is used to determine the target window parameters of the first medical image based on the valid pixels.

[0121] Optionally, the signal separation module 12 is specifically used to extract foreground pixels of the medical image sequence;

[0122] generating a first statistical histogram according to the foreground pixels, and determining a first signal segmentation threshold based on the first statistical histogram;

[0123] Based on the first signal segmentation threshold, segmenting the foreground pixels into high signal pixels and low signal pixels;

[0124] A high signal pixel ratio of the high signal pixels and a low signal pixel ratio of the low signal pixels are determined.

[0125] Optionally, the signal separation module 12 is specifically used to generate a second statistical histogram corresponding to a second medical image in the medical image sequence; the second medical image is any medical image in the medical image sequence;

[0126] Determine the inter-class variances corresponding to the pixel values ​​in the second statistical histogram, and determine the pixel value corresponding to the largest inter-class variance among the inter-class variances as the background segmentation threshold;

[0127] Based on the background segmentation threshold corresponding to each of the second medical images in the medical image sequence, foreground pixels of the medical image sequence are extracted.

[0128] Optionally, the effective pixel determination module 14 is specifically used to obtain target foreground pixels of the first medical image;

[0129] determining a second signal segmentation threshold based on the target foreground pixel;

[0130] Based on the second signal segmentation threshold, segmenting the target foreground pixels into target high signal pixels and target low signal pixels;

[0131] A valid pixel is determined among the target high signal pixel and the target low signal pixel based on a valid pixel type.

[0132] Optionally, the window confirmation module 15 is specifically used to generate a third statistical histogram of the first medical image according to the valid pixels, and determine a first initial window parameter of the first medical image based on the third statistical histogram;

[0133] determining a target window parameter of the first medical image based on the first initial window parameter and a second initial window parameter of an intermediate layer image of the medical image sequence;

[0134] The intermediate layer images are one or more medical images located in the middle of the medical image sequence.

[0135] Optionally, there are multiple intermediate layer images, and the window confirmation module 15 is specifically used to obtain the intermediate layer images of the medical image sequence;

[0136] Determining a third initial window parameter of each of the intermediate layer images;

[0137] Determine an initial window parameter mean based on each of the third initial window parameters, and determine the initial window parameter mean as the second initial window parameter;

[0138] The first initial window parameter and the second initial window parameter are weightedly calculated to obtain a target window parameter of the first medical image.

[0139] Optionally, the window confirmation module 15 is specifically used to determine the effective window parameters of the first medical image based on the effective pixels;

[0140] Determining the detection parts and sequence types included in the medical image sequence;

[0141] Acquire a window scaling parameter based on the detection location and the sequence type;

[0142] A target window parameter of the first medical image is determined based on the window scaling parameter and the effective window parameter.

[0143] It should be noted that the window parameter determination device provided in the above embodiment only uses the division of the above functional modules as an example when executing the window parameter determination method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the window parameter determination device provided in the above embodiment and the window parameter determination method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.

[0144] The serial numbers of the embodiments of the present specification are for description only and do not represent the advantages and disadvantages of the embodiments. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0145] The present specification also provides a storage medium having a computer program stored thereon. When the computer program is executed by a processor, the above-mentioned Figure 2-Figure 9 The method of the embodiment shown in the figure can be specifically executed by referring to Figure 2-Figure 9 The specific description of the illustrated embodiment will not be repeated here.

[0146] Please refer to Fig.11, which shows a schematic diagram of the structure of an electronic device provided by an exemplary embodiment of this specification. The electronic device in this specification may include one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, the memory 120, the input device 130, and the output device 140 may be connected via the bus 150.

[0147] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions and processes data of the terminal 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user pages, and applications; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.

[0148] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable medium (Non-Transitory Computer-Readable Storage Medium). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The operating system may be an Android system, including a system deeply developed based on the Android system, an IOS system developed by Apple, including a system deeply developed based on the IOS system or other systems.

[0149] The memory 120 can be divided into an operating system space and a user space. The operating system runs in the operating system space, and native and third-party applications run in the user space. In order to ensure that different third-party applications can achieve good operating results, the operating system allocates corresponding system resources to different third-party applications. However, the requirements for system resources in different application scenarios in the same third-party application are also different. For example, in the local resource loading scenario, the third-party application has higher requirements for disk reading speed; in the animation rendering scenario, the third-party application has higher requirements for GPU performance. The operating system and third-party applications are independent of each other, and the operating system often cannot perceive the current application scenario of the third-party application in a timely manner, resulting in the operating system being unable to perform targeted system resource adaptation according to the specific application scenario of the third-party application.

[0150] In order for the operating system to distinguish the specific application scenarios of third-party applications, it is necessary to open up data communication between third-party applications and the operating system so that the operating system can obtain the current scenario information of third-party applications at any time, and then perform targeted system resource adaptation based on the current scenario.

[0151] The input device 130 is used to receive input commands or data, and includes but is not limited to a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 140 is used to output commands or data, and includes but is not limited to a display device and a speaker. In one example, the input device 130 and the output device 140 can be combined, and the input device 130 and the output device 140 are touch screen displays.

[0152] The touch display screen can be designed as a full screen, a curved screen or a special-shaped screen. The touch display screen can also be designed as a combination of a full screen and a curved screen, or a combination of a special-shaped screen and a curved screen, which is not limited in the embodiments of this specification.

[0153] In addition, those skilled in the art can understand that the structure of the electronic device shown in the above drawings does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the electronic device also includes components such as a radio frequency circuit, an input unit, a sensor, an audio circuit, a WiFi module, a power supply, and a Bluetooth module, which will not be described in detail here.

[0154] exist Fig.11 In the electronic device shown, the processor 110 may be used to call the computer program stored in the memory 120 and specifically perform the following operations:

[0155] Acquire a medical image sequence; the medical image sequence includes a plurality of medical images that are acquired continuously and arranged in sequence;

[0156] Determining a high signal pixel ratio and a low signal pixel ratio in foreground pixels of the medical image sequence;

[0157] Determine the pixel type with the highest proportion among the high-signal pixel proportion and the low-signal pixel proportion as the effective pixel type;

[0158] Acquire valid pixels in a first medical image based on the valid pixel type; the first medical image is any medical image in the medical image sequence;

[0159] A target window parameter of the first medical image is determined based on the valid pixels.

[0160] In one embodiment, when determining the high signal pixel ratio and the low signal pixel ratio in the foreground pixels of the medical image sequence, the processor 110 specifically performs the following operations:

[0161] extracting foreground pixels of the medical image sequence;

[0162] generating a first statistical histogram according to the foreground pixels, and determining a first signal segmentation threshold based on the first statistical histogram;

[0163] Based on the first signal segmentation threshold, segmenting the foreground pixels into high signal pixels and low signal pixels;

[0164] A high signal pixel ratio of the high signal pixels and a low signal pixel ratio of the low signal pixels are determined.

[0165] In one embodiment, when extracting foreground pixels of the medical image sequence, the processor 110 specifically performs the following operations:

[0166] Generate a second statistical histogram corresponding to a second medical image in the medical image sequence; the second medical image is any medical image in the medical image sequence;

[0167] Determine the inter-class variances corresponding to the pixel values ​​in the second statistical histogram, and determine the pixel value corresponding to the largest inter-class variance among the inter-class variances as the background segmentation threshold;

[0168] Based on the background segmentation threshold corresponding to each of the second medical images in the medical image sequence, foreground pixels of the medical image sequence are extracted.

[0169] In one embodiment, when the processor 110 acquires valid pixels in the first medical image based on the valid pixel type, the processor 110 specifically performs the following operations:

[0170] Acquire a target foreground pixel of the first medical image;

[0171] determining a second signal segmentation threshold based on the target foreground pixel;

[0172] Based on the second signal segmentation threshold, segmenting the target foreground pixels into target high signal pixels and target low signal pixels;

[0173] A valid pixel is determined among the target high signal pixel and the target low signal pixel based on a valid pixel type.

[0174] In one embodiment, when determining the target window parameters of the first medical image based on the effective pixels, the processor 110 specifically performs the following operations:

[0175] generating a third statistical histogram of the first medical image according to the valid pixels, and determining a first initial window parameter of the first medical image based on the third statistical histogram;

[0176] determining a target window parameter of the first medical image based on the first initial window parameter and a second initial window parameter of an intermediate layer image of the medical image sequence;

[0177] The intermediate layer images are one or more medical images located in the middle of the medical image sequence.

[0178] In one embodiment, there are multiple intermediate layer images, and when the processor 110 determines the target window parameter of the first medical image based on the first initial window parameter and the second initial window parameter of the intermediate layer image of the medical image sequence, the processor 110 specifically performs the following operations:

[0179] Acquiring an intermediate layer image of the medical image sequence;

[0180] Determining a third initial window parameter of each of the intermediate layer images;

[0181] Determine an initial window parameter mean based on each of the third initial window parameters, and determine the initial window parameter mean as the second initial window parameter;

[0182] The first initial window parameter and the second initial window parameter are weightedly calculated to obtain a target window parameter of the first medical image.

[0183] In one embodiment, when determining the target window parameters of the first medical image based on the effective pixels, the processor 110 specifically performs the following operations:

[0184] determining an effective window parameter of the first medical image based on the effective pixels;

[0185] Determining the detection parts and sequence types included in the medical image sequence;

[0186] Acquire a window scaling parameter based on the detection location and the sequence type;

[0187] A target window parameter of the first medical image is determined based on the window scaling parameter and the effective window parameter.

[0188] In an embodiment of the present specification, a medical image sequence is obtained to determine the proportion of high-signal pixels and low-signal pixels in the foreground pixels of the medical image sequence, and the pixel type with the highest proportion in the high-signal pixel proportion and the low-signal pixel proportion is determined as the effective pixel type, and the effective pixels in the first medical image are obtained based on the effective pixel type, and the target window parameters of the first medical image are determined based on the effective pixels. The window parameter determination method can determine the pixel type corresponding to the target tissue to be observed in the medical image sequence according to the pixel distribution of the full sequence of medical images, that is, whether it is a high signal or a low signal, select the pixel type with a high proportion in the foreground pixels as the effective pixel type, extract the effective pixels of the first medical image according to the effective pixel type as the basis for calculating the window parameters, and can perform targeted windowing parameter determination according to the medical image sequence, thereby making the windowed image more in line with clinical observation needs.

[0189] Further, by acquiring a medical image sequence, foreground pixels of the medical image sequence are extracted, a first statistical histogram is generated according to the foreground pixels, a first signal segmentation threshold is determined based on the first statistical histogram, the foreground pixels are segmented into high-signal pixels and low-signal pixels based on the first signal segmentation threshold, the high-signal pixel ratio of the high-signal pixels and the low-signal pixel ratio of the low-signal pixels are determined, the target foreground pixels of the first medical image are acquired, a second signal segmentation threshold is determined based on the target foreground pixels, the target foreground pixels are segmented into target high-signal pixels and target low-signal pixels based on the second signal segmentation threshold, the pixel type with the highest ratio in the high-signal pixel ratio and the low-signal pixel ratio is determined as the valid pixel type, the valid pixels are determined in the target high-signal pixels and the target low-signal pixels based on the valid pixel type, a third statistical histogram of the first medical image is generated according to the valid pixels, a first initial window parameter of the first medical image is determined based on the third statistical histogram, and the target window parameter of the first medical image is determined based on the first initial window parameter and the second initial window parameter of the intermediate layer image of the medical image sequence. By being able to accurately identify the valid pixels containing the tissue to be observed in the first medical image, and confirming the window parameters based on the valid pixels, and further using the intermediate layer images of the sequence to smooth the window parameters, the observation effect of each medical image in the medical image sequence is improved, and the problem of inconsistent brightness between layers is solved.

[0190] Furthermore, by determining the effective window parameters of the first medical image based on effective pixels, obtaining the detection part and sequence type of the medical sequence image, determining the corresponding window scaling parameters, and determining the target window parameters of the first medical image based on the window scaling parameters and the effective window parameters. Determining the window scaling parameters based on the sequence type and the detection part can achieve a more reasonable windowing effect and adapt to the observation habits of different users.

[0191] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM). The above disclosure is only a preferred embodiment of this specification, and of course it cannot be used to limit the scope of rights of this specification. Therefore, equivalent changes made according to the claims of this specification are still within the scope covered by this specification.

Claims

1. A method for determining window parameters, characterized in that: The method comprises: Acquire a medical image sequence; the medical image sequence includes a plurality of medical images that are acquired continuously and arranged in sequence; Determining a high signal pixel ratio and a low signal pixel ratio in foreground pixels of the medical image sequence; Determine the pixel type with the highest proportion among the high-signal pixel proportion and the low-signal pixel proportion as the effective pixel type; Acquire valid pixels in a first medical image based on the valid pixel type; the first medical image is any medical image in the medical image sequence; A target window parameter of the first medical image is determined based on the valid pixels.

2. The method according to claim 1, characterized in that Determining the proportion of high-signal pixels and low-signal pixels in the foreground pixels of the medical image sequence includes: extracting foreground pixels of the medical image sequence; generating a first statistical histogram according to the foreground pixels, and determining a first signal segmentation threshold based on the first statistical histogram; Based on the first signal segmentation threshold, segmenting the foreground pixels into high signal pixels and low signal pixels; A high signal pixel ratio of the high signal pixels and a low signal pixel ratio of the low signal pixels are determined.

3. The method according to claim 2, characterized in that The extracting of foreground pixels of the medical image sequence comprises: Generating a second statistical histogram corresponding to a second medical image in the medical image sequence; the second medical image is any medical image in the medical image sequence; Determine the inter-class variances corresponding to the pixel values ​​in the second statistical histogram, and determine the pixel value corresponding to the largest inter-class variance among the inter-class variances as the background segmentation threshold; Based on the background segmentation threshold corresponding to each of the second medical images in the medical image sequence, foreground pixels of the medical image sequence are extracted.

4. The method according to claim 1, characterized in that The acquiring effective pixels in the first medical image based on the effective pixel type comprises: Acquire a target foreground pixel of the first medical image; determining a second signal segmentation threshold based on the target foreground pixel; Based on the second signal segmentation threshold, segmenting the target foreground pixels into target high signal pixels and target low signal pixels; A valid pixel is determined among the target high signal pixel and the target low signal pixel based on a valid pixel type.

5. The method according to claim 1, characterized in that The determining of a target window parameter of the first medical image based on the effective pixels comprises: generating a third statistical histogram of the first medical image according to the valid pixels, and determining a first initial window parameter of the first medical image based on the third statistical histogram; determining a target window parameter of the first medical image based on the first initial window parameter and a second initial window parameter of an intermediate layer image of the medical image sequence; The intermediate layer images are one or more medical images located in the middle of the medical image sequence.

6. The method according to claim 5, characterized in that The intermediate layer images are multiple; The step of determining a target window parameter of the first medical image based on the first initial window parameter and a second initial window parameter of an intermediate layer image of the medical image sequence comprises: Acquiring an intermediate layer image of the medical image sequence; Determining a third initial window parameter of each of the intermediate layer images; Determine an initial window parameter mean based on each of the third initial window parameters, and determine the initial window parameter mean as the second initial window parameter; The first initial window parameter and the second initial window parameter are weightedly calculated to obtain a target window parameter of the first medical image.

7. The method according to any one of claims 1 to 6, characterized in that: The determining of a target window parameter of the first medical image based on the effective pixels comprises: determining an effective window parameter of the first medical image based on the effective pixels; Determining the detection parts and sequence types included in the medical image sequence; Acquire a window scaling parameter based on the detection location and the sequence type; A target window parameter of the first medical image is determined based on the window scaling parameter and the effective window parameter.

8. A window parameter determination device, characterized in that: The device comprises: An acquisition module, used for acquiring a medical image sequence; the medical image sequence comprises a plurality of medical images acquired continuously and arranged in sequence; A signal separation module, used to determine the proportion of high-signal pixels and the proportion of low-signal pixels in the foreground pixels of the medical image sequence; A comparison module, configured to determine the pixel type with the highest proportion among the high signal pixel proportion and the low signal pixel proportion as the valid pixel type; An effective pixel determination module, configured to obtain effective pixels in a first medical image based on the effective pixel type; the first medical image is any medical image in the medical image sequence; A window confirmation module is used to determine target window parameters of the first medical image based on the valid pixels.

9. An electronic device, characterized in that: include: Processor and memory; The memory stores a computer program, wherein the computer program is suitable for being loaded by the processor and executing the steps of the method according to any one of claims 1 to 7.

10. A storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Brightness adjusting method and scanning equipment

    CN119729225A