The object of the present invention is a new computer implemented method particularly designed to convert a high-resolution image, for example an image obtained after scanning or digitizing a histological or cytological preparation in Anatomic Pathology, from an origin format to a DICOM format.
Digitization Technology
In the field of medicine, particularly in Anatomic Pathology, the need to make histological and cytological preparations for a subsequent analysis by a clinician is known. A number of devices for digitizing said preparations have recently appeared. Digitization devices, known as scanners, obtain a high-resolution digital image of the preparation, which is thus available for analysis any place and time without the need for the clinician to have physical access to the preparation.
The digitization method carried out by these scanners for obtaining a digital high-resolution image of the preparations comprises taking a mosaic of photographs, normally square-shaped photographs, of small fragments of the surface of the preparation known as “cells”. The scanners comprise a digital camera with a 20x to 40x zoom lens, mounted on a structure holding the camera over the preparation. A parallel relative movement between the camera and the preparation is generated while the camera takes plurality of pictures of the preparation from above. The plurality of pictures are taken in positions separated by a small distance, such as microns. Scanners are usually designed for providing an overlap band between each pair of adjacent photographs or cells. That is, every individual photograph overlaps a predetermined distance with the photographs located immediately below, above, and to either side. Subsequently, every photograph is placed in the correct position in the image, and a software generating the complete image operates with the images such that said overlap bands are not visible for a clinician analyzing the image.
A drawback of this technology is related with the huge size of the complete digitized high-resolution image. Indeed, a high-resolution image of this type may contain several thousands of individual photographs. The size of such a high-resolution image may therefore range between several hundreds of megabytes to about tens of gigabytes. Obviously, managing and viewing an image having this size is very complicated.
In order to solve this drawback, the use of image composition method known as “pyramidal” for visualizing these high-resolution images is known. This visualization method comprises creating a number of lower resolution images usually known as “levels”. Usually, the size of the image making up each level is half the size of the image making up the level immediately below. The image of each level is also formed by a plurality of cells. Therefore, starting from the complete image having the highest resolution that makes up the lowermost level at the base of the pyramid, successive levels having gradually lower resolutions are created, until the uppermost level having the lowest resolution that makes up the top of the pyramid.
During visualization of the image, the user initially views the uppermost level having the lowest resolution. When the user desires to view a particular area of the image with a greater resolution, the visualization software accesses to the immediately lower level. This process takes place as many times as necessary until the user views the highest resolution image at the base of the pyramid. This method effectively limits the size of the image files the software must manage at any given moment. This image visualization method is very similar to the method employed Google Maps®, a tool provided by Google®.
Therefore, the current digitalization technology mainly provides three elements for defining an image: complete image, level, and cell. Each complete image comprises several levels, and every level in turn comprises a plurality of cells each corresponding to an individual photograph.
Proprietary Formats
Each digitization device manufacturer uses a different proprietary format for storing and visualizing the images. Each proprietary format may have, for example, overlap bands of a different width, a different number of levels, a different cell size, etc. Thus, a digitized image can only be viewed using a specific visualization software provided by the manufacturer of the device used to carry out the digitization.
Consequently, health care services are required to use a specific proprietary technology. Further, the possibility of exchanging images and studying different diagnostic images is seriously hindered. This is obviously a very important drawback.
DICOM Format
DICOM (Digital Imaging and COmmunication in Medicine) is a standard for storing and exchanging medical images enabling the integration of medical imaging devices such as scanners, servers, workstations, printers, network hardware, and picture archiving and communication systems (PACS) from multiple manufacturers. It has been widely adopted by hospitals. Further, supplements 145 and 122 of DICOM define the necessary extensions for storing and visualizing high-resolution images used in Anatomic Pathology.
A simplified entity-relationship defined by DICOM establishes the “patient” as the main node. Each patient may have a number of “studies”. Each study may be divided in one or more “series”. Each series may comprise several “instances”. And, finally, each instance may comprise a single image or an image in a plurality of “frames”. For Digital Pathology images, DICOM Supplement 145 defines the use of multiframe images. This structure corresponds to a class denoted as VL Whole Slide Microscopy Image, (WSI). The lowest level in this structure, the frame, is simply an image separated a constant distance from a previous image and a subsequent image. Importantly, DICOM format does not define an overlap band between adjacent frames. The frames are placed side-by-side without any overlap.
So the DICOM format defines three elements essentially equivalent to those employed in any of the proprietary formats defined by the digitization device manufacturers: series, instance, and frame. Every series comprises several instances, and in turn every instance comprises a plurality of frames.
Therefore, every series defined by DICOM may be equivalent to an image according to a proprietary format, every instance defined by DICOM may be equivalent to a level defined by a proprietary format, and every frame defined by DICOM may be equivalent to a cell defined by a proprietary format.
Conversion Between Proprietary Format and DICOM Format
In view of the above, methods for converting the high-resolution images used in Anatomic Pathology from a proprietary format into DICOM are necessary. The use of said methods allows for applying DICOM WSI standard in Anatomic Pathology, enabling the exchange and visualization of images generated by digitization devices of different manufacturers.
Nowadays, a number of methods for converting a proprietary format image into a DICOM format image are known. These methods basically take the complete, stitched image formed by the plurality of photographs and re-cut it into newly defined fragments defined by the DICOM standard.
However, the DICOM standard does not define the size of each of the individual frames belonging to each instance. In view of this, the first step in current conversion methods is selecting a size for the frames. This selection is usually arbitrary. For example, most current conversion methods merely select the same size cells in the original proprietary format had. In any case, selecting an arbitrary frame size is disadvantageous in that the edge of the last frame in a row or column of the image that corresponds to the lowermost level in DICOM format does not match the edge of the image corresponding to the lowermost level in the proprietary format. In this respect, note that the total size of the complete image, that is, the number of pixels containing image information, is necessarily the same irrespective of the digitization format. Consequently, the DICOM format image generated by any of these known conversion methods has an empty horizontal band at the right edge of the image and an empty vertical band at the lower edge of the image. These bands are usually represented in black or white color.
Now, as disclosed above, present conversion methods take the complete, stitched image and re-cut it according to the desired DICOM frame size. Since the DICOM standard does not define a particular size for the frames, known conversion methods merely use the same size cells had in the original proprietary format. Therefore, in this example 256 pixel wide frames are employed. However, the DICOM does not define an overlap between frames. Consequently, the total length of a row formed by 256 pixel long frames in DICOM format does not match the length of the row formed by 256 pixel long cells in proprietary format. Specifically, the total length of the image in DICOM format is 2048 pixels, but the original complete image, that is, those pixels containing image information is only 1992 pixels long. Therefore, the 56 rightmost pixels of the rightmost located frame do not contain any image information. The usual method is assigning these pixels a value of 0 (black) or 256 (white).
The present invention solves the drawbacks described above by means of a new computer implemented method for converting the digital image from the proprietary format into the DICOM format where a frame size matching the width and length of the image can be selected. More specifically, the present method prompts the user to select the desired number of instances and, based on said number of instances and the fixed size of the image, calculates an optimal frame size. Thus, the need to provide a black or white band adjacent the generated DICOM format image is eliminated.
The present invention is directed to a computer implemented method for converting a high-resolution digital image into a DICOM pyramidal image. The method converts an image having a fixed width and a fixed length into a DICOM pyramidal image comprising a desired number of DICOM instances each formed by respective pluralities of DICOM frames. The method comprises the following steps:
While the method of the invention is particularly designed to be executed in a computer, the invention further encompasses a computer program comprising instructions capable of causing a computer to carry out the method of the invention. The program may be in the form of font code, object code, or an intermediate code between font code and object code, such as a partially compiled form. Generally speaking, the program may be in any computer readable form capable of causing a computer to carry out the method of the invention.
The invention further encompasses a computer program stored in a storing means. The storing means could be of any kind, such as e.g. a ROM, a CD-ROM, a semiconductor ROM, a hard disk, etc. Alternatively, the storing means could be an ASIC adapted to store and execute the method of the invention. In any case, generally speaking the storing means includes any kind of means capable of storing the list of instructions making up the computer program.
The invention also encompasses a computer program supported in a carrier. In this context, when the program is incorporated in a signal that can be transported by cable or by any other means, such as an electrical or optical signal, the carrier takes the form of said cable or other means.
An example illustrating the present invention is now disclosed with reference to the drawings.
In this example, the image to be converted into a DICOM format image is a bidimensional version of the monodimensional example shown in
In order to carry out the conversion, the frame size (W frame, frame, Lframe) must be selected. Indeed, the optimal frame size (W frame, frame, Lframe) depends on the number of instances the user desires to divide the image into. Therefore, the present method prompts the user to select the desired number of instances. In the present example, the number of instances is ni=4.
The method then calculates the optimal frame width (Wframe) and frame length (Lframe) by means of the formulas disclosed above:
Finally, the method builds a DICOM format image comprising 4 instances formed by frames having a size of 249×249 pixels. The result is shown in
Number | Date | Country | Kind |
---|---|---|---|
P201830502 | May 2018 | ES | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/ES2019/070343 | 5/23/2019 | WO | 00 |