[Insight-developers] Region bug in PNGImageIO
Kent Williams
norman-k-williams@uiowa.edu
Tue, 1 Apr 2003 11:48:14 -0600
Well, I can tell you what the code does; it's being passed a pointer to t=
he=20
buffer; it computes the number of bytes to write out by calling=20
itk::ImageIOBase->GetImageSizeInBytes() to determine dimensions and the s=
ize=20
of pixel data. So it is taking the image size into account.
Now, itk::ImageIOBase->GetImageSizeInBytes() doesn't take m_IORegion into=
=20
account; in fact itkImageSeriesWriter.txx is the only file that seems to =
do=20
anything with it, and I've only done a cursory glance through the code, s=
o=20
I'm not sure what it is, in fact, doing.
On Tuesday 01 April 2003 11:34 am, Miller, James V (Research) wrote:
> So how do you determine what the image dimensions to write are
> if you are not looking at the m_IORegion?
>
> Are you just supporting "overwriting" and existing image and getting
> the dimensions from the previously stored image?
>
> Jim
>