[Insight-users] imageserieswriter
Luis Ibanez
luis.ibanez at kitware.com
Sat Jun 19 13:13:22 EDT 2004
Hi Felix,
How are you passing your RAW file to ITK ?
A pure raw file cannot be read using the ImageFileReader.
You probably have to create a MetaImage header for it.
Chances are that the shift problems that you observe in
the output images are simply due to the lack of a correct
definition of image origin coordinates in the input image.
Please let us know,
Thanks
Luis
---------------------
Felix Schwenk wrote:
> hi all,
> when using imageserieswriter to transfer one raw file into a series of
> jpg, png or bmp files i get the problem, that the resulting 2d slices
> alway display the content, but shifted by picturelength/2 and
> picturewidth/2
> when writing raw slices everything is ok. any hint what i'm doing wrong?
> this is my code:
>
> from InsightToolkit import *
>
> from sys import argv
>
>
> reader = itkImageFileReaderUS3_New()
> writer = itkImageSeriesWriterUS3US2_New()
>
> reader.SetFileName( argv[1] )
>
> writer.SetInput( reader.GetOutput() )
>
> writer.SetSeriesFormat( argv[2] )
> writer.SetStartIndex( 0 )
> writer.SetIncrementIndex( 1 )
>
> writer.Update()
>
>
> regards,
> Felix
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
More information about the Insight-users
mailing list