Imager-based target image processing method and system, electronic device, and readable storage medium

Through the target image processing method based on the imager, the tumor positioning guide is automatically customized, which solves the problem of inefficient customization in the prior art, and realizes the stable and precise positioning of the guide on the patient's head.

WO2025162440A1PCT designated stage Publication Date: 2025-08-07NANJING NUOYUAN MEDICAL DEVICES CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/075443
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-02-01
Filing Date
2025-01-27
Publication Date
2025-08-07

AI Technical Summary

Technical Problem

In the prior art, the customization of tumor positioning guide plates is inefficient, and manual customization may lead to inaccurate data.

Method used

Through the target image processing method based on the imager, the tumor positioning guide is automatically customized in combination with patient scanning data, and the guide printing model is generated, including building a virtual head model, determining the tumor section profile, expanding the carrier area, connecting the stent area and generating the bottom layer map of the guide, and receiving the stretching information input by the user for adjustment.

Benefits of technology

It improves the customization efficiency and accuracy of the tumor positioning guide plate, ensuring the stability and accuracy of the guide plate during positioning and fixing of the patient's head.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025075443_07082025_PF_FP_ABST
    Figure CN2025075443_07082025_PF_FP_ABST
Patent Text Reader

Abstract

An imager-based target image processing method and system, an electronic device, and a readable storage medium. The method comprises: determining a target sectional image perpendicular to a mapping direction according to the mapping direction; determining, on the basis of the target sectional image and the mapping direction, a first contour corresponding to a tumor sectional contour in the target sectional image on a virtual head model; determining a second contour according to a first extension distance and the first contour; determining a virtual head model comprising a first carrier region according to the first contour and the second contour; receiving a third contour input by a user via an editing terminal; determining a fourth contour according to a second extension distance and the third contour; determining, on the basis of the third contour and the fourth contour, a second carrier region; connecting, on the basis of a connecting frame region, the second contour and the third contour; determining a nasal bridge connecting region and an ear connecting region according to the virtual head model; and generating, on the basis of the first carrier region, the second carrier region, the connecting frame region, the nasal bridge connecting region, and the ear connecting region, a guide plate printing model.
Need to check novelty before this filing date? Find Prior Art

Description

Imager-based target image processing method, system, electronic device, and readable storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This disclosure claims priority to Chinese patent application number 202410147972.7 filed with the Chinese Patent Office on February 1, 2024, entitled “Target image processing method and system based on imager,” the entire contents of which are incorporated by reference into this disclosure. Technical Field

[0003] The present disclosure relates to data processing technology, and in particular to a target image processing method, system, electronic device, and readable storage medium based on an imager. Background Art

[0004] At present, tumors have gradually become the biggest threat to people's health and life. When doctors treat cancer patients, they usually need to use tumor localization guides to locate the tumor, and then obtain the location of the tumor, which makes it easier for doctors to fix the position of the cancer patients, simulate radiation and treat them.

[0005] In related technologies, tumor localization guides are usually generated manually. Due to the limitations of manual customization, the data used to generate the tumor localization guides may not be accurate enough, resulting in low customization efficiency of the tumor localization guides.

[0006] Therefore, how to automatically customize multiple parts of the tumor localization guide based on patient scanning data and improve the customization efficiency of the tumor localization guide has become an urgent problem that needs to be solved. Summary of the Invention

[0007] The embodiments of the present disclosure provide an imager-based target image processing method, system, electronic device, and readable storage medium, which can automatically customize multiple parts of a tumor localization guide in combination with patient scan data, thereby improving the customization efficiency of the tumor localization guide.

[0008] A first aspect of the present disclosure provides a target image processing method based on an imager, the system comprising:

[0009] receiving three-dimensional CT information uploaded by the management terminal, constructing a corresponding first virtual head model and a virtual tumor model based on the three-dimensional CT information, obtaining a tumor positioning point in the virtual tumor model and a plurality of preset positioning points located on the outer surface of the first virtual head model, and calculating a first phase difference distance between the tumor positioning point and each of the preset positioning points;

[0010] obtaining a preset positioning point with a minimum first distance difference as a target positioning point, connecting the tumor positioning point and the target positioning point to obtain a mapping direction, determining a target section image perpendicular to the mapping direction according to the mapping direction, and determining a first contour on a first virtual head model corresponding to the tumor section contour in the target section image based on the target section image and the mapping direction;

[0011] determining a second contour based on the first extended distance and the first contour, determining a second virtual head model including a first carrier area based on the first contour and the second contour, sending the second virtual head model to an editing terminal, receiving a third contour input by a user based on the editing terminal, determining a fourth contour based on the second extended distance and the third contour, determining a second carrier area based on the third contour and the fourth contour, and updating the second virtual head model based on the second carrier area to obtain an updated second virtual head model;

[0012] generating a connecting support area, connecting the second contour and the third contour based on the connecting support area, determining a nose bridge support area and an ear support area according to the updated second virtual head model, and generating a nose bridge connection area corresponding to the nose bridge support area and an ear connection area corresponding to the ear support area;

[0013] A guide plate bottom layer image is generated based on the first carrier area, the second carrier area, the connecting bracket area, the nose bridge connecting area and the ear connecting area, and the user's stretching information is received. The guide plate bottom layer image is stretched outward according to the stretching information to obtain a guide plate printing model, and the guide plate printing model is sent to the printing end.

[0014] Optionally, in a possible implementation of the first aspect, obtaining a tumor location point in the virtual tumor model and a plurality of preset location points located on the outer surface of the first virtual head model, and calculating a first phase difference distance between the tumor location point and each of the preset location points includes:

[0015] Sending the first virtual head model to the physician terminal, and receiving the positioning points selected by the physician terminal on the first virtual head model as preset positioning points;

[0016] A tumor center point of the virtual tumor model is obtained as a tumor positioning point, as well as a first coordinate corresponding to the tumor positioning point and a second coordinate corresponding to each of the preset positioning points, and a first phase difference distance between the tumor positioning point and each of the preset positioning points is calculated based on the first coordinate and the second coordinate.

[0017] Optionally, in a possible implementation of the first aspect, obtaining a preset positioning point with the smallest distance difference as a target positioning point, connecting the tumor positioning point and the target positioning point to obtain a mapping direction, determining a target section view perpendicular to the mapping direction based on the mapping direction, and determining a first contour on a first virtual head model corresponding to the tumor section contour in the target section view based on the target section view and the mapping direction, includes:

[0018] Obtaining a preset positioning point with the smallest distance difference as a selected positioning point, sending the selected positioning point to a physician terminal, receiving determination information based on the selected positioning point by the physician terminal, and determining the selected positioning point as a target positioning point based on the determination information;

[0019] connecting the tumor positioning point and the target positioning point to obtain a mapping direction, determining a section perpendicular to the mapping direction, and cutting the virtual tumor model along the mapping direction based on the section to obtain a plurality of tumor section images;

[0020] Extracting the tumor section contours corresponding to the tumor section images, and obtaining the tumor section image corresponding to the tumor section contour with the largest contour area as the target section image;

[0021] A first contour corresponding to the tumor section contour in the target section image is determined on the first virtual head model based on the target section image and the mapping direction.

[0022] Optionally, in a possible implementation of the first aspect, extracting the tumor section contour corresponding to each of the tumor section images includes:

[0023] The number of pixels in the tumor section contour is counted, and the contour area corresponding to each tumor section contour is obtained according to the number of pixels in the tumor section contour.

[0024] Optionally, in a possible implementation of the first aspect, determining, based on the target section image and the mapping direction, a first contour on the first virtual head model corresponding to a tumor section contour in the target section image includes:

[0025] Obtaining the outermost contour point of the tumor section contour corresponding to the target section image as a starting point, and generating multiple contour lines with each of the starting points as a starting point and the mapping direction as an extension direction;

[0026] The intersection points of the contour lines on the outer surface of the first virtual head model are determined as target contour points, and a first contour corresponding to the target section image on the first virtual head model is generated according to the multiple target contour points corresponding to the first virtual head model.

[0027] Optionally, in a possible implementation of the first aspect, determining a second profile according to the first expansion distance and the first profile, and determining a second virtual head model including the first carrier area according to the first profile and the second profile include:

[0028] Obtaining a tumor contour area corresponding to the target section image, obtaining a distance adjustment coefficient based on a ratio of the tumor contour area to a preset contour area, and obtaining a first expansion distance based on a product of a reference expansion distance and the distance adjustment coefficient;

[0029] Taking multiple target contour points corresponding to the first contour as a reference, multiple first extension points are obtained after expanding outward by a first extension distance, a second contour is generated based on the multiple first extension points, and the area enclosed by the first contour and the second contour is determined to be a first carrier area. Based on the first carrier area, the first virtual head model is updated to obtain a second virtual head model.

[0030] Optionally, in a possible implementation of the first aspect, sending the second virtual head model to an editing end, receiving a third outline input by a user based on the editing end, determining a fourth outline based on the second extended distance and the third outline, determining a second carrier area based on the third and fourth outlines, and updating the second virtual head model based on the second carrier area to obtain an updated second virtual head model includes:

[0031] sending the second virtual head model to an editing end, receiving editing information sent by a user based on the editing end, and in response to the editing information, retrieving a transparent layer corresponding to the second virtual head model and superimposing it on the second virtual head model;

[0032] Acquiring contour information input by a user based on the transparent layer, and obtaining a third contour on the second virtual head model according to the contour information;

[0033] Obtaining a preset extension distance as a second extension distance, using multiple contour points corresponding to the third contour as a reference, outwardly extending the second extension distance to obtain multiple second extension points, generating a fourth contour based on the multiple second extension points, and determining an area enclosed by the third contour and the fourth contour as a second carrier area;

[0034] The second virtual head model is updated based on the second carrier area to obtain an updated second virtual head model.

[0035] Optionally, in a possible implementation of the first aspect, obtaining contour information input by the user based on the transparent layer includes:

[0036] A trigger trace input by a user based on the editing terminal is obtained, and the contour information is obtained according to the trigger trace.

[0037] Optionally, in a possible implementation manner of the first aspect, generating a connection support area, and connecting the second outline and the third outline based on the connection support area includes:

[0038] Counting the number of pixels of the first contour of the second contour, obtaining an adjustment coefficient according to a ratio of the number of pixels of the first contour to a preset number of pixels, obtaining the number of brackets according to a rounded-up value of a product of a preset number of brackets and the adjustment coefficient, and obtaining the bracket extension distance according to a rounded-up value of a product of a preset extension distance and the adjustment coefficient;

[0039] Obtaining a first spacing distance according to a ratio of the number of pixels of the first contour to the number of the brackets, determining a plurality of first connection points on the second contour based on the first spacing distance, and obtaining a second connection point on the third contour corresponding to each first connection point;

[0040] Connect the corresponding first connection point and the second connection point to obtain multiple connection lines. With the connection line as the center, expand to the left and right sides of the connection line according to the bracket expansion distance to obtain multiple connection bracket areas. Connect the second outline and the third outline based on the connection bracket area.

[0041] Optionally, in a possible implementation of the first aspect, determining multiple first connection points on the second contour based on the first spacing distance, and acquiring second connection points on the third contour corresponding to each first connection point includes:

[0042] Obtain any contour pixel point on the second contour as an initial connection point, and starting from the initial connection point, sequentially obtain contour pixel points at a first interval distance on the second contour in a clockwise direction as first connection points, and assign a corresponding first serial number to each first connection point from small to large according to the acquisition order;

[0043] Counting the number of pixels of the second contour of the third contour, and obtaining a second spacing distance according to a ratio of the number of pixels of the second contour to the number of the brackets;

[0044] Obtain the contour pixel point closest to the initial connection point on the third contour as the starting connection point, and starting from the starting connection point, sequentially obtain contour pixel points at a second interval distance on the third contour in a clockwise direction as second connection points, and add a corresponding second serial number to each second connection point from small to large according to the acquisition order;

[0045] The initial connection point and the starting connection point are matched, and multiple groups of corresponding first connection points and second connection points are obtained based on the first serial number and the second serial number.

[0046] Optionally, in a possible implementation of the first aspect, determining multiple first connection points on the second contour based on the first spacing distance, and acquiring second connection points on the third contour corresponding to each first connection point includes:

[0047] Obtain any contour pixel point on the second contour as an initial connection point, and starting from the initial connection point, sequentially obtain contour pixel points at a first interval distance on the second contour in a counterclockwise direction as first connection points, and add a corresponding first serial number to each first connection point from small to large according to the acquisition order;

[0048] Counting the number of pixels of the second contour of the third contour, and obtaining a second spacing distance according to a ratio of the number of pixels of the second contour to the number of the brackets;

[0049] Obtain the contour pixel point closest to the initial connection point on the third contour as the starting connection point, and starting from the starting connection point, sequentially obtain contour pixel points at a second interval distance on the third contour in a counterclockwise direction as second connection points, and add a corresponding second serial number to each second connection point from small to large according to the acquisition order;

[0050] The initial connection point and the starting connection point are matched, and multiple groups of corresponding first connection points and second connection points are obtained based on the first serial number and the second serial number.

[0051] Optionally, in a possible implementation of the first aspect, determining a nose bridge support area and an ear support area according to the updated second virtual head model, and generating a nose bridge connection area corresponding to the nose bridge support area and an ear connection area corresponding to the ear support area, includes:

[0052] Determine, in the updated second virtual head model, an area where the nose bridge is located as the nose bridge support area, and areas where the two ears are located as the ear undetermined areas, obtain the ear center points of each of the ear undetermined areas, calculate a second phase difference distance between each of the ear center points and the tumor location point, and obtain the ear undetermined area corresponding to the ear center point with the smallest second phase difference distance as the ear support area;

[0053] Obtaining a center point of the nose bridge of the nose bridge support area, determining a point on the fourth contour closest to the center point of the nose bridge as a nose bridge connection point, and determining a point on the fourth contour closest to a center point of an ear of the ear support area as an ear connection point;

[0054] Connecting the nose bridge center point and the nose bridge connection point to obtain a nose bridge support line, and connecting the ear center point and the ear connection point to obtain an ear support line;

[0055] obtaining a first area of ​​the first carrier region and a second area of ​​the second carrier region, and summing the first area and the second area to obtain a total carrier area;

[0056] Obtaining an expansion adjustment coefficient according to a ratio of the total area of ​​the carrier to a preset area, and obtaining a support area expansion distance based on a product of a preset support area distance and the expansion adjustment coefficient;

[0057] With the nose bridge support line and the ear support line as the center, expansion processing is performed to the left and right sides of the nose bridge support line and the ear support line according to the support area expansion distance to obtain the nose bridge connection area and the ear connection area.

[0058] According to a second aspect of the present disclosure, a target image processing system based on an imager is provided, comprising:

[0059] a distance module configured to receive three-dimensional CT information uploaded by the management terminal, construct a corresponding first virtual head model and a virtual tumor model based on the three-dimensional CT information, obtain a tumor location point in the virtual tumor model and a plurality of preset location points located on the outer surface of the first virtual head model, and calculate a first distance difference between the tumor location point and each of the preset location points;

[0060] a mapping module configured to obtain a first preset positioning point with a minimum distance difference as a target positioning point, connect the tumor positioning point and the target positioning point to obtain a mapping direction, determine a target cross-sectional view perpendicular to the mapping direction based on the mapping direction, and determine a first contour on a first virtual head model corresponding to the tumor cross-sectional contour in the target cross-sectional view based on the target cross-sectional view and the mapping direction;

[0061] an updating module configured to determine a second contour based on the first extended distance and the first contour, determine a second virtual head model including a first carrier area based on the first contour and the second contour, send the second virtual head model to an editing terminal, receive a third contour input by a user based on the editing terminal, determine a fourth contour based on the second extended distance and the third contour, determine a second carrier area based on the third contour and the fourth contour, and update the second virtual head model based on the second carrier area to obtain an updated second virtual head model;

[0062] a connection module configured to generate a connection support area, connect the second contour and the third contour based on the connection support area, determine a nose bridge support area and an ear support area according to the updated second virtual head model, and generate a nose bridge connection area corresponding to the nose bridge support area and an ear connection area corresponding to the ear support area;

[0063] The guide plate module is configured to generate a guide plate bottom layer image based on the first carrier area, the second carrier area, the connecting bracket area, the nose bridge connecting area and the ear connecting area, receive the user's stretching information, stretch the guide plate bottom layer image outward according to the stretching information to obtain a guide plate printing model, and send the guide plate printing model to the printing end.

[0064] Optionally, in a possible implementation of the second aspect, the distance module is specifically configured to:

[0065] Sending the first virtual head model to the physician terminal, and receiving the positioning points selected by the physician terminal on the first virtual head model as preset positioning points;

[0066] A tumor center point of the virtual tumor model is obtained as a tumor positioning point, as well as a first coordinate corresponding to the tumor positioning point and a second coordinate corresponding to each of the preset positioning points, and a first phase difference distance between the tumor positioning point and each of the preset positioning points is calculated based on the first coordinate and the second coordinate.

[0067] Optionally, in a possible implementation manner of the second aspect, the mapping module is specifically configured to:

[0068] Obtaining a preset positioning point with the smallest distance difference as a selected positioning point, sending the selected positioning point to a physician terminal, receiving determination information based on the selected positioning point by the physician terminal, and determining the selected positioning point as a target positioning point based on the determination information;

[0069] connecting the tumor positioning point and the target positioning point to obtain a mapping direction, determining a section perpendicular to the mapping direction, and cutting the virtual tumor model along the mapping direction based on the section to obtain a plurality of tumor section images;

[0070] Extracting the tumor section contours corresponding to the tumor section images, and obtaining the tumor section image corresponding to the tumor section contour with the largest contour area as the target section image;

