Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
Referring to fig. 1, the present invention provides an image loading method, including:
step 101, acquiring multi-sequence image data;
102, performing linkage processing on meta information of multi-sequence image data to obtain a first linkage sequence image;
step 103, acquiring current image data corresponding to a current active window;
104, determining an image loading priority according to the current image data and the first linkage sequence image;
and 105, loading the background task according to the image loading priority.
The embodiment of the invention provides an image loading method, which is used for improving the situation that a client side is easy to jam when viewing medical images and improving the use experience of a user. The embodiment of the invention provides an intelligent loading method, which comprises the steps of processing the acquired meta-information of multi-sequence image data in advance according to the linkage mapping relation among the multi-sequence image data to obtain a first linkage sequence image. Wherein, the meta information of the multi-sequence image data comprises: the storage address and the image number of each sequence image in the multi-sequence image data and the linkage relation between each sequence and other sequences; in the obtained first linkage sequence image, the linkage mapping relation between each sequence and other sequences and between the image data in each sequence is relatively perfect. And then acquiring corresponding current image data according to the current active window, and determining the image loading priority by combining the current image data and the first linkage sequence image. And finally, loading background tasks according to the determined image loading priority, namely calling background task scheduling provided by the client browser according to the image loading priority, and performing loading operation when the browser is idle. The loading operation does not affect the response of the page to the foreground user operation, and the pre-display image is loaded in advance in idle time, so that the user experience is greatly improved.
The specific image loading priority content is formulated according to the viewing sequence of the medical image by the doctor, for example, the current image data corresponding to the current active window needs to be loaded first, so that the current image data is determined as a first loading priority, and the previous image data and the next image data in the same sequence of the current image data are relatively likely to be viewed, so that the previous image data and the next image data in the same sequence of the current image data can be determined as a second loading priority; and determining a third loading priority, a fourth loading priority and the like according to the linkage mapping relation between the first linkage sequence image and the second loading priority to form the final image loading priority.
Referring to fig. 2, in an embodiment, the performing the linkage processing on the meta information of the multi-sequence image data to obtain the first linkage sequence image includes:
step 201, performing intra-sequence linkage processing on each image data corresponding to each sequence in the multi-sequence image data to obtain an intra-sequence linkage image of each image data corresponding to each sequence;
step 202, performing inter-sequence linkage processing on each image data to obtain an inter-sequence linkage image corresponding to each image data;
step 203, determining a first linkage sequence image according to the intra-sequence linkage image and the inter-sequence linkage image.
In the embodiment of the invention, the linkage processing is performed on the meta-information of the multi-sequence image data, and on one hand, the intra-sequence linkage processing is performed on each image data in each sequence, namely, the linkage mapping relation between each image data and other image data in the sequence is established for each image data. Specifically, if the number of images in a sequence is 100, and a linkage mapping relationship between the 50 th image data and the 49 th image data and the 51 st image data can be established for the 50 th image in the sequence, when 50 images need to be loaded, the background puts the two image data having the linkage mapping relationship with the 50 th image data into a priority loading task in an idle state. Thus, when the user is watching the 50 th image data in the sequence, the 49 th and 51 th images are also in the background loading task, and the next time the client switches to the 49 th or 51 th image in the sequence, the client has completed loading, the instant loading pause phenomenon can not occur, and the user experience is greatly improved.
On the other hand, in the embodiment of the present invention, performing the linkage processing on the meta information of the multiple sequences of image data further includes performing inter-sequence linkage processing on each image data, that is, establishing a linkage mapping relationship between each image data and image data in other sequences. When the client views a blood vessel related image, the page includes an original image, a VR (Volume Rendering) image, a CPR (Curved surface Reconstruction) image, a short-axis image, and a straightened image, all of which need to read the information of the center line of the blood vessel, and the position of the center line of the current blood vessel is correspondingly linked with the current display image of the original image sequence, the current image of the VR image sequence, the current image of the CPR image sequence, the current image of the short-axis image sequence, and the current image of the straightened image sequence. Thus, when the index of the original image sequence is switched, the position of the center line of the blood vessel of the current page is changed, and the change of the corresponding display image in the corresponding CPR image sequence, VR image sequence, short axis image sequence and straightening image sequence is triggered to form the linkage mapping relation among the sequences. And finally, integrating according to the linkage relation between the linkage images in the sequence and the linkage images among the sequence to obtain a first linkage sequence image with a relatively perfect linkage mapping relation.
In one embodiment, determining the image loading priority based on the current image data and the first linked sequence image comprises:
determining the current image data as first loading data;
determining the in-sequence linkage image corresponding to the first loading data as second loading data;
determining the inter-sequence linkage image corresponding to the second loading data as third loading data;
and the loading priorities of the first loading data, the second loading data and the third loading data are sequentially reduced.
In the embodiment of the present invention, determining the image loading priority according to the current image data and the first linkage sequence image specifically includes: determining the corresponding current image data of the current active window as first loading data, namely first loading priority; then, determining linkage images in the sequence corresponding to the first loading data, namely a plurality of images before and after the current image data in the sequence as second loading data, namely a second loading priority, wherein the possibility that the plurality of images before and after the current image data are loaded relatively soon is the largest, and therefore the plurality of images before and after the current image data are used as the second loading priority; and then according to the linkage degree of the images, determining the inter-sequence linkage images corresponding to the second loading data, namely the inter-sequence linkage images of a plurality of images before and after the current image data, as third loading data, namely a third loading priority. The image loading priority is set according to the viewing habit of a general doctor on the medical image, and background task loading is performed according to the priority, so that the image viewing fluency of the client side is facilitated.
Referring to fig. 3, in one embodiment, determining the first linked sequence image according to the intra-sequence linked image and the inter-sequence linked image includes:
step 301, obtaining client operation data;
step 302, extracting operation associated data of the client operation data;
step 303, performing re-linkage processing on the intra-sequence linkage image and the inter-sequence linkage image according to the operation association data to obtain a modified intra-sequence linkage image and a modified inter-sequence linkage image;
step 304, determining a first linkage sequence image according to the modified intra-sequence linkage image and the modified inter-sequence linkage image.
In the embodiment of the invention, the step of acquiring the client operation data comprises the steps of acquiring client sequence switching data and client image switching data; correspondingly, extracting operation associated data from the client operation data comprises extracting associated data from the client sequence switching data and extracting associated data from the client image switching data, specifically, extracting corresponding inter-high-frequency sequence switching data from the client sequence switching data and corresponding intra-high-frequency sequence switching data from the client image switching data; and performing re-linkage processing on the original inter-sequence linkage image and the original intra-sequence linkage image according to the extracted inter-high-frequency sequence switching data and the extracted intra-high-frequency sequence switching data to obtain a modified intra-sequence linkage image and a modified inter-sequence linkage image which further reflect the client operation data. And finally, determining a first linkage sequence image according to the modified intra-sequence linkage image and the modified inter-sequence linkage image, so that the linkage mapping relation between preloaded image data can be further perfected, and the image loading priority order more suitable for the operation of the client side can be established.
The re-linkage processing of the original inter-sequence linkage image according to the high-frequency inter-sequence switching data specifically comprises the following steps: extracting specific inter-sequence image data and linkage mapping relation corresponding to the high-frequency inter-sequence switching data, and correspondingly adding the linkage mapping relation into corresponding specific image data in the original inter-sequence linkage image; similarly, the method for performing the re-linkage processing on the original intra-sequence linkage image according to the intra-high-frequency-sequence switching data specifically comprises the following steps: and extracting the image data in the specific sequence and the linkage mapping relation corresponding to the switching data in the high-frequency sequence, and correspondingly adding the linkage mapping relation into the corresponding specific image data in the original sequence linkage image.
In an embodiment, after determining the inter-sequence linked image corresponding to the second loaded data as the third loaded data, the method further includes:
and determining the corrected inter-sequence linkage image corresponding to the first loading data as fourth loading data.
In the embodiment of the invention, after the third loading data is determined to be the inter-sequence linkage image corresponding to the second loading data, the corrected inter-sequence linkage image corresponding to the first loading data is determined to be the fourth loading data, namely the corrected inter-sequence linkage image corresponding to the current image data, and because the linkage mapping relation corresponding to the high-frequency inter-sequence switching data is added to the corrected inter-sequence linkage image, the image data obtained according to the linkage mapping relation has higher loading possibility, and the establishment of the image loading priority more suitable for the operation of the client is facilitated.
In one implementation, the operation-associated data extraction of the client operation data includes:
and extracting focus data in the client operation data.
In the embodiment of the invention, considering that the user usually pays most attention to the focus information and the focus data has important meaning for the user, when the user is reflected in the operation data of the client, the operation associated data extraction on the operation data of the client comprises the step of extracting the focus data in the operation data of the client. The focus data at least comprises focus images and index information of the focus images, namely the linkage mapping relation of the focus images. Then carrying out secondary linkage processing on the intra-sequence linkage image and the inter-sequence linkage image according to the focus data, specifically, searching corresponding focus image data in the intra-sequence linkage image and the inter-sequence linkage image, and adding the linkage mapping relation of the focus image into the intra-sequence linkage image and the inter-sequence linkage image to obtain a corrected intra-sequence linkage image and a corrected inter-sequence linkage image with the focus image linkage relation; and finally, determining the first linkage sequence image according to the modified in-sequence linkage image and the modified inter-sequence linkage image of the focus data, so that the linkage relation of the first linkage sequence image can be further improved, the establishment of an image loading priority sequence more suitable for the operation of the client is facilitated, and the image loading effect and the user experience of the client are further improved.
In an embodiment, after determining the first linkage sequence image according to the modified intra-sequence linkage image and the modified inter-sequence linkage image of the lesion data, determining the image loading priority according to the current image data and the first linkage sequence image may further include: and determining the inter-sequence linkage image which corresponds to the first loading data and is corrected according to the focus data as fifth loading data.
Referring to fig. 4, another aspect of the present invention provides an image loading apparatus, including:
a first obtaining module 401, configured to obtain multiple-sequence image data;
a first linkage module 402, configured to perform linkage processing on meta information of multi-sequence image data to obtain a first linkage sequence image;
a second obtaining module 403, configured to obtain current image data corresponding to the current active window;
a priority determining module 404, configured to determine an image loading priority according to the current image data and the first linkage sequence image;
and a priority loading module 405, configured to load a background task according to the image loading priority.
The embodiment of the invention provides an image loading device, which is used for improving the situation that a client side is easy to jam when viewing medical images and improving the use experience of a user. The embodiment of the invention provides an intelligent loading device, which comprises a first obtaining module 401 for obtaining multi-sequence image data, and a first linkage module 402 for processing the meta information of the obtained multi-sequence image data in advance according to the linkage mapping relation between the multi-sequence image data to obtain a first linkage sequence image. Wherein, the meta information of the multi-sequence image data comprises: the storage address and the image number of each sequence image in the multi-sequence image data and the linkage relation between each sequence and other sequences; in the obtained first linkage sequence image, the linkage mapping relation between each sequence and other sequences and between the image data in each sequence is relatively perfect. Then, the current image data is obtained through the second obtaining module 403, the corresponding current image data is obtained according to the current active window through the priority determining module 404, and the image loading priority is determined by combining the current image data and the first linkage sequence image. Finally, background task loading is performed through the priority loading module 405 according to the determined image loading priority, that is, background task scheduling provided by the client browser is called according to the image loading priority, and loading operation is performed when the browser is idle. The loading operation does not affect the response of the page to the foreground user operation, and the pre-display image is loaded in advance in idle time, so that the user experience is greatly improved.
The specific image loading priority content is formulated according to the viewing sequence of the medical image by the doctor, for example, the current image data corresponding to the current active window needs to be loaded first, so that the current image data is determined as a first loading priority, and the previous image data and the next image data in the same sequence of the current image data are relatively likely to be viewed, so that the previous image data and the next image data in the same sequence of the current image data can be determined as a second loading priority; and determining a third loading priority, a fourth loading priority and the like according to the linkage mapping relation between the first linkage sequence image and the second loading priority to form the final image loading priority.
In one embodiment, the first linkage module 402 includes:
the in-sequence linkage unit is used for carrying out in-sequence linkage processing on each image data corresponding to each sequence in the multi-sequence image data to obtain an in-sequence linkage image of each image data corresponding to each sequence;
the inter-sequence linkage unit is used for carrying out inter-sequence linkage processing on each image data to obtain an inter-sequence linkage image corresponding to each image data;
and the first linkage determining unit is used for determining a first linkage sequence image according to the intra-sequence linkage image and the inter-sequence linkage image.
In the embodiment of the invention, the linkage processing is performed on the meta-information of the multi-sequence image data, and on one hand, the intra-sequence linkage processing is performed on each image data in each sequence through the intra-sequence linkage unit, namely, the linkage mapping relation between each image data and other image data in the sequence is established for each image data. Specifically, if the number of images in a sequence is 100, and a linkage mapping relationship between the 50 th image data and the 49 th image data and the 51 st image data can be established for the 50 th image in the sequence, when 50 images need to be loaded, the background puts the two image data having the linkage mapping relationship with the 50 th image data into a priority loading task in an idle state. Thus, when the user is watching the 50 th image data in the sequence, the 49 th and 51 th images are also in the background loading task, and the next time the client switches to the 49 th or 51 th image in the sequence, the client has completed loading, the instant loading pause phenomenon can not occur, and the user experience is greatly improved.
On the other hand, in the embodiment of the present invention, performing the linkage processing on the meta information of the multiple sequences of image data further includes performing inter-sequence linkage processing on each image data, that is, establishing a linkage mapping relationship between each image data and image data in other sequences through an inter-sequence linkage unit. If the client views a blood vessel related image, the page includes an original image, a VR image, a CPR image, a short-axis image, and a straightened image, all of which need to read the information of the center line of the blood vessel, and the position of the center line of the current blood vessel is correspondingly linked with the current display image of the original image sequence, the current image in the VR image sequence, the current image in the CPR image sequence, the current image in the short-axis image sequence, and the current image in the straightened image sequence. Thus, when the index of the original image sequence is switched, the position of the center line of the blood vessel of the current page is changed, and the change of the corresponding display image in the corresponding CPR image sequence, VR image sequence, short axis image sequence and straightening image sequence is triggered to form the linkage mapping relation among the sequences. And finally, integrating the linkage relation between the intra-sequence linkage images and the inter-sequence linkage images through a first linkage determining unit to obtain a first linkage sequence image with a relatively perfect linkage mapping relation.
In one embodiment, the first linkage determining unit includes:
the first determining subunit is used for determining the current image data as first loading data;
the second determining subunit is used for determining the in-sequence linkage image corresponding to the first loading data as second loading data;
and the third determining subunit is used for determining the inter-sequence linkage image corresponding to the second loading data as third loading data.
In the embodiment of the present invention, determining the image loading priority according to the current image data and the first linkage sequence image specifically includes: determining the corresponding current image data of the current active window as first loading data through a first determining subunit, namely, a first loading priority; then, determining linkage images in the sequence corresponding to the first loading data through a second determining subunit, namely determining a plurality of images before and after the current image data in the sequence as second loading data, namely a second loading priority, wherein the plurality of images before and after the current image data are the highest possibility of being loaded relatively to the future, and therefore the plurality of images before and after the current image data are used as the second loading priority; and then according to the linkage degree of the images, determining the inter-sequence linkage images corresponding to the second loading data, namely the inter-sequence linkage images of a plurality of images before and after the current image data, as third loading data, namely a third loading priority through a third determining subunit. The image loading priority is set according to the viewing habit of a general doctor on the medical image, and background task loading is performed according to the priority, so that the image viewing fluency of the client side is facilitated.
Another aspect of the present invention provides a computer storage medium, which includes a set of computer-executable instructions, and when executed, the computer storage medium is configured to perform any one of the image loading methods described above.
The computer storage medium provided by the embodiment of the invention comprises a set of computer executable instructions capable of executing the image loading method, wherein the image loading method is used for improving the situation that the medical image is easy to jam when viewed by a client, and improving the use experience of a user. According to the image loading method in the embodiment of the invention, the acquired meta-information of the multi-sequence image data is processed in advance according to the linkage mapping relation among the multi-sequence image data to obtain the first linkage sequence image. Wherein, the meta information of the multi-sequence image data comprises: the storage address and the image number of each sequence image in the multi-sequence image data and the linkage relation between each sequence and other sequences; in the obtained first linkage sequence image, the linkage mapping relation between each sequence and other sequences and between the image data in each sequence is relatively perfect. And then acquiring corresponding current image data according to the current active window, and determining the image loading priority by combining the current image data and the first linkage sequence image. And finally, loading background tasks according to the determined image loading priority, namely calling background task scheduling provided by the client browser according to the image loading priority, and performing loading operation when the browser is idle. The loading operation does not affect the response of the page to the foreground user operation, and the pre-display image is loaded in advance in idle time, so that the user experience is greatly improved.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.