Skip to content
Snippets Groups Projects
Commit 0157f9d6 authored by Aurélien Bricier's avatar Aurélien Bricier
Browse files

ENH: added test to insure parameter coherence

parent 18eff8f3
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,8 @@ FuzzyVariable<TLabel, TPrecision>::SetMembership(const LabelType& var,
// Check if values are ordered correctly
if( v1>v2 || v2>v3 || v3>v4)
itkExceptionMacro(<< "Values have to be v1<=v2<=v3<=v4");
if( min>=max)
itkExceptionMacro(<< "Values have to be min<max");
// Build the membership parameters
ParametersType parameters;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment