[Insight-developers] RE: [Insight-GNATS] Re: Source/302

Lydia Ng lng at insightful . com
Sun, 5 Oct 2003 22:04:02 -0700


This is a multi-part message in MIME format.

------_=_NextPart_001_01C38BC7.427061D0
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

Sorry, last email was missing the attachment - Lydia

> -----Original Message-----
> From: Lydia Ng
> Sent: Sunday, October 05, 2003 9:51 PM
> To: 'grecook at iupui . edu'; 'bugs at public . kitware . com'
> Cc: 'luis . ibanez at kitware . com'
> Subject: RE: [Insight-GNATS] Re: Source/302
>=20
> Hi Greg,
>=20
> Yes, you are quite right. You bug concerns output while the link gives
an
> example of input. But I wonder if the ImageSeriesWriter would do what
you
> require?  See example in attached code where which reads in a single
3D
> image file and output each slice as 2D PNG files?
>=20
> - Lydia
>=20
>=20
> > -----Original Message-----
> > From: grecook at iupui . edu [mailto:grecook at iupui . edu]
> > Sent: Sunday, October 05, 2003 7:18 PM
> > To: bugs at public . kitware . com; Lydia Ng
> > Cc: luis . ibanez at kitware . com; yoo at nlm . nih . gov
> > Subject: Re: [Insight-GNATS] Re: Source/302
> >
> > Quoting lng at insightful . com:
> >
> > > Synopsis: Error in itkPNGImageIO.cxx: 3D images cannot be written
out
> > >
> > > State-Changed-From-To: open->closed
> > > State-Changed-By: lng
> > > State-Changed-When: Fri, 03 Oct 2003 00:45:05 -0400
> > > State-Changed-Why:
> > > The itkNumericSeriesFileNames and itkImageSeriesReader
> > > classes can be used to create a 3D image from 2D PNG files.
> > > See example code:
> > > http://public . kitware . com/pipermail/insight-users/2003-
> > > September/005078.html
> > >
> >
> > Unfortunately, this is the *opposite* problem of the one discussed
in
> the
> > subject bug report.  The one in the bug report is creating multiple
> > png files from a 3D image stack already in memory; the one described
in
> > the above URL is creating a 3D image stack from a set of png files.
> > These are two different problems.  I would appreciate it if you
could
> take
> > another look at my bug report, as the above reference does nothing
> > to solve it.  If the problem is writing the driver code
> > I can certainly send that as well.
> >
> > Greg Cook


------_=_NextPart_001_01C38BC7.427061D0
Content-Type: application/octet-stream;
	name="WriteOutPNG3D.cxx"
Content-Transfer-Encoding: base64
Content-Description: WriteOutPNG3D.cxx
Content-Disposition: attachment;
	filename="WriteOutPNG3D.cxx"

DQojaW5jbHVkZSAiaXRrSW1hZ2VSZWdpb25Db25zdEl0ZXJhdG9yLmgiDQojaW5jbHVkZSAiaXRr
SW1hZ2VSZWdpb25JdGVyYXRvci5oIg0KI2luY2x1ZGUgIml0a0ltYWdlLmgiDQojaW5jbHVkZSAi
aXRrSW1hZ2VGaWxlUmVhZGVyLmgiDQojaW5jbHVkZSAiaXRrSW1hZ2VTZXJpZXNXcml0ZXIuaCIN
Cg0KaW50IG1haW4oIGludCBhcmdjLCBjaGFyICphcmd2W10gKQ0Kew0KICBpZiAoYXJnYyA8IDMg
KQ0KICAgIHsNCiAgICBzdGQ6OmNvdXQgPDwgIlVzYWdlOiBXcml0ZU91dFBORzNEIGlucHV0Rmls
ZSBvdXRwdXRQcmVmaXgiIDw8IHN0ZDo6ZW5kbDsNCiAgICByZXR1cm4gRVhJVF9GQUlMVVJFOw0K
ICAgIH0NCg0KICB0eXBlZGVmIGl0azo6SW1hZ2U8dW5zaWduZWQgY2hhciwzPiBJbWFnZVR5cGU7
DQogIHR5cGVkZWYgaXRrOjpJbWFnZTx1bnNpZ25lZCBjaGFyLDI+IEltYWdlMkRUeXBlOw0KICB0
eXBlZGVmIGl0azo6SW1hZ2VGaWxlUmVhZGVyPEltYWdlVHlwZT4gUmVhZGVyVHlwZTsNCg0KICBS
ZWFkZXJUeXBlOjpQb2ludGVyIHJlYWRlciA9IFJlYWRlclR5cGU6Ok5ldygpOw0KICByZWFkZXIt
PlNldEZpbGVOYW1lKCBhcmd2WzFdICk7DQogIHJlYWRlci0+VXBkYXRlKCk7DQoNCiAgdHlwZWRl
ZiBpdGs6OkltYWdlU2VyaWVzV3JpdGVyPEltYWdlVHlwZSxJbWFnZTJEVHlwZT4gV3JpdGVyVHlw
ZTsNC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