Bone mineral density value calculation method, electronic equipment and storage medium

Through dual-energy X-ray image difference processing, bone tissue areas are identified, which solves the problem of inaccurate bone density value calculation caused by the similar density of soft tissue and bone tissue in the existing technology, and achieves more accurate bone density value calculation.

CN118614940APending Publication Date: 2024-09-10YIAN MEDICAL TECH (HAINING) CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410622375.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In the existing technology, the bone density value cannot be calculated accurately due to the similar density of soft tissue and bone tissue, which affects the accuracy of the results.

Method used

The dual-energy X-ray image difference processing method is used to obtain low-energy and high-energy X-ray images, perform subtraction processing and preprocessing, identify bone tissue areas, and calculate bone density values.

Benefits of technology

It achieves accurate calculation of bone density value when the density of soft tissue and bone tissue is similar, improving the accuracy and reliability of calculation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118614940A
    Figure CN118614940A
Patent Text Reader

Abstract

The invention provides a bone mineral density value calculation method, electronic equipment and a storage medium, the method comprises: acquiring a low-energy ray image and a high-energy ray image, the low-energy ray image being used for representing an image shot by low-energy X-rays, and the high-energy ray image being used for representing an image shot by high-energy X-rays; carrying out subtraction processing on the high-energy ray image and the low-energy ray image to obtain a gray scale difference image; recognizing a bone tissue region based on the gray difference image; and calculating a bone mineral density value according to the gray value in the bone tissue area. The method provided by the invention is helpful for solving the problem that the bone mineral density value cannot be accurately calculated when the densities of the soft tissue and the bone tissue are very close.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of medical image processing, and in particular to a method for calculating bone density values, an electronic device, and a storage medium. Background Art

[0002] Osteoporosis has become a common disease among the middle-aged and elderly. It is very necessary to measure the mineral content in human bones, especially urban residents over 40 years old, especially middle-aged women, who have a more serious calcium deficiency. A decrease in the mineral content in bones can cause osteoporosis, which can cause fractures if not paid attention to, resulting in lifelong pain or disability. Bone density is an important indicator of bone quality, reflecting the degree of osteoporosis and an important basis for predicting the risk of fractures. The full name of bone density is bone mineral density, which is an important indicator of bone strength.

[0003] In the prior art, single-energy bone density is used for shooting. During the shooting process, some images cannot truly distinguish between soft tissue and bone tissue, so the calculated bone density value has a large error, which affects the accuracy of the final bone density value.

[0004] In view of this, a method that can accurately calculate bone density values ​​is urgently needed. Summary of the invention

[0005] The present application provides a method for calculating bone density value, an electronic device and a storage medium, which are helpful to solve the problem that the bone density value cannot be accurately calculated when the density of soft tissue and bone tissue is very similar.

[0006] In a first aspect, the present application provides a method for calculating a bone density value, comprising: acquiring a low-energy ray image and a high-energy ray image, wherein the low-energy ray image is used to characterize an image taken by low-energy X-rays, and the high-energy ray image is used to characterize an image taken by high-energy X-rays; performing subtraction processing on the high-energy ray image and the low-energy ray image to obtain a grayscale difference map; identifying a bone tissue area based on the grayscale difference map; and calculating a bone density value based on the grayscale value in the bone tissue area.

[0007] In one possible implementation, before performing subtraction processing on the high-energy X-ray image and the low-energy X-ray image to obtain a grayscale difference map, the method further includes: preprocessing the high-energy X-ray image and the low-energy X-ray image.

[0008] In one possible implementation, the preprocessing of the high-energy X-ray image and the low-energy X-ray image includes: denoising the high-energy X-ray image and the low-energy X-ray image to obtain the high-energy X-ray image and the low-energy X-ray image after noise removal.

[0009] In one possible implementation, the subtraction processing of the high-energy X-ray image and the low-energy X-ray image to obtain a grayscale difference map includes: obtaining a first grayscale value map and a second grayscale value map, the first grayscale value map is used to characterize the grayscale value map of the high-energy X-ray image, and the second grayscale value map is used to characterize the grayscale value map of the low-energy X-ray image; subtraction processing is performed on the first grayscale value map and the second grayscale value map to obtain a grayscale difference map.

[0010] In one possible implementation, after identifying the bone tissue area based on the grayscale difference map, the method further includes: identifying the soft tissue area based on the grayscale difference map; and identifying a boundary area map based on the bone tissue area and the soft tissue area, wherein the boundary area map is used to characterize the boundary area of ​​the bone tissue area.

