[Insight-developers] ImageSeriesReader / ImageSeriesWriter
Luis Ibanez
luis.ibanez at kitware.com
Mon Jun 7 10:27:20 EDT 2004
Bill,
We just reviewed the class with Mathieu and find a way of
maintaining the previous API, yet adding the new one.
The ImageSeriesWriter can now work with any SeriesFileNames
generator, so it is not limited to Numeric series anymore.
The previous API is now sending an itkWarningMacro() stating
that this approach has been deprecated.
This changes will make possible to support DICOM writing
using the GCDM library.
Luis
--------------------------------------
Lorensen, William E (Research) wrote:
> I would prefer an attempt to maintain compatibility as long as it is not too
> ugly.
>
> Bill
>
> -----Original Message-----
> From: Mathieu Malaterre [mailto:mathieu.malaterre at kitware.com]
> Sent: Sunday, June 06, 2004 11:01 PM
> To: insight-developers at itk.org
> Subject: [Insight-developers] ImageSeriesReader / ImageSeriesWriter
>
>
> Hi,
>
> I was looking for a way to write a series of files, with arbitrary
> filenames. So I found ImageSeriesWriter, since ImageSeriesReader was doing
> what I was looking for. But it seems like this class is more like a
> ImageNumericSeriesWriter.
>
> I implemented a patch so this class would take an abritrary set of
> filenames. My question is then:
>
> - Can I apply this patch (*) ?
>
> - If so I have different options:
> 1. Copy the old class to a new class called ImageNumericSeriesWriter
> 2. Change all existing tests/example using the old ImageSeriesWriter to
> use the new one in combination with a NumericSeriesFileNames
> 3. Try to maintain some sort of compatibility mode.
>
> My prefered approach is 2, it shows users how flexible the SeriesWriter are.
>
> Comments suggestions welcome,
> Mathieu
> (*) I am having currently some problems generating patches since the backup
> of last week. It seems to have change files date&time on the cvs repository
> and thus to use the included patch to this email, one need to do:
>
> patch -p1 < series.patch
> ^
> Mathieu
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers
>
More information about the Insight-developers
mailing list