[Insight-developers] itkAssertOrThrowMacro
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Wed Nov 3 05:45:41 EDT 2010
Hi,
Sometimes an assert() in the code should not throw an exception when
built in release mode, especially when it is in a method called for
every pixels in an image.
Throwing an exception can reduce significantly the performance of the
code where it is placed.
While cleaning up the RankHistogram code, I found several
itkAssertOrThrowMacro() which shouldn't be there.
Please do not make an over usage of itkAssertOrThrowMacro().
Regards,
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 http://www.itk.org
http://www.mandriva.org http://www.bepo.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20101103/de47cb16/attachment.pgp>
More information about the Insight-developers
mailing list