[0011] In one possible implementation manner, there is a one-to-one mapping relationship between the grayscale value in the bone tissue region and the bone density value.

[0012] In one possible implementation manner, the bone age value of the bone tissue area is determined based on the low-energy X-ray image.

[0013] In a second aspect, the present application provides a bone density value calculation device, which is applied to a bone densitometer, comprising:

[0014] an acquisition module, the acquisition module being used to acquire a low-energy ray image and a high-energy ray image, the low-energy ray image being used to represent an image taken by low-energy X-rays, and the high-energy ray image being used to represent an image taken by high-energy X-rays;

[0015] A subtraction module, the subtraction module is used to perform subtraction processing on the high-energy ray image and the low-energy ray image to obtain a grayscale difference image;

[0016] an identification module, the identification module being used to identify a bone tissue region based on the grayscale difference map;

[0017] A calculation module is used to calculate the bone density value according to the gray value in the bone tissue area.

[0018] In one possible implementation, the bone density value calculation device further includes a preprocessing module, which is used to preprocess the high-energy ray image and the low-energy ray image before performing subtraction processing on the high-energy ray image and the low-energy ray image to obtain the grayscale difference map;

[0019] In one possible implementation, the preprocessing module is further used to perform denoising on the high-energy X-ray image and the low-energy X-ray image to obtain the high-energy X-ray image and the low-energy X-ray image after the noise is removed.

[0020] In one possible implementation, the acquisition module is also used to acquire a first grayscale value map and a second grayscale value map, wherein the first grayscale value map is used to characterize the grayscale value map of the high-energy ray image, and the second grayscale value map is used to characterize the grayscale value map of the low-energy ray image; the subtraction module is also used to perform subtraction processing on the first grayscale value map and the second grayscale value map to obtain a grayscale difference map.

[0021] In one possible implementation, the recognition module is also used to identify the soft tissue area based on the grayscale difference map; based on the bone tissue area and the soft tissue area, identify a boundary area map, and the boundary area map is used to characterize the boundary area of ​​the bone tissue area.

[0022] In one possible implementation manner, the bone density value calculation device further includes a determination module, and the determination module is used to determine the bone age value of the bone tissue area based on the low-energy X-ray image.

[0023] In a third aspect, the present application provides an electronic device, comprising: a processor and a memory, wherein the memory is used to store a computer program; the processor is used to run the computer program to implement the method for calculating the bone density value as described in the first aspect.

[0024] In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is executed on a computer, the computer implements the method for calculating the bone density value as described in the first aspect.

[0025] The present application provides a method for calculating bone density, which includes: obtaining a low-energy ray image and a high-energy ray image, wherein the low-energy ray image is used to characterize an image taken by low-energy X-rays, and the high-energy ray image is used to characterize an image taken by high-energy X-rays; performing subtraction processing on the high-energy ray image and the low-energy ray image to obtain a grayscale difference map; based on the grayscale difference map, identifying a bone tissue area; and calculating a bone density value according to the grayscale value in the bone tissue area. The method provided by the present application helps to solve the problem that the bone density value cannot be accurately calculated when the density of soft tissue and bone tissue is very similar. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A schematic diagram of a flow chart of a method for calculating bone density value provided in an embodiment of the present application;

[0027] Figure 2 A schematic diagram of the structure of a bone density calculation device provided in an embodiment of the present application;

[0028] Figure 3A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] In the embodiments of the present application, unless otherwise specified, the character " / " indicates that the objects before and after the association are in an or relationship. For example, A / B can represent A or B. "And / or" describes the association relationship of the associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone.

[0030] It should be pointed out that the words "first", "second", etc. involved in the embodiments of the present application are only used to distinguish the description purpose, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated, nor can they be understood as indicating or implying order.

[0031] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. In addition, "at least one of the following" or similar expressions refers to any combination of these items, which may include any combination of single items or plural items. For example, at least one of A, B, or C may represent: A, B, C, A and B, A and C, B and C, or A, B and C. Among them, each of A, B, and C may be an element itself, or a set containing one or more elements.

[0032] In the embodiments of the present application, "exemplary", "in some embodiments", "in another embodiment", etc. are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "exemplary" is intended to present concepts in a concrete way.

