CN109799936B - Image generation method, device, equipment and medium - Google Patents

Image generation method, device, equipment and medium Download PDF

Info

Publication number
CN109799936B
CN109799936B CN201910059110.8A CN201910059110A CN109799936B CN 109799936 B CN109799936 B CN 109799936B CN 201910059110 A CN201910059110 A CN 201910059110A CN 109799936 B CN109799936 B CN 109799936B
Authority
CN
China
Prior art keywords
image
data
display
displayed
scene
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
CN201910059110.8A
Other languages
Chinese (zh)
Other versions
CN109799936A (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.)
Shanghai United Imaging Healthcare Co Ltd
Original Assignee
Shanghai United Imaging Healthcare 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 Shanghai United Imaging Healthcare Co Ltd filed Critical Shanghai United Imaging Healthcare Co Ltd
Priority to CN201910059110.8A priority Critical patent/CN109799936B/en
Publication of CN109799936A publication Critical patent/CN109799936A/en
Application granted granted Critical
Publication of CN109799936B publication Critical patent/CN109799936B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention discloses an image generation method, an image generation device, image generation equipment and an image generation medium, wherein the method comprises the following steps: generating a plurality of image display instructions according to the received image display request; determining the display type of an image to be displayed corresponding to at least one image display instruction, and acquiring local replacement data corresponding to the display type; and generating an image to be displayed based on the current basic data and the local replacement data. The method provided by the embodiment of the invention improves the display effect and efficiency of the image, and simultaneously reduces the occupation of the memory and the display memory.

Description

Image generation method, device, equipment and medium
Technical Field
The embodiments of the present invention relate to the field of images, and in particular, to an image generation method, apparatus, device, and medium.
Background
With the widespread use of images in various fields, the imaging speed, imaging effect, and image data storage required for generating images of images are considerable technical problems. Taking medical image imaging as an example, Volume Rendering (VR) display of blood vessels of heart, brain and other parts can provide important diagnostic basis for doctors clinically, and information such as the shape, structure, size and the like of the blood vessels can be visually and clearly displayed in front of the doctors through a three-dimensional display technology. However, due to the limitation of the scanning accuracy of the CT data and the partial volume effect, the CT value of some blood vessels adhered to bones is higher, and the blood vessels are difficult to be accurately segmented by the segmentation algorithm, so that some highlighted noise and hollow effects on the surfaces of the blood vessels can be seen in the actual VR display process, but the effect is not caused by pathological changes.
In order to eliminate as much as possible the surface pits and burrs of the blood vessels caused by partial volume effects, there are two main implementation strategies: firstly, VR and multi-planar reconstruction display (MPR) use the same volume data and mark (Mask) data, and VR and MPR are smoothed simultaneously on the display effect, specifically, the original CT value (volume data) and segmentation result (Mask data) near the surface of the blood vessel are changed by a certain smoothing algorithm, but because VR and MPR share the same volume data and Mask data, the real effect that the display result on MPR is not originally acquired is caused, and when the thickness of MPR layer is single-layer thickness, the display result is not consistent with the single-layer thickness display result at the same position in 2D; and secondly, VR displays the volume data after smoothing, MPR displays the volume data before smoothing, and the CPU and the GPU respectively store two pieces of volume data.
Disclosure of Invention
The embodiment of the invention provides an image generation method, an image generation device, image generation equipment and an image generation medium, which are used for improving the display effect and efficiency of an image and reducing the occupation of a memory and a display memory.
In a first aspect, an embodiment of the present invention provides an image generation method, including:
generating a plurality of image display instructions according to the received image display request;
determining a display scene of an image to be displayed corresponding to at least one image display instruction, and acquiring local replacement data corresponding to the display scene;
and generating an image to be displayed based on the current basic data and the local replacement data.
In a second aspect, an embodiment of the present invention further provides an image generating apparatus, including:
the image instruction generating module is used for generating a plurality of image display instructions according to the received image display request;
the local data acquisition module is used for determining a display scene of an image to be displayed corresponding to at least one image display instruction and acquiring local replacement data corresponding to the display scene;
and the image generation module is used for generating an image to be displayed based on the current basic data and the local replacement data.
In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement an image generation method as provided by any of the embodiments of the invention.
In a fourth aspect, the embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the image generation method provided in any embodiment of the present invention.
The embodiment of the invention generates a plurality of image display instructions according to the received image display request; for each at least one image display instruction, determining a display scene of an image to be displayed corresponding to the image display instruction, and acquiring local replacement data corresponding to the display scene; and generating an image to be displayed based on the current basic data and the local replacement data, so that the display effect and efficiency of the image are improved, and the occupation of an internal memory and a display memory is reduced.
Drawings
Fig. 1 is a flowchart of an image generation method according to an embodiment of the present invention;
fig. 2a is a flowchart of an image generating method according to a second embodiment of the present invention;
fig. 2b is a schematic drawing effect diagram of a vessel image drawing performed by the image generation method according to the second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an image generating apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of an image generation method according to an embodiment of the present invention. The embodiment can be applied to the situation when the images to be displayed are generated in different display scenes, and is particularly suitable for the situation when the images to be displayed are generated quickly and efficiently when the input data required for generating the images to be displayed have slight changes or the input data required for the current images to be displayed have slight changes based on the existing basic data. The method may be performed by an image generation apparatus, which may be implemented in software and/or hardware, for example, which may be configured in a computer device. As shown in fig. 1, the method includes:
s110, generating a plurality of image display instructions according to the received image display request.
Alternatively, the image display request may be a request generated according to a user operation for instructing to display an image to be displayed in the image display interface. Optionally, the image display interface may include one or more image display windows, the user may trigger different image display requests through each control in the image drawing interface, and the image generation device generates one or more image display instructions according to the image display requests after detecting the image display request triggered by the user, where each image display instruction is used to instruct to display an image to be displayed in one image display window or multiple image display windows.
In an embodiment of the present invention, the plurality of image display instructions are used to instruct to sequentially display the base image and the image to be displayed in the same display window. Illustratively, the image display device generates two image display instructions after receiving an image display request triggered by a user: a first image display instruction and a second image display instruction. The first image display instruction is used for indicating that the basic image is displayed in the appointed display window, and the second image display instruction is used for indicating that the replacement image is displayed on the basis of the basic image after the basic image is displayed in the indication display window. That is, the image display instruction in the present embodiment may be used to instruct the image display apparatus to generate the base display image from the base data, or may be used to instruct the image display apparatus to generate the image to be displayed from the base data partial replacement data.
In the present embodiment, the image generating apparatus stores therein basic data for generating a basic display image. Optionally, the basic data may be image data imported by a user, or may also be display data of an image to be displayed corresponding to a previous image display instruction generated in response to the previous image display instruction.
In another implementation manner of this embodiment, the image display instruction is configured to instruct a plurality of display windows to simultaneously display at least two display images corresponding to the display windows; the at least two display images comprise a plurality of images to be displayed, or at least one image to be displayed and the basic display image. For example, a display scene, such as a basic display or an alternative display, may be set at a position corresponding to each display window in the image drawing interface, and when a user needs to simultaneously display an image to be displayed corresponding to each display window in a plurality of display windows, the image generation apparatus detects an image display request triggered by the user by selecting each display window in the image drawing interface and selecting the alternative display scene to trigger an image display request, and generates a plurality of image display instructions after analyzing the image display request.
For example, when a user needs to display two images to be displayed simultaneously on two display windows (for example, a first image to be displayed is displayed on a first window, and a second image to be displayed is displayed on a second window), by selecting the first display window and the alternate display scene corresponding to the first display window, and the alternate display scene corresponding to the second display window in the image rendering interface, and triggering an image display request through an "image display" control, the image generation apparatus detects the image display request triggered by the user, and generates a third image display instruction and a fourth image display instruction according to the detected image display request. The third image display instruction is used for indicating that the first image to be displayed is displayed on the first window, and the fourth image display instruction is used for indicating that the second image to be displayed is displayed on the second window.
S120, aiming at least one image display instruction, determining a display scene of an image to be displayed corresponding to the image display instruction, and acquiring local replacement data corresponding to the display scene.
In the present embodiment, when the image display instruction is used to instruct generation of the image to be displayed, it is necessary to first determine the partial replacement data required to generate the image to be displayed according to the display scene of the image to be displayed. Wherein the display scene may be determined according to the image display instruction.
In an embodiment of the present invention, a display requirement may be set in an image drawing interface, and a corresponding relationship between the display requirement and a display scene may be established in advance. When an image display request triggered by a user is detected, analyzing the image display request to obtain display requirements corresponding to each image display instruction, and determining a display scene of an image to be displayed corresponding to the image display instruction according to a preset corresponding relation between the display requirements and the display scene. The display requirements are set in the image drawing interface, so that users lacking drawing experience can be assisted in drawing images meeting the display requirements.
For example, when the image to be displayed is a medical image, the display requirement may be to display a volume rendering image or to display a two-dimensional image, and correspondingly, the display scene may include displaying an original image or displaying an optimized image, and a drop-down frame may be set in the image rendering interface for enabling a user to select the display requirement to display the volume rendering image or to display the two-dimensional image. After an image display request triggered by a user is received, determining a display scene of an image to be displayed according to a display requirement carried in the image display request and a preset corresponding relation between the display requirement and the display scene. For example, when the image to be displayed is a blood vessel image, the display scene corresponding to the image to be displayed is an optimized image when the display requirement is a volume rendering image, and the display scene corresponding to the image to be displayed is an original image when the display requirement is a two-dimensional image.
In an embodiment of the present invention, a display scene may be directly set in the image drawing interface, and when an image display request triggered by a user is detected, the image display request is analyzed, so as to directly obtain the display scene corresponding to each image display instruction. The display scene is directly set in the image drawing interface, so that the image generation step can be simplified, and the image generation speed is increased.
In this embodiment, a corresponding relationship between the display scene and the local replacement data may be preset, and after the display scene of the image to be displayed is determined, the local replacement data corresponding to the image to be displayed is determined by searching the preset corresponding relationship. Optionally, the partial replacement data includes: difference data of a plurality of image data or processing data of one image.
In an embodiment of the present invention, if each image to be displayed, which is required to be displayed through multiple display windows by a user, is an image in a different display scene corresponding to the same original data, the local replacement data is original data or processed data of an image, and specifically, the local replacement data may be local original data or local optimized data.
In an embodiment of the present invention, if the images to be displayed, which are required to be displayed through the plurality of display windows by the user, are different images corresponding to different original data, the local replacement data may be difference data between the plurality of image data. Illustratively, if a user needs to display a first image through a first window and display a second image through a second window, comparing the first image raw data with the second image raw data to determine an area with different data values of corresponding voxel points between the first image raw data and the second image raw data, taking the area as a difference area, combining data corresponding to the difference area in the first image raw data as first difference data, and combining data corresponding to the difference area in the second image raw data as second difference data. Alternatively, the partial replacement data may be the first difference data or the second difference data.
And S130, generating an image to be displayed based on the current basic data and the local replacement data.
In this embodiment, the current basic data may be image data selected or imported by the user through the image drawing interface, or image data already existing in the image generating apparatus (e.g., display data of an image to be displayed corresponding to a previous image display instruction generated in response to the previous image display instruction).
In the present embodiment, the image generating device may be a Central Processing Unit (CPU) or a Graphics Processing Unit (GPU). Generally, a CPU receives an image display request triggered by a user and generates a plurality of image display instructions, and then determines a display scene of an image to be displayed and partial replacement data of the image to be displayed based on the image display instructions. Optionally, after determining the local replacement data of the image to be displayed, the image may be drawn at the CPU end, or the data may be uploaded from the CPU end to the GPU end, and the image may be drawn at the GPU end. That is, the operation of generating the image to be displayed based on the current basic data and the local replacement data may be performed by the CPU side or the GPU side. Therefore, when the image is drawn, the drawing of the image can be completed only by respectively reserving a complete volume data and a local replacement data at the CPU end and the GPU end, the drawing efficiency of the image is improved, and the occupation of a CPU memory and a GPU video memory is reduced.
Optionally, the generating an image to be displayed based on the current basic data and the local replacement data includes:
and generating display input data of the image to be displayed based on the current basic data and the local replacement data, and generating the image to be displayed according to the display data.
Wherein the generating display data of the image to be displayed based on the current basic data and the local replacement data comprises:
and for each voxel point in the local replacement data, replacing the data value corresponding to the voxel point in the current basic data by using the data value of the local replacement data corresponding to the voxel point, and using the complete volume data after data value replacement as the display input data of the image to be displayed.
Specifically, the current basic data includes position coordinates of each voxel point and a data value of each voxel point, and the local replacement data includes position coordinates of each local voxel point and a data value of each local voxel point. Optionally, the voxel point in the current basic data corresponding to each local voxel point may be determined according to the position coordinate of the local voxel point, the data value of the local voxel point is used to replace the data value of the voxel point with the same position coordinate, the replaced volume data is generated, and the replaced complete volume data is used as the display input data of the image to be displayed.
After the display input data of the image to be displayed is determined, the image to be displayed is generated according to the image generation instruction and the display input data, the display input data can be used as the basic data of the next image generation instruction, so that when the next image generation instruction is responded, the display input data of the image to be displayed corresponding to the next image generation instruction is generated based on the basic data and the local replacement data corresponding to the next image generation instruction, the display input data of the image to be displayed corresponding to the current image generation instruction is used as the basic data of the image to be displayed corresponding to the next image generation instruction, the occupation of memory and display memory resources is saved when the image to be displayed is generated under the condition that the image data of the image to be displayed corresponding to each image generation instruction has slight change, and the image display efficiency is improved. Optionally, the image to be displayed may be generated in an existing image generation manner, which is not described herein again.
The embodiment of the invention generates a plurality of image display instructions according to the received image display request; determining a display scene of an image to be displayed corresponding to at least one image display instruction, and acquiring local replacement data corresponding to the display scene; and generating an image to be displayed based on the current basic data and the local replacement data, so that the display effect and efficiency of the image are improved, and the occupation of an internal memory and a display memory is reduced.
On the basis of the above scheme, after the image to be displayed is generated, the method further comprises the following steps:
and determining a display window of the image to be displayed corresponding to the image display instruction according to the image display instruction, and displaying the display image on the display window.
In this embodiment, the display window carried in the image display instruction is obtained by analyzing the image display instruction, and after the image to be displayed is generated, the image to be displayed corresponding to the image display window is displayed on the display window.
Example two
Fig. 2 is a flowchart of an image generation method according to a second embodiment of the present invention. The present embodiment is further optimized on the basis of the above-described embodiments. As shown in fig. 2, the method includes:
s210, a plurality of image display instructions are generated according to the received image display request.
S220, aiming at least one image display instruction, determining a display scene of an image to be displayed corresponding to the image display instruction, and acquiring local replacement data corresponding to the display type according to the corresponding relation between the display scene and the local replacement data.
And S230, generating an image to be displayed based on the current basic data and the local replacement data.
In the present embodiment, the image is embodied as a medical image. For example, when the image to be displayed is a blood vessel image, the current basic data may be blood vessel image data imported by a user, or may be display data of the blood vessel image to be displayed corresponding to a previous image display instruction generated in response to the previous image display instruction.
When the image to be displayed is a medical image, the display scene may be an original image or an optimized image. Wherein, the optimized image can be a smooth image or an enhanced image.
For example, when the medical image is a blood vessel image, the optimized image may be a smooth image. In view of the fact that when the blood vessel image data is smoothed, the smoothed volume data is only a blood vessel surface portion in a physical structure and usually only occupies a small portion of the whole volume data, in this embodiment, only one set of complete volume data and local volume data may be saved in the image generating apparatus, where the local volume data is the local volume data before smoothing or the local volume data after smoothing, when the blood vessel display is performed by volume rendering, the complete original volume data is locally updated by using the local volume data after smoothing, the complete smooth data is generated, and the image rendering is performed based on the generated complete smooth data, so as to achieve the smooth blood vessel display effect. After volume rendering is carried out, when multi-plane reconstruction display is carried out, discrete volume data before smoothing is used for locally updating complete smooth data to generate complete original data, and image rendering is carried out based on the generated complete original data to achieve the original image display effect. The complete data is updated through the local data, so that the display effect is ensured, the occupation of the memory and the display memory by two complete data is avoided, and the method has important significance for saving the performance of the whole system.
Alternatively, the image generating device may be a Central Processing Unit (CPU) or a Graphics Processing Unit (GPU), and the image may be drawn on the CPU or the GPU. For example, only one volume data may be stored in both the CPU memory and the GPU memory, then one discrete data before and after smoothing is stored at each of the CPU and the GPU terminals, and when performing volume rendering vascular display, the original volume data is locally updated at the GPU terminal using the smoothed discrete data to generate smoothed volume data, so that the rendered image achieves a smooth vascular display effect.
Illustratively, when a user needs to simultaneously display a three-dimensional optimized blood vessel image generated by volume rendering and a two-dimensional original blood vessel image generated by each surface rendering in a plurality of windows, an image display request is triggered through an image rendering interface, and an image generation device generates a volume rendering image display instruction and a surface rendering image display instruction according to the received image display request.
And aiming at the volume rendering image display instruction, determining a display scene corresponding to the volume rendering image display instruction as a display smooth image, acquiring local smooth data corresponding to the image after display optimization as local replacement data of the volume rendering image to be displayed, generating complete smooth data based on the local smooth data and current basic data (complete original data), drawing a volume rendering blood vessel image according to the complete smooth data, and taking the complete smooth data as basic data of a surface rendering blood vessel image corresponding to the surface rendering image display instruction.
And aiming at the surface drawing image display instruction, determining a display scene corresponding to the surface drawing image display instruction as a display original image, acquiring local original data corresponding to the display optimized image as local replacement data of the surface drawing image to be displayed, generating complete original data based on the local original data and current basic data (complete smooth data), and drawing a surface drawing blood vessel image according to the complete original data.
According to the technical scheme of the embodiment of the invention, the image to be displayed is embodied into the medical image on the basis of the embodiment, on the basis, the display scene of the image to be displayed corresponding to the image display instruction is determined, the local replacement data corresponding to the display scene is obtained, the image to be displayed is generated to be embodied on the basis of the basic data and the local replacement data of the image to be displayed, the basic data is replaced by the local original data or the local optimization data, the display input data of the image to be displayed is generated, the image drawing effect of volume drawing or surface drawing of the blood vessel image is improved, and the occupation of the memory and the display memory by two complete volume data is avoided.
Fig. 2b is a schematic drawing diagram of a drawing effect of drawing a blood vessel image by using the image generation method provided by the second embodiment of the present invention. Because the two-dimensional image is not boned, smooth optimization is not performed when the two-dimensional image is displayed; the three-dimensional volume rendering image is only used for observing blood vessels, so that smooth optimization is required after the bone structure is removed.
In one embodiment of the present invention, the basic data is original volume data of the blood vessel image, the local replacement data is locally optimized data, and the top left corner image in fig. 2b is a blood vessel optimized three-dimensional volume rendering image generated from the basic data and the local replacement data based on the image display instruction; the remaining three images are three two-dimensional images generated from the base data.
In another embodiment of the present invention, the basic data is smooth volume data of a blood vessel image, the local replacement data is original volume data (i.e., local original data) corresponding to an optimized portion, and the upper left corner image in fig. 2b is a blood vessel optimized three-dimensional volume rendering image generated based on the basic data; the remaining three images are original two-dimensional images of the blood vessel generated from the basic data and the local replacement data based on the image display instruction.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an image generating apparatus according to a third embodiment of the present invention. The image generating apparatus may be implemented in software and/or hardware, for example, the image generating apparatus may be configured in a computer device. As shown in fig. 3, the apparatus includes an image instruction generating module 310, a local data acquiring module 320, and an image generating module 330, wherein:
an image instruction generating module 310, configured to generate a plurality of image display instructions according to the received image display request;
a local data obtaining module 320, configured to determine, for at least one image display instruction, a display type of an image to be displayed corresponding to the image display instruction, and obtain local replacement data corresponding to the display type;
an image generating module 330, configured to generate an image to be displayed based on the current basic data and the local replacement data.
According to the embodiment of the invention, a plurality of image display instructions are generated by an image instruction generating module according to a received image display request; determining a display scene of an image to be displayed corresponding to at least one image display instruction through a local data acquisition module, and acquiring local replacement data corresponding to the display scene; the image generation module generates the image to be displayed based on the current basic data and the local replacement data, so that the display effect and efficiency of the image are improved, and the occupation of the memory and the display memory is reduced.
On the basis of the above scheme, the image instruction generating module 310 is further configured to:
generating a plurality of image display instructions according to the received image display request, wherein the image display instructions comprise basic image display instructions;
the local data acquisition module 320 is further configured to:
and acquiring current basic data aiming at the basic image display instruction, and generating a basic display image according to the basic data.
On the basis of the above scheme, the image generation module 330 is specifically configured to:
and generating display input data of the image to be displayed based on the current basic data and the local replacement data, and generating the image to be displayed according to the display data.
On the basis of the above scheme, the image generation module 330 is specifically configured to:
and for each voxel point in the local replacement data, replacing the data value corresponding to the voxel point in the current basic data by using the data value of the local replacement data corresponding to the voxel point, and using the complete volume data after data value replacement as the display input data of the image to be displayed.
On the basis of the foregoing scheme, the display scene is a first scene or a second scene, the local replacement data is first scene local data or second scene local data, and the local data obtaining module 320 is specifically configured to:
and acquiring local replacement data corresponding to the display type according to the corresponding relation between the display scene and the local replacement data.
On the basis of the above scheme, the apparatus further comprises an image display module, configured to:
after the image to be displayed is generated, determining a display window of the image to be displayed corresponding to the image display instruction according to the image display instruction, and displaying the display image on the display window.
The image generation device provided by the embodiment of the invention can execute the image generation method provided by any embodiment, and has the corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of a computer device in the fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary computer device 412 suitable for use in implementing embodiments of the present invention. The computer device 412 shown in FIG. 4 is only one example and should not impose any limitations on the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 4, computer device 412 is in the form of a general purpose computing device. Components of computer device 412 may include, but are not limited to: one or more processors 416, a system memory 428, and a bus 418 that couples the various system components (including the system memory 428 and the processors 416).
Bus 418 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and processor 416, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 412 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 412 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 428 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)430 and/or cache memory 432. The computer device 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage 434 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 418 by one or more data media interfaces. Memory 428 can include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 440 having a set (at least one) of program modules 442 may be stored, for instance, in memory 428, such program modules 442 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 442 generally perform the functions and/or methodologies of the described embodiments of the invention.
The computer device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, display 424, etc.), with one or more devices that enable a user to interact with the computer device 412, and/or with any devices (e.g., network card, modem, etc.) that enable the computer device 412 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 422. Also, computer device 412 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) through network adapter 420. As shown, network adapter 420 communicates with the other modules of computer device 412 over bus 418. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the computer device 412, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 416 executes various functional applications and data processing by executing programs stored in the system memory 428, for example, implementing an image generation method provided by an embodiment of the present invention, the method including:
generating a plurality of image display instructions according to the received image display request;
determining a display scene of an image to be displayed corresponding to at least one image display instruction, and acquiring local replacement data corresponding to the display scene;
and generating an image to be displayed based on the current basic data and the local replacement data.
Of course, those skilled in the art will understand that the processor may also implement the technical solution of the image generation method provided by any embodiment of the present invention.
EXAMPLE five
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements an image generating method provided in an embodiment of the present invention, where the method includes:
generating a plurality of image display instructions according to the received image display request;
determining a display scene of an image to be displayed corresponding to at least one image display instruction, and acquiring local replacement data corresponding to the display scene;
and generating an image to be displayed based on the current basic data and the local replacement data.
Of course, the computer program stored on the computer-readable storage medium provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the image generation method provided by any embodiments of the present invention.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (9)

