Examination image processing method based on imaging examination and related device
By associating ultrasonic imaging and thermal imaging images with user IDs and encrypting them for storage, a compressed image sorted in a tree structure is formed, which solves the problem of large storage space occupied by cloud servers and leakage of image information, and achieves fast retrieval and safe storage.
Patent Information
- Application Number
- CN202410873636.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing technology, ultrasonic imaging images and thermal imaging images occupy too much storage space on the cloud server and are inconvenient to index and use, which may lead to leakage of image information.
By associating ultrasonic images and thermal images with user IDs and storing them encrypted, a compressed image sorted in a tree structure is formed and stored encrypted on the cloud server to achieve fast retrieval and secure storage.
It reduces the storage space occupied by the cloud server, facilitates users' subsequent retrieval and use of image data, and ensures the security of image data.
Smart Images

Figure CN118749910A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to an inspection image processing method based on imaging inspection and a related device. Background Art
[0002] When performing energy quality testing on a designated skin area, it is generally necessary to simultaneously collect ultrasound images and thermal images of the area to facilitate subsequent evaluation of the treatment effect on the skin area. However, in the prior art, the collected ultrasound images and thermal images are only stored and processed on a cloud server in the order in which they are collected. This will firstly occupy too much storage space on the cloud server, and will not be convenient for subsequent users to index and use these images. Furthermore, because these images may contain some privacy information, etc., image information leakage may occur. Summary of the invention
[0003] The purpose of the present invention is to overcome the shortcomings of the prior art. The present invention provides an inspection image processing method and related devices based on imaging inspection, which associate ultrasound images and thermal images with user IDs and encrypt and associate them for storage, making it convenient for users to subsequently search, view and use them, while ensuring the security of image data.
[0004] In order to solve the above technical problems, an embodiment of the present invention provides an inspection image processing method based on imaging inspection, the method comprising:
[0005] Based on the first imaging device, the target tissue area is subjected to energy treatment in a preset manner, and an ultrasonic imaging image file is obtained; at the same time,
[0006] Based on the second imaging device, image acquisition and processing are performed on the target tissue area after energy treatment in a preset manner to obtain a thermal imaging image file;
[0007] Traversing the image lists in the ultrasonic imaging image file and the thermal imaging image file respectively, and forming a tree structure sorting of user ID-sequence-image of the ultrasonic image and the thermal image respectively;
[0008] Digitally compressing the ultrasound image and the thermal image in the tree structure order to form a compressed ultrasound image and a compressed thermal image in the tree structure order;
[0009] The compressed ultrasound images and compressed thermal images in the tree structure are sorted and associated with each other using the user ID as an associated node to form associated compressed ultrasound images and compressed thermal images;
[0010] The associated compressed ultrasound images and compressed thermal images are uploaded to the cloud server and encrypted and stored in a preset storage format.
[0011] Optionally, the step of performing image acquisition processing on the target tissue area after energy treatment in a preset manner based on the first imaging device to obtain an ultrasonic imaging image file includes:
[0012] When the target tissue region is subjected to energy treatment in a preset manner, the first imaging device is started to perform image acquisition processing on the target tissue region at a first preset acquisition frequency to obtain an ultrasonic imaging image file.
[0013] Optionally, the step of performing image acquisition processing on the target tissue area after energy treatment in a preset manner based on the second imaging device to obtain a thermal imaging image file includes:
[0014] When the target tissue area is subjected to energy treatment in a preset manner, the second imaging device is started to perform image acquisition processing on the target tissue area at a second preset acquisition frequency to obtain a thermal imaging image file; wherein the second preset acquisition frequency is consistent with the first preset acquisition frequency.
[0015] Optionally, the traversing the image lists in the ultrasound imaging image file and the thermal imaging image file respectively and forming a tree structure sorting of user ID-sequence-image of the ultrasound image and the thermal image respectively includes:
[0016] Creating two independent threads, using the two independent threads to traverse the ultrasonic imaging image file and the thermal imaging image file respectively, determining a user ID list according to the user, and sorting the user ID list to obtain a user ID list sorting result;
[0017] Determine an image acquisition sequence list in the user ID list according to the image acquisition frequency, and sort the image acquisition sequence list in the order of the image acquisition frequency to obtain a sorting result of the image acquisition sequence list;
[0018] Determine an image list in the image acquisition sequence list according to the image instance number, and sort the image list according to the image instance number to obtain an image list sorting result;
[0019] A tree structure sorting process is performed according to the sorting results of the user ID list, the image acquisition sequence list and the image list, to form a tree structure sorting of user ID-sequence-image of ultrasound images and thermal images respectively.
[0020] Optionally, the digitally compressing the ultrasound image and the thermal image in the tree structure sorting to form a compressed ultrasound image and a compressed thermal image in the tree structure sorting includes:
[0021] Establishing corresponding preset matrices for the ultrasound image and the thermal image in the tree structure sorting, respectively, wherein the preset matrix has the same size as the pixel matrix of the ultrasound image or the thermal image;
[0022] Performing color classification processing on the corresponding ultrasound image and the thermal image based on the preset matrix to obtain color categories corresponding to the ultrasound image and the thermal image;
[0023] Based on the color category, a preset algorithm is used to separate pixel data and mark data of the corresponding ultrasonic image and thermal image to obtain pixel data and mark data corresponding to the ultrasonic image and the thermal image;
[0024] Based on a preset digital compression algorithm, image compression processing is performed according to the pixel data and mark data corresponding to the ultrasonic image and the thermal image to form a compressed ultrasonic image and a compressed thermal image in a tree structure sorting manner.
[0025] Optionally, the process of establishing an association relationship between the compressed ultrasound images and the compressed thermal images in the tree structure sorting with the user ID as the associated node to form associated compressed ultrasound images and compressed thermal images includes:
[0026] Performing user ID extraction processing in the compressed ultrasound image and the compressed thermal image in the tree structure sorting, respectively, to obtain the extracted user ID;
[0027] The compressed ultrasonic image and the compressed thermal image in the tree structure are associated with each other with the user ID as an associated root node to form associated compressed ultrasonic images and compressed thermal images.
[0028] Optionally, uploading the associated compressed ultrasound image and compressed thermal image to a cloud server and performing encrypted storage processing in a preset storage form includes:
[0029] According to the user ID in the associated compressed ultrasonic image and the compressed thermal image, access right allocation processing is performed on the associated compressed ultrasonic image and the compressed thermal image corresponding to the user ID to obtain allocated access rights, wherein the allocated access rights are associated with the digital certificate chain and the corresponding root CA certificate of the associated compressed ultrasonic image and the compressed thermal image corresponding to the user ID;
[0030] A first storage space and a second storage space are set in the cloud server. When the cloud server receives the associated compressed ultrasonic image and compressed thermal image, the user ID in the associated compressed ultrasonic image and compressed thermal image is stored in the first storage space, and the compressed ultrasonic image and compressed thermal image associated with the user ID are encrypted using the corresponding digital certificate chain and then associated and stored in the second storage space.
[0031] In addition, an embodiment of the present invention provides an inspection image processing device based on imaging inspection, the device comprising:
[0032] The first image acquisition module is used to acquire images of the target tissue area after the energy treatment in a preset manner based on the first imaging device to obtain an ultrasonic imaging image file; at the same time,
[0033] The second image acquisition module is used to acquire images of the target tissue area after the energy treatment in a preset manner based on the second imaging device, and obtain a thermal imaging image file;
[0034] A traversal module: used to traverse the image lists in the ultrasonic imaging image file and the thermal imaging image file respectively, and form a tree structure sorting of user ID-sequence-image of the ultrasonic image and the thermal image respectively;
[0035] Compression processing module: used for performing digital compression processing on the ultrasound image and the thermal image in the tree structure sorting to form a compressed ultrasound image and a compressed thermal image in the tree structure sorting;
[0036] An association relationship establishment module: used for establishing an association relationship between the compressed ultrasound image and the compressed thermal image in the tree structure sorting with the user ID as the association node, so as to form an associated compressed ultrasound image and a compressed thermal image;
[0037] Encrypted storage module: used to upload the associated compressed ultrasound images and compressed thermal images to the cloud server and perform encrypted storage processing in a preset storage format.
[0038] In addition, an embodiment of the present invention provides an image processing device, including a processor and a memory, wherein the processor runs a computer program or code stored in the memory to implement the inspection image processing method as described in any one of the above.
[0039] In addition, an embodiment of the present invention provides a computer-readable storage medium for storing a computer program or code, wherein when the computer program or code is executed by a processor, the inspection image processing method described in any one of the above is implemented.
[0040] In an embodiment of the present invention, an ultrasonic imaging image file and a thermal imaging image file are obtained by performing image acquisition processing; the image lists in the ultrasonic imaging image file and the thermal imaging image file are traversed respectively, and a tree structure sorting of user ID-sequence-image of the ultrasonic image and the thermal image is formed respectively; the ultrasonic image and the thermal image under the tree structure sorting are digitally compressed to form a compressed ultrasonic image and a compressed thermal image under the tree structure sorting; an association relationship is established with the user ID as the association node; the associated compressed ultrasonic image and the compressed thermal image are uploaded to the cloud server and encrypted and stored in a preset storage form; compression processing of the image can be achieved to reduce the storage space in the cloud server, and by establishing an index storage method, it is convenient for subsequent users to quickly retrieve, view and use the image when they need to index it; and encryption processing of the image during storage can ensure the security of the image data. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0042] Figure 1 is a flow chart of an inspection image processing method based on imaging inspection in an embodiment of the present invention;
[0043] Figure 2 is a schematic diagram of the structure of an inspection image processing device based on imaging inspection in an embodiment of the present invention;
[0044] Figure 3 It is a schematic diagram of the structural composition of an image processing device in an embodiment of the present invention. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 are within the scope of protection of the present invention.
[0046] For example, see Figure 1 , Figure 1 It is a flowchart of an inspection image processing method based on imaging inspection in an embodiment of the present invention.
[0047] like Figure 1As shown, a method for processing inspection images based on imaging inspection, the method comprising:
[0048] S11: Based on the first imaging device, image acquisition and processing are performed on the target tissue area after energy treatment in a preset manner to obtain an ultrasonic imaging image file; at the same time,
[0049] In the specific implementation process of the present invention, the image acquisition and processing of the target tissue area after energy treatment in a preset manner based on the first imaging device to obtain an ultrasonic imaging image file includes: when the target tissue area is subjected to energy treatment in a preset manner, starting the first imaging device to perform image acquisition and processing on the target tissue area at a first preset acquisition frequency to obtain an ultrasonic imaging image file.
[0050] Specifically, when the user's target tissue area is determined and energy treatment is performed on the target tissue area in a preset manner, that is, when ultrasonic energy treatment is performed on the target tissue area according to the parameter settings of the ultrasonic energy treatment defined by the operating user, the first imaging device can be started to perform image acquisition and processing on the target tissue area according to a first preset acquisition frequency to obtain an ultrasonic imaging image file; wherein the first preset acquisition frequency is image acquisition processing performed at regular intervals, and the first imaging device is generally an ultrasonic imaging device.
[0051] S12: performing image acquisition and processing on the target tissue area after energy treatment in a preset manner based on the second imaging device to obtain a thermal imaging image file;
[0052] In the specific implementation process of the present invention, the image acquisition and processing of the target tissue area after energy treatment in a preset manner based on the second imaging device to obtain a thermal imaging image file includes: when the target tissue area is subjected to energy treatment in a preset manner, starting the second imaging device to perform image acquisition and processing on the target tissue area at a second preset acquisition frequency to obtain a thermal imaging image file; wherein the second preset acquisition frequency is consistent with the first preset acquisition frequency.
[0053] Specifically, when the target tissue area is subjected to energy treatment in a preset manner, it is necessary to start a second imaging device to perform image acquisition processing on the target tissue area according to a second preset acquisition frequency to obtain a thermal imaging image file; wherein the second preset acquisition frequency is consistent with the first preset acquisition frequency; the second imaging device is generally a thermal imaging device.
[0054] S13: traversing the image lists in the ultrasonic imaging image file and the thermal imaging image file respectively, and forming a tree structure sorting of user ID-sequence-image of the ultrasonic image and the thermal image respectively;
[0055] In the specific implementation process of the present invention, the image lists in the ultrasonic imaging image file and the thermal imaging image file are traversed respectively, and the tree structure sorting of the user ID-sequence-image of the ultrasonic image and the thermal image is formed respectively, including: creating two independent threads, using the two independent threads to traverse the ultrasonic imaging image file and the thermal imaging image file respectively, determining the user ID list according to the user, and sorting the user ID list to obtain the user ID list sorting result; determining the image acquisition sequence list in the user ID list according to the image acquisition frequency, and sorting the image acquisition sequence list in the order of the image acquisition frequency to obtain the image acquisition sequence list sorting result; determining the image list in the image acquisition sequence list according to the image instance number, and sorting the image list according to the image instance number to obtain the image list sorting result; performing tree structure sorting according to the user ID list sorting result, the image acquisition sequence list sorting result and the image list sorting result to form the user ID-sequence-image tree structure sorting of the ultrasonic image and the thermal image respectively.
[0056] Specifically, when it is necessary to process the ultrasonic imaging image file and the thermal imaging image file, in order to ensure simultaneous processing, firstly, two independent threads for simultaneous processing are created in the image processing device, and the two independent threads are used to traverse the ultrasonic imaging image file and the thermal imaging image file respectively at the same time, and then the user ID list is determined according to the user IDs in the ultrasonic imaging image file and the thermal imaging image file respectively; then the user IDs in the user ID list are sorted to obtain the user ID list sorting result; then the image acquisition sequence list is determined in the user ID list according to the image acquisition frequency, and the image acquisition frequency is sorted in order. Processing is performed to obtain the sorting result of the image acquisition sequence list; then the image list is determined in the image acquisition sequence list according to the image instance number, and the image column is sorted according to the image instance number to obtain the image list sorting result; finally, tree structure sorting is performed according to the user ID list sorting result, the image acquisition sequence list sorting result and the image list sorting result, that is, the user ID in the user ID list sorting result is used as the root node, the image sequence in the image acquisition sequence list sorting result is used as the second-level node, and the image in the image list sorting result is used as the third-level node, to form a tree structure sorting of user ID-sequence-image for ultrasound images and thermal images respectively.
[0057] S14: performing digital compression processing on the ultrasound image and the thermal image in the tree structure sorting to form a compressed ultrasound image and a compressed thermal image in the tree structure sorting;
[0058] In the specific implementation process of the present invention, the ultrasonic image and the thermal image in the tree structure sorting are digitally compressed to form a compressed ultrasonic image and a compressed thermal image in the tree structure sorting, including: establishing corresponding preset matrices for the ultrasonic image and the thermal image in the tree structure sorting, respectively, and the preset matrix is consistent with the pixel matrix size of the ultrasonic image or the thermal image; performing color classification processing on the corresponding ultrasonic image and the thermal image based on the preset matrix to obtain the color category corresponding to the ultrasonic image and the thermal image; performing pixel data and mark data splitting processing on the corresponding ultrasonic image and the thermal image using a preset algorithm based on the color category to obtain the pixel data and mark data corresponding to the ultrasonic image and the thermal image; performing image compression processing according to the pixel data and mark data corresponding to the ultrasonic image and the thermal image based on a preset digital compression algorithm to form a compressed ultrasonic image and a compressed thermal image in the tree structure sorting.
[0059] Specifically, first, an ultrasound image and a thermal image in a tree structure sorting are obtained as original images, namely, ultrasound original images and thermal original images; then corresponding marker matrices are established for the ultrasound original images and thermal original images, respectively, wherein the marker matrices are consistent in size with the pixel matrices in the corresponding ultrasound original images and the corresponding thermal original images, and the initial values of the marker matrices are set to 0; then, color classification processing is performed on the corresponding ultrasound image and thermal image according to the marker matrices to obtain the color categories corresponding to the ultrasound image and the thermal image; the process is as follows: by setting the first element pixel of the marker matrix to 1, the pixel data of the first pixel of the pixel matrix of the original image corresponding to the standard matrix is obtained; then, based on the pixel data of the first pixel, the fidelity values of other pixels in the pixel matrix are calculated once, and the fidelity values are calculated based on the fidelity values. When the value is greater than the first preset value, the element value corresponding to the flag matrix is set to 1; otherwise, it is set to 0; then the first 0 element in the flag matrix is set to a, and the pixel data of the pixel matrix corresponding to the 0 element is obtained, and the fidelity values of all the pixel points corresponding to the 0 elements are calculated in turn based on the pixel data, and when the fidelity value is greater than the second preset value, the corresponding flag element value is set to a; until there are no 0 elements in the flag matrix, where a is a positive integer greater than or equal to 1 and less than or equal to b, and b is the number of color classification types; finally, the number of elements of each color classification in the flag matrix needs to be calculated, and the a values are sorted in ascending order from most to least according to the number of elements, and reset according to the ascending sorting result; and the a value of the color classification with the largest number of elements is 1, and the color classification value with the least number of elements is b.
[0060] Then, it is necessary to use the binary tree method to split the pixel data and mark data of the corresponding ultrasound image and thermal image according to the color category to obtain the pixel data and mark data corresponding to the ultrasound image and the thermal image; the specific splitting process is as follows: first, extract the one-dimensional pixel array composed of the pixels of the original image corresponding to the elements with a value of 1 in the mark matrix in the order of rows first and columns later, and the remaining pixels of the original image form another dimensional pixel group; then extract the elements with a value other than 1 in the mark matrix in the order of rows first and columns later to form a one-dimensional mark array, and set the elements with a value other than 1 in the mark matrix to 0, and arrange the mark matrix in the order of rows first and columns later into a one-dimensional mark array. The value is 0 or 1; extract the pixels of the original image corresponding to the elements with a value of 2 in the flag matrix in a row-first and column-later manner to form a one-dimensional pixel array, and the remaining pixels of the original image form another dimensional pixel group; then extract the elements with a value other than 2 in the flag matrix in a row-first and column-later manner to form a one-dimensional flag array, and set the elements with a value other than 1 in the flag matrix to 0, and arrange the flag matrix in the order of row-first and column-later to form a one-dimensional flag array, and the value of the one-dimensional flag array is 0 or 1; repeat the above operation until the pixel data and flag data of all color classifications are split respectively, wherein the value of each flag array is 0 or 1; thereby, the pixel data and flag data splitting process can be completed.
[0061] Finally, the preset digital compression algorithm can be used to perform image compression processing according to the pixel data and mark data corresponding to the ultrasonic image and the thermal image, so as to form a compressed ultrasonic image and a compressed thermal image sorted in a tree structure; here, a lossless digital compression algorithm is used to compress the mark data corresponding to the ultrasonic image and the thermal image; a lossy digital compression algorithm is used to compress the pixel data corresponding to the ultrasonic image and the thermal image.
[0062] S15: Establishing an association relationship between the compressed ultrasound image and the compressed thermal image in the tree structure sorting with the user ID as the associated node to form an associated compressed ultrasound image and compressed thermal image;
[0063] In the specific implementation process of the present invention, the compressed ultrasonic image and the compressed thermal image in the tree structure are associated with each other with the user ID as the associated node to form an associated compressed ultrasonic image and a compressed thermal image, including: performing user ID extraction processing on the compressed ultrasonic image and the compressed thermal image in the tree structure to obtain the extracted user ID; and associating the compressed ultrasonic image and the compressed thermal image in the tree structure with the user ID as the associated root node to form an associated compressed ultrasonic image and a compressed thermal image.
[0064] Specifically, it is first necessary to perform user ID extraction processing on the compressed ultrasound image and the compressed thermal image sorted in the tree structure, and obtain the extracted user ID; then, the compressed ultrasound image and the compressed thermal image sorted in the tree structure are associated with each other with the user ID as the associated root node to form associated compressed ultrasound images and compressed thermal images.
[0065] S16: Upload the associated compressed ultrasound image and compressed thermal image to the cloud server and perform encrypted storage processing in a preset storage format.
[0066] In the specific implementation process of the present invention, the associated compressed ultrasonic image and compressed thermal image are uploaded to the cloud server and encrypted and stored in a preset storage form, including: according to the user ID in the associated compressed ultrasonic image and compressed thermal image, access rights are allocated to the associated compressed ultrasonic image and compressed thermal image corresponding to the user ID to obtain allocated access rights, and the allocated access rights are associated with the digital certificate chain and the corresponding root CA certificate of the associated compressed ultrasonic image and compressed thermal image corresponding to the user ID; a first storage space and a second storage space are set in the cloud server, and when the cloud server receives the associated compressed ultrasonic image and compressed thermal image, the user ID in the associated compressed ultrasonic image and compressed thermal image is stored in the first storage space, and the compressed ultrasonic image and compressed thermal image associated with the user ID are encrypted using the corresponding digital certificate chain and then associated and stored in the second storage space.
[0067] Specifically, it is necessary to allocate access rights for the associated compressed ultrasonic images and compressed thermal images corresponding to the user ID according to the user ID in the associated compressed ultrasonic images and compressed thermal images, and allocate access rights for the compressed ultrasonic images and compressed thermal images corresponding to the user ID, so as to obtain allocated access rights, wherein the allocated access rights are associated with the digital certificate chain and the corresponding root CA certificate of the associated compressed ultrasonic images and compressed thermal images corresponding to the user ID; at the same time, a first storage space and a second storage space are set in the storage space in the cloud server, and when the cloud server receives the associated compressed ultrasonic images and compressed thermal images, it is necessary to store the user ID in the associated compressed ultrasonic images and compressed thermal images in the first storage space, and store the compressed ultrasonic images and compressed thermal images associated with the user ID after being encrypted using the corresponding digital certificate chain, and then associated and stored in the second storage space; when the user needs to index the second storage space with the access right corresponding to the user ID, firstly obtain the root CA certificate according to the access right, and then decrypt the indexed encrypted compressed ultrasonic images and compressed thermal images before they can be viewed or used accordingly.
[0068] In an embodiment of the present invention, an ultrasonic imaging image file and a thermal imaging image file are obtained by performing image acquisition processing; the image lists in the ultrasonic imaging image file and the thermal imaging image file are traversed respectively, and a tree structure sorting of user ID-sequence-image of the ultrasonic image and the thermal image is formed respectively; the ultrasonic image and the thermal image under the tree structure sorting are digitally compressed to form a compressed ultrasonic image and a compressed thermal image under the tree structure sorting; an association relationship is established with the user ID as the association node; the associated compressed ultrasonic image and the compressed thermal image are uploaded to the cloud server and encrypted and stored in a preset storage form; compression processing of the image can be achieved to reduce the storage space in the cloud server, and by establishing an index storage method, it is convenient for subsequent users to quickly retrieve, view and use the image when they need to index it; and encryption processing of the image during storage can ensure the security of the image data.
[0069] For example 2, please refer to Figure 2 , Figure 2 It is a schematic diagram of the structural composition of an inspection image processing device based on imaging inspection in an embodiment of the present invention.
[0070] like Figure 2 As shown, an inspection image processing device based on imaging inspection, the device comprises:
[0071] The first image acquisition module 21 is used to acquire images of the target tissue area after the energy treatment in a preset manner based on the first imaging device to obtain an ultrasonic imaging image file; at the same time,
[0072] In the specific implementation process of the present invention, the image acquisition and processing of the target tissue area after energy treatment in a preset manner based on the first imaging device to obtain an ultrasonic imaging image file includes: when the target tissue area is subjected to energy treatment in a preset manner, starting the first imaging device to perform image acquisition and processing on the target tissue area at a first preset acquisition frequency to obtain an ultrasonic imaging image file.
[0073] Specifically, when the user's target tissue area is determined and energy treatment is performed on the target tissue area in a preset manner, that is, when ultrasonic energy treatment is performed on the target tissue area according to the parameter settings of the ultrasonic energy treatment defined by the operating user, the first imaging device can be started to perform image acquisition and processing on the target tissue area according to a first preset acquisition frequency to obtain an ultrasonic imaging image file; wherein the first preset acquisition frequency is image acquisition processing performed at regular intervals, and the first imaging device is generally an ultrasonic imaging device.
[0074] The second image acquisition module 22 is used to acquire images of the target tissue area after the energy treatment in a preset manner based on the second imaging device, and obtain a thermal imaging image file;
[0075] In the specific implementation process of the present invention, the image acquisition and processing of the target tissue area after energy treatment in a preset manner based on the second imaging device to obtain a thermal imaging image file includes: when the target tissue area is subjected to energy treatment in a preset manner, starting the second imaging device to perform image acquisition and processing on the target tissue area at a second preset acquisition frequency to obtain a thermal imaging image file; wherein the second preset acquisition frequency is consistent with the first preset acquisition frequency.
[0076] Specifically, when the target tissue area is subjected to energy treatment in a preset manner, it is necessary to start a second imaging device to perform image acquisition processing on the target tissue area according to a second preset acquisition frequency to obtain a thermal imaging image file; wherein the second preset acquisition frequency is consistent with the first preset acquisition frequency; the second imaging device is generally a thermal imaging device.
[0077] A traversal module 23 is used to traverse the image lists in the ultrasonic imaging image file and the thermal imaging image file respectively, and form a tree structure of user ID-sequence-image of the ultrasonic image and the thermal image respectively;
[0078] In the specific implementation process of the present invention, the image lists in the ultrasonic imaging image file and the thermal imaging image file are traversed respectively, and the tree structure sorting of the user ID-sequence-image of the ultrasonic image and the thermal image is formed respectively, including: creating two independent threads, using the two independent threads to traverse the ultrasonic imaging image file and the thermal imaging image file respectively, determining the user ID list according to the user, and sorting the user ID list to obtain the user ID list sorting result; determining the image acquisition sequence list in the user ID list according to the image acquisition frequency, and sorting the image acquisition sequence list in the order of the image acquisition frequency to obtain the image acquisition sequence list sorting result; determining the image list in the image acquisition sequence list according to the image instance number, and sorting the image list according to the image instance number to obtain the image list sorting result; performing tree structure sorting according to the user ID list sorting result, the image acquisition sequence list sorting result and the image list sorting result to form the user ID-sequence-image tree structure sorting of the ultrasonic image and the thermal image respectively.
[0079] Specifically, when it is necessary to process the ultrasonic imaging image file and the thermal imaging image file, in order to ensure simultaneous processing, firstly, two independent threads for simultaneous processing are created in the image processing device, and the two independent threads are used to traverse the ultrasonic imaging image file and the thermal imaging image file respectively at the same time, and then the user ID list is determined according to the user IDs in the ultrasonic imaging image file and the thermal imaging image file respectively; then the user IDs in the user ID list are sorted to obtain the user ID list sorting result; then the image acquisition sequence list is determined in the user ID list according to the image acquisition frequency, and the image acquisition frequency is sorted in order. Processing is performed to obtain the sorting result of the image acquisition sequence list; then the image list is determined in the image acquisition sequence list according to the image instance number, and the image column is sorted according to the image instance number to obtain the image list sorting result; finally, tree structure sorting is performed according to the user ID list sorting result, the image acquisition sequence list sorting result and the image list sorting result, that is, the user ID in the user ID list sorting result is used as the root node, the image sequence in the image acquisition sequence list sorting result is used as the second-level node, and the image in the image list sorting result is used as the third-level node, to form a tree structure sorting of user ID-sequence-image for ultrasound images and thermal images respectively.
[0080] The compression processing module 24 is used to perform digital compression processing on the ultrasound image and the thermal image in the tree structure sorting to form a compressed ultrasound image and a compressed thermal image in the tree structure sorting;
[0081] In the specific implementation process of the present invention, the ultrasonic image and the thermal image in the tree structure sorting are digitally compressed to form a compressed ultrasonic image and a compressed thermal image in the tree structure sorting, including: establishing corresponding preset matrices for the ultrasonic image and the thermal image in the tree structure sorting, respectively, and the preset matrix is consistent with the pixel matrix size of the ultrasonic image or the thermal image; performing color classification processing on the corresponding ultrasonic image and the thermal image based on the preset matrix to obtain the color category corresponding to the ultrasonic image and the thermal image; performing pixel data and mark data splitting processing on the corresponding ultrasonic image and the thermal image using a preset algorithm based on the color category to obtain the pixel data and mark data corresponding to the ultrasonic image and the thermal image; performing image compression processing according to the pixel data and mark data corresponding to the ultrasonic image and the thermal image based on a preset digital compression algorithm to form a compressed ultrasonic image and a compressed thermal image in the tree structure sorting.
[0082] Specifically, first, an ultrasound image and a thermal image in a tree structure sorting are obtained as original images, namely, ultrasound original images and thermal original images; then corresponding marker matrices are established for the ultrasound original images and thermal original images, respectively, wherein the marker matrices are consistent in size with the pixel matrices in the corresponding ultrasound original images and the corresponding thermal original images, and the initial values of the marker matrices are set to 0; then, color classification processing is performed on the corresponding ultrasound image and thermal image according to the marker matrices to obtain the color categories corresponding to the ultrasound image and the thermal image; the process is as follows: by setting the first element pixel of the marker matrix to 1, the pixel data of the first pixel of the pixel matrix of the original image corresponding to the standard matrix is obtained; then, based on the pixel data of the first pixel, the fidelity values of other pixels in the pixel matrix are calculated once, and the fidelity values are calculated based on the fidelity values. When the value is greater than the first preset value, the element value corresponding to the flag matrix is set to 1; otherwise, it is set to 0; then the first 0 element in the flag matrix is set to a, and the pixel data of the pixel matrix corresponding to the 0 element is obtained, and the fidelity values of all the pixel points corresponding to the 0 elements are calculated in turn based on the pixel data, and when the fidelity value is greater than the second preset value, the corresponding flag element value is set to a; until there are no 0 elements in the flag matrix, where a is a positive integer greater than or equal to 1 and less than or equal to b, and b is the number of color classification types; finally, the number of elements of each color classification in the flag matrix needs to be calculated, and the a values are sorted in ascending order from most to least according to the number of elements, and reset according to the ascending sorting result; and the a value of the color classification with the largest number of elements is 1, and the color classification value with the least number of elements is b.
[0083] Then, it is necessary to use the binary tree method to split the pixel data and mark data of the corresponding ultrasound image and thermal image according to the color category to obtain the pixel data and mark data corresponding to the ultrasound image and the thermal image; the specific splitting process is as follows: first, extract the one-dimensional pixel array composed of the pixels of the original image corresponding to the elements with a value of 1 in the mark matrix in the order of rows first and columns later, and the remaining pixels of the original image form another dimensional pixel group; then extract the elements with a value other than 1 in the mark matrix in the order of rows first and columns later to form a one-dimensional mark array, and set the elements with a value other than 1 in the mark matrix to 0, and arrange the mark matrix in the order of rows first and columns later into a one-dimensional mark array. The value is 0 or 1; extract the pixels of the original image corresponding to the elements with a value of 2 in the flag matrix in a row-first and column-later manner to form a one-dimensional pixel array, and the remaining pixels of the original image form another dimensional pixel group; then extract the elements with a value other than 2 in the flag matrix in a row-first and column-later manner to form a one-dimensional flag array, and set the elements with a value other than 1 in the flag matrix to 0, and arrange the flag matrix in the order of row-first and column-later to form a one-dimensional flag array, and the value of the one-dimensional flag array is 0 or 1; repeat the above operation until the pixel data and flag data of all color classifications are split respectively, wherein the value of each flag array is 0 or 1; thereby, the pixel data and flag data splitting process can be completed.
[0084] Finally, the preset digital compression algorithm can be used to perform image compression processing according to the pixel data and mark data corresponding to the ultrasonic image and the thermal image, so as to form a compressed ultrasonic image and a compressed thermal image sorted in a tree structure; here, a lossless digital compression algorithm is used to compress the mark data corresponding to the ultrasonic image and the thermal image; a lossy digital compression algorithm is used to compress the pixel data corresponding to the ultrasonic image and the thermal image.
[0085] The association relationship establishment module 25 is used to establish an association relationship between the compressed ultrasound image and the compressed thermal image in the tree structure sorting with the user ID as the association node, so as to form an associated compressed ultrasound image and a compressed thermal image;
[0086] In the specific implementation process of the present invention, the compressed ultrasonic image and the compressed thermal image in the tree structure are associated with each other with the user ID as the associated node to form an associated compressed ultrasonic image and a compressed thermal image, including: performing user ID extraction processing on the compressed ultrasonic image and the compressed thermal image in the tree structure to obtain the extracted user ID; and associating the compressed ultrasonic image and the compressed thermal image in the tree structure with the user ID as the associated root node to form an associated compressed ultrasonic image and a compressed thermal image.
[0087] Specifically, it is first necessary to perform user ID extraction processing on the compressed ultrasound image and the compressed thermal image sorted in the tree structure, and obtain the extracted user ID; then, the compressed ultrasound image and the compressed thermal image sorted in the tree structure are associated with each other with the user ID as the associated root node to form associated compressed ultrasound images and compressed thermal images.
[0088] The encryption storage module 26 is used to upload the associated compressed ultrasound image and compressed thermal image to the cloud server and perform encrypted storage processing in a preset storage format.
[0089] In the specific implementation process of the present invention, the associated compressed ultrasonic image and compressed thermal image are uploaded to the cloud server and encrypted and stored in a preset storage form, including: according to the user ID in the associated compressed ultrasonic image and compressed thermal image, access rights are allocated to the associated compressed ultrasonic image and compressed thermal image corresponding to the user ID to obtain allocated access rights, and the allocated access rights are associated with the digital certificate chain and the corresponding root CA certificate of the associated compressed ultrasonic image and compressed thermal image corresponding to the user ID; a first storage space and a second storage space are set in the cloud server, and when the cloud server receives the associated compressed ultrasonic image and compressed thermal image, the user ID in the associated compressed ultrasonic image and compressed thermal image is stored in the first storage space, and the compressed ultrasonic image and compressed thermal image associated with the user ID are encrypted using the corresponding digital certificate chain and then associated and stored in the second storage space.
[0090] Specifically, it is necessary to allocate access rights for the associated compressed ultrasonic images and compressed thermal images corresponding to the user ID according to the user ID in the associated compressed ultrasonic images and compressed thermal images, and allocate access rights for the compressed ultrasonic images and compressed thermal images corresponding to the user ID, so as to obtain allocated access rights, wherein the allocated access rights are associated with the digital certificate chain and the corresponding root CA certificate of the associated compressed ultrasonic images and compressed thermal images corresponding to the user ID; at the same time, a first storage space and a second storage space are set in the storage space in the cloud server, and when the cloud server receives the associated compressed ultrasonic images and compressed thermal images, it is necessary to store the user ID in the associated compressed ultrasonic images and compressed thermal images in the first storage space, and store the compressed ultrasonic images and compressed thermal images associated with the user ID after being encrypted using the corresponding digital certificate chain, and then associated and stored in the second storage space; when the user needs to index the second storage space with the access right corresponding to the user ID, firstly obtain the root CA certificate according to the access right, and then decrypt the indexed encrypted compressed ultrasonic images and compressed thermal images before they can be viewed or used accordingly.
[0091] In an embodiment of the present invention, an ultrasonic imaging image file and a thermal imaging image file are obtained by performing image acquisition processing; the image lists in the ultrasonic imaging image file and the thermal imaging image file are traversed respectively, and a tree structure sorting of user ID-sequence-image of the ultrasonic image and the thermal image is formed respectively; the ultrasonic image and the thermal image under the tree structure sorting are digitally compressed to form a compressed ultrasonic image and a compressed thermal image under the tree structure sorting; an association relationship is established with the user ID as the association node; the associated compressed ultrasonic image and the compressed thermal image are uploaded to the cloud server and encrypted and stored in a preset storage form; compression processing of the image can be achieved to reduce the storage space in the cloud server, and by establishing an index storage method, it is convenient for subsequent users to quickly retrieve, view and use the image when they need to index it; and encryption processing of the image during storage can ensure the security of the image data.
[0092] A computer-readable storage medium provided in an embodiment of the present invention stores a computer program on the computer-readable storage medium, and when the program is executed by a processor, the inspection image processing method of any one of the above embodiments is implemented. The computer-readable storage medium includes, but is not limited to, any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or optical card. That is, the storage device includes any medium that can store or transmit information in a readable form by a device (for example, a computer, a mobile phone), which can be a read-only memory, a disk or an optical disk, etc.
[0093] An embodiment of the present invention further provides a computer application program, which runs on a computer and is used to execute the inspection image processing method of any one of the above embodiments.
[0094] also, Figure 3 It is a schematic diagram of the structural composition of an image processing device in an embodiment of the present invention.
[0095] The embodiment of the present invention also provides an image processing device, such as Figure 3 The therapeutic device includes a processor 302, a memory 303, an input unit 304, a display unit 305 and other devices. Those skilled in the art will understand that Figure 3 The image processing device structure device shown does not constitute a limitation on all devices, and may include more or fewer components than shown, or combine certain components. The memory 303 can be used to store the application 301 and various functional modules, and the processor 302 runs the application 301 stored in the memory 303, thereby executing various functional applications and data processing of the device. The memory can be an internal memory or an external memory, or include both internal and external memories. The internal memory may include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a flash memory, or a random access memory. The external memory may include a hard disk, a floppy disk, a ZIP disk, a U disk, a magnetic tape, etc. The memory disclosed in the present invention includes but is not limited to these types of memories. The memory disclosed in the present invention is only used as an example and not as a limitation.
[0096] The input unit 304 is used to receive the input of the signal and the keyword input by the user. The input unit 304 may include a touch panel and other input devices. The touch panel can collect the user's touch operation on or near it (such as the user's operation on or near the touch panel using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program; other input devices may include but are not limited to one or more of a physical keyboard, a function key (such as a playback control key, a switch key, etc.), a trackball, a mouse, a joystick, etc. The display unit 305 can be used to display the information input by the user or the information provided to the user and various menus of the terminal device. The display unit 305 can be in the form of a liquid crystal display, an organic light emitting diode, etc. The processor 302 is the control center of the terminal device, which uses various interfaces and lines to connect the various parts of the entire device, and executes various functions and processes data by running or executing software programs and / or modules stored in the memory 303, and calling the data stored in the memory.
[0097] As an embodiment, the image processing device includes: one or more processors 302, a memory 303, and one or more applications 301, wherein the one or more applications 301 are stored in the memory 303 and are configured to be executed by the one or more processors 302, and the one or more applications 301 are configured to execute the inspection image processing method in any one of the above-mentioned embodiments.
[0098] In an embodiment of the present invention, an ultrasonic imaging image file and a thermal imaging image file are obtained by performing image acquisition processing; the image lists in the ultrasonic imaging image file and the thermal imaging image file are traversed respectively, and a tree structure sorting of user ID-sequence-image of the ultrasonic image and the thermal image is formed respectively; the ultrasonic image and the thermal image under the tree structure sorting are digitally compressed to form a compressed ultrasonic image and a compressed thermal image under the tree structure sorting; an association relationship is established with the user ID as the association node; the associated compressed ultrasonic image and the compressed thermal image are uploaded to the cloud server and encrypted and stored in a preset storage form; compression processing of the image can be achieved to reduce the storage space in the cloud server, and by establishing an index storage method, it is convenient for subsequent users to quickly retrieve, view and use the image when they need to index it; and encryption processing of the image during storage can ensure the security of the image data.
[0099] In addition, the above is a detailed introduction to an inspection image processing method based on imaging inspection and related devices provided by an embodiment of the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for processing inspection images based on imaging inspection, characterized in that: The method comprises: Based on the first imaging device, the target tissue area is subjected to energy treatment in a preset manner, and an ultrasonic imaging image file is obtained; at the same time, Based on the second imaging device, image acquisition and processing are performed on the target tissue area after energy treatment in a preset manner to obtain a thermal imaging image file; Traversing the image lists in the ultrasonic imaging image file and the thermal imaging image file respectively, and forming a tree structure sorting of user ID-sequence-image of the ultrasonic image and the thermal image respectively; Digitally compressing the ultrasound image and the thermal image in the tree structure order to form a compressed ultrasound image and a compressed thermal image in the tree structure order; The compressed ultrasound images and compressed thermal images in the tree structure are sorted and associated with each other using the user ID as an associated node to form associated compressed ultrasound images and compressed thermal images; The associated compressed ultrasound images and compressed thermal images are uploaded to the cloud server and encrypted and stored in a preset storage format.
2. The inspection image processing method according to claim 1, characterized in that: The method of performing image acquisition processing on the target tissue area after energy treatment in a preset manner based on the first imaging device to obtain an ultrasonic imaging image file includes: When the target tissue region is subjected to energy treatment in a preset manner, the first imaging device is started to perform image acquisition processing on the target tissue region at a first preset acquisition frequency to obtain an ultrasonic imaging image file.
3. The inspection image processing method according to claim 1, characterized in that: The method of performing image acquisition and processing on the target tissue area after energy treatment in a preset manner based on the second imaging device to obtain a thermal imaging image file includes: When the target tissue area is subjected to energy treatment in a preset manner, the second imaging device is started to perform image acquisition processing on the target tissue area at a second preset acquisition frequency to obtain a thermal imaging image file; wherein the second preset acquisition frequency is consistent with the first preset acquisition frequency.
4. The inspection image processing method according to claim 1, characterized in that: The step of traversing the image lists in the ultrasound imaging image file and the thermal imaging image file and forming a tree structure of user ID-sequence-image of the ultrasound image and the thermal image, respectively, includes: Creating two independent threads, using the two independent threads to traverse the ultrasonic imaging image file and the thermal imaging image file respectively, determining a user ID list according to the user, and sorting the user ID list to obtain a user ID list sorting result; Determine an image acquisition sequence list in the user ID list according to the image acquisition frequency, and sort the image acquisition sequence list in the order of the image acquisition frequency to obtain a sorting result of the image acquisition sequence list; Determine an image list in the image acquisition sequence list according to the image instance number, and sort the image list according to the image instance number to obtain an image list sorting result; A tree structure sorting process is performed according to the sorting results of the user ID list, the image acquisition sequence list and the image list, to form a tree structure sorting of user ID-sequence-image of ultrasound images and thermal images respectively.
5. The inspection image processing method according to claim 1, characterized in that: The step of digitally compressing the ultrasound image and the thermal image in the tree structure to form a compressed ultrasound image and a compressed thermal image in the tree structure includes: Establishing corresponding preset matrices for the ultrasound image and the thermal image in the tree structure sorting, respectively, wherein the preset matrix has the same size as the pixel matrix of the ultrasound image or the thermal image; Performing color classification processing on the corresponding ultrasound image and the thermal image based on the preset matrix to obtain color categories corresponding to the ultrasound image and the thermal image; Based on the color category, a preset algorithm is used to separate pixel data and mark data of the corresponding ultrasonic image and thermal image to obtain pixel data and mark data corresponding to the ultrasonic image and the thermal image; Based on a preset digital compression algorithm, image compression processing is performed according to the pixel data and mark data corresponding to the ultrasonic image and the thermal image to form a compressed ultrasonic image and a compressed thermal image in a tree structure sorting manner.
6. The inspection image processing method according to claim 1, characterized in that: The process of establishing an association relationship between the compressed ultrasonic image and the compressed thermal image in the tree structure sorting by using the user ID as an associated node to form an associated compressed ultrasonic image and compressed thermal image includes: Performing user ID extraction processing in the compressed ultrasound image and the compressed thermal image in the tree structure sorting, respectively, to obtain the extracted user ID; The compressed ultrasonic image and the compressed thermal image in the tree structure are associated with each other with the user ID as an associated root node to form associated compressed ultrasonic images and compressed thermal images.
7. The inspection image processing method according to claim 1, characterized in that: The step of uploading the associated compressed ultrasound image and compressed thermal image to the cloud server and performing encrypted storage processing in a preset storage form includes: According to the user ID in the associated compressed ultrasonic image and the compressed thermal image, access right allocation processing is performed on the associated compressed ultrasonic image and the compressed thermal image corresponding to the user ID to obtain allocated access rights, wherein the allocated access rights are associated with the digital certificate chain and the corresponding root CA certificate of the associated compressed ultrasonic image and the compressed thermal image corresponding to the user ID; A first storage space and a second storage space are set in the cloud server. When the cloud server receives the associated compressed ultrasonic image and compressed thermal image, the user ID in the associated compressed ultrasonic image and compressed thermal image is stored in the first storage space, and the compressed ultrasonic image and compressed thermal image associated with the user ID are encrypted using the corresponding digital certificate chain and then associated and stored in the second storage space.
8. An inspection image processing device based on imaging inspection, characterized in that: The device comprises: The first image acquisition module is used to acquire images of the target tissue area after the energy treatment in a preset manner based on the first imaging device to obtain an ultrasonic imaging image file; at the same time, The second image acquisition module is used to acquire images of the target tissue area after the energy treatment in a preset manner based on the second imaging device, and obtain a thermal imaging image file; A traversal module: used to traverse the image lists in the ultrasonic imaging image file and the thermal imaging image file respectively, and form a tree structure sorting of user ID-sequence-image of the ultrasonic image and the thermal image respectively; Compression processing module: used for performing digital compression processing on the ultrasound image and the thermal image in the tree structure sorting to form a compressed ultrasound image and a compressed thermal image in the tree structure sorting; An association relationship establishment module: used for establishing an association relationship between the compressed ultrasound image and the compressed thermal image in the tree structure sorting with the user ID as the association node, so as to form an associated compressed ultrasound image and a compressed thermal image; Encrypted storage module: used to upload the associated compressed ultrasound images and compressed thermal images to the cloud server and perform encrypted storage processing in a preset storage format.
9. An image processing device, comprising a processor and a memory, characterized in that: The processor runs a computer program or code stored in the memory to implement the inspection image processing method according to any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program or code, characterized in that: When the computer program or code is executed by a processor, the inspection image processing method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
DICOM image file storage method
CN101404029A
Method for compressing and uncompressing image based on color classification and cluster
CN103458242A
Image loading method and device, electronic equipment and storage medium
CN113241153A
Medical image management method and device, electronic equipment and storage medium
CN113946851A
Multi-mode-based image fusion and superposition method and related device
CN117710229A