[0033] In the embodiments of the present application, "of", "corresponding", and "corresponding" can sometimes be used interchangeably. It should be noted that when the distinction between them is not emphasized, the meanings to be expressed are consistent. In the embodiments of the present application, communication and transmission can sometimes be used interchangeably. It should be noted that when the distinction between them is not emphasized, the meanings to be expressed are consistent. For example, transmission can include sending and / or receiving, which can be a noun or a verb.

[0034] The equal to involved in the embodiments of the present application can be used in conjunction with greater than, and is applicable to the technical solution adopted when greater than, and can also be used in conjunction with less than, and is applicable to the technical solution adopted when less than. It should be noted that when equal to is used in conjunction with greater than, it cannot be used in conjunction with less than; when equal to is used in conjunction with less than, it cannot be used in conjunction with greater than.

[0035] In the prior art, bone densitometers often use monoenergetic rays to capture images, and cannot accurately calculate bone density values ​​when the densities of human soft tissue and bone tissue are very similar.

[0036] Based on the above problems, an embodiment of the present application proposes a method for calculating bone density value, which is applied to electronic devices.

[0037] Now combined Figure 1 The calculation method of the bone density value provided in the embodiment of the present application is described.

[0038] like Figure 1 The figure shows a flow chart of an embodiment of a method for calculating bone density value provided by the present application, which specifically includes the following steps:

[0039] Step S110, acquiring a low-energy X-ray image and a high-energy X-ray image.

[0040] Specifically, an embodiment of the present application proposes to shoot the bone area of ​​the human body by a dual-energy X-ray method through a bone densitometer to obtain a low-energy ray image and a high-energy ray image. The low-energy ray image is used to characterize the image shot by the low-energy X-ray, and the high-energy ray image is used to characterize the image shot by the high-energy X-ray. Among them, the dual-energy X-ray includes high-energy X-rays and low-energy X-rays. The high-energy X-rays can penetrate the human body more deeply, and the high-energy X-rays have less scattering. When passing through the bones of the human body, only a part will be absorbed, and the density of deep tissues can be measured. Low-energy X-rays are more easily absorbed when passing through shallow tissues. Compared with high-energy X-rays, low-energy X-rays have more scattering. When passing through the bones of the human body, only most of them will be absorbed, and the density of surface tissues can be measured. The bone densitometer proposed in the embodiment of the present application may include a dual-energy X-ray bone densitometer, an ultrasonic bone densitometer, or other types of bone densitometers, wherein the dual-energy X-ray bone densitometer uses two different energy X-rays to distinguish the density of bones and soft tissues, thereby accurately measuring bone density. Dual-energy X-ray bone densitometers have fast scanning speed, low radiation dose, and less harm to the human body, and are suitable for measuring the lumbar spine, hip, forearm and other parts; ultrasonic bone densitometers use ultrasonic technology to measure parameters such as bone acoustic impedance and sound velocity to calculate bone density and bone strength. The embodiments of this application do not specifically limit the type of bone densitometer.

[0041] Step S120, performing subtraction processing on the high-energy ray image and the low-energy ray image to obtain a grayscale difference image.

[0042] Specifically, an embodiment of the present application proposes that after acquiring a low-energy X-ray image and a high-energy X-ray image, a subtraction process is performed on the high-energy X-ray image and the low-energy X-ray image to obtain a grayscale difference map. First, the high-energy X-ray image and the low-energy X-ray image are preprocessed. The preprocessing of the high-energy X-ray image and the low-energy X-ray image may include denoising the high-energy X-ray image and the low-energy X-ray image to obtain the high-energy X-ray image and the low-energy X-ray image after the noise is removed.

[0043] Denoising is an important part of image processing, which is used to remove or reduce noise to improve the clarity and quality of the image. Noise can include sensor noise, interference during transmission, compression error, etc. Denoising can be divided into time domain denoising and frequency domain denoising. Among them, time domain denoising, also known as spatial domain denoising, is to operate the image directly in the pixel domain to remove noise. Time domain denoising technology can include median filter; salt and pepper noise is removed by replacing each pixel value with the median value in its neighborhood. Wiener filter adjusts the filter strength according to the local statistical characteristics of the image. Non-local mean filter uses the non-local correlation of similar blocks in the image to remove noise. Bilateral filter smoothes the image while retaining edge information by considering the spatial proximity and intensity similarity between pixels. Frequency domain denoising is to convert the image from its original spatial domain to the frequency domain, use transformation to analyze the frequency components of the image, then process these frequency components, and finally convert the processed image back to the spatial domain. Frequency domain denoising techniques include: Fourier transform, which converts the image to the frequency domain and then removes noise by designing filters; wavelet transform, which provides multi-scale and multi-directional frequency analysis, allowing for finer control over the local features of the image; discrete cosine transform, which uses the cosine function to remove high-frequency noise.