1. An image generation method, comprising:
generating a plurality of image display instructions according to the received image display request;
determining a display scene of an image to be displayed corresponding to at least one image display instruction, and acquiring pre-stored local replacement data corresponding to the display scene, wherein when the display scene is an image under different display scenes corresponding to the same original data through a plurality of display windows, the local replacement data corresponding to the display scene is original data or processing data of an image; when the display scene is different images corresponding to different original data displayed through a plurality of display windows, the local replacement data corresponding to the display scene is difference data among a plurality of image data;
and generating an image to be displayed based on the current basic data and the local replacement data.
2. The method of claim 1, wherein the image display instructions comprise base image display instructions;
and acquiring current basic data aiming at the basic image display instruction, and generating a basic display image according to the basic data.
3. The method of claim 1, wherein generating an image to be displayed based on the current base data and the local replacement data comprises:
and generating display input data of the image to be displayed based on the current basic data and the local replacement data, and generating the image to be displayed according to the display data.
4. The method of claim 3, wherein generating display input data for the image to be displayed based on the current base data and the local replacement data comprises:
and for each voxel point in the local replacement data, replacing the data value corresponding to the voxel point in the current basic data by using the data value of the local replacement data corresponding to the voxel point, and using the complete volume data after data value replacement as the display input data of the image to be displayed.
5. The method according to claim 1, wherein the displaying scene is a first scene or a second scene, the local replacement data is first scene local data or second scene local data, and the obtaining of the pre-stored local replacement data corresponding to the displaying scene comprises:
and acquiring local replacement data corresponding to the display scene according to the corresponding relation between the display scene and the local replacement data.
6. The method of claim 1, after generating the image to be displayed, further comprising:
and determining a display window of the image to be displayed corresponding to the image display instruction according to the image display instruction, and displaying the image to be displayed on the display window.
7. An image generation apparatus, comprising:
the image instruction generating module is used for generating a plurality of image display instructions according to the received image display request;
the local data acquisition module is used for determining a display scene of an image to be displayed corresponding to at least one image display instruction and acquiring pre-stored local replacement data corresponding to the display scene, wherein when the display scene is an image under different display scenes corresponding to the same original data through a plurality of display windows, the local replacement data corresponding to the display scene is original data or processing data of an image; when the display scene is different images corresponding to different original data displayed through a plurality of display windows, the local replacement data corresponding to the display scene is difference data among a plurality of image data;
and the image generation module is used for generating an image to be displayed based on the current basic data and the local replacement data.
8. A computer device, the device comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the image generation method of any one of claims 1-6.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the image generation method of any one of claims 1 to 6.
CN201910059110.8A 2019-01-22 2019-01-22 Image generation method, device, equipment and medium Active CN109799936B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910059110.8A CN109799936B (en) 2019-01-22 2019-01-22 Image generation method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910059110.8A CN109799936B (en) 2019-01-22 2019-01-22 Image generation method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN109799936A CN109799936A (en) 2019-05-24
CN109799936B true CN109799936B (en) 2022-05-24

