[Insight-users] Re: Image Format
Luis Ibanez
luis . ibanez at kitware . com
Tue, 22 Jul 2003 21:58:08 -0400
This is a multi-part message in MIME format.
--------------040907000700080304000606
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Hi P3rdigao,
Please do the following
0) cd to the directory where your tiff images are
1) mogrify -format pgm pelvis*.tiff
2) then adapt the attached MetaImage header file
in order to add all the pgm files you have.
Note that you will have to fix the spacing in
this header, as well as the number of slices in Z
according to the number of files you add at the
bottom.
You should be able to open this MetaImage header
with the new version of the Segmentation editor
available in
InsightApplications/SegmentationEditorFltkGui
Please beware that your slices are quite large
(1415x1407), so the total volume may have
a respectful size.
Regards,
Luis
------------------
p3rdigao wrote:
>-----Original Message-----
>
>From: p3rdigao [mailto:p3rdigao at civil . ist . utl . pt <mailto:p3rdigao at civil . ist . utl . pt> ]
>
>Sent: quarta-feira, 23 de Julho de 2003 1:22
>
>To: 'Joshua Cates'
>
>Subject: RE: [Insight-users] Re: Image Format
>
>I already intalled ImageMagic, then run convert like this
>
>C:\ convert pélvis1.tiff pelvis.001
>
>It creates the file but deep inside nothing occurs, because if you use notepad the file inside stills the same....if fact if RENAME to pelvis1.tiff you are able to view the image
>
>Which means it stills as an header file..
>
>Am I forgeting some flag in [options]...
>
>There is another way ???
>
>the first sugestion I dont get it!
>
>I sendo you an original file pelvis.tiff that i want to convert to pelvis.001
>
>It is extremely urgent!!!
>
>
>
>Thanks a lot once again!
>
>
>
>
>
>Hi P3rdigao,
>
>In the SegmentationEditor application, the data
>
>is being read using VTK.
>
>You can specify a "sprintf" pattern for generating
>
>the filenames of the slices in a sequence.
>
>This program assumes that your slices are raw
>
>data stored one slice per file.
>
>If you need to convert your slices from .gif,
>
>.tiff, or .bmp into raw, you may want to use
>
>the ImageMagick tools. In particular:
>
>
>
>1) "convert" will convert the files one by one
>
>2) "mogrify" will convert all of them at once
>
>If you are running in Windows, please be careful
>
>since there is a system utility "convert" that
>
>will transform your file system into NT, so make
>
>sure that you are running the binary from
>
>ImageMagick and not the system tool.
>
>
>
>Regards,
>
>
>
>Luis
>
>
>
>---------------
>
>p3rdigao wrote:
>
>
>
>>Hi
>>
>>
>
>
>
>
>
>
>>In the tumorbase (the brain) used for the Segmentation Editor example,
>>
>>
>
>
>
>>the image data have extension *.01, *.02, *.03 and so on
>>
>>
>
>
>
>
>
>
>>My question is: In my own image files that are *.gif, *.tiff ,
>>
>>
>
>
>
>>*.bmp....how do I converte them to *.01...*.0n ?
>>
>>
>
>
>
>
>
>
>>Thanks a lot
>>
>>
>
>
>
>>p3
>>
>>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
--------------040907000700080304000606
Content-Type: text/plain;
name="pelvis.mhd"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="pelvis.mhd"
NDims = 3
DimSize = 1415 1407 5
ElementSpacing = 1 1 1
Position = 0 0 0
ElementByteOrderMSB = False
ElementType = MET_UCHAR
HeaderSize = -1
ElementDataFile = LIST 2
pelvis1.pgm
pelvis2.pgm
pelvis3.pgm
pelvis4.pgm
pelvis5.pgm
--------------040907000700080304000606--