[0044] Furthermore, an embodiment of the present application proposes that after preprocessing the high-energy ray image and the low-energy ray image, the high-energy ray image and the low-energy ray image are subjected to grayscale processing to obtain a first grayscale value map and a second grayscale value map, wherein the first grayscale value map is used to characterize the grayscale value map of the high-energy ray image, and the second grayscale value map is used to characterize the grayscale value map of the low-energy ray image. Then, subtraction processing is performed on the first grayscale value map and the second grayscale value map. Image subtraction processing is the process of subtracting one image from another in image processing. After preprocessing the high-energy ray image and the low-energy ray image, image matching processing is then performed to ensure that the first grayscale value map and the second grayscale value map are aligned in size, position and scale. Finally, image difference processing is performed on the first grayscale value map and the second grayscale value map, and a subtraction operation is performed on the first grayscale value map and the second grayscale value map to obtain a grayscale difference map. Among them, the first gray value map includes a bone tissue region map and a soft tissue region map; the second gray value map includes a bone tissue region map and a soft tissue region map; and the gray difference map includes a bone tissue region map and a soft tissue region map. Since the X-ray frequencies used by high-energy ray images and low-energy ray images are different, the absorption of X-rays of different energies by the bone tissue region and the soft tissue region of the human body is also different. It can be understood that the gray values ​​of the bone tissue region and the soft tissue region in the first gray value map and the second gray value map are also different. After subtracting the first gray value map and the second gray value map, a gray difference map is obtained, and the bone tissue region and the soft tissue region can be identified according to the gray value in the gray difference map.

[0045] Step S130, identifying the bone tissue area based on the grayscale difference image.

[0046] Specifically, an embodiment of the present application proposes to identify the bone tissue region based on the grayscale difference map. Furthermore, the soft tissue region near the bone tissue region can also be identified based on the grayscale difference map; after the bone tissue region and the soft tissue region are identified based on the grayscale difference map, a boundary region map is identified based on the bone tissue region and the soft tissue region, and the boundary region map refers to the bone tissue boundary region map at the junction of the bone tissue region and the soft tissue region in the grayscale difference map. In the bone tissue region map, the grayscale value of the bone tissue region is obtained.

[0047] Step S140, calculating the bone density value according to the gray value in the bone tissue area.

[0048] Specifically, an embodiment of the present application proposes to calculate the bone density value through a database according to the grayscale value in the bone tissue area. The grayscale value in the bone tissue area proposed in the present application and the bone density value are a one-to-one mapping relationship. The embodiment of the present application proposes to store the grayscale value in the bone tissue area and the corresponding bone density value in the database in advance. A database is a warehouse that organizes, stores and manages data according to a data structure. Databases can be divided into relational databases and non-relational databases. Among them, the format stored in the relational database can intuitively reflect the relationship between entities. Relational databases include databases such as MySQL, PostgreSQL, and Oracle. Non-relational databases do not rely on traditional table models, but use other models for storing data. Non-relational databases include databases such as MongoDB, Cassandra, and Redis. The embodiment of the present application does not specifically limit the type of database. When the grayscale value in the bone tissue area is obtained, the bone density value can be calculated according to the corresponding relationship preset in the database. Optionally, the bone densitometer proposed in the present application can also determine the size of bone age based on low-energy X-ray images through the preset Chinese 05 bone age algorithm to obtain the corresponding bone age value.