Family

ID=66559983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910059110.8A Active CN109799936B (en) 2019-01-22 2019-01-22 Image generation method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN109799936B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112820385A (en) * 2021-02-01 2021-05-18 赛诺联合医疗科技(北京)有限公司 Medical image browsing method, client and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015028641A (en) * 1998-09-08 2015-02-12 モバイルメディア アイディアズ リミティド ライアビリティ カンパニー Image display device
CN105635572A (en) * 2015-12-28 2016-06-01 联想(北京)有限公司 Image processing method, image processing apparatus, and electronic device
CN107705275A (en) * 2017-09-08 2018-02-16 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN107871313A (en) * 2017-11-16 2018-04-03 深圳岚锋创视网络科技有限公司 Distant view photograph regional area replacement method, system and portable terminal
CN109157284A (en) * 2018-09-28 2019-01-08 广州狄卡视觉科技有限公司 A kind of brain tumor medical image three-dimensional reconstruction shows exchange method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015028641A (en) * 1998-09-08 2015-02-12 モバイルメディア アイディアズ リミティド ライアビリティ カンパニー Image display device
CN105635572A (en) * 2015-12-28 2016-06-01 联想(北京)有限公司 Image processing method, image processing apparatus, and electronic device
CN107705275A (en) * 2017-09-08 2018-02-16 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN107871313A (en) * 2017-11-16 2018-04-03 深圳岚锋创视网络科技有限公司 Distant view photograph regional area replacement method, system and portable terminal
CN109157284A (en) * 2018-09-28 2019-01-08 广州狄卡视觉科技有限公司 A kind of brain tumor medical image three-dimensional reconstruction shows exchange method and system

