Esempio n. 1
0
void AtlasOptionsDialog::show(AtlasGroup::Handle atlases)
{
  m_atlases = atlases;
  m_atlasSelection->clear();
  for(AtlasGroup::ConstIterator it = atlases->begin(); it != atlases->end(); ++it)
    m_atlasSelection->insertItem(it->second->inqName());

  AtlasOptionsDialogBase::show();
  m_atlasSelection->setCurrentItem(1);
  selectAtlas(m_atlasSelection->currentText());
}
Esempio n. 2
0
int agtest(int argc, char **argv)
{
    AtlasGroup::Handle ag = AtlasGroup::create();

    string atlasdir(string(getenv("FSLDIR")) + "/lib/atlases");

    cout << atlasdir << endl;

    ag->readAtlas(atlasdir, "MNISPMaps.xml");
    ag->readAtlas(atlasdir, "TAL2MNI.xml");
    ag->readAtlas(atlasdir, "JCMaps.xml");
    ag->readAtlas(atlasdir, "JCMax.xml");
    ag->readAtlas(atlasdir, "HOSPM.xml");

    for(AtlasGroup::ConstAtlasIterator it = ag->begin(); it != ag->end(); it++)
    {
        Atlas::Handle b = it->second;

        doLookups(b);
    }

//   Atlas::Handle b = ag->getAtlasByName("MNI Structural Probability Atlas");
//   doLookups(b);
//   cout << "*******" << endl;
//   b = ag->getAtlasByName("Talairach Daemon Labels");
//   doLookups(b);
//   cout << "*******" << endl;
//   b = ag->getAtlasByName("Juelich Cytoarchitectonic Probability Map");
//   doLookups(b);
//   cout << "*******" << endl;
//   b = ag->getAtlasByName("Juelich Cytoarchitectonic Maximum Probability Map");
//   doLookups(b);
//   cout << "*******" << endl;
//   b = ag->getAtlasByName("Harvard-Oxford Structural Probability Map");
//   doLookups(b);

}