[0049] Exemplarily, one embodiment of the present application proposes that after the patient has registered the information, a bone density meter is selected for shooting and the shooting state is entered. The high-voltage generator sends a ready signal to the image system software; the staff presses the hand brake 1, and the hand brake 1 signal is given to the image system software and the high-voltage generator; the high-voltage generator sends a ready signal to the image system software; the staff presses the hand brake 2, and the hand brake 2 signal is given to the high-voltage generator; the synchronous high-voltage generator sends the first start signal to the flat-panel detector; notifies the flat-panel detector to open the window continuously; the flat-panel detector triggers the high-voltage generator to expose after opening the window; first starts to expose low energy, that is, the first frame exposes low-energy X-rays; the low-energy exposure ends, the detector receives the image, and uploads the bone age image and the low-energy image to the image processing software; after an interval of 400ms; the high-voltage generator starts high-energy exposure, that is, the second frame exposes high-energy X-rays, the synchronous detector opens the window, receives the image, and uploads the image processing software. The software receives 2 high- and low-energy images; starts to calculate the BMD value; after the calculation is completed, enters the film reading state. You can view bone density images, bone age values, and bone density values ​​during film reading.

[0050] The method for calculating bone density values ​​provided in the embodiment of the present application uses dual-energy X-rays to obtain two images, one image can be used for bone age determination, and two images are used for bone density calculation; when the density of soft tissue and bone tissue is very close, bone tissue can also be identified, thereby obtaining an accurate bone density value.

[0051] The bone density value calculation device provided in the embodiment of the present invention can execute the bone density value calculation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. The similarities can be referred to the above description of the bone density value calculation method provided in the embodiment of the present invention, and will not be repeated here.

[0052] Figure 2 This is a schematic diagram of the structure of an embodiment of the device of the present application, such as Figure 2 As shown, the above device 20 may include:

[0053] An acquisition module 21, the acquisition module 21 is used to obtain a low-energy ray image and a high-energy ray image, the low-energy ray image is used to represent an image taken by low-energy X-rays, and the high-energy ray image is used to represent an image taken by high-energy X-rays;

[0054] A subtraction module 22, the subtraction module 22 is used to perform subtraction processing on the high-energy ray image and the low-energy ray image to obtain a grayscale difference image;

[0055] An identification module 23, the identification module 23 is used to identify the bone tissue area based on the grayscale difference map;

[0056] The calculation module 24 is used to calculate the bone density value according to the gray value in the bone tissue area.

[0057] In one possible implementation, the bone density value calculation device further includes a preprocessing module 25, and the preprocessing module 25 is used to preprocess the high-energy ray image and the low-energy ray image before performing subtraction processing on the high-energy ray image and the low-energy ray image to obtain the grayscale difference map;

[0058] In one possible implementation, the preprocessing module 25 is further used to perform denoising on the high-energy X-ray image and the low-energy X-ray image to obtain the high-energy X-ray image and the low-energy X-ray image after the denoising.

[0059] In one possible implementation, the acquisition module 21 is also used to acquire a first grayscale value map and a second grayscale value map, wherein the first grayscale value map is used to characterize the grayscale value map of the high-energy ray image, and the second grayscale value map is used to characterize the grayscale value map of the low-energy ray image; the subtraction module is also used to perform subtraction processing on the first grayscale value map and the second grayscale value map to obtain a grayscale difference map.

[0060] In one possible implementation, the identification module 23 is further used to identify the soft tissue area based on the grayscale difference map; based on the bone tissue area and the soft tissue area, identify a boundary area map, and the boundary area map is used to characterize the boundary area of ​​the bone tissue area.

[0061] In one possible implementation, the bone density value calculation device further includes a determination module 26, and the determination module 26 is used to determine the bone age value of the bone tissue area based on the low-energy X-ray image.

[0062] Combine the following Figure 3 The exemplary electronic device provided in the embodiments of the present application is further introduced. Figure 3 A schematic structural diagram of an electronic device 300 is shown.

[0063] The electronic device 300 may include at least one processor and at least one memory connected to the processor, wherein the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the maintenance route planning method provided in the embodiment shown in the present application.

[0064] Figure 3 A block diagram of an exemplary electronic device 300 suitable for implementing the embodiments of the present application is shown. Figure 3 The electronic device 300 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0065] like Figure 3 As shown, the electronic device 300 is in the form of a general-purpose computing device. The components of the electronic device 300 may include, but are not limited to: one or more processors 310, storage 320, a communication bus 340 connecting different system components (including the storage 320 and the processor 310), and a communication interface 330.

[0066] The communication bus 340 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnection (PCI) bus.

[0067] The electronic device 300 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, removable and non-removable media.

[0068] The memory 320 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory. The electronic device may further include other removable / non-removable, volatile / non-volatile computer system storage media. Figure 3 Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a compact disc read only memory (CD-ROM), a digital versatile disc read only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to the communication bus 340 via one or more data medium interfaces. The memory 320 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present application.