[0071] A first contour corresponding to the tumor section contour in the target section image is determined on the first virtual head model based on the target section image and the mapping direction.

[0072] Optionally, in a possible implementation of the second aspect, the update module is specifically configured to:

[0073] Obtaining a tumor contour area corresponding to the target section image, obtaining a distance adjustment coefficient based on a ratio of the tumor contour area to a preset contour area, and obtaining a first expansion distance based on a product of a reference expansion distance and the distance adjustment coefficient;

[0074] Taking multiple target contour points corresponding to the first contour as a reference, outwardly expanding a first expansion distance to obtain multiple first expansion points, generating a second contour based on the multiple first expansion points, determining an area enclosed by the first contour and the second contour as a first carrier area, and updating the first virtual head model based on the first carrier area to obtain a second virtual head model;

[0075] sending the second virtual head model to an editing end, receiving editing information sent by a user based on the editing end, and in response to the editing information, retrieving a transparent layer corresponding to the second virtual head model and superimposing it on the second virtual head model;

[0076] Acquiring contour information input by a user based on the transparent layer, and obtaining a third contour on the second virtual head model according to the contour information;

[0077] Obtaining a preset extension distance as a second extension distance, using multiple contour points corresponding to the third contour as a reference, outwardly extending the second extension distance to obtain multiple second extension points, generating a fourth contour based on the multiple second extension points, and determining an area enclosed by the third contour and the fourth contour as a second carrier area;

[0078] The second virtual head model is updated based on the second carrier area to obtain an updated second virtual head model.

[0079] Optionally, in a possible implementation of the second aspect, the connection module is specifically configured to:

[0080] Counting the number of pixels of the first contour of the second contour, obtaining an adjustment coefficient according to a ratio of the number of pixels of the first contour to a preset number of pixels, obtaining the number of brackets according to a rounded-up value of a product of a preset number of brackets and the adjustment coefficient, and obtaining the bracket extension distance according to a rounded-up value of a product of a preset extension distance and the adjustment coefficient;

[0081] Obtaining a first spacing distance according to a ratio of the number of pixels of the first contour to the number of the brackets, determining a plurality of first connection points on the second contour based on the first spacing distance, and obtaining a second connection point on the third contour corresponding to each first connection point;

[0082] Connecting the corresponding first connection points and the second connection points to obtain a plurality of connection lines, expanding the connection lines to the left and right sides of the connection lines according to the bracket expansion distance to obtain a plurality of connection bracket areas, and connecting the second outline and the third outline based on the connection bracket areas;

[0083] Determine, in the updated second virtual head model, an area where the nose bridge is located as the nose bridge support area, and areas where the two ears are located as the ear undetermined areas, obtain the ear center points of each of the ear undetermined areas, calculate a second phase difference distance between each of the ear center points and the tumor location point, and obtain the ear undetermined area corresponding to the ear center point with the smallest second phase difference distance as the ear support area;

[0084] Obtaining a center point of the nose bridge of the nose bridge support area, determining a point on the fourth contour closest to the center point of the nose bridge as a nose bridge connection point, and determining a point on the fourth contour closest to a center point of an ear of the ear support area as an ear connection point;

[0085] Connecting the nose bridge center point and the nose bridge connection point to obtain a nose bridge support line, and connecting the ear center point and the ear connection point to obtain an ear support line;

[0086] obtaining a first area of ​​the first carrier region and a second area of ​​the second carrier region, and summing the first area and the second area to obtain a total carrier area;

[0087] Obtaining an expansion adjustment coefficient according to a ratio of the total area of ​​the carrier to a preset area, and obtaining a support area expansion distance based on a product of a preset support area distance and the expansion adjustment coefficient;

[0088] With the nose bridge support line and the ear support line as the center, expansion processing is performed to the left and right sides of the nose bridge support line and the ear support line according to the support area expansion distance to obtain the nose bridge connection area and the ear connection area.

[0089] According to a third aspect of the present disclosure, an electronic device is provided, including:

[0090] processors, memory and computer programs;

[0091] a memory configured to store the computer program;

[0092] The processor is configured to execute the computer program stored in the memory to implement the target image processing method based on the imager in the aforementioned embodiment.

[0093] According to a fourth aspect of the embodiments of the present disclosure, a readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the imager-based target image processing method described in the aforementioned embodiments is configured to be implemented.

[0094] The beneficial effects of the present disclosure are as follows:

[0095] 1. The present disclosure can automatically customize multiple parts of the tumor localization guide plate in combination with the patient's scan data, thereby improving the customization efficiency of the tumor localization guide plate. When generating a guide plate model corresponding to a corresponding patient, the present disclosure will first obtain the first carrier area corresponding to the tumor section on the virtual head model and the second carrier area corresponding to the surgical area based on the patient's corresponding virtual head model, and will connect the first carrier area and the second carrier area through the bracket connection area. In order to support the connected carrier area, the present disclosure will also generate the corresponding nose bridge connection area and ear connection area to support and connect them. In this way, not only can the specific position of the tumor section and the specific position of the surgical area be determined by the carrier area, but the carrier area can also be supported by the nose bridge connection area and the ear connection area, so that the obtained guide plate model can be positioned and fixed on the patient's head. And when obtaining each corresponding area, the present disclosure will determine its corresponding reference data based on the actual function of each area. For example, when obtaining the bracket connection area, the present disclosure will determine the number and expansion width of the bracket connection area based on the circumference of the carrier area, so that the obtained bracket connection area can better connect the first carrier area and the second carrier area, and improve the stability of the connection between the first carrier area and the second carrier area. When obtaining the nose bridge connection area and the ear connection area, the present disclosure will determine the expansion width of the nose bridge connection area and the ear connection area based on the area of ​​the carrier area, so that the obtained nose bridge connection area and the ear connection area can better support the carrier area. In this way, the data basis for obtaining each area is different, so that different basic data can be configured for each area according to its different functions, thereby realizing customized processing of the positioning guide.

[0096] 2. When obtaining the first carrier area, the present disclosure obtains the first contour corresponding to the outermost tumor contour in the tumor cross-section image on the virtual head model, and then adjusts the expansion distance corresponding to the first contour based on the tumor cross-section area in the tumor cross-section image. When the tumor cross-section area is larger, the corresponding expansion distance will be set larger accordingly, so that the first carrier area obtained based on the first expansion distance will also be larger, so that the guide carrier area generated based on the first carrier area will also be larger, so that when the doctor circles the tumor contour on the patient's head based on the guide model, the vibration of the guide can be reduced, and the stability when outlining the tumor contour can be improved. When obtaining the second carrier area, the present disclosure sends the virtual head model containing the first carrier area to the editing end, and then determines the corresponding second carrier area based on the third contour input by the editing end. The tumor cross-section contour corresponding to the first carrier area can provide the editing end with a corresponding reference when outlining the third contour corresponding to the surgical area.

[0097] 3. When obtaining the support connection area, the present disclosure determines the corresponding number and expansion width of the support connection area based on the number of pixels of the second contour corresponding to the first carrier area. This can improve the stability of the connection between the first carrier area and the second carrier area when the support connection area is used to connect the first carrier area and the second carrier area. When obtaining the nose bridge connection area and the ear connection area, the present disclosure determines the expansion width of the nose bridge connection area and the ear connection area based on the total area of ​​the first carrier area and the second carrier area. This can provide better support for the carrier area when the nose bridge connection area and the ear connection area are used to connect the carrier area. BRIEF DESCRIPTION OF THE DRAWINGS

[0098] FIG1 is a flow chart of a target image processing method based on an imager provided in an embodiment of the present disclosure;

[0099] FIG2 is a schematic diagram of a first carrier region and a second carrier region provided in an embodiment of the present disclosure;

[0100] FIG3 is a schematic structural diagram of a target image processing system based on an imager provided by an embodiment of the present disclosure;

[0101] FIG4 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0102] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.

[0103] Referring to Figure 1, it is a flow chart of a target image processing method based on an imager provided by an embodiment of the present disclosure. The execution subject of the method shown in Figure 1 may be software and / or hardware devices. The execution subject of the present application may include but is not limited to at least one of the following: user equipment, network equipment, etc. Among them, user equipment may include but is not limited to computers, smart phones, personal digital assistants (PDAs) and the electronic devices mentioned above. Network equipment may include but is not limited to a single network server, a server group consisting of multiple network servers, or a cloud based on cloud computing consisting of a large number of computers or network servers, wherein cloud computing is a type of distributed computing, a super virtual computer composed of a group of loosely coupled computers. This embodiment does not impose any restrictions on this. It includes steps S101 to S104, as follows:

[0104] S1: Receive three-dimensional CT information uploaded by a management terminal, construct a corresponding first virtual head model and a virtual tumor model based on the three-dimensional CT information, obtain a tumor positioning point in the virtual tumor model and multiple preset positioning points located on the outer surface of the first virtual head model, and calculate a first phase difference distance between the tumor positioning point and each of the preset positioning points.

