FilterWithAnatomicalFeatureDatabaseManagement()
{
m_AFDB = NULL;
- SetAFDBFilename("noname.afdb");
+ SetAFDBFilename("default.afdb");
}
//--------------------------------------------------------------------
void clitk::FilterWithAnatomicalFeatureDatabaseManagement::LoadAFDB()
{
GetAFDB()->SetFilename(GetAFDBFilename());
- GetAFDB()->Load();
+ try {
+ GetAFDB()->Load();
+ } catch (clitk::ExceptionObject e) {
+ std::cout << "Could not read '" << GetAFDBFilename() << "', create one AFDB." << std::endl;
+ GetAFDB();
+ }
}
//--------------------------------------------------------------------