#if defined USE_GDCM
void GetXCoherentInfoGdcmReader::Process()
{
-
// Read the *first* image file (a SET of file names is given as input)
f = GDCM_NAME_SPACE::File::New();
} else {
f->SetFileName( "" );
} // if
-
+
bool res = f->Load();
if ( !res )
{
sh->AddFileName(*it);
} //for vector
-
GDCM_NAME_SPACE::FileList::const_iterator it;
GDCM_NAME_SPACE::FileList *l;
int iTag,sizeDicomTagsVector=bbGetInputDicomTags().size();
GDCM_NAME_SPACE::FileList::const_iterator iitt = l->begin();
//iitt ++;
+
for ( ; iitt != l->end(); ++iitt)
{
MapInfoDicom mapinfodicom;
reader->SetCoherentFileList(l);
reader->Update();
reader->GetOutput();
-
bbSetOutputOut( reader->GetOutput() );
}
#endif
void GetXCoherentInfoGdcmReader::bbUserSetDefaultValues()
{
+ reader=NULL;
std::vector<std::string> init;
init.push_back("");
bbSetInputIn(init);
{
Filenames.clear();
SimpleFilenames.clear();
- DirName = bbGetInputIn();
- /*int nbFiles = */ Explore(DirName, bbGetInputRecursive(), bbGetInputRecursiveLevel() );
- CleanFilenames( DirName );
- bbSetOutputOut(Filenames);
- bbSetOutputOutSimple(SimpleFilenames);
+ if (bbGetInputIn()!="")
+ {
+ DirName = bbGetInputIn();
+ /*int nbFiles = */ Explore(DirName, bbGetInputRecursive(), bbGetInputRecursiveLevel() );
+ CleanFilenames( DirName );
+ bbSetOutputOut(Filenames);
+ bbSetOutputOutSimple(SimpleFilenames);
+ } // if In
}
void FilesFromDirectory::bbUserSetDefaultValues()