InsightSoftwareConsortium / ITKIsotropicWavelets

External Module for ITK, implementing Isotropic Wavelets and Riesz Filter for multiscale phase analysis.
Apache License 2.0
13 stars 11 forks source link

ENH: Check for input/output objects with assertion. #51

Closed jhlegarreta closed 7 years ago

jhlegarreta commented 7 years ago

Rather than simply returning when the input/output objects are not set, check they exist with an assert statement.

Since the processing framework should handle this situation, and throw the appropriate exception when the input/output objects are not set, the assertion is preferred over throwing an exception.

Use the itkAssertInDebugAndIgnoreInRelease macro for such purpose.

See the related topic http://review.source.kitware.com/#/c/22423

jhlegarreta commented 7 years ago

@phcerdan The related ITK topic got approved and merged, so I think this is ready to be merged.

phcerdan commented 7 years ago

Awesome, thanks @jhlegarreta