CN112632301B - Pathological image display method, pathological image display device, electronic equipment and storage medium - Google Patents

Pathological image display method, pathological image display device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112632301B
CN112632301B CN202011513950.6A CN202011513950A CN112632301B CN 112632301 B CN112632301 B CN 112632301B CN 202011513950 A CN202011513950 A CN 202011513950A CN 112632301 B CN112632301 B CN 112632301B
Authority
CN
China
Prior art keywords
image data
image
data block
resolution level
storage space
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011513950.6A
Other languages
Chinese (zh)
Other versions
CN112632301A (en
Inventor
杨光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202011513950.6A priority Critical patent/CN112632301B/en
Publication of CN112632301A publication Critical patent/CN112632301A/en
Application granted granted Critical
Publication of CN112632301B publication Critical patent/CN112632301B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H30/00ICT specially adapted for the handling or processing of medical images
    • G16H30/40ICT specially adapted for the handling or processing of medical images for processing medical images, e.g. editing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Radiology & Medical Imaging (AREA)
  • Epidemiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to the technical field of medical science and technology, and particularly discloses a pathological image display method, a pathological image display device, electronic equipment and a storage medium, wherein the pathological image display method comprises the following steps: acquiring at least one image data of a pathological image, and caching the at least one image data into a preset storage space, wherein the at least one image data corresponds to at least one resolution level one by one; acquiring a first resolution level input by a user, acquiring a first image data block corresponding to the first resolution level from a storage space according to the first resolution level and the size of a display window, and displaying a first sub-image corresponding to the first image data block on the display window, wherein the first resolution level is any one of at least one resolution level; and acquiring a second image data block corresponding to the first resolution level from the storage space according to the operation of the user, and displaying a second sub-image corresponding to the second image data block on the display window. The embodiment of the application is beneficial to improving the experience of the user for consulting the pathological image.

Description

Pathological image display method, pathological image display device, electronic equipment and storage medium
Technical Field
The application relates to the technical field of image processing, in particular to a pathological image display method, a pathological image display device, electronic equipment and a storage medium.
Background
With the progress of medical science and technology, pathology images with larger resolution can be imaged, so that the memory of pathology images is also larger and larger, for example, pathology images in formats of ndpi, svs, kfb and the like often have a plurality of G, however, currently, the number of tools for reading pathology images with high resolution on the market is small, even if the pathology images with high resolution are supported, but the case images with high resolution which can be displayed in various formats are difficult to support. For example, although the software ndpi viewer. Exe is high in film reading efficiency and good in user experience, the software only supports a single ndpi image format, and images meeting other formats cannot be read.
However, for a certain pathology, there may be multiple formats and resolutions of pathology images, so the existing manner of displaying the pathology images with high resolution is relatively single, which affects the user's experience of looking up.
Disclosure of Invention
The embodiment of the application provides a pathological image display method, a pathological image display device, electronic equipment and a storage medium, which are used for realizing the review of pathological images in various formats and improving the review experience of users on the pathological images.
In a first aspect, an embodiment of the present application provides a pathological image display method, including:
acquiring at least one image data of a pathological image, and caching the at least one image data into a preset storage space, wherein the at least one image data corresponds to at least one resolution level one by one;
acquiring a first resolution level input by a user, acquiring a first image data block corresponding to the first resolution level from the storage space according to the first resolution level and the size of a display window, and displaying a first sub-image corresponding to the first image data block on the display window, wherein the first resolution level is any one of the at least one resolution level;
acquiring a second image data block corresponding to the first resolution level from the storage space according to the operation of the user, and displaying a second sub-image corresponding to the second image data block on the display window;
wherein the first sub-image and the second sub-image are different sub-areas in the pathology image.
In a second aspect, an embodiment of the present application provides a pathological image display device, including:
The receiving and transmitting unit is used for acquiring at least one image data of the pathological image;
the processing unit is used for caching the at least one image data to a preset storage space, and the at least one image data corresponds to the at least one resolution level one by one;
the receiving and transmitting unit is also used for acquiring a first resolution level input by a user;
the processing unit is further used for acquiring a first image data block corresponding to the first resolution level from the storage space according to the first resolution level and the size of a display window, and displaying a first sub-image corresponding to the first image data block on the display window, wherein the first resolution level is any one of the at least one resolution level;
the processing unit is further used for acquiring a second image data block corresponding to the first resolution level from the storage space according to the operation of the user, and displaying a second sub-image corresponding to the second image data block on the display window;
wherein the first sub-image and the second sub-image are different sub-areas in the pathology image.
In a third aspect, an embodiment of the present application provides an electronic device, including: and a processor connected to a memory for storing a computer program, the processor being configured to execute the computer program stored in the memory, to cause the electronic device to perform the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program, the computer program causing a computer to perform the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program, the computer being operable to cause a computer to perform the method according to the first aspect.
The implementation of the embodiment of the application has the following beneficial effects:
it can be seen that, in this embodiment of the present application, firstly, the image data of a pathology image under each resolution level is cached in a preset storage space, and a partial area (i.e., the first sub-image) of the pathology image is displayed in a display window, and a user can freely drag the pathology image to view any area in the pathology image.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a pathological image display method according to an embodiment of the present application;
fig. 2 is a schematic diagram of caching image data according to an embodiment of the present application;
fig. 3 is a flow chart of reading image data according to an embodiment of the present application;
fig. 4 is a functional unit block diagram of a pathological image display device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a pathological image display device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms "first," "second," "third," and "fourth" and the like in the description and in the claims of this application and in the drawings, are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, result, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
Referring to fig. 1, fig. 1 is a schematic diagram of a pathological image display method according to an embodiment of the present application. The method is applied to a pathological image display device. The method comprises the following steps:
101: the pathological image display device acquires at least one image data of a pathological image, and caches the at least one image data to a preset storage space, wherein the at least one image data corresponds to the at least one resolution level one by one.
For example, the user may input basic information of the pathology image in the information input field of the pathology image display apparatus, for example, the basic information may be a name, a number, an identification, etc. of the pathology image; then, the pathology image display apparatus reads at least one image data corresponding to the at least one resolution LeveL from the medical data block according to the basic information of the pathology image, wherein the at least one resolution LeveL may be LeveL0 to LeveL9.
The medical data block can be an openhide medical data block, and the openhide supports reading of image data of pathological images in various formats, so that the pathological images in various formats can be read and displayed on a display window. Accordingly, the pathology image display apparatus may read at least one image data of the pathology image at least one resolution level through the open source interface of the openhide. The at least one image data may be read from the openhide by a memory file mapping technique, for example.
The preset storage space is a storage space for caching the pathological image, and may be a temporary entity space or a virtual storage space, which is not limited in this application.
In one embodiment of the present application, the preset storage space is a 3D storage space, and thus, the at least one image data may be stored to a 3D memory in the 3D storage space. As shown in fig. 2, the 3D memory has a plurality of active layers, and the at least one image data may be stored to a different active layer. For example, each image data may be assigned with an active layer index information indicating the location information of an active layer in which the image data is stored, and different image data may be stored to different active layers according to the active layer index information. For example, before the active layer index information is allocated for each image data, a remaining storage space of each active layer may be determined, and then the at least one image data may be allocated with the active layer index information according to the size of the remaining storage space, e.g., an active layer having a larger remaining space may be allocated to image data having a larger resolution.
Further, each active layer may be provided with a plurality of memories, and thus, in assigning active layer index information to each image data, corresponding memory index information indicating a position of a memory storing the image data in the active layer may also be assigned to each image data.
Therefore, the image display apparatus can store each image data to the corresponding memory, i.e., the preset storage space, in accordance with the allocated active layer index information and memory index information for each image data.
102: the pathological image display device acquires a first resolution level input by a user, acquires a first image data block corresponding to the first resolution level from the storage space according to the first resolution level and the size of a display window, and displays a first sub-image corresponding to the first image data block on the display window, wherein the first resolution level is any one of the at least one resolution level.
Illustratively, the pathological image display device determines a storage path of the image data corresponding to the first resolution level in the storage space, for example, active layer index information and memory index information of the image data; and then, according to the storage path, the size of the display window and the preset area, obtaining a first index value of the first image data block, wherein the first index value comprises a first pixel coordinate, a length and a width of the first image data block, and the first pixel coordinate is a pixel coordinate of a pixel point at the leftmost upper corner in the first image data block. Specifically, since the display window cannot display all the pathology at one time, a default display area may be set, and the default display area is a partial area in which a pathology image is displayed by default when a user views one pathology image and is displayed for the first time. By way of example, the preset area may be a central area, an upper left corner area, etc. of the pathology image; and finally, reading a first image data block corresponding to the first resolution level from the storage space according to the storage path and the first index value, namely cascading the index information of the storage path with the first index value to obtain a first target index value, and reading the first image data block from the preset space according to the target index value. And rendering the first image data block, and displaying the rendered first sub-image in a display window.
For example, if the default display area is set as the center area, as shown in fig. 3, the first index value ((x, y), L, W) is determined, and then the first index value and the index information of the storage path are concatenated to obtain a first target index value (Layer) id ,ceLL id (x, y), L, W), wherein Layer id Representing the active layer index, ceLL id Representing the memory index, (x, y) representing the first pixel coordinates, L representing the length of the first image data block, W representing the width; then, according to the first target index value, reading a first image data block corresponding to the first resolution level from the corresponding active layer and the memory; finally, the first image data block is processedAnd rendering rows, and displaying the first sub-image in the display window.
103: and the pathological image display device acquires a second image data block corresponding to the first resolution level from the storage space according to the operation of the user, and displays a second sub-image corresponding to the second image data block in the display window, wherein the first sub-image and the second sub-image are different sub-areas in the pathological image.
Illustratively, the user operation includes a drag operation, a click operation, a move instruction (e.g., an instruction generated by clicking an up, down, left, right key of a keyboard or virtual keyboard), and so forth. For example, since the display window displays a partial region of the pathology image, when the user wants to see other regions of the pathology image, the pathology image may be dragged by a mouse or directly clicked by a mouse.
For example, in the case that the user operation is a drag operation, determining a drag trajectory of the pathology image according to the drag operation; determining a second index value according to the dragging track and the first index value, namely determining the number of pixel points dragged by the user and the dragging direction according to the dragging track, for example, if the user drags four pixel points leftwards, the second index value is ((x-4, y), L, W); and acquiring a second image data block corresponding to the second index value from the storage space according to the second index value and the storage path, rendering the second image data block, and displaying a rendering result (namely a second sub-image) on the display window, wherein the second index value comprises a second pixel coordinate, a length and a width, the second pixel coordinate is a pixel coordinate of a pixel point at the leftmost upper corner in the second image data block, and the length and the width are respectively the length and the width of the second image data block.
For example, in the case where the user operation is a movement instruction, the movement direction and the movement distance of the pathology image are determined according to the movement instruction, that is, according to the mapping relationship among the movement instruction, the movement direction, and the movement distance. For example, a movement instruction generated by clicking the key "∈r once is used for indicating to move 4 pixels upwards; determining the second index value according to the moving direction, the moving distance and the first index value; and acquiring a second image data block corresponding to the second index value from the storage space according to the second index value and the storage path.
Likewise, a second image data block is obtained from the storage space according to the second index value, namely the second index value and the storage path are cascaded to obtain a second target index value; then, the second image data block is read from the storage space according to the second target index value.
It should be understood that, in practical applications, the user may move the pathology image by other ways to view other areas of the pathology image, and the moving way is not limited in this application.
The second image data is subjected to coordinate transformation according to the second pixel coordinates of the second image data, so that the second image is transformed to the center of the display window, and the second sub-image corresponding to the second image data block is displayed centrally, so that no matter which area of the pathological image is watched, the area can be displayed centrally, and the viewing experience of a user is improved. Specifically, a third pixel coordinate of the second image data block, namely a pixel coordinate of a central pixel point of the second image data block, is obtained; then, determining a transformation matrix according to the third pixel coordinate and the center coordinate of the display window; and according to the transformation matrix, performing pixel coordinate transformation on the second image data block, rendering the second image data block subjected to the pixel coordinate transformation, and displaying a second sub-image corresponding to the second image data block in the display window.
It will be appreciated that the second image data block may be subjected to a coordinate transformation prior to rendering the second image data block, such that the rendered second sub-image may be displayed directly or may be rendered first, and then subjected to a pixel coordinate transformation prior to rendering the second sub-image to transform the second sub-image to a centered display. The sequence of the pixel coordinate transformation is not limited in this application.
It can be seen that, although only a partial area of the pathological image is displayed in the display window at each time, the user can freely drag the pathological image to watch any area in the pathological image, and because the image data of the pathological image is cached in the storage space in advance before the pathological image is displayed, the time for loading a new area is relatively short in the process of dragging the pathological image by the user, the user can watch a complete image visually, so that no matter how large the resolution of the pathological image is, the pathological image can be completely displayed, the user can watch the complete pathological image without being limited by the resolution, and the experience of the user for looking up the pathological image is improved.
In one embodiment of the present application, the display window includes an labeling area, and in a case that the user clicks on the labeling area, the pathological image display device may acquire a region to be labeled in the pathological image; acquiring a fourth image data block corresponding to the region to be marked from the storage space, wherein the mode of acquiring the fourth image data block is similar to the mode of acquiring the first image data block and is not described; and then rendering the fourth image data block, and displaying the region to be annotated in the display window.
For example, the user may input annotation data in the annotation region and flash display the annotation data input by the user in the annotation region, thereby facilitating the annotation by the user.
In one embodiment of the application, in order to more conveniently locate a certain area in the pathological image, a thumbnail of the pathological image can be set in the display window, a user can click on a corresponding area in the thumbnail, then the area can be quickly located, and the image of the area is displayed in the display window, so that the labeling personnel can conveniently and quickly locate, review and label, and the like.
In one embodiment of the present application, since only one image area in the pathology image is displayed at a time, there is no overall visual effect, and it may not be possible for the user to determine explicitly which areas need to be marked. Therefore, the pathological image can be compared with the marked pathological image, and the area to be marked in the pathological image can be determined. Under the condition that the image displayed by the labeling window comprises the region to be labeled, the region to be labeled is highlighted to prompt the highlighted region to be the region to be labeled, so that a user can label the highlighted region conveniently, wherein the highlighting can be displayed in a box outlining or coloring mode, and the highlighting mode is not limited.
In one embodiment of the present application, the resolution of the pathology image is switched during the process of switching the resolution of the pathology image, for example, when the currently displayed image is reduced or enlarged, i.e., the resolution of the pathology image is switched. The present application describes reduction of an image and resolution as an example. Specifically, in the process of switching from the first resolution level to the second resolution level, the second sub-image can be transformed by a bilinear interpolation algorithm to obtain a third sub-image, and the third sub-image is displayed in the display window, wherein the respective resolution level of the third sub-image is the second resolution level; then, a third image data block corresponding to the second resolution level is acquired from the preset storage space, wherein a manner of acquiring the third image data block is similar to that of acquiring the first image data block, and is not described. And rendering the third image data block to obtain a fourth sub-image, and displaying the fourth sub-image in the display window, namely replacing the third sub-image with the fourth sub-image for display.
It can be seen that when the resolution is switched, for example, when the currently displayed image is reduced, the conventional image scaling technology is used for smoothing and transition, for example, an interpolation algorithm can be used for displaying the reduced image, when it is determined that the reduction multiple can reduce the current resolution to the next low resolution, image data corresponding to the low resolution is acquired from the storage space, then the image data is rendered, and an image with the low resolution is displayed, so that in the process of switching the resolution, the transition is performed by adopting the interpolation algorithm, and in the process of switching the resolution, the image which is excessively displayed can be displayed first, and thus the phenomenon of image display blocking caused by switching the resolution is avoided.
In some possible embodiments, the pathological image display method of the present application may be applied to the field of smart medical treatment. For example, the pathological image of the patient can be displayed through the pathological image display method, so that doctors can watch the pathological image under each resolution, and accordingly, corresponding diagnosis and treatment schemes can be better formulated for the patient, and further progress of medical science and technology is promoted.
Referring to fig. 4, fig. 4 is a functional unit block diagram of a pathological image display device according to an embodiment of the present application. The pathology image display apparatus 400 includes: a transceiver unit 401 and a processing unit 402, wherein:
a transceiver unit 401 for acquiring at least one image data of a pathology image;
a processing unit 402, configured to cache the at least one image data into a preset storage space, where the at least one image data corresponds to at least one resolution level one by one;
the transceiver unit 401 is further configured to obtain a first resolution level input by a user;
the processing unit 402 is further configured to obtain a first image data block corresponding to the first resolution level from the storage space according to the first resolution level and a size of a display window, and display a first sub-image corresponding to the first image data block in the display window, where the first resolution level is any one of the at least one resolution level;
The processing unit 402 is further configured to obtain a second image data block corresponding to the first resolution level from the storage space according to the operation of the user, and display a second sub-image corresponding to the second image data block on the display window;
wherein the first sub-image and the second sub-image are different sub-areas in the pathology image.
In one embodiment of the present application, the processing unit 402 is specifically configured to, in acquiring, from the storage space, a first image data block corresponding to the first resolution level according to the first resolution level and a size of a display window:
determining a storage path of the image data corresponding to the first resolution level in the storage space;
obtaining a first index value of the first image data block according to the storage path, the size of the display window and a preset area, wherein the first index value comprises a first pixel coordinate, a length and a width of the first image data block, the preset area is an area in which a preset pathological image is initially displayed in the display window, and the first pixel coordinate is a pixel coordinate of a pixel point at the leftmost upper corner in the first image data block;
And reading a first image data block corresponding to the first resolution level from the storage space according to the storage path and the first index value.
In one embodiment of the present application, in a case where the operation of the user is a drag operation, the processing unit 402 is specifically configured to, in acquiring, from the storage space according to the operation of the user, a second image data block corresponding to the first resolution level:
determining a dragging track of the pathological image according to the dragging operation;
determining a second index value according to the dragging track and the first index value, wherein the second index value comprises second pixel coordinates, length and width of the second image data block, and the second pixel coordinates are pixel coordinates of a pixel point at the most sitting angle of the second image data block;
and acquiring the second image data block from the storage space according to the second index value and the storage path of the image data corresponding to the first resolution level in the storage space.
In one embodiment of the present application, in the case where the operation of the user is a movement instruction, the processing unit 402 is specifically configured to, in acquiring, from the storage space according to the operation of the user, a second image data block corresponding to the first resolution level:
Determining a moving direction corresponding to the moving instruction;
determining a moving distance corresponding to the moving instruction of the user according to the mapping relation between the moving instruction and the moving distance;
determining a second index value according to the moving direction, the moving distance and the first index value, wherein the second index value comprises second pixel coordinates, length and width of the second image data block, and the second pixel coordinates are pixel coordinates of a pixel point of the most sitting upper corner of the second image data block;
and acquiring the second image data block from the storage space according to the second index value and the storage path of the image data corresponding to the first resolution level in the storage space.
In one embodiment of the present application, in the aspect that the display window displays the second sub-image corresponding to the second image data block, the processing unit 402 is specifically configured to:
acquiring a third pixel coordinate of the second image data block, wherein the third pixel coordinate is a pixel coordinate of a central pixel point of the second image data block;
determining a transformation matrix according to the third pixel coordinates and the center coordinates of the display window;
Performing pixel coordinate transformation on the second image data block according to the transformation matrix;
and rendering the second image data block after the pixel coordinate transformation, and displaying a second sub-image corresponding to the second image data block in the display window.
In one embodiment of the present application, the display window includes a labeling area, and the processing unit 402 is further configured to obtain a region to be labeled in the pathological image when the user clicks the labeling area; acquiring a third image data block corresponding to the region to be marked from the storage space; and rendering the third image data block to display the region to be annotated on the display window.
In one embodiment of the present application, the processing unit 402 is further configured to:
in the process of switching from the first resolution level to the second resolution level, transforming the second sub-image through a bilinear interpolation algorithm to obtain a third sub-image, and displaying the third sub-image on the display window, wherein the resolution level of the third sub-image is the second resolution level;
and acquiring a third image data block corresponding to the second resolution level from the storage space, rendering the third image data block, and displaying a fourth sub-image corresponding to the third image data block in the display window.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 5, the electronic device 500 includes a transceiver 501, a processor 502, and a memory 503. Which are connected by a bus 504. The memory 503 is used to store computer programs and data, and the data stored in the memory 503 may be transferred to the processor 502.
The processor 502 is configured to read a computer program in the memory 503 to perform the following operations:
controlling the transceiver 501 to acquire at least one image data of a pathology image;
caching the at least one image data into a preset storage space, wherein the at least one image data corresponds to at least one resolution level one by one;
control transceiver 501 to obtain a first resolution level of user input;
acquiring a first image data block corresponding to the first resolution level from the storage space according to the first resolution level and the size of a display window, and displaying a first sub-image corresponding to the first image data block on the display window, wherein the first resolution level is any one of the at least one resolution level;
the processing unit is further used for acquiring a second image data block corresponding to the first resolution level from the storage space according to the operation of the user, and displaying a second sub-image corresponding to the second image data block on the display window;
Wherein the first sub-image and the second sub-image are different sub-areas in the pathology image.
In one embodiment of the present application, the processor 502 is specifically configured to, in acquiring a first image data block corresponding to the first resolution level from the storage space according to the first resolution level and the size of the display window:
determining a storage path of the image data corresponding to the first resolution level in the storage space;
obtaining a first index value of the first image data block according to the storage path, the size of the display window and a preset area, wherein the first index value comprises a first pixel coordinate, a length and a width of the first image data block, the preset area is an area in which a preset pathological image is initially displayed in the display window, and the first pixel coordinate is a pixel coordinate of a pixel point at the leftmost upper corner in the first image data block;
and reading a first image data block corresponding to the first resolution level from the storage space according to the storage path and the first index value.
In one embodiment of the present application, in the case where the operation of the user is a drag operation, the processor 502 is specifically configured to, in acquiring, from the storage space according to the operation of the user, a second image data block corresponding to the first resolution level:
Determining a dragging track of the pathological image according to the dragging operation;
determining a second index value according to the dragging track and the first index value, wherein the second index value comprises second pixel coordinates, length and width of the second image data block, and the second pixel coordinates are pixel coordinates of a pixel point at the most sitting angle of the second image data block;
and acquiring the second image data block from the storage space according to the second index value and the storage path of the image data corresponding to the first resolution level in the storage space.
In one embodiment of the present application, in the case where the operation of the user is a movement instruction, the processor 502 is specifically configured to, in acquiring the second image data block corresponding to the first resolution level from the storage space according to the operation of the user:
determining a moving direction corresponding to the moving instruction;
determining a moving distance corresponding to the moving instruction of the user according to the mapping relation between the moving instruction and the moving distance;
determining a second index value according to the moving direction, the moving distance and the first index value, wherein the second index value comprises second pixel coordinates, length and width of the second image data block, and the second pixel coordinates are pixel coordinates of a pixel point of the most sitting upper corner of the second image data block;
And acquiring the second image data block from the storage space according to the second index value and the storage path of the image data corresponding to the first resolution level in the storage space.
In one embodiment of the present application, in terms of the display window displaying a second sub-image corresponding to the second image data block, the processor 502 is specifically configured to:
acquiring a third pixel coordinate of the second image data block, wherein the third pixel coordinate is a pixel coordinate of a central pixel point of the second image data block;
determining a transformation matrix according to the third pixel coordinates and the center coordinates of the display window;
performing pixel coordinate transformation on the second image data block according to the transformation matrix;
and rendering the second image data block after the pixel coordinate transformation, and displaying a second sub-image corresponding to the second image data block in the display window.
In one embodiment of the present application, the display window includes a labeling area, and the processor 502 is further configured to read the computer program in the memory 503 to perform the following operations:
under the condition that a user clicks the labeling area, acquiring an area to be labeled in the pathological image; acquiring a third image data block corresponding to the region to be marked from the storage space; and rendering the third image data block to display the region to be annotated on the display window.
In one embodiment of the present application, the processor 502 is further configured to read the computer program in the memory 503 to perform the following operations:
in the process of switching from the first resolution level to the second resolution level, transforming the second sub-image through a bilinear interpolation algorithm to obtain a third sub-image, and displaying the third sub-image on the display window, wherein the resolution level of the third sub-image is the second resolution level;
and acquiring a third image data block corresponding to the second resolution level from the storage space, rendering the third image data block, and displaying a fourth sub-image corresponding to the third image data block in the display window.
Specifically, the transceiver 501 may be the transceiver unit 401 of the pathological image display device 400 in the embodiment illustrated in fig. 4, and the processor 502 may be the processing unit 402 of the pathological image display device 400 in the embodiment illustrated in fig. 4.
It should be understood that the pathological image display device in the present application may include a smart Phone (such as an Android Phone, an iOS Phone, a WindoWs Phone, etc.), a tablet computer, a palm computer, a notebook computer, a mobile internet device MID (MobiLe Internet Devices, abbreviated as MID), or a wearable device, etc. The above-described pathological image display device is merely exemplary and not exhaustive, and includes but is not limited to the above-described electronic apparatus. In practical application, the pathological image display device may further include: intelligent vehicle terminals, computer devices, etc.
The present application also provides a computer storage medium storing a computer program that is executed by a processor to implement some or all of the steps of any one of the pathology image display methods described in the above method embodiments.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform part or all of the steps of any one of the pathology image display methods described in the method embodiments described above.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all alternative embodiments, and that the acts and modules referred to are not necessarily required in the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, such as the division of the units, merely a logical function division, and there may be additional manners of dividing the actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units described above may be implemented either in hardware or in software program modules.
The integrated units, if implemented in the form of software program modules, may be stored in a computer-readable memory for sale or use as a stand-alone product. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a memory, including several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present application. And the aforementioned memory includes: a usb disk, a Read-OnLy Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs associated hardware, and the program may be stored in a computer readable memory, which may include: flash disk, read-OnLy Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The foregoing has outlined rather broadly the more detailed description of embodiments of the present application, wherein specific examples are provided herein to illustrate the principles and embodiments of the present application, the above examples being provided solely to assist in the understanding of the methods of the present application and the core ideas thereof; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (7)

