std::cout << "And Exception was thrown in DealWithNiveau3 (" << e.what() << "); "
<< " We skip [" << level2Directory << "]" << std::endl;
continue;
- }
+ }
+ catch (BrukerInitException &e)
+ {
+ std::cout << "And Init Exception was thrown in DealWithNiveau3 (" << e.what() << "); "
+ << " We skip [" << level2Directory << "]" << std::endl;
+ continue;
+ }
}
}
}
if (!canOpen)
{
std::cout << "Hopeless! FillMap failed on [" << str_reco << "]" << std::endl;
- throw ( BrukerHopelessException ("Hopeless!FillMap failed on 'reco'"));
+ throw ( BrukerHopelessException ("Hopeless! FillMap failed on 'reco'"));
//exit(0); /// \TODO throw an exception !
}
//std::cout << "------------------------------------------------------------------------------------------------" << std::cout;
}
catch (BrukerInitException& e)
{
- std::cout << "an Exception was throw in CreateImageSet ( ); " << e.what()
- << "catched in DealWithNiveau3" << std::endl;
+ if (verbose)
+ std::cout << "an Init Exception was thrown in CreateImageSet ( ); " << e.what()
+ << "catched in DealWithNiveau3" << std::endl;
//return;
throw (e);
}
br_acqp.SetLoopStructure();
std::vector<int> tempVect = br_acqp.GetLoopStructure() ;
std::map<std::string, BrukerFieldData> map = br_acqp.GetBrukerHeaderMap();
+
bool result = br_acqp.ObjectVaryingProperties.init(map,tempVect);
if (result == false)
{
- throw ( BrukerInitException ("Bruker2Dicom::CreateImageSet failure ") );
+ throw ( BrukerInitException ("ObjectVaryingProperties.init() failure in Bruker2Dicom::CreateImageSet()") );
}
br_acqp.SetImageLoopStructure();
imageOrientation = imageSet[i].getRotationMatrixRPS2XYZ();
std::cout << "\t Orientation " ;
for(int i1=0; i1<3;i1++)for(int i2=0; i2<3;i2++)
- std::cout << imageOrientation[i1][i2] << " ";
+ std::cout << imageOrientation[i1][i2] << " ";CreateImageSet
//std::cout << "\t Abs Time " << imageSet[i].getAbsoluteTimePosition();
std::cout << "\t Relat Time " << imageSet[i].getRelativeTimePosition();