Discussion:
Writing DICOM from non-DICOM
Granseier, Michael (VISUS)
2010-04-20 12:32:08 UTC
Permalink
Hello vtk-users,

my questions refers to an article in the Kitware Public Wiki
named "Proposals: Writing DICOM from non-DICOM".
(http://www.itk.org/Wiki/Proposals:Writing_DICOM_from_non-DICOM)

Actually I'm facing exactly this problem.
I want to write a DICOM-Series with the itkImageSeriesWriter and the GDCMImageIO.
But I don't use the itkImageSeriesReader before to read in a DICOM dataset.
Instead I have a raw-File and a mhd-Header-File, which I have written on my own in Java.

So the writer creates a DICOM series with exactly the same problems described in the wiki article.
The article was last modified on 10 April 2006.
I would like to know if there are any solutions for that problem by now.
Or is it possible to manually create a MetaDataDictionary containing all necesary informations from the DICOM-header?


Any help will be greatly appreciated.

Thanks!


Kind regards

Michael Granseier


_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.html

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
Luis Ibanez
2010-04-20 13:54:36 UTC
Permalink
Hi Michael,

This has been solved a long time ago.

Please use the following example:

Insight/Examples/IO/
ImageReadDicomSeriesWrite.cxx


This example shows you how to read an image
from a non-DICOM source (e.g. MetaImage,
Analyze, VTK...) and save it as a DICOM series.

It also shows how to alter some of the DICOM tags...
something that must be done carefully since you
will be altering / producing patient information.


Regards,


Luis

---------------------------------------------
On Tue, Apr 20, 2010 at 8:32 AM, Granseier, Michael (VISUS) <
Post by Granseier, Michael (VISUS)
Hello vtk-users,
my questions refers to an article in the Kitware Public Wiki
named "Proposals: Writing DICOM from non-DICOM".
(http://www.itk.org/Wiki/Proposals:Writing_DICOM_from_non-DICOM)
Actually I'm facing exactly this problem.
I want to write a DICOM-Series with the itkImageSeriesWriter and the GDCMImageIO.
But I don't use the itkImageSeriesReader before to read in a DICOM dataset.
Instead I have a raw-File and a mhd-Header-File, which I have written on my own in Java.
So the writer creates a DICOM series with exactly the same problems
described in the wiki article.
The article was last modified on 10 April 2006.
I would like to know if there are any solutions for that problem by now.
Or is it possible to manually create a MetaDataDictionary containing all
necesary informations from the DICOM-header?
Any help will be greatly appreciated.
Thanks!
Kind regards
Michael Granseier
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.kitware.com/products/protraining.html
http://www.itk.org/Wiki/ITK_FAQ
http://www.itk.org/mailman/listinfo/insight-users
Bill Lorensen
2010-04-20 15:01:05 UTC
Permalink
Here is an enhanced version of the example that processes command line
arguments:
http://viewvc.slicer.org/viewcvs.cgi/trunk/Applications/CLI/ImageReadDicomWrite.cxx?rev=12452&view=markup
Post by Luis Ibanez
Hi Michael,
This has been solved a long time ago.
  Insight/Examples/IO/
       ImageReadDicomSeriesWrite.cxx
This example shows you how to read an image
from a non-DICOM source (e.g. MetaImage,
Analyze, VTK...) and save it as a DICOM series.
It also shows how to alter some of the DICOM tags...
something that must be done carefully since you
will be altering / producing patient information.
  Regards,
        Luis
---------------------------------------------
On Tue, Apr 20, 2010 at 8:32 AM, Granseier, Michael (VISUS)
Post by Granseier, Michael (VISUS)
Hello vtk-users,
my questions refers to an article in the Kitware Public Wiki
named "Proposals: Writing DICOM from non-DICOM".
(http://www.itk.org/Wiki/Proposals:Writing_DICOM_from_non-DICOM)
Actually I'm facing exactly this problem.
I want to write a DICOM-Series with the itkImageSeriesWriter and the GDCMImageIO.
But I don't use the itkImageSeriesReader before to read in a DICOM dataset.
Instead I have a raw-File and a mhd-Header-File, which I have written on my own in Java.
So the writer creates a DICOM series with exactly the same problems
described in the wiki article.
The article was last modified on 10 April 2006.
I would like to know if there are any solutions for that problem by now.
Or is it possible to manually create a MetaDataDictionary containing all
necesary informations from the DICOM-header?
Any help will be greatly appreciated.
Thanks!
Kind regards
Michael Granseier
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.kitware.com/products/protraining.html
http://www.itk.org/Wiki/ITK_FAQ
http://www.itk.org/mailman/listinfo/insight-users
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.kitware.com/products/protraining.html
http://www.itk.org/Wiki/ITK_FAQ
http://www.itk.org/mailman/listinfo/insight-users
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.html

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
Granseier, Michael (VISUS)
2010-04-20 15:23:29 UTC
Permalink
Bill, Luis,

thanks a lot for your replies.

I have already tried the ImageReadDicomSeriesWrite example.
It worked. I don't know why I have overlooked it before. Sorry.

I will also try out the new example. Especially because I have to write the whole MetaDataDictionary on my own.


Thanks again and best regards,
Michael



-----Ursprüngliche Nachricht-----
Von: Bill Lorensen [mailto:bill.lorensen-***@public.gmane.org]
Gesendet: Dienstag, 20. April 2010 17:01
An: Luis Ibanez
Cc: Granseier, Michael (VISUS); insight-users-***@public.gmane.org
Betreff: Re: [Insight-users] Writing DICOM from non-DICOM

Here is an enhanced version of the example that processes command line
arguments:
http://viewvc.slicer.org/viewcvs.cgi/trunk/Applications/CLI/ImageReadDicomWrite.cxx?rev=12452&view=markup
Post by Luis Ibanez
Hi Michael,
This has been solved a long time ago.
  Insight/Examples/IO/
       ImageReadDicomSeriesWrite.cxx
This example shows you how to read an image
from a non-DICOM source (e.g. MetaImage,
Analyze, VTK...) and save it as a DICOM series.
It also shows how to alter some of the DICOM tags...
something that must be done carefully since you
will be altering / producing patient information.
  Regards,
        Luis
---------------------------------------------
On Tue, Apr 20, 2010 at 8:32 AM, Granseier, Michael (VISUS)
Post by Granseier, Michael (VISUS)
Hello vtk-users,
my questions refers to an article in the Kitware Public Wiki
named "Proposals: Writing DICOM from non-DICOM".
(http://www.itk.org/Wiki/Proposals:Writing_DICOM_from_non-DICOM)
Actually I'm facing exactly this problem.
I want to write a DICOM-Series with the itkImageSeriesWriter and the GDCMImageIO.
But I don't use the itkImageSeriesReader before to read in a DICOM dataset.
Instead I have a raw-File and a mhd-Header-File, which I have written on my own in Java.
So the writer creates a DICOM series with exactly the same problems
described in the wiki article.
The article was last modified on 10 April 2006.
I would like to know if there are any solutions for that problem by now.
Or is it possible to manually create a MetaDataDictionary containing all
necesary informations from the DICOM-header?
Any help will be greatly appreciated.
Thanks!
Kind regards
Michael Granseier
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.kitware.com/products/protraining.html
http://www.itk.org/Wiki/ITK_FAQ
http://www.itk.org/mailman/listinfo/insight-users
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.kitware.com/products/protraining.html
http://www.itk.org/Wiki/ITK_FAQ
http://www.itk.org/mailman/listinfo/insight-users
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.html

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
shrabani99
2017-11-03 17:56:41 UTC
Permalink
Actually for me, my images are in PNG series. So, I need to convert each PNG
image in dicom image. Is there any itk code for this to do?



--
Sent from: http://itk-users.7.n7.nabble.com/
The ITK community is transitioning from this mailing list to discourse.itk.org. Please join us there!
________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users
Dženan Zukić
2017-11-03 18:16:20 UTC
Permalink
I don't know of an example which does exactly that. But starting with the
examples I mentioned, it should be mostly a simplification.

Regards,
DÅŸenan
Post by shrabani99
Actually for me, my images are in PNG series. So, I need to convert each PNG
image in dicom image. Is there any itk code for this to do?
--
Sent from: http://itk-users.7.n7.nabble.com/
The ITK community is transitioning from this mailing list to
discourse.itk.org. Please join us there!
________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.kitware.com/products/protraining.php
http://www.itk.org/Wiki/ITK_FAQ
http://public.kitware.com/mailman/listinfo/insight-users
Loading...