[0105] In actual applications, since the three-dimensional CT information of each patient may be different, the present disclosure will first construct a first virtual head model and a virtual tumor model corresponding to the corresponding patient based on the three-dimensional CT information uploaded by the management end, and then calculate the first phase difference distance between the tumor positioning point and each preset positioning point based on the tumor positioning point in the virtual tumor model and multiple preset positioning points located on the outer surface of the first virtual head model, so that the corresponding guide plate model can be constructed based on the preset positioning point closest to the tumor positioning point in the future, so that the relative position of the constructed guide plate model and the tumor is better.

[0106] Based on the above embodiment, the specific implementation of step S1 can be:

[0107] S11: Send the first virtual head model to the physician terminal, and receive the positioning points selected by the physician terminal on the first virtual head model as preset positioning points.

[0108] In actual applications, the above-mentioned preset positioning points can be selected in advance by the doctor's side according to actual conditions. Since the three-dimensional CT information of each patient may be different, the doctor's side can also make corresponding selections according to the first virtual head model corresponding to each patient when selecting the preset positioning points.

[0109] S12: Obtain a tumor center point of the virtual tumor model as a tumor positioning point, as well as a first coordinate corresponding to the tumor positioning point and a second coordinate corresponding to each of the preset positioning points, and calculate a first phase difference distance between the tumor positioning point and each of the preset positioning points based on the first coordinate and the second coordinate.

[0110] When selecting the tumor positioning point, the tumor center point of the virtual tumor model can be used as the tumor positioning point.

[0111] Among them, when calculating the first phase difference distance between the tumor positioning point and each preset positioning point, it can be calculated based on their three-dimensional coordinates. The calculation method is similar to the method of calculating the distance between three-dimensional coordinates in the related art. The present disclosure will not elaborate on it here. The above-mentioned first coordinates and second coordinates both refer to three-dimensional coordinates.

[0112] In this way, a corresponding first virtual head model and a virtual tumor model can be constructed for different patients based on their three-dimensional CT information, so that a matching guide plate model can be constructed for them based on the first virtual head model and the virtual tumor model.

[0113] S2: Obtain a preset positioning point with a minimum first phase difference distance as a target positioning point, connect the tumor positioning point and the target positioning point to obtain a mapping direction, determine a target section view perpendicular to the mapping direction based on the mapping direction, and determine a first contour on a first virtual head model corresponding to the tumor section contour in the target section view based on the target section view and the mapping direction.

[0114] After obtaining the first phase difference between the tumor positioning point and each preset positioning point, the present disclosure will use the preset positioning point with the smallest first phase difference as the target positioning point, and then obtain a target cross-sectional view of the tumor based on the target positioning point. Then, through the target cross-sectional view, a first contour corresponding to the tumor cross-sectional contour in the target cross-sectional view is obtained on the first virtual head model, thereby obtaining the tumor contour corresponding to the tumor cross-sectional contour on the first virtual head model, that is, the first contour.

[0115] When obtaining a target cross-sectional view of a tumor based on a target positioning point, the present disclosure first obtains a mapping direction based on the target positioning point and the tumor positioning point, and then obtains a target cross-sectional view perpendicular to the mapping direction based on the mapping direction.

[0116] Specifically, based on the above embodiment, the specific implementation of step S2 may be:

[0117] S21, obtaining a preset positioning point with the smallest distance difference as a selected positioning point, sending the selected positioning point to the physician end, receiving determination information based on the selected positioning point by the physician end, and determining the selected positioning point as a target positioning point based on the determination information.

[0118] After obtaining the preset positioning point with the smallest distance difference, the present invention will send the preset positioning point to the physician for confirmation. After receiving the confirmation information from the physician, the present invention will use the corresponding preset positioning point as the target positioning point. It is worth mentioning that in some cases, if the physician determines that the selected preset positioning point does not meet the corresponding requirements, it can actively determine another preset positioning point as the target positioning point.

[0119] S22, connecting the tumor positioning point and the target positioning point to obtain a mapping direction, determining a section perpendicular to the mapping direction, and cutting the virtual tumor model along the mapping direction based on the section to obtain a plurality of tumor section images.

[0120] In practical applications, a mapping direction can be obtained by connecting the tumor location point and the target location point. Multiple sections perpendicular to the mapping direction can then be determined. Using these sections, the virtual tumor model can be sliced ​​multiple times in the mapping direction to obtain multiple tumor section images perpendicular to the mapping direction. It will be appreciated that the obtained tumor section images can include areas where the sections overlap with the virtual tumor model. Through this approach, this solution can generate multiple mapping images corresponding to the target location point direction.

[0121] S23, extracting the tumor section contours corresponding to the tumor section images, and obtaining the tumor section image corresponding to the tumor section contour with the largest contour area as the target section image.

[0122] When extracting the tumor cross-sectional contours corresponding to each tumor cross-sectional image, the outermost tumor contour in each tumor cross-sectional image can be extracted using contour extraction techniques known in the relevant art. When calculating the area corresponding to the tumor cross-sectional contours, the contour area corresponding to each tumor cross-sectional contour can be obtained by counting the number of pixels in the tumor cross-sectional contours.

[0123] The tumor section image corresponding to the tumor section contour with the largest contour area is obtained as the target section image so that when a first contour corresponding to the tumor section on the first virtual head model is subsequently obtained based on the target section image, the obtained first contour can be larger.

[0124] S24: Determine a first contour on the first virtual head model corresponding to the tumor section contour in the target section image based on the target section image and the mapping direction.

[0125] In some embodiments, the first contour corresponding to the tumor section contour in the target section image on the first virtual head model may be determined through steps S241 to S242 as follows:

[0126] S241 , obtaining the outermost contour points of the tumor section contour corresponding to the target section image as starting points, and generating multiple contour lines with each of the starting points as a starting point and the mapping direction as an extension direction.

[0127] It is understandable that the outermost contour corresponding to the target cross-section image is composed of multiple pixel points. Therefore, when obtaining the cross-section contour corresponding to the target cross-section contour on the first virtual head model, the present disclosure uses the outermost contour point of the tumor cross-section contour corresponding to the target cross-section image as the starting point, generates contour lines corresponding to each outer contour point in the mapping direction, and then subsequently obtains the contour points corresponding to the outermost contour points of the tumor cross-section contour corresponding to the target cross-section image on the first virtual head model based on these contour lines, and generates the corresponding tumor cross-section contour on the first virtual head model based on these contour points.

[0128] S242: Determine intersection points of the contour lines on the outer surface of the first virtual head model as target contour points, and generate a first contour corresponding to the target section image on the first virtual head model according to the multiple target contour points corresponding to the first virtual head model.

[0129] After obtaining multiple contour lines, the present disclosure determines the intersection of each contour line on the outer surface of the first virtual head model as a target contour point, and then generates a first contour corresponding to the tumor section contour in the target section image on the first virtual head model based on these target contour points.

[0130] S3: Determine a second contour based on the first extended distance and the first contour, determine a second virtual head model including a first carrier area based on the first contour and the second contour, send the second virtual head model to the editing end, receive a third contour input by the user based on the editing end, determine a fourth contour based on the second extended distance and the third contour, determine a second carrier area based on the third contour and the fourth contour, and update the second virtual head model based on the second carrier area to obtain an updated second virtual head model.

[0131] See Figure 2, which is a schematic diagram of the first carrier area and the second carrier area provided in an embodiment of the present disclosure. The above-mentioned first carrier area is the carrier area corresponding to the tumor contour when generating the guide plate, and the second carrier area is the carrier area corresponding to the surgical contour when generating the guide plate.

[0132] After obtaining the first outline, the present disclosure will also expand the first outline to obtain the second outline, obtain the first carrier area based on the first outline and the second outline, and send the second virtual head model containing the first carrier area to the editing end, determine the fourth outline through the third outline input by the editing end, and thus obtain the second carrier area based on the third outline and the fourth outline.

[0133] Specifically, based on the above embodiment, the specific implementation of "determining the second outline according to the first expansion distance and the first outline, and determining the second virtual head model including the first carrier area according to the first outline and the second outline" in step S3 can be:

[0134] S31, obtaining the tumor contour area corresponding to the target section image, obtaining a distance adjustment coefficient according to the ratio of the tumor contour area to a preset contour area, and obtaining a first expansion distance based on the product of a reference expansion distance and the distance adjustment coefficient.

[0135] It can be understood that when generating the first expansion distance, the present disclosure will calculate it based on the tumor contour area corresponding to the target cross-sectional image. When the tumor contour area corresponding to the target cross-sectional image is larger, the corresponding first expansion distance will also be larger, and the first carrier area subsequently obtained based on the first expansion distance will also be larger, so that the guide plate area corresponding to the tumor contour generated based on the first carrier area will also be larger, so that the doctor can be more stable when circling the tumor contour on the patient's head based on the guide plate.