[0069] A program / utility having a set (at least one) of program modules may be stored in memory 320, such program modules including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules typically perform the functions and / or methods of the embodiments described herein.

[0070] The electronic device 300 may also communicate with one or more external devices (e.g., keyboards, pointing devices, displays, etc.), one or more devices that enable a user to interact with the electronic device, and / or any device that enables the electronic device to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via the communication interface 330. Furthermore, the electronic device 300 may also communicate with a network adapter ( Figure 3 The network adapter may communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via the communication bus 340. It should be understood that although Figure 3 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, disk arrays (Redundant Arrays of Independent Drives; hereinafter referred to as: RAID) systems, tape drives, and data backup storage systems.

[0071] The processor 310 executes various functional applications and data processing by running the programs stored in the memory 320, such as implementing the method provided in the embodiment of the present application.

[0072] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 300. In other embodiments of the present application, the electronic device 300 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0073] In the above embodiments, the processor involved may include, for example, a CPU, a DSP, a microcontroller or a digital signal processor, and may also include a GPU, an embedded neural network processor (Neural-network Process Units; hereinafter referred to as: NPU) and an image signal processor (Image Signal Processing; hereinafter referred to as: ISP). The processor may also include necessary hardware accelerators or logic processing hardware circuits, such as ASIC, or one or more integrated circuits for controlling the execution of the program of the technical solution of the present application. In addition, the processor may have the function of operating one or more software programs, and the software programs may be stored in a storage medium.

[0074] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer-readable storage medium is run on a computer, the computer executes the calculation method provided by the embodiment shown in the present application.

[0075] The embodiment of the present application also provides a computer program product, which includes a computer program. When the computer program is run on a computer, it enables the computer to execute the calculation method provided by the embodiment shown in the present application.

[0076] Those of ordinary skill in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented in a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0077] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0078] In several embodiments provided in the present application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as: ROM), random access memory (Random Access Memory; hereinafter referred to as: RAM), disk or optical disk, and other media that can store program codes.

[0079] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

[0080] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for calculating bone density, characterized in that: Applied to a bone densitometer, the method comprises: Acquire a low-energy ray image and a high-energy ray image, wherein the low-energy ray image is used to characterize an image taken by low-energy X-rays, and the high-energy ray image is used to characterize an image taken by high-energy X-rays; Performing subtraction processing on the high-energy ray image and the low-energy ray image to obtain a grayscale difference image; Based on the grayscale difference map, identifying the bone tissue area; The bone density value is calculated according to the gray value in the bone tissue area.

2. The method according to claim 1, characterized in that: Before performing subtraction processing on the high-energy ray image and the low-energy ray image to obtain a grayscale difference map, the method further includes: The high-energy ray image and the low-energy ray image are preprocessed.

3. The method according to claim 2, characterized in that The preprocessing of the high-energy ray image and the low-energy ray image comprises: The high-energy radiation image and the low-energy radiation image are subjected to denoising processing to obtain the high-energy radiation image and the low-energy radiation image after the noise is removed.

4. The method according to claim 1, characterized in that: The subtracting the high-energy ray image from the low-energy ray image to obtain a grayscale difference image comprises: Acquire a first grayscale value map and a second grayscale value map, wherein the first grayscale value map is used to represent the grayscale value map of the high-energy ray image, and the second grayscale value map is used to represent the grayscale value map of the low-energy ray image; Subtracting the first grayscale value map from the second grayscale value map to obtain a grayscale difference map.

5. The method according to claim 1, characterized in that After identifying the bone tissue area based on the grayscale difference map, the method further includes: Based on the grayscale difference map, identifying the soft tissue area; Based on the bone tissue region and the soft tissue region, a boundary region map is identified, where the boundary region map is used to characterize a boundary region of the bone tissue region.

6. The method according to claim 1, characterized in that The grayscale value in the bone tissue area and the bone density value are in a one-to-one mapping relationship.

7. The method according to claim 1, characterized in that The method further comprises: Based on the low-energy X-ray image, the bone age value of the bone tissue area is determined.

8. An electronic device, characterized in that: include: A processor and a memory, wherein the memory is used to store a computer program; and the processor is used to run the computer program to implement the method for calculating the bone density value according to any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is run on a computer, the method for calculating the bone density value according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Flat panel detector bone mineral density image recognition method based on edge detection and feature extraction

    CN122617813A