Skip to content
Snippets Groups Projects
Commit d4b4ec23 authored by Jordi Inglada's avatar Jordi Inglada
Browse files

BUG: deal with the case where no samples are found

parent e8e36d9e
No related branches found
No related tags found
No related merge requests found
......@@ -165,8 +165,12 @@ SampleAugmentationFilter
}
++featureIt;
}
std::cout << "Read " << sampleCount << "samples\n";
return samples;
if(sampleCount==0)
{
itkExceptionMacro("Could not find any samples in layer " << layerName <<
" with label " << label << '\n');
}
return samples;
}
void
......
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