[0136] S32, taking multiple target contour points corresponding to the first contour as a reference, expanding outward by a first expansion distance to obtain multiple first expansion points, generating a second contour based on the multiple first expansion points, determining the area enclosed by the first contour and the second contour as a first carrier area, and updating the first virtual head model based on the first carrier area to obtain a second virtual head model.

[0137] After obtaining the first expansion distance, the present disclosure will use multiple target contour points on the first contour as base points, expand the first expansion distance outward to obtain multiple first expansion points, and then generate the second contour based on these first expansion points, and generate the first carrier area based on the first contour and the second contour.

[0138] Based on the above embodiment, a specific implementation of step S3 of "sending the second virtual head model to the editing end, receiving the third outline input by the user based on the editing end, determining a fourth outline based on the second extended distance and the third outline, determining a second carrier area based on the third and fourth outlines, and updating the second virtual head model based on the second carrier area to obtain an updated second virtual head model" may be:

[0139] S33: Send the second virtual head model to the editing end, receive editing information sent by the user based on the editing end, and in response to the editing information, retrieve a transparent layer corresponding to the second virtual head model and overlay it on the second virtual head model.

[0140] After obtaining the first carrier area, the present disclosure will also determine the second carrier area corresponding to the surgical area based on the first carrier area. Specifically, the present disclosure will send the second virtual head contour containing the first carrier area to the editing end, and then obtain the fourth contour based on the third contour input by the editing end, thereby obtaining the second carrier area based on the third contour and the fourth contour.

[0141] When obtaining the third outline input by the editing end, the present disclosure will retrieve a transparent layer corresponding to the second virtual head model based on the editing information input by the editing end and superimpose it on top of the second virtual head model, and then subsequently obtain the third outline based on the editing information on the transparent layer input by the editing end.

[0142] S34: Acquire contour information input by the user based on the transparent layer, and obtain a third contour on the second virtual head model according to the contour information.

[0143] When obtaining the contour information input by the user based on the transparent layer, the contour information may be obtained based on the trigger trace input by the user based on the editing end, and then the third contour may be obtained based on the contour information.

[0144] S35, obtain a preset expansion distance as the second expansion distance, take the multiple contour points corresponding to the third contour as a reference, expand the second expansion distance outward to obtain multiple second expansion points, generate a fourth contour based on the multiple second expansion points, and determine the area enclosed by the third contour and the fourth contour as the second carrier area.

[0145] In some embodiments, when obtaining the second expansion distance, the preset expansion distance can be used as the second expansion distance, and then the third contour is expanded outward according to the second expansion distance to obtain the fourth contour, and the second carrier area on the second virtual head model is obtained based on the third contour and the fourth contour.

[0146] In other embodiments, the second extended distance may also be set accordingly with reference to the above-mentioned method of generating the first extended distance.

[0147] S36: Update the second virtual head model based on the second carrier area to obtain an updated second virtual head model.

[0148] In this way, the first carrier area corresponding to the tumor outline and the second carrier area corresponding to the surgical area outline on the second virtual head model can be obtained, which can provide corresponding references for doctors when locating tumors.

[0149] S4: Generate a connecting support area, connect the second contour and the third contour based on the connecting support area, determine the nose bridge support area and the ear support area according to the updated second virtual head model, and generate a nose bridge connection area corresponding to the nose bridge support area and an ear connection area corresponding to the ear support area.

[0150] After obtaining the first carrier area and the second carrier area, the present disclosure will also connect the first carrier area and the second carrier area accordingly, so that the first carrier area and the second carrier area can be connected to form a complete carrier area, and in order to allow the guide plate generated based on the first carrier area and the second carrier area to be positioned and fixed on the patient's head, the present disclosure will also generate a nose bridge connection area and an ear connection area to be connected to the second carrier area, so that the generated guide plate model can be positioned and fixed accordingly through the patient's nose bridge and ear.

[0151] Based on the above embodiment, a specific implementation of "generating a connection support area, and connecting the second outline and the third outline based on the connection support area" in step S4 may be:

[0152] S41, counting the number of first contour pixel points of the second contour, obtaining an adjustment coefficient based on the ratio of the number of first contour pixel points to the preset number of pixel points, obtaining the number of brackets based on the rounded-up value of the product of the preset number of brackets and the adjustment coefficient, and obtaining the bracket extension distance based on the rounded-up value of the product of the preset extension distance and the adjustment coefficient.

[0153] It can be understood that the more pixel points the second contour has, the longer the circumference of the second contour will be. Therefore, in order to improve the stability when the first carrier area and the second carrier area are connected, the corresponding number of brackets and the bracket extension distance can be set larger, so that the first carrier area and the second carrier area can be more stable when connected.

[0154] S42, obtaining a first spacing distance according to the ratio of the number of pixels of the first contour to the number of the brackets, determining a plurality of first connection points on the second contour based on the first spacing distance, and obtaining second connection points on the third contour corresponding to each first connection point.

[0155] The first spacing distance refers to the spacing distance between two adjacent first connection points on the second contour, which can be obtained by the ratio of the number of pixel points in the first contour to the number of brackets.

[0156] In some embodiments, a plurality of first connection points on the second contour and a second connection point on the third contour corresponding to each first connection point may be determined by the following steps:

[0157] S421, obtain any contour pixel point on the second contour as the initial connection point, take the initial connection point as the starting point, obtain the contour pixel points at the first interval distance on the second contour in a clockwise direction as the first connection points, and add a corresponding first serial number from small to large to each first connection point according to the acquisition order.

[0158] In some embodiments, the plurality of first connection points on the second contour may be sequentially acquired in a clockwise direction according to the above method. In other embodiments, the plurality of first connection points on the second contour may also be sequentially acquired in a counterclockwise direction.

[0159] When adding the first serial number, the corresponding first serial number can be added to each first connection point in the order of acquisition according to Arabic numerals. For example, the corresponding first serial number can be added to each first connection point in the order of 1, 2, 3...

[0160] It can be understood that the reason for adding the first serial number to each first connection point is to subsequently match the first connection point on the second contour with the second connection point on the third contour one by one according to the serial number, obtain the connecting line through the corresponding connection point, and then obtain the corresponding connecting bracket area through the connecting line.

[0161] S422: Count the number of second outline pixels of the third outline, and obtain a second spacing distance according to a ratio of the number of second outline pixels to the number of brackets.

[0162] Similarly, when obtaining the second spacing distance between adjacent second connection points on the third contour, it can also be obtained based on the ratio of the number of second contour pixel points of the third contour to the number of brackets.

[0163] S423, obtain the contour pixel point closest to the initial connection point on the third contour as the starting connection point, and use the starting connection point as the starting point to obtain the contour pixel points at the second interval distance on the third contour in a clockwise direction as the second connection points, and add a corresponding second serial number from small to large to each second connection point according to the acquisition order.

[0164] It is understandable that since the second contour and the third contour may both be irregular, in order to correspond the first connection point and the second connection point, when obtaining the second connection point, a corresponding second serial number can also be added to each second connection point in the order of acquisition.

[0165] Among them, when obtaining the starting connection point on the third contour corresponding to the initial connection point on the second contour, the contour point on the third contour closest to the starting connection point can be obtained as the starting connection point, and then the second connection point on the third contour can be obtained in the same way as obtaining the first connection point.

[0166] It is worth mentioning that when adding a second serial number to each second connection point, the direction of acquisition must be consistent with the direction when obtaining the first connection point, for example, both are clockwise, and when adding the second serial number, it also needs to correspond to the first serial number. For example, when the first serial number is an Arabic numeral, the second serial number can also be an Arabic numeral, and the second serial number can be added in the same way as the first serial number. For example, the corresponding second serial number can be added to each second connection point in the order of 1, 2, 3...

[0167] S424: Match the initial connection point with the starting connection point, and obtain multiple groups of corresponding first connection points and second connection points based on the first serial number and the second serial number.

[0168] When acquiring the corresponding first connection points and second connection points, the first connection points and second connection points corresponding to the first serial number and the second serial number may be taken as a group of corresponding connection points.

[0169] S43, connecting the corresponding first connection point and the second connection point to obtain multiple connection lines, taking the connection line as the center, expanding to the left and right sides of the connection line according to the bracket expansion distance to obtain multiple connection bracket areas, and connecting the second outline and the third outline based on the connection bracket area.

[0170] After obtaining multiple groups of corresponding first connection points and second connection points, they can be connected to obtain multiple connection lines, and then the left and right sides of each connection line are expanded according to the bracket expansion distance to obtain the left and right expansion lines corresponding to each connection line. Based on these two expansion lines, the bracket connection area corresponding to each connection line is obtained, and finally the first carrier area and the second carrier area are connected through the obtained multiple bracket connection areas.

[0171] By adopting the above method, the stability when the first carrier region and the second carrier region are connected can be improved.

[0172] Based on the above embodiment, the specific implementation of "determining the nose bridge support area and the ear support area according to the updated second virtual head model, and generating the nose bridge connection area corresponding to the nose bridge support area and the ear connection area corresponding to the ear support area" in step S4 can be:

[0173] S44, determining that the area where the nose bridge is located in the updated second virtual head model is the nose bridge support area, and the areas where the two ears are located are the ear undetermined areas, obtaining the ear center points of each of the ear undetermined areas, calculating the second phase difference distance between each of the ear center points and the tumor positioning point, and obtaining the ear undetermined area corresponding to the ear center point with the smallest second phase difference distance as the ear support area.

[0174] When obtaining the nose bridge support area, the area where the nose bridge is located on the second virtual head model can be obtained as the nose bridge support area. In actual application, the areas corresponding to the nose bridge and ears on the second virtual head model can be set accordingly in advance by the staff.

[0175] It can be understood that, generally speaking, there are two areas corresponding to the ear. Therefore, when determining the ear support area, it can be obtained based on the second phase difference distance between the ear center point corresponding to each ear and the tumor positioning point. The ear area corresponding to the ear center point with the smallest second phase difference distance is obtained as the ear support area. In this way, the obtained ear support area can be closer to the tumor.

[0176] S45, obtaining the center point of the nose bridge of the nose bridge support area, determining the point on the fourth contour closest to the center point of the nose bridge as the nose bridge connection point, and determining the point on the fourth contour closest to the center point of the ear of the ear support area as the ear connection point.

[0177] When determining the nose bridge connection area and ear connection area connected to the carrier area based on the nose bridge support area and the ear support area, the point on the fourth contour closest to the center point of the nose bridge can be obtained as the nose bridge connection point, and the point on the fourth contour closest to the center point of the ear support area can be used as the ear connection point. Then, the corresponding nose bridge connection area is generated based on the nose bridge connection point and the nose bridge center point, and the corresponding ear connection area is generated based on the ear center point and the ear connection point.

[0178] S46, connecting the nose bridge center point and the nose bridge connection point to obtain a nose bridge support line, and connecting the ear center point and the ear connection point to obtain an ear support line.

[0179] Similar to the method of obtaining the connecting bracket area, when obtaining the nose bridge connection area and the ear connection area, the center point of the nose bridge and the nose bridge connection point can be connected to obtain the nose bridge support line, and the center point of the ear and the ear connection point can be connected to obtain the ear support line, and then the nose bridge support line and the ear support line can be expanded accordingly to obtain the nose bridge connection area and the ear connection area.

[0180] S47 , obtaining a first area of ​​the first carrier region and a second area of ​​the second carrier region, and summing the first area and the second area to obtain a total carrier area.

[0181] When obtaining the extension distances corresponding to the nose bridge support line and the ear support line, they can be obtained based on the total area of ​​the first carrier area and the second carrier area.

[0182] It can be understood that when the total area of ​​the carrier is larger, the area it needs to support may also be larger, so the corresponding connection area can be set accordingly larger, and the size of the connection area is corresponding to the expansion distance, so the corresponding expansion distance can be set accordingly larger in the future, so that the obtained nose bridge connection area and ear connection area will also be correspondingly larger, thereby providing better support for the carrier area.

[0183] S48: Obtain an expansion adjustment coefficient according to a ratio of the total area of ​​the carrier to a preset area, and obtain a support area expansion distance based on a product of a preset support area distance and the expansion adjustment coefficient.

[0184] Specifically, the expansion adjustment coefficient can be obtained by the ratio of the total area of ​​the carrier to the preset area, and then the preset support area distance is adjusted according to the expansion adjustment coefficient to obtain the support area expansion distance.

[0185] S49, taking the nose bridge support line and the ear support line as the center, expand to the left and right sides of the nose bridge support line and the ear support line according to the support area expansion distance to obtain the nose bridge connection area and the ear connection area.

[0186] Similarly, when obtaining the nose bridge connection area and the ear connection area, the left and right sides of the nose bridge support line and the ear support line can be expanded respectively according to the support area expansion distance to obtain the nose bridge connection area and the ear connection area.

[0187] Through the above method, the expansion distance of the nose bridge connection area and the ear connection area can be adjusted accordingly according to the area size of the carrier area, so that the obtained nose bridge connection area and ear connection area can provide better support for the carrier area.

[0188] S5, generate a guide plate bottom layer image based on the first carrier area, the second carrier area, the connecting bracket area, the nose bridge connecting area and the ear connecting area, receive the user's stretching information, stretch the guide plate bottom layer image outward according to the stretching information to obtain a guide plate printing model, and send the guide plate printing model to the printing end.

[0189] After obtaining the first carrier area, the second carrier area, the connecting bracket area, the nose bridge connecting area and the ear connecting area, the guide plate bottom layer image can be generated based on them, and then the guide plate bottom layer image can be stretched according to the stretching information input by the user to obtain the guide plate printing model, so that the guide plate printing model can be sent to the printing end for printing.

[0190] 3 is a schematic diagram showing the structure of a target image processing system based on an imager according to an embodiment of the present disclosure. The target image processing system based on an imager includes:

[0191] a distance module configured to receive three-dimensional CT information uploaded by the management terminal, construct a corresponding first virtual head model and a virtual tumor model based on the three-dimensional CT information, obtain a tumor location point in the virtual tumor model and a plurality of preset location points located on the outer surface of the first virtual head model, and calculate a first distance difference between the tumor location point and each of the preset location points;

[0192] a mapping module configured to obtain a first preset positioning point with a minimum distance difference as a target positioning point, connect the tumor positioning point and the target positioning point to obtain a mapping direction, determine a target cross-sectional view perpendicular to the mapping direction based on the mapping direction, and determine a first contour on a first virtual head model corresponding to the tumor cross-sectional contour in the target cross-sectional view based on the target cross-sectional view and the mapping direction;

[0193] an updating module configured to determine a second contour based on the first extended distance and the first contour, determine a second virtual head model including a first carrier area based on the first contour and the second contour, send the second virtual head model to an editing terminal, receive a third contour input by a user based on the editing terminal, determine a fourth contour based on the second extended distance and the third contour, determine a second carrier area based on the third contour and the fourth contour, and update the second virtual head model based on the second carrier area to obtain an updated second virtual head model;

[0194] a connection module configured to generate a connection support area, connect the second contour and the third contour based on the connection support area, determine a nose bridge support area and an ear support area according to the updated second virtual head model, and generate a nose bridge connection area corresponding to the nose bridge support area and an ear connection area corresponding to the ear support area;

[0195] The guide plate module is configured to generate a guide plate bottom layer image based on the first carrier area, the second carrier area, the connecting bracket area, the nose bridge connecting area and the ear connecting area, receive the user's stretching information, stretch the guide plate bottom layer image outward according to the stretching information to obtain a guide plate printing model, and send the guide plate printing model to the printing end.

[0196] The device of the embodiment shown in FIG3 can be correspondingly configured to execute the steps of the method embodiment shown in FIG1 , and its implementation principles and technical effects are similar, which will not be described in detail here.

[0197] 4 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present disclosure. The electronic device 40 includes: a processor 41, a memory 42 and a computer program;

[0198] The memory 42 is configured to store the computer program, which may also be a flash memory. The computer program is, for example, an application program or a functional module for implementing the above method.

[0199] The processor 41 is configured to execute the computer program stored in the memory to implement the various steps performed by the device in the above method. For details, please refer to the relevant description in the above method embodiment.

[0200] Optionally, the memory 42 may be independent or integrated with the processor 41 .

[0201] When the memory 42 is a device independent of the processor 41, the device may further include:

[0202] The bus 43 is configured to connect the memory 42 and the processor 41 .

[0203] The present disclosure also provides a readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it is configured to implement the methods provided in the various embodiments described above.

[0204] Among them, the readable storage medium can be a computer storage medium or a communication medium. Communication media include any medium that facilitates the transmission of computer programs from one place to another. Computer storage media can be any available medium that can be accessed by a general-purpose or special-purpose computer. For example, a readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be an integral part of the processor. The processor and the readable storage medium can be located in an application-specific integrated circuit (ASIC). In addition, the ASIC can be located in a user device. Of course, the processor and the readable storage medium can also exist in a communication device as discrete components. The readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0205] The present disclosure also provides a program product, which includes execution instructions stored in a readable storage medium. At least one processor of a device can read the execution instructions from the readable storage medium, and at least one processor executes the execution instructions so that the device implements the methods provided in the various embodiments described above.

[0206] In the embodiments of the above-mentioned devices, it should be understood that the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present disclosure may be directly implemented by a hardware processor or implemented by a combination of hardware and software modules in the processor.

[0207] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure 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 disclosure. Industrial Applicability

[0208] The present disclosure provides an imager-based target image processing method, system, electronic device, and readable storage medium, which can automatically customize multiple parts of a tumor localization guide in combination with patient scan data, thereby improving the customization efficiency of the tumor localization guide.

Claims