Also Published As

Publication number Publication date
CN109799936A (en) 2019-05-24

Similar Documents

Publication Publication Date Title
CN107665736B (en) Method and apparatus for generating information
US11900594B2 (en) Methods and systems for displaying a region of interest of a medical image
US7420575B2 (en) Image processing apparatus, image processing method and image processing program
CN110176010B (en) Image detection method, device, equipment and storage medium
CN111070664B (en) 3D printing slice generation method, device, equipment and storage medium
CN111063424A (en) Intervertebral disc data processing method and device, electronic equipment and storage medium
CN111091561A (en) Method, system, device and storage medium for extracting nerve fibers of region of interest
KR20200092466A (en) Device for training analysis model of medical image and training method thereof
CN115018805A (en) Segmentation model training method, image segmentation method, device, equipment and medium
CN115170510B (en) Focus detection method and device, electronic equipment and readable storage medium
CN113888566B (en) Target contour curve determination method and device, electronic equipment and storage medium
CN112634309B (en) Image processing method, device, electronic equipment and storage medium
CN109658425B (en) Lung lobe segmentation method and device, computer equipment and storage medium
CN109636892B (en) Color table editing method, device, equipment and medium for medical image display
CN109799936B (en) Image generation method, device, equipment and medium
CN112614143A (en) Image segmentation method and device, electronic equipment and storage medium
CN109754472B (en) Tissue contour editing method, device, computer equipment and storage medium
CN111863206A (en) Image preprocessing method, device, equipment and storage medium
CN115482261A (en) Blood vessel registration method, device, electronic equipment and storage medium
CN114496175A (en) Medical image viewing method, device, equipment and storage medium
WO2022127318A1 (en) Scanning positioning method and apparatus, storage medium and electronic device
CN114937149A (en) Image processing method, image processing device, electronic equipment and storage medium
CN115861189A (en) Image registration method and device, electronic equipment and storage medium
CN110176300B (en) Puncture needle selection method, puncture needle selection device, server and storage medium
CN112632301B (en) Pathological image display method, pathological image display device, electronic equipment and storage medium

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 201807 Shanghai City, north of the city of Jiading District Road No. 2258

Applicant after: Shanghai Lianying Medical Technology Co., Ltd

Address before: 201807 Shanghai City, north of the city of Jiading District Road No. 2258

Applicant before: SHANGHAI UNITED IMAGING HEALTHCARE Co.,Ltd.

GR01 Patent grant
GR01 Patent grant