[Insight-users] information loss of images

ja sk jasjaskas at yahoo.com.sg
Wed, 24 Mar 2004 13:53:25 +0800 (CST)


--0-865966912-1080107605=:45433
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hi Luis,
 
A) I'm not sure what you mean by modality, but its MRI cine from siemens
 
B) I created the Meta Header manually and using the MetaImageImporter

C)I did not use any ImageFileReader/Writer for creating the .mhd file, so no raw files for the volumes were created.
 
Well i tried DicomSeriesReadImageWrite but the images are in "time series", so DicomSeriesReadImageWrite will just create a .mhd and .raw for a particular slice for a time instance. 
I also tried out Jolinda's MRIConvert, and it has no means of writing out a volume in this case.  Any suggestions, Thank You!!
 
here's the mhd file:
*********************
NDims = 3
DimSize = 256 256 12
ElementSpacing = 1.25 1.25 10
Position = 0 0 0
ElementByteOrderMSB = True
ElementType = MET_USHORT
ElementDataFile = LIST 2
mri_189.dcm
mri_210.dcm
mri_231.dcm
mri_252.dcm
mri_273.dcm
mri_294.dcm
mri_315.dcm
mri_336.dcm
mri_376.dcm
mri_397.dcm
mri_418.dcm
mri_439.dcm
**************************
 
Regards
Kasp
 
 
Luis Ibanez <luis.ibanez at kitware.com> wrote:


Hi Kasp,


The answer to your question probably
can be found among the answers of the
following new questions:


A) What image modality is stored in your DICOM files ?

B) Did you created the MetaHeader manually ?
or through the ImageFileWriter ?

C) What pixel type did you used for instantiating the
ImageFileReader ?

D) What pixel type did you used for instantiating the
ImageFileWriter ?

E) Can you post the MetaImage header that you got ?


Probably a post of your code will be a better
answer to these questions.

FYI, The simplest way of converting DICOM to MetaImage
(or to any other ITK supported file format) is to use
the application:

Insight/Examples/IO/
DicomSeriesReadImageWrite.cxx


You could also use MRIConvert
http://lcni.uoregon.edu/~jolinda/MRIConvert



Regards,




Luis



--------------
ja sk wrote:

> Hi,
> 
> I created a meta header file for a volume of dicom slices, but when i 
> tried to view the volume with the image viewer found in the Insight 
> applications, it seems like the quality has disintegrated alot (not 
> clear at all), as compared to reading the single dicom file. Is there 
> any way to prevent this, thanks.
> 
> Regards from Kasp
> 



 Yahoo! Messenger
- Log on with your mobile phone!
--0-865966912-1080107605=:45433
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<DIV>Hi Luis,</DIV>
<DIV>&nbsp;</DIV>
<DIV>A) I'm not sure what you mean by modality, but its MRI cine from siemens</DIV>
<DIV>&nbsp;</DIV>
<DIV>B) I created the Meta Header manually and using the MetaImageImporter<BR></DIV>
<DIV>C)I did not use any ImageFileReader/Writer for creating the .mhd file, so no raw files for the volumes were created.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Well i tried DicomSeriesReadImageWrite but the images are in "time series", so DicomSeriesReadImageWrite will just create a .mhd and .raw for a particular slice for a time instance. </DIV>
<DIV>I also tried out Jolinda's MRIConvert, and it has no means&nbsp;of&nbsp;writing out&nbsp;a volume in this case.  Any suggestions, Thank You!!</DIV>
<DIV>&nbsp;</DIV>
<DIV>here's the mhd file:</DIV>
<DIV>*********************</DIV>
<DIV>NDims = 3<BR>DimSize = 256 256 12<BR>ElementSpacing = 1.25 1.25 10<BR>Position = 0 0 0<BR>ElementByteOrderMSB = True<BR>ElementType = MET_USHORT<BR>ElementDataFile = LIST 2<BR>mri_189.dcm<BR>mri_210.dcm<BR>mri_231.dcm<BR>mri_252.dcm<BR>mri_273.dcm<BR>mri_294.dcm<BR>mri_315.dcm<BR>mri_336.dcm<BR>mri_376.dcm<BR>mri_397.dcm<BR>mri_418.dcm<BR>mri_439.dcm</DIV>
<DIV>**************************</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards</DIV>
<DIV>Kasp</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><B><I>Luis Ibanez &lt;luis.ibanez at kitware.com&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="BORDER-LEFT: #1010ff 2px solid; MARGIN-LEFT: 5px; PADDING-LEFT: 5px"><BR><BR>Hi Kasp,<BR><BR><BR>The answer to your question probably<BR>can be found among the answers of the<BR>following new questions:<BR><BR><BR>A) What image modality is stored in your DICOM files ?<BR><BR>B) Did you created the MetaHeader manually ?<BR>or through the ImageFileWriter ?<BR><BR>C) What pixel type did you used for instantiating the<BR>ImageFileReader ?<BR><BR>D) What pixel type did you used for instantiating the<BR>ImageFileWriter ?<BR><BR>E) Can you post the MetaImage header that you got ?<BR><BR><BR>Probably a post of your code will be a better<BR>answer to these questions.<BR><BR>FYI, The simplest way of converting DICOM to MetaImage<BR>(or to any other ITK supported file format) is to use<BR>the application:<BR><BR>Insight/Examples/IO/<BR>DicomSeriesReadImageWrite.cxx<BR><BR><BR>You could also use
 MRIConvert<BR>http://lcni.uoregon.edu/~jolinda/MRIConvert<BR><BR><BR><BR>Regards,<BR><BR><BR><BR><BR>Luis<BR><BR><BR><BR>--------------<BR>ja sk wrote:<BR><BR>&gt; Hi,<BR>&gt; <BR>&gt; I created a meta header file for a volume of dicom slices, but when i <BR>&gt; tried to view the volume with the image viewer found in the Insight <BR>&gt; applications, it seems like the quality has disintegrated alot (not <BR>&gt; clear at all), as compared to reading the single dicom file. Is there <BR>&gt; any way to prevent this, thanks.<BR>&gt; <BR>&gt; Regards from Kasp<BR>&gt; <BR><BR><BR></BLOCKQUOTE><p><img src=http://sg.yimg.com/i/sg/icons/16/messenger.gif width="16" height="16"><b> <a href="http://sg.rd.yahoo.com/mail/tagline/?http://sg.messenger.yahoo.com/" target=_blank>Yahoo! Messenger</a></b><br><small>- <a href="http://sg.mobile.yahoo.com/sms/msgr20.html">Log on</a> with your mobile phone!</small>
--0-865966912-1080107605=:45433--