1. A pathological image display method, characterized by comprising:
acquiring at least one image data of a pathological image, and caching the at least one image data into a preset storage space, wherein the at least one image data corresponds to at least one resolution level one by one;
Acquiring a first resolution level input by a user, acquiring a first image data block corresponding to the first resolution level from the storage space according to the first resolution level and the size of a display window, and displaying a first sub-image corresponding to the first image data block on the display window, wherein the first resolution level is any one of the at least one resolution level;
acquiring a second image data block corresponding to the first resolution level from the storage space according to the operation of the user, and displaying a second sub-image corresponding to the second image data block on the display window;
wherein the first sub-image and the second sub-image are different sub-areas in the pathology image;
the obtaining, from the storage space, a first image data block corresponding to the first resolution level according to the first resolution level and a size of a display window, including: determining a storage path of the image data corresponding to the first resolution level in the storage space; obtaining a first index value of the first image data block according to the storage path, the size of the display window and a preset area, wherein the first index value comprises a first pixel coordinate, a length and a width of the first image data block, the preset area is an area in which a preset pathological image is initially displayed in the display window, and the first pixel coordinate is a pixel coordinate of a pixel point at the leftmost upper corner in the first image data block; reading a first image data block corresponding to the first resolution level from the storage space according to the storage path and the first index value;
The obtaining, according to the operation of the user, a second image data block corresponding to the first resolution level from the storage space includes:
determining a dragging track of the pathological image according to the dragging operation under the condition that the operation of the user is the dragging operation; determining a second index value according to the dragging track and the first index value; determining a moving direction corresponding to the moving instruction under the condition that the operation of the user is the moving instruction; determining a moving distance corresponding to the moving instruction of the user according to the mapping relation between the moving instruction and the moving distance; determining a second index value according to the moving direction, the moving distance and the first index value, wherein the second index value comprises second pixel coordinates, length and width of the second image data block, and the second pixel coordinates are pixel coordinates of a pixel point of the most sitting upper corner of the second image data block; and acquiring the second image data block from the storage space according to the second index value and the storage path of the image data corresponding to the first resolution level in the storage space.
2. The method of claim 1, wherein displaying a second sub-image corresponding to the second image data block in the display window comprises:
acquiring a third pixel coordinate of the second image data block, wherein the third pixel coordinate is a pixel coordinate of a central pixel point of the second image data block;
determining a transformation matrix according to the third pixel coordinates and the center coordinates of the display window;
performing pixel coordinate transformation on the second image data block according to the transformation matrix;
and rendering the second image data block after the pixel coordinate transformation, and displaying a second sub-image corresponding to the second image data block in the display window.
3. The method of claim 1 or 2, wherein the display window includes an annotation region, the method further comprising:
under the condition that a user clicks the labeling area, acquiring an area to be labeled in the pathological image;
acquiring a third image data block corresponding to the region to be marked from the storage space;
and rendering the third image data block to display the region to be annotated on the display window.
4. The method of claim 1, the method further comprising:
in the process of switching from the first resolution level to the second resolution level, transforming the second sub-image through a bilinear interpolation algorithm to obtain a third sub-image, and displaying the third sub-image on the display window, wherein the resolution level of the third sub-image is the second resolution level;
and acquiring a third image data block corresponding to the second resolution level from the storage space, rendering the third image data block, and displaying a fourth sub-image corresponding to the third image data block in the display window.
5. A pathological image display device, characterized by comprising:
the receiving and transmitting unit is used for acquiring at least one image data of the pathological image;
the processing unit is used for caching the at least one image data to a preset storage space, and the at least one image data corresponds to the at least one resolution level one by one;
the receiving and transmitting unit is also used for acquiring a first resolution level input by a user;
the processing unit is further used for acquiring a first image data block corresponding to the first resolution level from the storage space according to the first resolution level and the size of a display window, and displaying a first sub-image corresponding to the first image data block on the display window, wherein the first resolution level is any one of the at least one resolution level;
The processing unit is further used for acquiring a second image data block corresponding to the first resolution level from the storage space according to the operation of the user, and displaying a second sub-image corresponding to the second image data block on the display window;
wherein the first sub-image and the second sub-image are different sub-areas in the pathology image;
the obtaining, from the storage space, a first image data block corresponding to the first resolution level according to the first resolution level and a size of a display window, including: determining a storage path of the image data corresponding to the first resolution level in the storage space; obtaining a first index value of the first image data block according to the storage path, the size of the display window and a preset area, wherein the first index value comprises a first pixel coordinate, a length and a width of the first image data block, the preset area is an area in which a preset pathological image is initially displayed in the display window, and the first pixel coordinate is a pixel coordinate of a pixel point at the leftmost upper corner in the first image data block; reading a first image data block corresponding to the first resolution level from the storage space according to the storage path and the first index value;
The obtaining, according to the operation of the user, a second image data block corresponding to the first resolution level from the storage space includes:
determining a dragging track of the pathological image according to the dragging operation under the condition that the operation of the user is the dragging operation; determining a second index value according to the dragging track and the first index value; determining a moving direction corresponding to the moving instruction under the condition that the operation of the user is the moving instruction; determining a moving distance corresponding to the moving instruction of the user according to the mapping relation between the moving instruction and the moving distance; determining a second index value according to the moving direction, the moving distance and the first index value, wherein the second index value comprises second pixel coordinates, length and width of the second image data block, and the second pixel coordinates are pixel coordinates of a pixel point of the most sitting upper corner of the second image data block; and acquiring the second image data block from the storage space according to the second index value and the storage path of the image data corresponding to the first resolution level in the storage space.
6. An electronic device, comprising: a processor and a memory, the processor being connected to the memory, the memory being for storing a computer program, the processor being for executing the computer program stored in the memory to cause the electronic device to perform the method of any one of claims 1-4.
7. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program, which is executed by a processor to implement the method of any of claims 1-4.
CN202011513950.6A 2020-12-18 2020-12-18 Pathological image display method, pathological image display device, electronic equipment and storage medium Active CN112632301B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011513950.6A CN112632301B (en) 2020-12-18 2020-12-18 Pathological image display method, pathological image display device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011513950.6A CN112632301B (en) 2020-12-18 2020-12-18 Pathological image display method, pathological image display device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112632301A CN112632301A (en) 2021-04-09
CN112632301B true CN112632301B (en) 2023-06-02

