Positioning film imaging method, device, electronic equipment and storage medium
By performing shim correction and interpolation weight calculation on the projected images in Micro CT technology, the problem of low contrast in positioning sheet images is solved, the sharpness and contrast of the image are improved, and the accuracy of the scanning information is ensured.
Patent Information
- Application Number
- CN202111476875.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-02
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2041-12-02
AI Technical Summary
In the existing Micro CT technology, due to the small dose of the microfocus ray source and the high noise of the projection image, the positioning sheet image contrast is low and blurred, and it is impossible to effectively determine the scanning position, angle and layer thickness information.
By acquiring projected images of multiple different parts of the scan object, performing shim correction, determining the correction coefficient matrix and interpolation weight, synthesizing a shim image with high contrast and sharpness, and then obtaining a positioning sheet image.
The contrast and clarity of the positioning sheet image are improved, so that information such as scanning position, angle and layer thickness can be effectively determined, and the reliability of scanning information is enhanced.
Smart Images

Figure CN114190960B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of CT imaging, and in particular to a positioning film imaging method, device, electronic equipment and storage medium. Background Art
[0002] Micro Computed Tomography (Micro CT), also known as micro CT or micro-CT, is a non-destructive 3D imaging technology that can clearly understand the internal microscopic structure of a sample without destroying the sample, and its resolution is extremely high. Before Micro CT performs a tomographic scan, a localization film scan will be performed to obtain a localization film image, and the specific scanning position, angle, layer thickness and other scanning information to be scanned will be determined through the localization film image.
[0003] The localization film image is often a complete image of the entire scanned object, but the length of the scanned object usually exceeds the coverage range of the detector. Therefore, in the prior art, the localization film scanning of long objects by Micro CT is usually performed on multiple beds, and the spacing between different beds is fixed to the collimation width, so that there is no overlap between the projection images of each bed, and the complete localization film image can be obtained by simply merging the projection images.
[0004] The existing technology has the following technical problems: Since the dose of the micro-focus radiation source (tube) of Micro CT is small, the noise on the projected image is usually large, resulting in the obtained positioning film image being very blurred and the contrast being very low, which in turn causes the technical problem of being unable to effectively determine the specific scanning information such as the position, angle, layer thickness, etc. that needs to be scanned. Summary of the invention
[0005] In view of this, it is necessary to provide a positioning film imaging method, device, electronic device and storage medium to solve the technical problem in the prior art that the positioning film image obtained has low contrast and is blurred due to large projection image noise.
[0006] In one aspect, the present invention provides a method for imaging a topographic image, comprising:
[0007] Acquire multiple projection images of multiple different parts of the scanned object;
[0008] Performing shimming correction on each of the plurality of projection images to obtain a plurality of shimming images;
[0009] A topogram image is obtained based on the plurality of shim images.
[0010] In a possible implementation manner, performing shimming correction on each of the multiple projection images to obtain multiple shimmed images includes:
[0011] Determine a correction coefficient matrix;
[0012] The shim image is obtained according to the correction coefficient matrix and the projection image.
[0013] In a possible implementation manner, obtaining a localizer image based on the multiple shim images includes:
[0014] Determining an interpolation weight of each of the plurality of shim images for the topogram image;
[0015] The topogram image is obtained according to the multiple shim images and the interpolation weights.
[0016] In a possible implementation manner, determining an interpolation weight of each of the multiple shim images for the localizer image includes:
[0017] Mapping the shimmed image into a target shimmed image in a target coordinate system;
[0018] Acquire a first pixel size of a pixel point in the target shim image and a second pixel size of a pixel point in the topogram image;
[0019] An interpolation weight of the target shim image to the topogram image is determined according to the first pixel size and the second pixel size.
[0020] In a possible implementation manner, determining the interpolation weight of the target shim image for the localizer image according to the first pixel size and the second pixel size includes:
[0021] Determine at least one row of pixel points in the positioning film image within the coverage range of each row of pixel points in the target shim image according to the first pixel size and the second pixel size;
[0022] Determine the contribution value of each row of pixel points in the target shim image to at least one row of pixel points in the topographic image covered by it;
[0023] Determining the cone angle weight of each row of pixels in the target shim image;
[0024] An interpolation weight of the target shim image to the localizer image is determined according to the contribution value and the cone angle weight.
[0025] In a possible implementation manner, determining at least one row of pixel points in the positioning film image within a coverage range of each row of pixel points in the target shim image according to the first pixel size and the second pixel size includes:
[0026] Determine the first pixel point coordinates of each row of pixel points in the target shim image in the target coordinate system;
[0027] Acquire the coordinates of the second pixel points of the first row of pixel points in the positioning film image in the target coordinate system along a preset direction;
[0028] At least one row of pixels in the positioning film image within the coverage range of each row of pixels in the target shim image is determined according to the first pixel coordinates and the second pixel coordinates.
[0029] In a possible implementation manner, determining the contribution value of each row of pixel points in the shim image to at least one row of pixel points in the topogram image covered by the row of pixel points includes:
[0030] Determine the spacing between the center line of each row of pixel points in the shim image and the center line of each row of pixel points in the topogram image;
[0031] The contribution value of each row of pixel points in the shim image to at least one row of pixel points in the topogram image covered by the pixel point is determined according to the spacing.
[0032] In a possible implementation manner, determining the cone angle weight of each row of pixel points in the target shim image includes:
[0033] Determine the row index of each row of pixels in the target shim image;
[0034] Determining a maximum row index in the target shim image;
[0035] The cone angle weight of each row of pixel points in the target shim image is determined based on the row index of each row of pixel points and the maximum row index.
[0036] On the other hand, the present invention also provides a device for imaging a positioning film, comprising:
[0037] A projection image acquisition unit, used to acquire multiple projection images of multiple different parts of the scanned object;
[0038] An image correction unit, configured to perform shimming correction on each of the plurality of projection images to obtain a plurality of shimmed images;
[0039] An image stitching unit is used to obtain a localizer image based on the multiple shim images.
[0040] On the other hand, the present invention also provides an electronic device, including a memory and a processor, wherein:
[0041] The memory is used to store programs;
[0042] The processor is coupled to the memory and is used to execute the program stored in the memory to implement the steps in the positioning film imaging method described in any of the above implementations.
[0043] On the other hand, the present invention also provides a computer-readable storage medium for storing computer-readable programs or instructions, which, when executed by a processor, can implement the steps in the positioning film imaging method described in any of the above implementations.
[0044] The beneficial effect of adopting the above-mentioned embodiment is as follows: after obtaining multiple projection images, the localizer imaging method provided by the present invention obtains multiple shim images by performing shim correction on each of the multiple projection images, thereby improving the image contrast and clarity of the shim images. The localizer image is obtained based on the multiple shim images with high image contrast and clarity, which can improve the contrast and clarity of the localizer image, so that the scanning information such as the position, angle, layer thickness, etc. that needs to be scanned can be effectively determined through the localizer image. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0046] Figure 1 A schematic diagram of the structure of an embodiment of a scanning system provided by the present invention;
[0047] Figure 2 A schematic flow chart of an embodiment of the method for imaging a positioning film provided by the present invention;
[0048] Figure 3 For the present invention Figure 2 A schematic flow chart of an embodiment of S202;
[0049] Figure 4 For the present invention Figure 3 A schematic flow chart of an embodiment of S301;
[0050] Figure 5 For the present invention Figure 2 Another embodiment flow chart of S203;
[0051] Figure 6 For the present invention Figure 5 A schematic flow chart of an embodiment of S501;
[0052] Figure 7 For the present invention Figure 6A schematic diagram of an embodiment of S603;
[0053] Figure 8 For the present invention Figure 7 A schematic flow chart of an embodiment of S701;
[0054] Fig. 9 A schematic structural diagram of an embodiment of the geometric relationship between the first pixel size and the second pixel size provided by the present invention;
[0055] Fig.10 For the present invention Figure 7 A schematic flow chart of an embodiment of S702;
[0056] Fig.11 A schematic diagram of the structure of an embodiment of a contribution value calculation method provided by the present invention;
[0057] Fig.12 For the present invention Figure 7 A schematic flow chart of an embodiment of S703;
[0058] Fig.13 A schematic structural diagram of an embodiment of a positioning sheet imaging device provided by the present invention;
[0059] Fig.14 A schematic structural diagram of an embodiment of an electronic device provided by the present invention. DETAILED DESCRIPTION
[0060] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0061] In the description of the embodiments of the present invention, unless otherwise specified, "multiple" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" may mean: A exists alone, A and B exist at the same time, and B exists alone.
[0062] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0063] The present invention provides a positioning film imaging method, device, electronic equipment and storage medium, which are respectively described below.
[0064] Before presenting the embodiment, the scanning system is described first. Figure 1 As shown, it is a schematic diagram of the structure of an embodiment of the scanning system provided by an embodiment of the present invention. The scanning system 10 comprises: a micro-focus ray source 100, a stage 200 and a detector 300, wherein the stage 200 is arranged between the micro-focus ray source 100 and the detector 300. During the imaging process, the micro-focus ray source 100 continuously generates cone beam rays, which pass through the scanning object on the stage 200 and form an image on the detector 300. The rear end of the detector 300 is connected to a computer data acquisition system, and the image data is directly read into the computer. At this time, what is obtained in the computer is a two-dimensional projection sub-image of the scanning object at a certain angle. By rotating the micro-focus ray source 100 and the detector 300 or rotating the scanning object, the two-dimensional projection sub-images of the scanning object at different angles are measured in turn, and the obtained two-dimensional projection sub-images at different angles are reconstructed to obtain the projection image of the scanning object.
[0065] When the scanning system 10 is used to scan a long object, the stage 200 includes a bed feeding mechanism, that is, the long object is scanned in sections along a preset bed feeding spacing to obtain a projection image of each section of the long object, and then the projection images of multiple sections of the long object are spliced to obtain an overall projection image of the long object, that is, a localizer image. After obtaining the localizer image, the scanning information such as the position, angle, layer thickness, etc. that the scanning system 10 needs to scan can be determined through the localizer image.
[0066] In some embodiments of the present invention, the scanning system 10 may be a Micro CT scanning system. The cone beam rays generated by the micro-focus ray source 100 are X-rays.
[0067] Figure 2 A schematic flow chart of an embodiment of the method for imaging a positioning film provided by the present invention is shown in FIG. Figure 2 As shown, the positioning film imaging method includes:
[0068] S201, acquiring multiple projection images of multiple different parts of the scanned object;
[0069] S202, performing shimming correction on each of the multiple projection images to obtain multiple shimming images;
[0070] S203 , obtaining a localizer image based on the multiple shim images.
[0071] Compared with the prior art, the localizer imaging method provided in the embodiment of the present invention obtains multiple shim images by performing shim correction on each of the multiple projection images after obtaining multiple projection images, thereby improving the image contrast and clarity of the shim images. A localizer image is obtained based on the multiple shim images with high image contrast and clarity, which can improve the contrast and clarity of the localizer image, so that scanning information such as the position, angle, layer thickness, etc. that needs to be scanned can be effectively determined through the localizer image.
[0072] In a specific embodiment of the present invention, the multiple different parts in step S201 refer to parts at different bed codes along the approach direction, wherein the bed code refers to the codes of different bed approach positions along the approach direction.
[0073] In some embodiments of the present invention, Figure 3 As shown, step S202 includes:
[0074] S301, determining a correction coefficient matrix;
[0075] S302: Obtain a shim image according to the correction coefficient matrix and the projection image.
[0076] Specifically, the projection image is multiplied pixel by pixel by the correction coefficient matrix to obtain the shim image. That is:
[0077] V(i,j)=c(i,j)*R(i,j)
[0078] Where i, j represent the row and column coordinates of each pixel in the projection image; V(i, j) is the shim image; c(i, j) is the correction coefficient matrix; R(i, j) is the projection image.
[0079] In some embodiments of the present invention, Figure 4 As shown, step S301 includes:
[0080] S401, obtaining a background projection image, and determining a pixel value of each pixel point in the background projection image and a pixel average value of each pixel point;
[0081] S402: Determine a correction coefficient matrix according to the pixel value of each pixel point and the pixel average value.
[0082] Specifically, the background projection image in step S401 is a projection image obtained by scanning without placing a scanning object in the scanning system.
[0083] In a specific embodiment of the present invention, the correction coefficient matrix in step S302 is:
[0084]
[0085] Where f(i,j) is the pixel value of each pixel; is the pixel average value.
[0086] The embodiment of the present invention can obtain a high-contrast uniform field image by correcting the projection image using the background projection image.
[0087] In some embodiments of the present invention, Figure 5 As shown, step S203 includes:
[0088] S501, determining an interpolation weight of each shim image among a plurality of shim images for a localizer image;
[0089] S502: Obtain a localizer image according to a plurality of shim images and interpolation weights.
[0090] The embodiment of the present invention determines the interpolation weight of each shim image to the localizer image, and can obtain the localizer image according to the shim image and the interpolation weight. The shim images of any bed spacing can be spliced, and the spacing between two adjacent projection images may not be the collimation width, that is, there is no need to set the spacing between two adjacent projection images to be equal to the coverage range of the projection images, thereby reducing the high positioning requirements for the scanning system and improving the flexibility of the scanning method.
[0091] In some embodiments of the present invention, step S502 specifically includes: obtaining pixel values of pixel points in each shim image, and obtaining a topographic image based on the pixel values and interpolation weights.
[0092] It should be noted that, in order to further improve the effectiveness and reliability of the localizer image, in some embodiments, the localizer image obtained may be normalized after step S502.
[0093] In some embodiments of the present invention, Figure 6 As shown, step S501 includes:
[0094] S601, mapping the shim image into a target shim image in a target coordinate system;
[0095] S602, obtaining a first pixel size of a pixel point in a target shim image and a second pixel size of a pixel point in a localizer image;
[0096] S603: Determine an interpolation weight of the target shim image for the topogram image according to the first pixel size and the second pixel size.
[0097] The embodiment of the present invention can determine the interpolation weight of the target shim image to the localizer image according to the first pixel size and the second pixel size. The method is simple, thereby improving the speed of obtaining the interpolation weight, and further improving the speed of localizer imaging.
[0098] In some embodiments of the present invention, the target coordinate system in step S601 is based on Figure 1 A three-dimensional coordinate system is established with the rotation center of the scanning system 10 in the image as the origin. When the stage 200 rotates, the rotation center is the rotation center of the stage 200; when the micro-focus ray source 100 and the detector 300 rotate, the rotation center is the rotation center of the micro-focus ray source 100 and the detector 300.
[0099] In some embodiments of the present invention, the first pixel size and the second pixel size in step S602 can be directly obtained, that is, the first pixel size and the second pixel size are calculated in advance, and the first pixel size and the second pixel size are stored in a corresponding memory, and when executing step S602, the first pixel size and the second pixel size are directly called from the memory.
[0100] In some other embodiments of the present invention, the first pixel size and the second pixel size may be calculated in real time when executing step S602. Specifically, the first pixel size and the second pixel size refer to the size along the bed entry direction, and the first pixel size L1 is:
[0101] L1=PixSpace / M
[0102] Wherein, PixSpace is the pixel size of the pixel point in the detector 300; M is the magnification ratio of the scanning system.
[0103] The second pixel size L2 is:
[0104] L2=(fCouchPosEnd-fCouchPosStart+Collimation) / ImgRow
[0105] ImgRow=ceil((fCouchPosEnd-fCouchPosStart+Collimation) / L1)
[0106] Wherein, fCouchPosEnd is the scanning start bed code along the bed approaching direction; fCouchPosStart is the scanning end bed code along the bed approaching direction; Collimation is the width of the detector 300 in the bed approaching direction; ImgRow is the row height of the second pixel point of each row; ceil() is a rounding up function.
[0107] In some embodiments, the distance between two adjacent projection images is less than or equal to the coverage of the projection images, which can avoid data loss of multiple projection images.
[0108] In some embodiments of the present invention, Figure 7 As shown, step S603 includes:
[0109] S701, determining at least one row of pixel points in a positioning film image within a coverage range of each row of pixel points in a target shim image according to a first pixel size and a second pixel size;
[0110] S702, determining a contribution value of each row of pixels in the target shim image to at least one row of pixels in the topographic image covered by it;
[0111] S703, determining the cone angle weight of each row of pixels in the target shim image;
[0112] S704: Determine the interpolation weight of the target shim image to the localizer image according to the contribution value and the cone angle weight.
[0113] The embodiment of the present invention determines the cone angle weight of each row of pixel points in the target shim image, and determines the interpolation weight according to the contribution value and the cone angle weight. In the process of obtaining the positioning film image, the influence of the cone angle caused by the rotation of the scanning system is considered, thereby improving the rationality of the shim image stitching, and further effectively suppressing the technical problem of geometric distortion of the positioning film image, thereby improving the effectiveness and reliability of the positioning film image.
[0114] The cone angle refers to the angle between the plane where the target shim image is located and the rotation center.
[0115] In some embodiments of the present invention, Figure 8 As shown, step S701 includes:
[0116] S801, determining the coordinates of the first pixel point of each row of pixel points in the target shim image in the target coordinate system;
[0117] S802, obtaining the coordinates of the second pixel point of the first row of pixel points in the positioning film image in the target coordinate system along a preset direction;
[0118] S803 , determining at least one row of pixels in the positioning film image within a coverage range of each row of pixels in the target shim image according to the first pixel coordinates and the second pixel coordinates.
[0119] The preset direction in step S802 is the bed moving direction.
[0120] In some embodiments of the present invention, Fig. 9 As shown, the first pixel size L1 is greater than the second pixel size L2. Specifically, the coordinates of the upper and lower boundaries of the nth row of pixels in the target shim image in the bed approach direction in the target coordinate system are and They are
[0121]
[0122] Where, couchspace is the bed spacing, that is, the spacing between two adjacent projection images; k is the sequence number of the shim image.
[0123] The minimum and maximum row indices of the multiple rows of pixels in the localizer image within the coverage range of the nth row of pixels in the target shim image are:
[0124]
[0125] Where, Idx s and Idx e are respectively the minimum row index and the maximum row index of the multiple rows of pixel points in the topogram image within the coverage range of the nth row in the target shim image; and SPos are the coordinates of the upper and lower boundaries of the nth row of pixels in the target shim image in the bed approach direction in the target coordinate system; topo is the coordinate of the second pixel point in the first row of pixels of the localizer image in the bed approach direction in the target coordinate system; floor() is a rounding down function.
[0126] The embodiment of the present invention can determine the coverage of each row of pixels in the target shim image to the pixels in the shim image by acquiring the minimum row index and the maximum row index of at least one row of pixels in the shim image within the coverage of the nth row of pixels in the target shim image.
[0127] In some embodiments of the present invention, Fig.10 As shown, step S702 includes:
[0128] S1001, determining the distance between the center line of each row of pixel points in the shim image and the center line of each row of pixel points in the topogram image;
[0129] S1002: Determine, according to the spacing, a contribution value of each row of pixels in the shim image to at least one row of pixels in the topogram image covered by it.
[0130] Specifically, Fig.11 As shown, Fig.11 In the figure, B is the pixel in the shim image, and A is the pixel in the localizer image. The contribution of pixel B to pixel A is represented by the distance between the center lines of the two pixels, which is expressed by Fig.11 It can be seen that as the positional relationship between pixel point B and pixel point A changes, the contribution value of pixel point B to pixel point A will also change. The contribution value of pixel point B to pixel point A is defined as the volume ratio of the first pixel point B to the second pixel point A, that is, Fig.11 The specific calculation method of the shaded part in is as follows:
[0131]
[0132] Where y is the contribution of pixel B to pixel A; || is the absolute value.
[0133] That is, the contribution value of pixel point B to pixel point A can be determined through the first pixel size of pixel point B, the second pixel size of pixel point A, and the distance between the center lines of the two pixel points.
[0134] In some embodiments of the present invention, Fig.12 As shown, step S703 includes:
[0135] S1201, determining the row index of each row of pixel points in the target shim image;
[0136] S1202, determining the maximum row index in the target shim image;
[0137] S1203 : Determine the cone angle weight of each row of pixel points in the target shim image based on the row index of each row of pixel points and the maximum row index.
[0138] In a specific embodiment of the present invention, the calculation formula of the cone angle weight is as follows:
[0139] r q =q / q max
[0140]
[0141] In the formula, w a is the cone angle weight; q is the row index of each row of pixels in the target shim image; q max is the maximum row index in the target shim image; Q∈[0,1], E∈(1,2].
[0142] After obtaining the cone angle weight and contribution value, the interpolation weight w is:
[0143] w=w a *y
[0144] In some embodiments of the present invention, before step S102, the method further includes:
[0145] Image correction is performed on each of the plurality of projected images.
[0146] The specific process of image correction is as follows: abnormal pixel points in the projected image that are close to saturation or have a zero response are marked, and the abnormal pixel points are corrected again using the interpolation method.
[0147] The abnormal pixels close to saturation refer to pixels exceeding 96% of the saturation value.
[0148] In a specific embodiment of the present invention, the interpolation of abnormal pixel points refers to linear interpolation, that is, the pixel value of the abnormal pixel point is numerically estimated based on the pixel values of two adjacent pixel points. The specific calculation process is:
[0149]
[0150] Where R(i,j) is the pixel value of the abnormal pixel, R(i0,j0) and R(i1,j1) are the pixel values of the two adjacent pixels of the abnormal pixel, i0,j0 are the horizontal and vertical coordinates of the pixel point (i0,j0) in the two-dimensional pixel coordinate system; i1,j1 are the horizontal and vertical coordinates of the pixel point (i1,j1) in the two-dimensional pixel coordinate system.
[0151] The pixel value of the abnormal pixel point can be corrected by performing a difference calculation on the pixel value of the abnormal pixel point using the pixel values of two adjacent pixels.
[0152] The embodiment of the present invention performs image correction on abnormal pixels in the projection image before performing shimming correction on the projection image, thereby achieving the technical effect of improving the reliability and effectiveness of the shimmed image.
[0153] In order to better implement the positioning film imaging method in the embodiment of the present invention, based on the positioning film imaging method, correspondingly, Fig.13 As shown, the embodiment of the present invention further provides a positioning film imaging device, and the positioning film imaging device 1300 includes:
[0154] The projection image acquisition unit 1301 is used to acquire multiple projection images of multiple different parts of the scanned object;
[0155] An image correction unit 1302 is used to perform shimming correction on each of the multiple projection images to obtain multiple shimmed images;
[0156] The image stitching unit 1303 is used to obtain a localizer image based on a plurality of shim images.
[0157] The positioning film imaging device 1300 provided in the above embodiment can implement the technical solution described in the above positioning film imaging method embodiment. The specific implementation principles of the above modules or units can refer to the corresponding contents in the above positioning film imaging method embodiment, which will not be repeated here.
[0158] like Fig.14 As shown, the present invention also provides an electronic device 1400. The electronic device 1400 includes a processor 1401, a memory 1402 and a display 1403. Fig.14Only some components of the electronic device 1400 are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0159] In some embodiments, the memory 1402 may be an internal storage unit of the electronic device 1400, such as a hard disk or memory of the electronic device 1400. In other embodiments, the memory 1402 may also be an external storage device of the electronic device 1400, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 1400.
[0160] Furthermore, the memory 1402 may include both an internal storage unit of the electronic device 1400 and an external storage device. The memory 1402 is used to store application software installed in the electronic device 1400 and various data.
[0161] In some embodiments, the processor 1401 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run program codes or process data stored in the memory 1402, such as the positioning film imaging method of the present invention.
[0162] In some embodiments, the display 1403 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 1403 is used to display information on the electronic device 1400 and to display a visual user interface. The components 1401-1403 of the electronic device 1400 communicate with each other via a system bus.
[0163] In one embodiment, when the processor 1401 executes the topography imaging program in the memory 1402, the following steps may be implemented:
[0164] Acquire multiple projection images of multiple different parts of the scanned object;
[0165] Performing shimming correction on each of the multiple projection images to obtain multiple shimming images;
[0166] A topogram image is obtained based on the plurality of shim images.
[0167] It should be understood that: when the processor 1401 executes the positioning film imaging program in the memory 1402, in addition to the above functions, other functions can also be implemented. For details, please refer to the description of the corresponding method embodiment above.
[0168] Furthermore, the embodiment of the present invention does not specifically limit the type of the electronic device 1400 mentioned, and the electronic device 1400 may be a portable electronic device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), a wearable device, a laptop computer, etc. Exemplary embodiments of portable electronic devices include but are not limited to portable electronic devices equipped with IOS, Android, Microsoft or other operating systems. The above-mentioned portable electronic devices may also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments of the present invention, the electronic device 1400 may not be a portable electronic device, but a desktop computer with a touch-sensitive surface (e.g., a touch panel).
[0169] Accordingly, an embodiment of the present application also provides a computer-readable storage medium, which is used to store computer-readable programs or instructions. When the program or instructions are executed by a processor, the positioning film imaging method steps or functions provided in the above-mentioned method embodiments can be implemented.
[0170] The localizer imaging method, device, electronic device and storage medium provided by the embodiments of the present invention, after obtaining multiple projection images, obtain multiple shim images by performing shim correction on each of the multiple projection images, thereby improving the image contrast and clarity of the shim images. A localizer image is obtained based on the multiple shim images with high image contrast and clarity, which can improve the contrast and clarity of the localizer image, so that scanning information such as the position, angle, layer thickness, etc. that needs to be scanned can be effectively determined through the localizer image.
[0171] Furthermore, the embodiments of the present invention determine the cone angle weights of each row of pixels in the uniform field image, and determine the interpolation weights based on the contribution values and the cone angle weights, so as to take into account the influence of the cone angle caused by the rotation of the scanning system in the process of obtaining the positioning film image, thereby improving the rationality of the uniform field image stitching, and further effectively suppressing the technical problem of geometric distortion of the positioning film image, thereby improving the effectiveness and reliability of the positioning film image.
[0172] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the computer program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0173] The positioning film imaging method, device, electronic device and storage medium provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for imaging a positioning film, characterized in that: include: Acquire multiple projection images of multiple different parts of the scanned object; the multiple different parts refer to parts at different bed codes along the approach direction; Performing shimming correction on each of the plurality of projection images to obtain a plurality of shimming images; obtaining a topogram image based on the multiple shim images; The step of performing shimming correction on each of the plurality of projection images to obtain a plurality of shimmed images includes: Acquire a background projection image, and determine the pixel value of each pixel point in the background projection image and the pixel average value of each pixel point; the background projection image is a projection image obtained by scanning without placing a scanning object in the scanning system; Determine a correction coefficient matrix according to the pixel value of each pixel point and the pixel average value; Multiply the projection image and the correction coefficient matrix pixel by pixel to obtain a shim image; The obtaining of a localizer image based on the multiple shim images comprises: Determining an interpolation weight of each of the plurality of shim images for the topogram image; The topogram image is obtained according to the multiple shim images and the interpolation weights.
2. The method for imaging a positioning film according to claim 1, characterized in that: The determining of the interpolation weight of each of the plurality of shim images for the localizer image comprises: Mapping the shimmed image into a target shimmed image in a target coordinate system; Acquire a first pixel size of a pixel point in the target shim image and a second pixel size of a pixel point in the topogram image; An interpolation weight of the target shim image to the topogram image is determined according to the first pixel size and the second pixel size.
3. The method for imaging a positioning film according to claim 2, characterized in that: The step of determining the interpolation weight of the target shim image for the localizer image according to the first pixel size and the second pixel size includes: Determine at least one row of pixel points in the positioning film image within the coverage range of each row of pixel points in the target shim image according to the first pixel size and the second pixel size; Determine the contribution value of each row of pixel points in the target shim image to at least one row of pixel points in the topographic image covered by it; Determining the cone angle weight of each row of pixels in the target shim image; An interpolation weight of the target shim image to the localizer image is determined according to the contribution value and the cone angle weight.
4. The method for imaging a positioning film according to claim 3, characterized in that: The determining, according to the first pixel size and the second pixel size, at least one row of pixel points in the positioning film image within the coverage range of each row of pixel points in the target shim image comprises: Determine the first pixel point coordinates of each row of pixel points in the target shim image in the target coordinate system; Acquire the coordinates of the second pixel points of the first row of pixel points in the positioning film image in the target coordinate system along a preset direction; At least one row of pixels in the positioning film image within the coverage range of each row of pixels in the target shim image is determined according to the first pixel coordinates and the second pixel coordinates.
5. The method for imaging a positioning film according to claim 3, characterized in that: Determining the contribution value of each row of pixel points in the shim image to at least one row of pixel points in the topographic image covered by the pixel points includes: Determine the spacing between the center line of each row of pixel points in the shim image and the center line of each row of pixel points in the topogram image; The contribution value of each row of pixel points in the shim image to at least one row of pixel points in the topogram image covered by the pixel point is determined according to the spacing.
6. The method for imaging a positioning film according to claim 3, characterized in that: The step of determining the cone angle weight of each row of pixels in the target shim image comprises: Determine the row index of each row of pixels in the target shim image; Determining a maximum row index in the target shim image; The cone angle weight of each row of pixel points in the target shim image is determined based on the row index of each row of pixel points and the maximum row index.
7. A positioning film imaging device, characterized in that: include: The projection image acquisition unit is used to acquire multiple projection images of multiple different parts of the scanned object; the multiple different parts refer to parts at different bed codes along the approach direction; An image correction unit, configured to perform shimming correction on each of the plurality of projection images to obtain a plurality of shimmed images; An image stitching unit, used for obtaining a localizer image based on the multiple shim images; The image correction unit is specifically used for: Acquire a background projection image, and determine the pixel value of each pixel point in the background projection image and the pixel average value of each pixel point; the background projection image is a projection image obtained by scanning without placing a scanning object in the scanning system; Determine a correction coefficient matrix according to the pixel value of each pixel point and the pixel average value; Multiply the projection image and the correction coefficient matrix pixel by pixel to obtain a shim image; The image stitching unit is specifically used for: Determining an interpolation weight of each of the plurality of shim images for the topogram image; The topogram image is obtained according to the multiple shim images and the interpolation weights.
8. An electronic device, characterized in that: comprising a memory and a processor, wherein: The memory is used to store programs; The processor is coupled to the memory and is used to execute the program stored in the memory to implement the steps in the positioning film imaging method described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: Used to store computer-readable programs or instructions, which, when executed by a processor, can implement the steps of the positioning film imaging method described in any one of claims 1 to 6.
