<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hello everyone,<br>I have a "series2.raw" file together with it's header file "series2.mhd". The content of this ".mhd" file is as follows:<br><br>ObjectType = Image <br>NDims = 3 <br>BinaryData = True <br>BinaryDataByteOrderMSB = False <br>ElementSpacing = 0.449 0.449 0.600 <br>DimSize = 512 512 246 <br>ElementType = MET_USHORT <br>ElementDataFile = series2.raw<br><br>This raw file includes many image files as slices. I received this but did not know anything more about how many slices there are in this ".raw " file. I tried to read this ".raw" file by ITK 2.4.8 through both ".raw" file and ".mhd" file. I think I can read it. However, the problem is the work after that. I do not know how to extract the slices in this raw file correctly. <br><br>1. I used the code from "Examples/IO/DicomSeriesReadSeriesWrite.cxx" to write multiple slices. It did create 245 images but there is big distorsions in all images (slices). I checked on the internet and retrieved many anwsers. It is said that this was caused by the lack of orientation and etc. I found out that we can correct this problem by setting the metadatadictionaryArray through SetMetaDataDitionaryArray. But I do not know how to do it and how I can get the information of this metadatadictionaryarray. Is MetaDataDictionaryArray the list of all slice filenames? If I know how many slices there are in that raw file, CAN ITK help us to extract corectly?<br><br>2. Anyone know how to extract the slices from this ".raw" file correctly? I do not need to save it as DICOM slices. All I need is to extract all slices from this .raw file correctly so that I can have all slices as multi images in normal formats such as JPG, BMP or DICOM. <br><br>Thanks in advance! Hope that I can have the answer for this problem which I've tried my best to solve but hopeless :( .<br>Looking forward to your replies!<br>Regards,<br>Phuong Trinh.<br><br>                                            <br /><hr />Windows Live Hotmail: <a href='http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092009' target='_new'>Your friends can get your Facebook updates, right from HotmailŪ.</a></body>
</html>