[Insight-users] imageserieswriter
Felix Schwenk
felix.schwenk at nme.at
Sat Jun 19 12:50:50 EDT 2004
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
More information about the Insight-users
mailing list