Skip to content
Snippets Groups Projects
Commit 00b9d810 authored by Julien Malik's avatar Julien Malik
Browse files

BUG: when no training polygons are found, this is an error, not a warning

parent 99335cf6
No related branches found
No related tags found
No related merge requests found
......@@ -282,8 +282,7 @@ ListSampleGenerator<TImage, TVectorData>
}
else
{
otbWarningMacro("no polygon found");
m_ClassMinSize = 0;
itkGenericExceptionMacro(<< "No training sample found inside image")
}
}
......
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