07-20-2010 08:41 PM
Hello everyone,
Recently I have began a project with requires the processing of DICOM images. I know there have been a lot of discussion of this topic, but I have yet to see a well documented answer. I've done my own research on this obstacle and have one quick question.
Assuming the DICOM image format it laid out as follows;
128-byte preamble (typically consisting of all 0's followed by the ASCII characters D,I,C,M)
794-byte header (contains information regarding patient, and device property, including image resolution, compression, and other specifications)
[Image]
Would it be possible to simply cut out the 128-preamble using low level data function, then separate the header file, then decompress the image, typically encoded in jpeg lossy, or jpeg lossless which is specified in the 794 byte header. If so would I run into any problems, and if so how would I overcome them.
My experience with other languages and files suggests that I could simply partition the file by specifying how many bytes into the file, and then process the image piece using a standard decode jpeg function, or in this case vi. Unfortunately, I am unfamiliar with these low level file manipulation function within lab view.
Any help, suggestions, or useful information is highly appreciated.
Thanks,
Taylor S. Amarel
07-21-2010 10:05 AM
The DICOM standard is not directly supported by IMAQ Read File function, however, http://www.medicalconnections.co.uk/Examples.html
has a LabVIEW - DICOM interface which may be helpful to you.
09-08-2010 12:53 AM
Hello. Taylor
DICOM format is defined by a variable-length header, not an constant-length header such as BMP, JPEG.....
So, I recommend you search the Image Tag (7FE0,0010 : HEX (Little Endian)) which show the start point of image.
And after you cut 64 bits of ValueReference, the image is remain itself.
If you don't know the size and bit-depth of Image, you also search tags, rows (0028,0010), columns (0028,0010),
bit-depth (0028,0100) before search the image tag.
Teru.
06-14-2019 08:29 AM
Here are some vi's that I use to read and display DICOM images. Perhaps they will help.