[Insight-users] disabling unknown field warnings with tif reader
Bill Lorensen
bill.lorensen at gmail.com
Wed Aug 22 11:10:29 EDT 2007
Gaetan,
There is a call in the itktiff library: TIFFSetWarningHandler that sets a
global variable to a handler for the warnings. If you call it with a 0
argument, I think it will suppress the warnings.
A more general solution would be to add a virtual SuppressWarningsOn/Off
method to itkImageIOBase. Then each ImageIO could perform IO specific
warning suppression. The ImageFileReader and ImageFileWriter could have the
same methods and call the image IO's SuppressWarningsOn/Off.
Bill
On 8/22/07, Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr> wrote:
>
> Hi,
>
> Is it possible to disable the warnings about unknown fields with the
> tif readers ?
>
> I'm building a 3D image from several 2D tif images (up to 120) with
> an ImageSeriesReader, and I get one warning per 2D image - that's
> pretty annoying, especially while working in interactive mode in the
> console!
>
> Thanks,
>
> Gaëtan
>
>
> --
> Gaëtan Lehmann
> Biologie du Développement et de la Reproduction
> INRA de Jouy-en-Josas (France)
> tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
> http://voxel.jouy.inra.fr
>
>
>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070822/66b3c7ab/attachment.htm
More information about the Insight-users
mailing list