[Insight-users] VectorImage Writing Problem
Luis Ibanez
luis.ibanez@kitware.com
Sat, 18 Jan 2003 23:37:36 -0500
Hi Raluca,
Thanks for pointing this out.
The previous changes made in ImageIOBase were
not sufficient for writing images of Offset.
Additional code has been introduced now in
ImageIOBase and MetaImageIO in order to
make possible the write. The change basically
consisted in translating the pixel type OFFSET
into the MetaImage type MET_INT_ARRAY.
The changes have been checked in the repository.
The Example of the DanielsonDistance filter was
extended to also write the image of offsets.
You may want to take a look at it, and run it
from the command line. This will also show up in
the next update of the SoftwareGuide.pdf.
The example can be found in:
Insight/Examples/Filtering/
DanielssonDistanceMapImageFilter.cxx
Please let us know if you find further problems,
Thanks
Luis
--------------------------------------------------
Raluca wrote:
> Hi everyone,
>
> I'm trying to write the VectorDistanceMap image produced by the Danielsson
> Filter, which has a PixelType of Offset<3>, as a Meta Image. After having
> updated the ImageIOBase.cxx file in ITK the program produces the .mha and
> .mha.raw files but I have just noticed that the .mha file only contains the
> header and the .raw file is empty! I get no writing error. I also checked if
> the filter updates correctly and it does ... the image is created and I can
> access pixel values.
>
> Can anyone help?
> Thanks
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
>
>