Family

ID=75318126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011513950.6A Active CN112632301B (en) 2020-12-18 2020-12-18 Pathological image display method, pathological image display device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112632301B (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102070772B1 (en) * 2012-12-07 2020-01-29 엘지전자 주식회사 Mobile termina and contolling method thereof, and recoding mediun thereof
US9459825B2 (en) * 2013-09-09 2016-10-04 Opus Medicus, Inc. Systems and methods for high-resolution image viewing

Also Published As

Publication number Publication date
CN112632301A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
US7423640B2 (en) Method and system for panoramic display of medical images
JP7061225B2 (en) Focal detection methods, devices, equipment and storage media
US9342145B2 (en) Cursor control
US9342862B2 (en) Zooming a displayed image
CN107622792B (en) Medical image display method and display equipment
CN102525523B (en) Image viewer and CT equipment
CN109840933B (en) Exploring medical visualization parameters in virtual space
CN111430012B (en) System and method for semi-automatically segmenting 3D medical images using real-time edge-aware brushes
CN107391914B (en) Parameter display method, device and equipment
CN112530549B (en) Image display method, device and computer equipment
CN111159598A (en) Image browsing method and device, computer equipment and storage medium
CN112820385A (en) Medical image browsing method, client and system
CN112632301B (en) Pathological image display method, pathological image display device, electronic equipment and storage medium
WO2013114817A1 (en) Image processing apparatus, image processing system, image processing method, and program
CN112365432A (en) Fusion image display method and device and medical image system
Kubisch et al. GPU-based smart visibility techniques for tumor surgery planning
Marović et al. Web-based grid-enabled interaction with 3D medical data
CN108766536A (en) Position line rendering, display methods and device, equipment and storage medium
CN115421631A (en) Interface display method and device
CN109814784B (en) Picture rotation method and device, computer equipment and storage medium
CN114496175A (en) Medical image viewing method, device, equipment and storage medium
CN113805773A (en) Image display method, image display device, computer equipment and storage medium
CN112330707A (en) Image processing method, image processing device, computer equipment and storage medium
US20210125704A1 (en) Techniques for displaying medical image data
CN111651131B (en) Image display method and device and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant