<div>Gaetan,</div>
<div>&nbsp;</div>
<div>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.</div>
<div>&nbsp;</div>
<div>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&#39;s SuppressWarningsOn/Off.
</div>
<div>&nbsp;</div>
<div>Bill</div>
<div>&nbsp;</div>
<div><span class="gmail_quote">On 8/22/07, <b class="gmail_sendername">Gaëtan Lehmann</b> &lt;<a href="mailto:gaetan.lehmann@jouy.inra.fr">gaetan.lehmann@jouy.inra.fr</a>&gt; wrote:</span></div>
<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Hi,<br><br>Is it possible to disable the warnings about unknown fields with the<br>tif readers ?<br><br>
I&#39;m building a 3D image from several 2D tif images (up to 120) with<br>an ImageSeriesReader, and I get one warning per 2D image - that&#39;s<br>pretty annoying, especially while working in interactive mode in the<br>console!
<br><br>Thanks,<br><br>Gaëtan<br><br><br>--<br>Gaëtan Lehmann<br>Biologie du Développement et de la Reproduction<br>INRA de Jouy-en-Josas (France)<br>tel: +33 1 34 65 29 66&nbsp;&nbsp;&nbsp;&nbsp;fax: 01 34 65 29 09<br><a href="http://voxel.jouy.inra.fr">
http://voxel.jouy.inra.fr</a><br><br><br><br><br>_______________________________________________<br>Insight-users mailing list<br><a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br><a href="http://www.itk.org/mailman/listinfo/insight-users">
http://www.itk.org/mailman/listinfo/insight-users</a><br><br><br></blockquote></div><br>