1. A target image processing method based on an imager, characterized in that: include: receiving three-dimensional CT information uploaded by the management terminal, constructing a corresponding first virtual head model and a virtual tumor model based on the three-dimensional CT information, obtaining a tumor positioning point in the virtual tumor model and a plurality of preset positioning points located on the outer surface of the first virtual head model, and calculating a first phase difference distance between the tumor positioning point and each of the preset positioning points; obtaining a preset positioning point with a minimum first distance difference as a target positioning point, connecting the tumor positioning point and the target positioning point to obtain a mapping direction, determining a target section image perpendicular to the mapping direction according to the mapping direction, and determining a first contour on a first virtual head model corresponding to the tumor section contour in the target section image based on the target section image and the mapping direction; determining a second contour based on the first extended distance and the first contour, determining a second virtual head model including a first carrier area based on the first contour and the second contour, sending the second virtual head model to an editing terminal, receiving a third contour input by a user based on the editing terminal, determining a fourth contour based on the second extended distance and the third contour, determining a second carrier area based on the third contour and the fourth contour, and updating the second virtual head model based on the second carrier area to obtain an updated second virtual head model; generating a connecting support area, connecting the second contour and the third contour based on the connecting support area, determining a nose bridge support area and an ear support area according to the updated second virtual head model, and generating a nose bridge connection area corresponding to the nose bridge support area and an ear connection area corresponding to the ear support area; A guide plate bottom layer image is generated based on the first carrier area, the second carrier area, the connecting bracket area, the nose bridge connecting area and the ear connecting area, and the user's stretching information is received. The guide plate bottom layer image is stretched outward according to the stretching information to obtain a guide plate printing model, and the guide plate printing model is sent to the printing end.

2. The method according to claim 1, characterized in that Acquiring a tumor positioning point in the virtual tumor model and a plurality of preset positioning points located on the outer surface of the first virtual head model, and calculating a first phase difference distance between the tumor positioning point and each of the preset positioning points, including: Sending the first virtual head model to the physician terminal, and receiving the positioning points selected by the physician terminal on the first virtual head model as preset positioning points; A tumor center point of the virtual tumor model is obtained as a tumor positioning point, as well as a first coordinate corresponding to the tumor positioning point and a second coordinate corresponding to each of the preset positioning points, and a first phase difference distance between the tumor positioning point and each of the preset positioning points is calculated based on the first coordinate and the second coordinate.

3. The method according to claim 2, characterized in that The method includes obtaining a preset positioning point with the smallest distance difference as a target positioning point, connecting the tumor positioning point and the target positioning point to obtain a mapping direction, determining a target section view perpendicular to the mapping direction according to the mapping direction, and determining a first contour on a first virtual head model corresponding to the tumor section contour in the target section view based on the target section view and the mapping direction, including: Obtaining a preset positioning point with the smallest distance difference as a selected positioning point, sending the selected positioning point to a physician terminal, receiving determination information based on the selected positioning point by the physician terminal, and determining the selected positioning point as a target positioning point based on the determination information; connecting the tumor positioning point and the target positioning point to obtain a mapping direction, determining a section perpendicular to the mapping direction, and cutting the virtual tumor model along the mapping direction based on the section to obtain a plurality of tumor section images; Extracting the tumor section contours corresponding to the tumor section images, and obtaining the tumor section image corresponding to the tumor section contour with the largest contour area as the target section image; A first contour corresponding to the tumor section contour in the target section image is determined on the first virtual head model based on the target section image and the mapping direction.

4. The method according to claim 3, characterized in that Extracting the tumor section contour corresponding to each of the tumor section images includes: The number of pixels in the tumor section contour is counted, and the contour area corresponding to each tumor section contour is obtained according to the number of pixels in the tumor section contour.

5. The method according to claim 3 or 4, characterized in that Determining a first contour on a first virtual head model corresponding to a tumor section contour in the target section image based on the target section image and the mapping direction includes: Obtaining the outermost contour point of the tumor section contour corresponding to the target section image as a starting point, and generating multiple contour lines with each of the starting points as a starting point and the mapping direction as an extension direction; The intersection points of the contour lines on the outer surface of the first virtual head model are determined as target contour points, and a first contour corresponding to the target section image on the first virtual head model is generated according to the multiple target contour points corresponding to the first virtual head model.

6. The method according to claim 5, characterized in that Determining a second outline according to the first extended distance and the first outline, and determining a second virtual head model including a first carrier area according to the first outline and the second outline, comprising: Obtaining a tumor contour area corresponding to the target section image, obtaining a distance adjustment coefficient based on a ratio of the tumor contour area to a preset contour area, and obtaining a first expansion distance based on a product of a reference expansion distance and the distance adjustment coefficient; Taking multiple target contour points corresponding to the first contour as a reference, multiple first extension points are obtained after expanding outward by a first extension distance, a second contour is generated based on the multiple first extension points, and the area enclosed by the first contour and the second contour is determined to be a first carrier area. Based on the first carrier area, the first virtual head model is updated to obtain a second virtual head model.

7. The method according to claim 6, characterized in that The method includes sending the second virtual head model to an editing end, receiving a third outline input by a user based on the editing end, determining a fourth outline based on the second extended distance and the third outline, determining a second carrier area based on the third and fourth outlines, and updating the second virtual head model based on the second carrier area to obtain an updated second virtual head model, including: sending the second virtual head model to an editing end, receiving editing information sent by a user based on the editing end, and in response to the editing information, retrieving a transparent layer corresponding to the second virtual head model and superimposing it on the second virtual head model; Acquiring contour information input by a user based on the transparent layer, and obtaining a third contour on the second virtual head model according to the contour information; Obtaining a preset extension distance as a second extension distance, using multiple contour points corresponding to the third contour as a reference, outwardly extending the second extension distance to obtain multiple second extension points, generating a fourth contour based on the multiple second extension points, and determining an area enclosed by the third contour and the fourth contour as a second carrier area; The second virtual head model is updated based on the second carrier area to obtain an updated second virtual head model.

8. The method according to claim 7, characterized in that Obtaining the outline information input by the user based on the transparent layer, including: A trigger trace input by a user based on the editing terminal is obtained, and the contour information is obtained according to the trigger trace.

9. The method according to claim 7 or 8, characterized in that Generating a connection support area, and connecting the second outline and the third outline based on the connection support area, comprising: Counting the number of pixels of the first contour of the second contour, obtaining an adjustment coefficient according to a ratio of the number of pixels of the first contour to a preset number of pixels, obtaining the number of brackets according to a rounded-up value of a product of a preset number of brackets and the adjustment coefficient, and obtaining the bracket extension distance according to a rounded-up value of a product of a preset extension distance and the adjustment coefficient; Obtaining a first spacing distance according to a ratio of the number of pixels of the first contour to the number of the brackets, determining a plurality of first connection points on the second contour based on the first spacing distance, and obtaining a second connection point on the third contour corresponding to each first connection point; Connect the corresponding first connection point and the second connection point to obtain multiple connection lines. With the connection line as the center, expand to the left and right sides of the connection line according to the bracket expansion distance to obtain multiple connection bracket areas. Connect the second outline and the third outline based on the connection bracket area.

10. The method according to claim 9, characterized in that Determining a plurality of first connection points on the second contour based on the first spacing distance, and obtaining a second connection point on the third contour corresponding to each first connection point, including: Obtain any contour pixel point on the second contour as an initial connection point, and starting from the initial connection point, sequentially obtain contour pixel points at a first interval distance on the second contour in a clockwise direction as first connection points, and assign a corresponding first serial number to each first connection point from small to large according to the acquisition order; Counting the number of pixels of the second contour of the third contour, and obtaining a second spacing distance according to a ratio of the number of pixels of the second contour to the number of the brackets; Obtain the contour pixel point closest to the initial connection point on the third contour as the starting connection point, and starting from the starting connection point, sequentially obtain contour pixel points at a second interval distance on the third contour in a clockwise direction as second connection points, and add a corresponding second serial number to each second connection point from small to large according to the acquisition order; The initial connection point and the starting connection point are matched, and multiple groups of corresponding first connection points and second connection points are obtained based on the first serial number and the second serial number.

11. The method according to claim 9, characterized in that Determining a plurality of first connection points on the second contour based on the first spacing distance, and obtaining a second connection point on the third contour corresponding to each first connection point, including: Obtain any contour pixel point on the second contour as an initial connection point, and starting from the initial connection point, sequentially obtain contour pixel points at a first interval distance on the second contour in a counterclockwise direction as first connection points, and add a corresponding first serial number to each first connection point from small to large according to the acquisition order; Counting the number of pixels of the second contour of the third contour, and obtaining a second spacing distance according to a ratio of the number of pixels of the second contour to the number of the brackets; Obtain the contour pixel point closest to the initial connection point on the third contour as the starting connection point, and starting from the starting connection point, sequentially obtain contour pixel points at a second interval distance on the third contour in a counterclockwise direction as second connection points, and add a corresponding second serial number to each second connection point from small to large according to the acquisition order; The initial connection point and the starting connection point are matched, and multiple groups of corresponding first connection points and second connection points are obtained based on the first serial number and the second serial number.

