Reading DICOM header without opening the image

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Reading DICOM header without opening the image

Manos COn
dear all,

I am writting a macro in which I read a bunch of DICOM images. My intention
is to keep information from selected DICOM tags and store them in a text
file. In order to accelerate the process, I need a way for ImageJ to not
open the images but somehow read the DICOM header data only. Is there a way?

Thank you beforehand for your help,

Manos

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Reading DICOM header without opening the image

ctrueden
Hi Manos,

Try using File > Import > Bio-Formats and changing "View stack with" to
"Metadata only".

Regards,
Curtis

On Wed, Sep 23, 2015 at 11:18 AM, manos con <[hidden email]> wrote:

> dear all,
>
> I am writting a macro in which I read a bunch of DICOM images. My intention
> is to keep information from selected DICOM tags and store them in a text
> file. In order to accelerate the process, I need a way for ImageJ to not
> open the images but somehow read the DICOM header data only. Is there a
> way?
>
> Thank you beforehand for your help,
>
> Manos
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Reading DICOM header without opening the image

Krs5
In reply to this post by Manos COn
Dear Manos,

In the macro language you can use:
getImageInfo()
getInfo(DICOM_TAG)
getMetadata("Info")

to extract information (tags) from the DICOM header.

See the Build-in Macro Function website how to use them.

Best wishes

Kees


Dr Ir K.R. Straatman
Senior Experimental Officer
Advanced Imaging Facility
Centre for Core Biotechnology Services
University of Leicester
http://www2.le.ac.uk/colleges/medbiopsych/facilities-and-services/cbs/lite/aif

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of manos con
Sent: 23 September 2015 17:19
To: [hidden email]
Subject: Reading DICOM header without opening the image

dear all,

I am writting a macro in which I read a bunch of DICOM images. My intention is to keep information from selected DICOM tags and store them in a text file. In order to accelerate the process, I need a way for ImageJ to not open the images but somehow read the DICOM header data only. Is there a way?

Thank you beforehand for your help,

Manos

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html