|
If you look at the reply posted above by me and Jeff, it is very easy to understand. After trying it if you get stuck somewhere then just let me know.
"Rene " <nonews@emailaddress.nl> wrote in message <idthf1$n9o$1@fred.mathworks.com>...
> Hi aarti,
> I am new to Mathlab I have read that you found a solution for my dicomize problem. I also want to convert a tiff file to dicom. I just don't know where to start. How do I dicomize a tiff file and which meta data is required? Hope you can help me out.
>
>
> "aarti" <raheja.aarti@gmail.com> wrote in message <h3g1gr$1p6$1@fred.mathworks.com>...
> > Hi Jeff,
> >
> > I already found a solution to this problem and it is quite similar to what you have suggested.
> >
> > 1. I first convert the tiff file to dicom file without adding any new metadata.
> > 2. Then I add the required information to the metadata created by matlav while writing the dicom file
> > 3. Then I use the dicomwrite function using "dicomwrite(X, info, 'createmode', 'copy')"
> >
> > The problem I was having initially was, if you dont use the "dicomwrite(X, info, 'createmode', 'copy')" while writing a dicomfile matlab changes some of the metadata information you have included in it on its own. Hence it was not retaining the ips information to calibrate the dicom files.
> >
> > Anyways it is working now. Thank you for your reply. I appreciate it.
> >
> > "Jeff Mather" <jeff.mather@mathworks.com> wrote in message <h3fu9n$ln7$1@fred.mathworks.com>...
> > > Hi Aarti,
> > >
> > > This task is quite nontrivial, perhaps even rather difficult depending on the information that you're trying to store. There are dozens of different DICOM "information objects" (IODs) for most of the various kinds of medical imagery you can think of (e.g., MR, CT, ultrasound, visible light, X-Ray angiography, radiotherapy planning, etc.).
> > >
> > > The DICOMWRITE function will attempt to write any DICOM IOD that you give it, but it really only knows about the appropriate values for three image types:
> > >
> > > * Secondary capture (SC)
> > > * Computed tomography (CT)
> > > * Magnetic resonance (MR)
> > >
> > > And it really only can create SC images from scratch. (To write any of the other IODs, you need to use the 'CreateMode' parameter with a value of 'Copy'.) These files have a very limited set of metadata, mostly patient-related. If you're lucky, that's enough. Try writing an image with DICOMWRITE's simplest syntax and then look at the output of DICOMINFO on that file to see if that's sufficient.
> > >
> > > In general, to add the appropriate medical information to a DICOM file, it helps to start with another DICOM file. If you have a DICOM file of the same kind that you want to convert your TIFF files into, do this:
> > >
> > > 1) Load the metadata using DICOMINFO.
> > > 2) Change the metadata to the values you want to store.
> > > 3) Write the file using DICOMWRITE, giving it the image from the TIFF file and the metadata from step 2. For example, "dicomwrite(X, info, 'createmode', 'copy')".
> > >
> > > Be aware that it's very easy to add meaningless or misleading values to DICOM files using this method. Unfortunately, DICOM is complicated this way. See Part 3 of the DICOM standard at http://medical.nema.org/ for a very extensive list of metadata attributes, their meanings, and acceptable values.
> > >
> > > Good luck.
> > >
> > > Jeff Mather
> > > Image Processing Group
> > > The MathWorks, Inc.
> > >
> > >
> > > "aarti" <raheja.aarti@gmail.com> wrote in message <h2ismq$jbs$1@fred.mathworks.com>...
> > > > Hi,
> > > >
> > > > I am trying to convert a bunch of tiff images into dicom image using Matlab's dicomread. I have to attach more details to the metadata like the patient id and patient name. The problem I am having is when I view these dicom images in PACS they are not calibrated. I know the image ips, so I used this information to calibrate the dicom images by storing it in the metadata. But it is not working. Is there any other information I need to store in the metadata along with this.
> > > >
> > > > Thank you for your reply in advance.
> > > >
> > > > -Aarti
|