12. The method according to claim 10 or 11, characterized in that Determining a nose bridge support area and an ear support area according to the updated second virtual head model, and generating a nose bridge connection area corresponding to the nose bridge support area and an ear connection area corresponding to the ear support area, including: Determine, in the updated second virtual head model, an area where the nose bridge is located as the nose bridge support area, and areas where the two ears are located as the ear undetermined areas, obtain the ear center points of each of the ear undetermined areas, calculate a second phase difference distance between each of the ear center points and the tumor location point, and obtain the ear undetermined area corresponding to the ear center point with the smallest second phase difference distance as the ear support area; Obtaining a center point of the nose bridge of the nose bridge support area, determining a point on the fourth contour closest to the center point of the nose bridge as a nose bridge connection point, and determining a point on the fourth contour closest to a center point of an ear of the ear support area as an ear connection point; Connecting the nose bridge center point and the nose bridge connection point to obtain a nose bridge support line, and connecting the ear center point and the ear connection point to obtain an ear support line; obtaining a first area of the first carrier region and a second area of the second carrier region, and summing the first area and the second area to obtain a total carrier area; Obtaining an expansion adjustment coefficient according to a ratio of the total area of the carrier to a preset area, and obtaining a support area expansion distance based on a product of a preset support area distance and the expansion adjustment coefficient; With the nose bridge support line and the ear support line as the center, expansion processing is performed to the left and right sides of the nose bridge support line and the ear support line according to the support area expansion distance to obtain the nose bridge connection area and the ear connection area.

13. A target image processing system based on an imager, characterized in that: include: a distance module configured to receive three-dimensional CT information uploaded by the management terminal, construct a corresponding first virtual head model and a virtual tumor model based on the three-dimensional CT information, obtain a tumor location point in the virtual tumor model and a plurality of preset location points located on the outer surface of the first virtual head model, and calculate a first distance difference between the tumor location point and each of the preset location points; a mapping module configured to obtain a first preset positioning point with a minimum distance difference as a target positioning point, connect the tumor positioning point and the target positioning point to obtain a mapping direction, determine a target cross-sectional view perpendicular to the mapping direction based on the mapping direction, and determine a first contour on a first virtual head model corresponding to the tumor cross-sectional contour in the target cross-sectional view based on the target cross-sectional view and the mapping direction; an updating module configured to determine a second contour based on the first extended distance and the first contour, determine a second virtual head model including a first carrier area based on the first contour and the second contour, send the second virtual head model to an editing terminal, receive a third contour input by a user based on the editing terminal, determine a fourth contour based on the second extended distance and the third contour, determine a second carrier area based on the third contour and the fourth contour, and update the second virtual head model based on the second carrier area to obtain an updated second virtual head model; a connection module configured to generate a connection support area, connect the second contour and the third contour based on the connection support area, determine a nose bridge support area and an ear support area according to the updated second virtual head model, and generate a nose bridge connection area corresponding to the nose bridge support area and an ear connection area corresponding to the ear support area; The guide plate module is configured to generate a guide plate bottom layer image based on the first carrier area, the second carrier area, the connecting bracket area, the nose bridge connecting area and the ear connecting area, receive the user's stretching information, stretch the guide plate bottom layer image outward according to the stretching information to obtain a guide plate printing model, and send the guide plate printing model to the printing end.

14. The system according to claim 13, wherein: The distance module is specifically configured as follows: Sending the first virtual head model to the physician terminal, and receiving the positioning points selected by the physician terminal on the first virtual head model as preset positioning points; A tumor center point of the virtual tumor model is obtained as a tumor positioning point, as well as a first coordinate corresponding to the tumor positioning point and a second coordinate corresponding to each of the preset positioning points, and a first phase difference distance between the tumor positioning point and each of the preset positioning points is calculated based on the first coordinate and the second coordinate.

15. The system according to claim 13, wherein: The mapping module is specifically configured to: Obtaining a preset positioning point with the smallest distance difference as a selected positioning point, sending the selected positioning point to a physician terminal, receiving determination information based on the selected positioning point by the physician terminal, and determining the selected positioning point as a target positioning point based on the determination information; connecting the tumor positioning point and the target positioning point to obtain a mapping direction, determining a section perpendicular to the mapping direction, and cutting the virtual tumor model along the mapping direction based on the section to obtain a plurality of tumor section images; Extracting the tumor section contours corresponding to the tumor section images, and obtaining the tumor section image corresponding to the tumor section contour with the largest contour area as the target section image; A first contour corresponding to the tumor section contour in the target section image is determined on the first virtual head model based on the target section image and the mapping direction.

16. The system according to claim 13, wherein: The update module is specifically configured to: Obtaining a tumor contour area corresponding to the target section image, obtaining a distance adjustment coefficient based on a ratio of the tumor contour area to a preset contour area, and obtaining a first expansion distance based on a product of a reference expansion distance and the distance adjustment coefficient; Taking multiple target contour points corresponding to the first contour as a reference, outwardly expanding a first expansion distance to obtain multiple first expansion points, generating a second contour based on the multiple first expansion points, determining an area enclosed by the first contour and the second contour as a first carrier area, and updating the first virtual head model based on the first carrier area to obtain a second virtual head model; sending the second virtual head model to an editing end, receiving editing information sent by a user based on the editing end, and in response to the editing information, retrieving a transparent layer corresponding to the second virtual head model and superimposing it on the second virtual head model; Acquiring contour information input by a user based on the transparent layer, and obtaining a third contour on the second virtual head model according to the contour information; Obtaining a preset extension distance as a second extension distance, using multiple contour points corresponding to the third contour as a reference, outwardly extending the second extension distance to obtain multiple second extension points, generating a fourth contour based on the multiple second extension points, and determining an area enclosed by the third contour and the fourth contour as a second carrier area; The second virtual head model is updated based on the second carrier area to obtain an updated second virtual head model.

17. The system according to claim 13, wherein: The connection module is specifically configured as follows: Counting the number of pixels of the first contour of the second contour, obtaining an adjustment coefficient according to a ratio of the number of pixels of the first contour to a preset number of pixels, obtaining the number of brackets according to a rounded-up value of a product of a preset number of brackets and the adjustment coefficient, and obtaining the bracket extension distance according to a rounded-up value of a product of a preset extension distance and the adjustment coefficient; Obtaining a first spacing distance according to a ratio of the number of pixels of the first contour to the number of the brackets, determining a plurality of first connection points on the second contour based on the first spacing distance, and obtaining a second connection point on the third contour corresponding to each first connection point; Connecting the corresponding first connection points and the second connection points to obtain a plurality of connection lines, expanding the connection lines to the left and right sides of the connection lines according to the bracket expansion distance to obtain a plurality of connection bracket areas, and connecting the second outline and the third outline based on the connection bracket areas; Determine, in the updated second virtual head model, an area where the nose bridge is located as the nose bridge support area, and areas where the two ears are located as the ear undetermined areas, obtain the ear center points of each of the ear undetermined areas, calculate a second phase difference distance between each of the ear center points and the tumor location point, and obtain the ear undetermined area corresponding to the ear center point with the smallest second phase difference distance as the ear support area; Obtaining a center point of the nose bridge of the nose bridge support area, determining a point on the fourth contour closest to the center point of the nose bridge as a nose bridge connection point, and determining a point on the fourth contour closest to a center point of an ear of the ear support area as an ear connection point; Connecting the nose bridge center point and the nose bridge connection point to obtain a nose bridge support line, and connecting the ear center point and the ear connection point to obtain an ear support line; obtaining a first area of the first carrier region and a second area of the second carrier region, and summing the first area and the second area to obtain a total carrier area; Obtaining an expansion adjustment coefficient according to a ratio of the total area of the carrier to a preset area, and obtaining a support area expansion distance based on a product of a preset support area distance and the expansion adjustment coefficient; With the nose bridge support line and the ear support line as the center, expansion processing is performed to the left and right sides of the nose bridge support line and the ear support line according to the support area expansion distance to obtain the nose bridge connection area and the ear connection area.

18. An electronic device, characterized in that: include: processors, memory and computer programs; a memory configured to store the computer program; A processor configured to execute the computer program stored in the memory to implement the target image processing method based on an imager according to any one of claims 1 to 12.

19. A readable storage medium, wherein a computer program is stored in the readable storage medium, wherein when the computer program is executed by a processor, the computer program is configured to implement the target image processing method based on an imager according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Method for preparing cutting guide plate used for determining size of substitutional flap on surface of soft tissue by utilizing digital space reconstruction and 3D printing

    CN108354651A

  • Preparation method of head digital model and multistage guide plates based on three-dimensional reconstruction technology

    CN110664482A

  • Preparation method of guide plate for radio frequency thermocoagulation based on 3D printing

    CN117442308A

  • Target image processing method and system based on imager

    CN117838306A

  • Powder contact member and method for surface treatment of powder contact member

    KR1020200107870A