[Insight-users] disabling unknown field warnings with tif reader
bill.lorensen at gmail.com
Wed Aug 22 11:10:29 EDT 2007
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.
On 8/22/07, Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr> wrote:
> 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
> 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
> Insight-users mailing list
> Insight-users at itk.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Insight-users