<div>Gaetan,</div>
<div> </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> </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's SuppressWarningsOn/Off.
</div>
<div> </div>
<div>Bill</div>
<div> </div>
<div><span class="gmail_quote">On 8/22/07, <b class="gmail_sendername">Gaëtan Lehmann</b> <<a href="mailto:gaetan.lehmann@jouy.inra.fr">gaetan.lehmann@jouy.inra.fr</a>> 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'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'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 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>