A method, device, electronic device and storage medium for image segmentation of an experimental chamber
By using pre-generated template data in the experimental cabin image segmentation to automatically perform area segmentation, the problems of low manual recognition efficiency and large errors are solved, the segmentation accuracy is improved and resource consumption is reduced.
Patent Information
- Application Number
- CN202211439609.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-17
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-11-17
AI Technical Summary
In the existing technology, the area segmentation efficiency of manual recognition of experimental cabin images is low and the error is large, resulting in a waste of resources.
By obtaining the experimental cabin image and expansion parameters, the corresponding template data is determined in the pre-generated segmentation template data, regional segmentation is performed based on the template correspondence, and the image partitioning is automatically completed.
It improves the accuracy of image segmentation, reduces the consumption of manpower and time resources, and realizes the automated segmentation process.
Smart Images

Figure CN115760877B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of image processing technology, and in particular to a method, device, electronic device and storage medium for segmenting an image of an experimental chamber. Background Art
[0002] In order to speed up the experiment, high-throughput imaging is usually used, that is, scanning multiple experimental objects at the same time, so that multiple experimental objects in the experimental chamber can be observed. For the scanned image obtained by high-throughput imaging, it is necessary to perform region segmentation processing on the scanned image to distinguish different experimental objects in the scanned image.
[0003] In the prior art, each region in the scanned image is usually manually identified and segmented manually. However, in the process of implementing the present invention, it is found that the prior art has at least the following technical problems: manual identification of each region in the scanned image is inefficient, has large errors, and requires a large amount of human resources and time resources, resulting in a waste of resources. Summary of the invention
[0004] The embodiments of the present invention provide a method, device, electronic device and storage medium for segmenting an image of an experimental chamber, so as to achieve the purpose of improving the accuracy of image segmentation and reducing the consumption of human resources and time resources.
[0005] According to one aspect of the present invention, a method for segmenting an image of an experimental chamber is provided, comprising:
[0006] Acquire a current experimental chamber image to be segmented, and dilation parameters required when segmenting the current experimental chamber image;
[0007] Determine the current segmentation template data corresponding to the expansion parameter from at least one segmentation template data generated in advance; wherein the current segmentation template data stores the template correspondence relationship between each pixel point of the experimental cabin template image and the template segmentation area to which it belongs;
[0008] Based on the template correspondence, a region segmentation operation is performed on the current experimental chamber image to obtain an image partition corresponding to the current experimental chamber image.
[0009] According to another aspect of the present invention, there is provided an experimental chamber image segmentation device, the device comprising:
[0010] A current experimental chamber image acquisition module is used to acquire the current experimental chamber image to be segmented, and the dilation parameters required when segmenting the current experimental chamber image;
[0011] A current segmentation template data determination module, used to determine the current segmentation template data corresponding to the expansion parameter from at least one segmentation template data generated in advance; wherein the current segmentation template data stores the template correspondence relationship between each pixel point of the experimental cabin template image and the template segmentation area to which it belongs;
[0012] The region segmentation operation module is used to perform a region segmentation operation on the current experimental chamber image based on the template correspondence relationship to obtain an image partition corresponding to the current experimental chamber image.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the experimental chamber image segmentation method described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the experimental chamber image segmentation method described in any embodiment of the present invention when executed.
[0018] The technical solution of the embodiment of the present invention determines the current segmentation template data corresponding to the expansion parameter in at least one pre-generated segmentation template data by acquiring the current experimental cabin image to be segmented and the expansion parameter required when segmenting the current experimental cabin image; wherein the template correspondence relationship between each pixel point of the experimental cabin template image and the template segmentation area to which it belongs is stored in the current segmentation template data; through the template correspondence relationship, the corresponding template segmentation area of each pixel point of the current experimental cabin image can be accurately determined, and the current experimental cabin image is segmented according to the template segmentation area to obtain the image partition corresponding to the current experimental cabin image. The segmentation process does not require manual recognition, has a small error, improves the accuracy of image segmentation, and reduces the consumption of human resources and time resources.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 is a flow chart of an experimental cabin image segmentation method provided according to an embodiment of the present invention;
[0022] Figure 2 is a flow chart of another experimental cabin image segmentation method provided according to an embodiment of the present invention;
[0023] Figure 3 is a schematic diagram of a process for generating segmentation template data provided according to an embodiment of the present invention;
[0024] Figure 4 is a schematic diagram of a template image provided according to an embodiment of the present invention;
[0025] Figure 5 is a schematic diagram of a process of performing region segmentation on a current experimental chamber image provided by an embodiment of the present invention;
[0026] Figure 6 is a structural schematic diagram of an experimental cabin image segmentation device provided according to an embodiment of the present invention;
[0027] Figure 7 It is a schematic diagram of the structure of an electronic device for implementing the experimental cabin image segmentation method of an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "etc." and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] Figure 1 The flowchart of a method for segmenting an image of an experimental chamber provided according to an embodiment of the present invention is shown in FIG. The method can be executed by an apparatus for segmenting an image of an experimental chamber, and the apparatus for segmenting an image of an experimental chamber can be implemented in the form of hardware and / or software.
[0031] like Figure 1 As shown, the method of this embodiment may specifically include:
[0032] S110, obtaining a current experimental chamber image to be segmented, and dilation parameters required for segmenting the current experimental chamber image.
[0033] The current experimental chamber image may be an image of the interior of the experimental chamber currently containing the experimental object. The experimental chamber proposed in this embodiment may be a high-throughput experimental chamber, that is, multiple experimental objects may be tested at the same time. The expansion parameter may be used to reflect the degree of expansion of each segmented region. For example, if the expansion parameter is 5 pixels, it means that the segmented region is expanded outward by 5 pixels.
[0034] In this embodiment, the image in the current experimental chamber to be segmented can be collected in real time to obtain the current experimental chamber image. The collection method can be to scan the current experimental chamber through a CT (Computed Tomography) device to obtain the current experimental chamber image; or, the method of obtaining the current experimental chamber image to be segmented can include: performing an electronic computed tomography operation on the experimental chamber currently containing the experimental object, and performing a three-dimensional reconstruction operation on the two-dimensional image obtained by the scan, and determining the obtained three-dimensional image as the current experimental chamber image.
[0035] Specifically, in order to facilitate the processing of the current experimental chamber image and to reflect the actual situation in the current experimental chamber more comprehensively and in detail, the two-dimensional image obtained after the electronic computed tomography operation can be subjected to a three-dimensional reconstruction operation to generate a three-dimensional image, and the three-dimensional image is determined as the current experimental chamber image.
[0036] Furthermore, before obtaining the current experimental chamber image to be segmented, a region segmentation request sent by the user terminal is received, and the region segmentation request includes an expansion parameter, so that the expansion parameter can be obtained by analyzing the region segmentation request.
[0037] S120 . Determine current segmentation template data corresponding to the expansion parameter from at least one segmentation template data generated in advance.
[0038] The current segmentation template data stores the template correspondence between each pixel of the experimental chamber template image and the template segmentation region to which it belongs. The experimental chamber template image is an image in the experimental chamber when the experimental object is not included.
[0039] Specifically, the pre-generated segmentation template data may correspond to different expansion parameters respectively; for example, the expansion parameters are 0 pixels, 5 pixels, 10 pixels, 15 pixels and 20 pixels respectively, then the segmentation template data corresponding to 0 pixels, 5 pixels, 10 pixels, 15 pixels and 20 pixels respectively may be pre-generated, and the segmentation template data corresponding to the expansion parameters may be determined as the current segmentation template data. For example, if the obtained expansion parameter is 5 pixels, then the current segmentation template data obtained after the segmented area is expanded by 5 pixels may be determined, and the current segmentation template data is used to reflect the template correspondence between each pixel of the experimental cabin template image after it is expanded by 5 pixels and the template segmentation area to which it belongs.
[0040] S130. Based on the template correspondence, perform a region segmentation operation on the current experimental chamber image to obtain an image partition corresponding to the current experimental chamber image.
[0041] In this embodiment, the image partition to which each pixel in the current experimental chamber image belongs can be determined based on the determined template correspondence contained in the current segmentation template data. Specifically, the current experimental chamber image can be subjected to a regional segmentation operation based on the determined correspondence between each pixel in the current experimental chamber image and the image partition to which it belongs. Exemplarily, the number of template segmentation regions can be 6, that is, after the regional segmentation operation is performed on the current experimental chamber image, the current experimental chamber image can be divided into 6 image partitions.
[0042] In a specific implementation, before performing a region segmentation operation on the current experimental chamber image based on the template correspondence, it also includes: determining the axial position information of the current experimental chamber image, and intercepting the current segmentation template data based on the axial position information; updating the current segmentation template data based on the template data obtained after interception, so that each pixel point contained in the updated current segmentation template data corresponds to each pixel point in the current experimental chamber image.
[0043] It should be noted that the current segmentation template data can be understood as pre-generated segmentation template data. In order to ensure that the pixel size between the current segmentation template data and the current experimental chamber image can be synchronized, thereby improving the accuracy of the segmentation operation, the current segmentation template data can be intercepted before the current experimental chamber image is segmented into regions, so as to ensure that each pixel point in the current segmentation template data obtained after interception corresponds to each pixel point in the current experimental chamber image.
[0044] Specifically, the axial position information of the current experimental chamber image can be determined based on the scanning position parameters set during electronic computed tomography scanning, and the current segmentation template data can be intercepted based on the axial position information, that is, the current template data is resampled so that each pixel point in the segmentation template data obtained after resampling corresponds to each pixel point in the current experimental chamber image, so that the image size of the segmentation template data and the current experimental chamber image are consistent; finally, the current segmentation template data is updated based on the template data obtained after interception.
[0045] The technical solution of the embodiment of the present invention determines the current segmentation template data corresponding to the expansion parameter in at least one pre-generated segmentation template data by acquiring the current experimental cabin image to be segmented and the expansion parameter required when segmenting the current experimental cabin image; wherein the template correspondence relationship between each pixel point of the experimental cabin template image and the template segmentation area to which it belongs is stored in the current segmentation template data; through the template correspondence relationship, the corresponding template segmentation area of each pixel point of the current experimental cabin image can be accurately determined, and the current experimental cabin image is segmented according to the template segmentation area to obtain the image partition corresponding to the current experimental cabin image. The segmentation process does not require manual recognition, has a small error, improves the accuracy of image segmentation, and reduces the consumption of human resources and time resources.
[0046] Figure 2 It is a flowchart of another method for experimental chamber image segmentation provided according to an embodiment of the present invention. Optionally, before obtaining the current experimental chamber image to be segmented, it also includes: scanning an empty experimental chamber without an experimental object to generate an empty experimental chamber image corresponding to the empty experimental chamber, and determining the empty experimental chamber image as the experimental chamber template image; performing regional segmentation on the experimental chamber template image to obtain at least one template segmentation region; based on a first correspondence between the template segmentation region and the pixel points of the experimental chamber template image, generating segmentation template data. Among them, the explanations of the terms that are the same or corresponding to the above-mentioned embodiments are not repeated here. Figure 2 As shown, the method includes:
[0047] S210, scanning an empty experimental chamber without an experimental object to generate an empty experimental chamber image corresponding to the empty experimental chamber, and determining the empty experimental chamber image as an experimental chamber template image.
[0048] In this embodiment, a CT scanning operation can be performed on an empty experimental chamber without an experimental object, and the two-dimensional image obtained by the scan can be reconstructed to obtain a three-dimensional image of the empty experimental chamber. The image of the empty experimental chamber can be used as a template image of the experimental chamber.
[0049] S220, performing region segmentation on the experimental cabin template image to obtain at least one template segmentation region.
[0050] Specifically, the experimental cabin template image may be segmented based on the number of experimental objects that can actually be placed in the experimental cabin and the structural information of the experimental cabin, and / or the experimental cabin template image may be segmented based on the structural information of the experimental cabin. For example, if the number of experimental objects that can actually be placed in the experimental cabin is 6, the experimental cabin template image may be divided into 6 template segmentation areas; if the shape of each space in the experimental cabin where the experimental objects are placed is a rectangle, the experimental cabin template image may be segmented according to the rectangular shape.
[0051] Optionally, performing regional segmentation on the experiment cabin template image includes: performing regional segmentation on the experiment cabin template image based on predetermined structural information of the empty experiment cabin, a threshold segmentation algorithm, and a morphological segmentation algorithm.
[0052] The structural information includes information such as the shape and size of each space in the experimental cabin for placing experimental objects. In this embodiment, based on the threshold segmentation algorithm and the morphological segmentation algorithm, the experimental cabin template image can be divided into regions according to the structural information of the empty experimental cabin, so that the structure of each region after the experimental cabin template image is divided is consistent with the predetermined structural information.
[0053] In this embodiment, the threshold segmentation algorithm and the morphological segmentation algorithm can be used to accurately and efficiently perform regional segmentation on the experiment cabin template image to obtain a segmented experiment cabin template image that is consistent with the structural information.
[0054] In a specific implementation, after obtaining at least one template segmentation area, it also includes: if there is no overlapping area between the template segmentation areas, setting an area identifier for each template segmentation area respectively; if there is an overlapping area between the template segmentation areas, setting an area identifier for the overlapping area between the template segmentation areas and the remaining area of each template segmentation area excluding the overlapping area.
[0055] In order to intuitively and clearly distinguish the template segmentation areas in the experimental cabin template image, a region representation can be set for each template segmentation area. In the case where there is no overlapping area, different region identifiers can be set for each template segmentation area; wherein the region identifier can be at least one of numbers, characters, text and graphics. In the case where there are overlapping areas between template segmentation areas, it is necessary to set region identifiers for the overlapping area and the remaining area in each template segmentation area excluding the overlapping area.
[0056] S230. Generate segmentation template data based on a first correspondence between the template segmentation area and the pixel points of the experimental chamber template image.
[0057] In this embodiment, the first corresponding relationship is the corresponding relationship between each template segmentation area in the experimental cabin template image and each pixel. Exemplarily, each pixel can be marked with the template segmentation area to which the pixel belongs in the form of a character string, thereby establishing a first corresponding relationship. For example, the template segmentation area is divided into area 1, area 2, area 3, area 4, area 5 and area 6, and 8-bit data of unsigned char character type can be used to mark which template segmentation area each pixel corresponds to; each bit represents whether the pixel belongs to a certain area. If the 8-bit data is "00000001", and the first digit from right to left is 1, it means that the pixel belongs to area 1, that is, "1" means that the pixel belongs to a certain area, and the specific area can be determined by counting the number of digits corresponding to "1" from right to left. If the 8-bit data is "00000100", and the third digit from right to left is 1, it means that the pixel belongs to area 3; if the 8-bit data is "00000101", and the first and third digits from right to left are both 1, it means that the pixel belongs to the overlapping area between area 3 and area 1.
[0058] Specifically, according to the first corresponding relationship, the area information of the template segmentation area and the position information of the pixel points of the experimental cabin template image are stored to generate the segmentation template data.
[0059] In a specific implementation, after obtaining at least one template segmentation area, it also includes: based on a pre-set expansion parameter, expanding the template segmentation area to obtain an expanded segmentation area corresponding to the expansion parameter; based on a first correspondence between the template segmentation area and the pixel points of the experimental cabin template image, generating segmentation template data, including: based on the first correspondence and the expansion parameter, determining a second correspondence between the pixel points of the experimental cabin template image and the expanded segmentation area; based on the second correspondence, generating segmentation template data corresponding to the expansion parameter.
[0060] In this embodiment, in order to obtain segmentation template data corresponding to different expansion parameters, each template segmentation area can be expanded according to a pre-set expansion parameter, that is, the corresponding pixel value of each template segmentation area is enlarged according to the expansion parameter, so that the template segmentation area after the expansion processing is determined as the expanded segmentation area. When generating segmentation template data based on the first correspondence between the template segmentation area and the pixel points of the experimental cabin template image, the corresponding expanded segmentation area can be determined based on the expansion parameter; and based on the first correspondence between the template segmentation area and the pixel points of the experimental cabin template image, the second correspondence between the expanded segmentation area and the pixel points of the experimental cabin template image is determined, so as to generate segmentation template data corresponding to each expansion parameter.
[0061] This embodiment generates segmentation template data corresponding to each expansion parameter through the first corresponding relationship, so that corresponding segmentation template data can be determined for different expansion degrees, which can better meet the segmentation requirements of the current experimental chamber image.
[0062] S240, obtaining the current experimental chamber image to be segmented, and the dilation parameters required for segmenting the current experimental chamber image.
[0063] S250 . Determine current segmentation template data corresponding to the expansion parameter from at least one segmentation template data generated in advance.
[0064] S260. Based on the template correspondence, perform a region segmentation operation on the current experimental chamber image to obtain an image partition corresponding to the current experimental chamber image.
[0065] In this embodiment, before acquiring the current experimental chamber image, the template segmentation region can be obtained by segmenting the empty experimental chamber image, and the segmentation template data can be generated based on the first correspondence between the template segmentation region and the pixel points of the experimental chamber template image. Thus, the segmentation template data is determined in advance, so that when segmenting different current experimental chamber images, the segmentation operation can be completed accurately and efficiently without manual intervention, and the segmentation result image and the animal number are automatically corresponded.
[0066] The embodiments corresponding to the experimental cabin image segmentation method are described in detail above. In order to make the technical scheme of the method further clear to those skilled in the art, specific application scenarios are given below.
[0067] This embodiment can be used in a high-throughput scanning experimental chamber, and the experimental subject can be an animal. Based on the segmentation template data, the current experimental chamber image containing the experimental subject can be automatically segmented. This embodiment is mainly divided into two parts, namely, how to generate the segmentation template data; and how to segment the current experimental chamber image based on the segmentation template data.
[0068] For detailed instructions on how to generate segmentation template data, see Figure 3 ,The process of generating segmentation template data can be divided into the following steps:
[0069] 1. The empty experimental cabin is scanned by CT and the scanned image is reconstructed in three dimensions to obtain the image of the empty experimental cabin. Based on the structural characteristics of the empty experimental cabin, the images of the six sub-animal cabin areas are segmented out by the threshold segmentation algorithm and the morphological segmentation algorithm. They are used as template segmentation areas and numbered respectively; the six areas can be represented by area 1 to area 6.
[0070] 2. Generate segmentation template data based on these 6 template segmentation areas, and store the segmentation template data in the template 0 file. The size of the template image reflected by the segmentation template data is consistent with the size of the experimental chamber image. 8-bit data of unsigned char character type can be used to mark which template segmentation area each pixel corresponds to; each bit represents whether the pixel belongs to a certain area. If the 8-bit data is "00000001", and the first digit from right to left is 1, it means that the pixel belongs to area 1, that is, "1" means that the pixel belongs to a certain area, and the specific area it belongs to can be determined by counting the number of digits corresponding to "1" from right to left. If the 8-bit data is "00000100", and the third digit from right to left is 1, it means that the pixel belongs to area 3; if the 8-bit data is "00000101", and the first and third digits from right to left are both 1, it means that the pixel belongs to the overlapping area between area 3 and area 1. The template image reflected by the segmentation template data can be seen in Figure 4 , including area 1, area 2, area 3, area 4, area 5 and area 6, wherein the area marked with an ellipse represents the overlapping part.
[0071] 3. To increase the error tolerance, expansion parameters are set for the six template segmentation areas, and the expansion parameters are 5 pixels, 10 pixels, 15 pixels and 20 pixels respectively; each expansion parameter corresponds to different segmentation template data, that is, a total of 4 segmentation template data are generated for subsequent segmentation selection. The 4 segmentation template data are stored in template 5 file, template 10 file, template 15 file and template 20 file respectively.
[0072] For a detailed description of the process of segmenting the current experimental chamber image, see Figure 5 , which can be divided into the following steps:
[0073] 1. Perform CT scan on the experimental cabin containing the experimental object and determine the number of each cabin; perform three-dimensional reconstruction on the image obtained after the scan to obtain the current experimental cabin image.
[0074] 2. According to the set expansion parameters, select the template file corresponding to the current segmentation template data.
[0075] 3. According to the scanning position parameters used during scanning, the axial position information of the current experimental chamber image is obtained, the corresponding axial position data of the current segmentation template data is intercepted, and the current segmentation template data is updated according to the intercepted data.
[0076] 4. Based on the current segmentation template data, perform image segmentation on the current experimental chamber image according to the one-to-one correspondence of pixel values to obtain images corresponding to areas 1 to 6.
[0077] 5. Get the final 6 images, name them with the corresponding animal numbers, crop and save the images.
[0078] In this embodiment, before acquiring the current experimental chamber image, segmentation template data is generated, so that the segmentation template data is predetermined, and when segmenting different current experimental chamber images, the segmentation operation can be completed accurately and efficiently without human intervention.
[0079] Figure 6 1 is a schematic diagram of the structure of an experimental chamber image segmentation device provided according to an embodiment of the present invention, and the device is used to execute the experimental chamber image segmentation method provided in any of the above embodiments. The device and the experimental chamber image segmentation method of the above embodiments belong to the same inventive concept, and the details not described in detail in the embodiment of the experimental chamber image segmentation device can refer to the embodiment of the above experimental chamber image segmentation method. Figure 6 As shown, the device comprises:
[0080] The current experimental chamber image acquisition module 10 is used to acquire the current experimental chamber image to be segmented, and the dilation parameters required when segmenting the current experimental chamber image;
[0081] The current segmentation template data determination module 11 is used to determine the current segmentation template data corresponding to the expansion parameter from at least one segmentation template data generated in advance; wherein the current segmentation template data stores the template correspondence relationship between each pixel point of the experimental cabin template image and the template segmentation area to which it belongs;
[0082] The region segmentation operation module 12 is used to perform a region segmentation operation on the current experimental chamber image based on the template correspondence relationship to obtain an image partition corresponding to the current experimental chamber image.
[0083] Based on any optional technical solution in the embodiments of the present invention, optionally, the following further includes:
[0084] The empty experiment chamber scanning module is used to scan the empty experiment chamber without the experimental object before acquiring the current experiment chamber image to be segmented, so as to generate an empty experiment chamber image corresponding to the empty experiment chamber, and determine the empty experiment chamber image as the experiment chamber template image;
[0085] An image region segmentation module is used to perform region segmentation on the experimental cabin template image to obtain at least one template segmentation region;
[0086] The segmentation template data generation module is used to generate segmentation template data based on the first corresponding relationship between the template segmentation area and the pixel points of the experimental cabin template image.
[0087] Based on any optional technical solution in the embodiments of the present invention, optionally, the image region segmentation module includes:
[0088] The region segmentation unit is used to perform region segmentation on the template image of the experimental chamber based on predetermined structural information of the empty experimental chamber, a threshold segmentation algorithm and a morphological segmentation algorithm.
[0089] Based on any optional technical solution in the embodiments of the present invention, optionally, the following further includes:
[0090] A first region identification setting module is used to set a region identification for each template segmentation region after obtaining at least one template segmentation region if there is no overlapping region between the template segmentation regions;
[0091] The second region identification setting module is used to set region identification for the overlapping region between the template segmentation regions and the remaining region of the template segmentation regions excluding the overlapping region if there is an overlapping region between the template segmentation regions.
[0092] Based on any optional technical solution in the embodiments of the present invention, optionally, the following further includes:
[0093] An expansion processing module, used for, after obtaining at least one template segmentation region, performing expansion processing on the template segmentation region based on a preset expansion parameter to obtain an expanded segmentation region corresponding to the expansion parameter;
[0094] The segmentation template data generation module includes:
[0095] The second correspondence determination unit is used to determine the second correspondence between the pixel points of the experimental cabin template image and the expanded segmentation area based on the first correspondence and the expansion parameter; based on the second correspondence, generate segmentation template data corresponding to the expansion parameter.
[0096] Based on any optional technical solution in the embodiments of the present invention, optionally, the following further includes:
[0097] An axial position information determination module is used to determine the axial position information of the current experimental chamber image before performing a region segmentation operation on the current experimental chamber image based on the template correspondence relationship, and to intercept the current segmentation template data based on the axial position information;
[0098] The current segmentation template data updating module is used to update the current segmentation template data based on the template data obtained after interception, so that each pixel point contained in the updated current segmentation template data corresponds to each pixel point in the current experimental chamber image.
[0099] Based on any optional technical solution in the embodiments of the present invention, optionally, the current experimental chamber image acquisition module includes:
[0100] The computer tomography operation unit is used to perform a computer tomography operation on the experimental chamber currently containing the experimental object, and to perform a three-dimensional reconstruction operation on the two-dimensional image obtained by the scan, and to determine the obtained three-dimensional image as the current experimental chamber image.
[0101] The technical solution of the embodiment of the present invention determines the current segmentation template data corresponding to the expansion parameter in at least one pre-generated segmentation template data by acquiring the current experimental cabin image to be segmented and the expansion parameter required when segmenting the current experimental cabin image; wherein the template correspondence relationship between each pixel point of the experimental cabin template image and the template segmentation area to which it belongs is stored in the current segmentation template data; through the template correspondence relationship, the corresponding template segmentation area of each pixel point of the current experimental cabin image can be accurately determined, and the current experimental cabin image is segmented according to the template segmentation area to obtain the image partition corresponding to the current experimental cabin image. The segmentation process does not require manual recognition, has a small error, improves the accuracy of image segmentation, and reduces the consumption of human resources and time resources.
[0102] It is worth noting that in the embodiment of the above-mentioned experimental cabin image segmentation device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0103] Figure 7: is a schematic diagram of the structure of an electronic device for implementing the experimental cabin image segmentation method of an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0104] like Figure 7 As shown, the electronic device 20 includes at least one processor 21, and a memory connected to the at least one processor 21, such as a read-only memory (ROM) 22, a random access memory (RAM) 23, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 21 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 22 or the computer program loaded from the storage unit 28 to the random access memory (RAM) 23. In RAM23, various programs and data required for the operation of the electronic device 20 can also be stored. The processor 21, ROM22 and RAM23 are connected to each other through a bus 24. An input / output (I / O) interface 25 is also connected to the bus 24.
[0105] A number of components in the electronic device 20 are connected to the I / O interface 25, including: an input unit 26, such as a keyboard, a mouse, etc.; an output unit 27, such as various types of displays, speakers, etc.; a storage unit 28, such as a disk, an optical disk, etc.; and a communication unit 29, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 29 allows the electronic device 20 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0106] The processor 21 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 21 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 21 performs the various methods and processes described above, such as the experimental cabin image segmentation method.
[0107] In some embodiments, the experimental chamber image segmentation method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 28. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 20 via the ROM 22 and / or the communication unit 29. When the computer program is loaded into the RAM 23 and executed by the processor 21, one or more steps of the experimental chamber image segmentation method described above can be performed. Alternatively, in other embodiments, the processor 21 can be configured to perform the experimental chamber image segmentation method in any other appropriate manner (for example, by means of firmware).
[0108] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0109] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0110] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0111] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0112] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0113] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0114] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0115] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for segmenting an experimental chamber image, characterized in that: include: Acquire a current experimental chamber image to be segmented, and dilation parameters required when segmenting the current experimental chamber image; Determine the current segmentation template data corresponding to the expansion parameter from at least one segmentation template data generated in advance; wherein the current segmentation template data stores the template correspondence relationship between each pixel point of the experimental cabin template image and the template segmentation area to which it belongs; Based on the template correspondence, a region segmentation operation is performed on the current experimental chamber image to obtain an image partition corresponding to the current experimental chamber image.
2. The method according to claim 1, characterized in that Before obtaining the current experimental chamber image to be segmented, the method further includes: Scanning an empty experimental chamber without an experimental object to generate an empty experimental chamber image corresponding to the empty experimental chamber, and determining the empty experimental chamber image as the experimental chamber template image; Performing region segmentation on the experimental chamber template image to obtain at least one template segmentation region; The segmentation template data is generated based on a first correspondence between the template segmentation area and the pixel points of the experimental chamber template image.
3. The method according to claim 2, characterized in that The performing region segmentation on the experimental cabin template image includes: Based on the predetermined structural information of the empty experimental chamber, a threshold segmentation algorithm and a morphological segmentation algorithm, the experimental chamber template image is segmented into regions.
4. The method according to claim 2, characterized in that: After obtaining at least one template segmentation region, the method further includes: If there is no overlapping area between the template segmentation areas, setting area identifiers for each of the template segmentation areas respectively; If there is an overlapping area between the template segmentation areas, an area identifier is set for the overlapping area between the template segmentation areas and the remaining area of the template segmentation areas excluding the overlapping area.
5. The method according to claim 2, characterized in that: After obtaining at least one template segmentation region, the method further includes: Based on a preset expansion parameter, the template segmentation region is expanded to obtain an expanded segmentation region corresponding to the expansion parameter; The generating the segmentation template data based on the first corresponding relationship between the template segmentation area and the pixel points of the experimental chamber template image includes: Based on the first corresponding relationship and the expansion parameter, determining a second corresponding relationship between the pixel points of the experimental cabin template image and the expanded segmented area; Based on the second corresponding relationship, segmentation template data corresponding to the expansion parameter is generated.
6. The method according to claim 1, characterized in that Before performing a region segmentation operation on the current experimental chamber image based on the template correspondence, the method further includes: Determine the axial position information of the current experimental chamber image, and intercept the current segmentation template data based on the axial position information; The current segmentation template data is updated based on the template data obtained after interception, so that each pixel point included in the updated current segmentation template data corresponds to each pixel point in the current experimental chamber image.
7. The method according to claim 1, characterized in that The step of obtaining the current experimental chamber image to be segmented includes: An electronic computer tomography operation is performed on the experimental chamber currently containing the experimental object, and a three-dimensional reconstruction operation is performed on the two-dimensional image obtained by the scan, and the obtained three-dimensional image is determined as the current experimental chamber image.
8. An experimental chamber image segmentation device, characterized in that: include: A current experimental chamber image acquisition module is used to acquire the current experimental chamber image to be segmented, and the dilation parameters required when segmenting the current experimental chamber image; A current segmentation template data determination module, used to determine the current segmentation template data corresponding to the expansion parameter from at least one segmentation template data generated in advance; wherein the current segmentation template data stores the template correspondence relationship between each pixel point of the experimental cabin template image and the template segmentation area to which it belongs; The region segmentation operation module is used to perform a region segmentation operation on the current experimental chamber image based on the template correspondence relationship to obtain an image partition corresponding to the current experimental chamber image.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the experimental chamber image segmentation method described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the experimental chamber image segmentation method described in any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Sea surface vessel target detection method
CN104077777A
Thyroid gland regional automatic segmentation method based on CT image
CN109350089A
Medical image segmentation method and device, equipment and storage medium
CN114419068A
Image processor
JP1995129770A
Image processing method and apparatus, and electronic device and storage medium
WO2021259391A2
