int CPP_GenOneHomFloat(int argc,char ** argv)
{
    cAppli_GenPTripleOneImage anAppli(argc,argv);

    anAppli.GenerateHomFloat();
    return EXIT_SUCCESS;
}
Exemplo n.º 2
0
int SaisiePts_main(int argc,char ** argv)
{
   MMD_InitArgcArgv(argc,argv);
  // cAppliApero * anAppli = cAppliMICMAC::Alloc(argc,argv,eAllocAM_STD);

  //if (0) delete anAppli;
    
   ELISE_ASSERT(argc>=2,"Not enough arg");


   cElXMLTree aTree(argv[1]);


   cResultSubstAndStdGetFile<cParamSaisiePts> aP2 
                                          (
                                               argc-2,argv+2,
                                              //0,0,
		                              argv[1],
			                       StdGetFileXMLSpec("ParamSaisiePts.xml"),
			                      "ParamSaisiePts",
			                      "ParamSaisiePts",
                                              "DirectoryChantier",
                                              "FileChantierNameDescripteur"
                                          );

   cAppli_SaisiePts   anAppli (aP2);
   ((cX11_Interface*)anAppli.Interface())->BoucleInput();

   SaisiePts_Banniere();
   return 0;
}
Exemplo n.º 3
0
int C3DC_main(int argc,char ** argv)
{

    cAppli_C3DC anAppli(argc,argv,true);
    if (!MMVisualMode) anAppli.DoAll();
    return EXIT_SUCCESS;
}
Exemplo n.º 4
0
int CASALL_main(int argc,char ** argv)
{
  // cAppliApero * anAppli = cAppliMICMAC::Alloc(argc,argv,eAllocAM_STD);

  //if (0) delete anAppli;

   ELISE_ASSERT(argc>=2,"Not enough arg");

   cElXMLTree aTree(argv[1]);



   cResultSubstAndStdGetFile<cParamCasa> aP2
                                          (
                                              argc-2,argv+2,
                                              argv[1],
                                              StdGetFileXMLSpec("ParamCasa.xml"),
                                              "ParamCasa",
                                              "ParamCasa",
                                              "DirectoryChantier",
                                              "FileChantierNameDescripteur"
                                          );

   cAppli_Casa   anAppli (aP2);

   return 0;
}
Exemplo n.º 5
0
int  genmail_main(int argc,char ** argv)
{
   MMD_InitArgcArgv(argc,argv);

   cGenerateMail anAppli(argc,argv);

   return 1;
}
Exemplo n.º 6
0
int CPP_Gene_Martini_main(int argc,char ** argv,bool Quick)
{
   MMD_InitArgcArgv(argc,argv);
   cAppli_Martini anAppli(argc,argv,Quick);
   if (MMVisualMode) return EXIT_SUCCESS;
   anAppli.DoAll();
   anAppli.Banniere(Quick);
   return EXIT_SUCCESS;
}
Exemplo n.º 7
0
int MPI2Mnt_main(int argc,char ** argv)
{
    MMD_InitArgcArgv(argc,argv);

    cAppli_MPI2Mnt anAppli(argc,argv);
    if (!MMVisualMode) anAppli.DoAll();


    return EXIT_SUCCESS;
}
Exemplo n.º 8
0
int XeresTest_Main(int argc,char** argv)
{
   MMD_InitArgcArgv(argc,argv);

   std::string aSeq;

   ElInitArgMain
   (
         argc,argv,
         LArgMain()  << EAMC(aSeq, "Sequence"),
         LArgMain()  // << EAM(mCalib,"OriCalib",true,"Calibration folder if any")
   );

   cAppliXeres anAppli("./",aSeq);
   anAppli.TestInteractNeigh();

   return EXIT_SUCCESS;
}
Exemplo n.º 9
0
int TestStephane_Main(int argc,char ** argv)
{
    std::cout << "HELLO WORD \n";
    cAppliStephane anAppli(argc,argv);
/*
    std::string aNameCam,aNameAppuis;
    std::string toto;

    ElInitArgMain
    (
        argc,argv,
        LArgMain()  << EAMC(aNameCam,"Name of camera")
                    << EAMC(aNameAppuis,"Name of GCP"),
        LArgMain()  << EAM(toto,"toto",true,"Do no stuff")
    );

*/

    return EXIT_SUCCESS;
}
Exemplo n.º 10
0
int XeresHomMatch_main(int argc,char** argv)
{
   MMD_InitArgcArgv(argc,argv);

   std::string aDir="./";
   std::string aSeq;
   std::string anOri;

   ElInitArgMain
   (
         argc,argv,
         LArgMain()  << EAMC(aSeq, "Sequence")
                     << EAMC(anOri,"Orientation"),
         LArgMain()  << EAM(aDir,"Dir",true,"Folder of data, Def=./")
   );

   cAppliXeres  anAppli(aDir,aSeq);
   StdCorrecNameOrient(anOri,aDir);
   anAppli.CalculHomMatch(anOri);

   return EXIT_SUCCESS;
}
Exemplo n.º 11
0
int XifGps2Xml_main(int argc,char ** argv)
{
    MMD_InitArgcArgv(argc,argv,2);
    std::string aFullName;
    std::string  anOri;
    bool  DoRTL = true;
    std::string  aNameRTL = "RTLFromExif.xml";
    std::string  aNameSys = aNameRTL;
    double aDefZ=0;

    ElInitArgMain
    (
           argc,argv,
           LArgMain() << EAMC(aFullName,"Full Name", eSAM_IsPatFile)
                      << EAMC(anOri,"Orientation", eSAM_IsExistDirOri),
           LArgMain() << EAM(DoRTL,"DoRTL",true,"Do Local Tangent RTL (def=true)")
                      << EAM(aNameRTL,"RTL", true,"Name RTL", eSAM_IsExistFileRP)
                      << EAM(aNameSys,"SysCo",true, "System of coordinates, by default RTL created (RTLFromExif.xml)", eSAM_IsExistFileRP)
                      << EAM(aDefZ,"DefZ","Default value for altitude (def 0)")
    );

    if (MMVisualMode) return EXIT_SUCCESS;

    cAppli_XifGps2Xml anAppli(aFullName,aDefZ);

    if (DoRTL)
    {
       ELISE_ASSERT(anAppli.mNbOk!=0,"No GPS data to compute RTL reference system");
       MakeFileXML(anAppli.mSysRTL,anAppli.mDir+aNameRTL);
    }

    cSysCoord * aSysCo = cSysCoord::FromFile(anAppli.mDir + aNameSys);
    anAppli.ExportSys(aSysCo,anOri);


    return 0;
}
Exemplo n.º 12
0
int XeresTieP_Main(int argc,char** argv)
{
   MMD_InitArgcArgv(argc,argv);

   std::string aSeq;
   int aSz,aNbHom=2;
   std::string aDir="./";
   std::string aNameCpleSup="";

   ElInitArgMain
   (
         argc,argv,
         LArgMain()  << EAMC(aSeq, "Sequence")
                     << EAMC(aSz,"Sz Tie points"),
         LArgMain()  << EAM(aDir,"Dir",true,"Folder of data, Def=./")
                     << EAM(aNbHom,"DV",true,"Delta Vois, Def=2")
                     << EAM(aNameCpleSup,"CpleSup",true,"File for additional cple")
   );

   cAppliXeres anAppli(aDir,aSeq);
   anAppli.CalculTiePoint(aSz,aNbHom,aNameCpleSup);

   return EXIT_SUCCESS;
}
int saisieAppuisInitQT_main(QApplication &app, int argc, char *argv[])
{
    app.setApplicationName("SaisieAppuisInitQT");
    app.setOrganizationName("Culture3D");

    QStringList cmdline_args = QCoreApplication::arguments();

    if (cmdline_args.back().contains("help"))
    {
        QString help = "Mandatory unnamed args :\n"
                 "* string :: {Full name (Dir+Pattern)}\n"
                 "* string :: {Orientation ; NONE if not used}\n"
                 "* string :: {Point name, or point file name}\n"
                 "* string :: {Output}\n\n"
                "Named args :\n"
                "* [Name=SzW] Pt2di :: {Sz of window}\n"
                "* [Name=NbF] Pt2di :: {Nb of sub window}\n"
                "* [Name=NameAuto] string :: {Prefix for automatic point creation}\n"
                //"* [Name=Pref2Add] string :: {Prefix to add during import (for bug correction ?)}\n"
                "* [Name=ForceGray] bool :: {Force gray image, def=false}\n"
                "* [Name=OriMode] string :: {Orientation type (GRID) (Def=Std)}\n"
                "* [Name=ZMoy] REAL :: {Average Z, Mandatory in PB}\n"
                "* [Name=ZInc] REAL :: {Incertitude on Z, Mandatory in PB}\n\n"

                "Example:\nmm3d " + app.applicationName() + " IMG_558{0-9}[1].tif RadialBasic 100 measures.xml\n\n"
                "NB: visual interface for argument edition available with command:\n\n mm3d v" + app.applicationName() + "\n\n";

        return helpMessage(app, help);
    }

    loadTranslation(app);

    QSettings settings(QApplication::organizationName(), QApplication::applicationName());

    if ((argc>0)&&(string(argv[0]).find("SaisieQT")!= string::npos))
    {
        argv++;
        argc--;
    }

    Pt2di aSzWin(800,800);
    Pt2di aNbFen(-1,-1);

    string aFullName, aDir, aName, aNamePt, aNameOut;   //mandatory arguments
    string aNameOri, aModeOri, aNameAuto, aPrefix2Add;  //named args
    aPrefix2Add = "";
    bool aForceGray = false;

    settings.beginGroup("Misc");
    aNameAuto = settings.value("defPtName", QString("100")).toString().toStdString();
    settings.endGroup();

    settings.beginGroup("Drawing settings");
    aForceGray = settings.value("forceGray", false       ).toBool();
    settings.endGroup();

    double aZInc, aZMoy;

    if (argv[0][0] == 'v')
    {
        MMVisualMode = true;
        argv[0] = (char*) "SaisieAppuisInitQT";
    }
    
    std::string aInputSec;

    SaisieAppuisInit(argc, argv, aSzWin, aNbFen, aFullName, aDir, aName, aNamePt, aNameOri, aModeOri, aNameOut, aNameAuto, aPrefix2Add, aForceGray, aZMoy, aZInc,aInputSec);

    if (!MMVisualMode)
    {
        if (!checkNamePt( QString (aNamePt.c_str()))) return -1;

        QStringList filenames = getFilenames(aDir, aName);

        int aNbW = aNbFen.x * aNbFen.y;
        if (filenames.size() < aNbW)
        {
             aNbW = filenames.size();

             cVirtualInterface::ComputeNbFen(aNbFen, aNbW);
        }

        updateSettings(settings, aSzWin,aNbFen, aForceGray);

        settings.beginGroup("Misc");
        settings.setValue("defPtName", QString(aNameAuto.c_str()));
        settings.endGroup();

        QStringList input;
        input   << QString(MMDir().c_str()) + QString("bin/SaisiePts")
                << QString(MMDir().c_str()) + QString("include/XML_MicMac/SaisieInitiale.xml")
                << QString("DirectoryChantier=") + QString(aDir.c_str())
                << QString("+Image=") +  QString(aName.c_str())
                << QString("+Ori=") + QString(aNameOri.c_str())
                << QString("+NamePt=") + QString(aNamePt.c_str())
                << QString("+NameAuto=") + QString(aNameAuto.c_str())
                << QString("+Sauv=") + QString(aNameOut.c_str())
                << QString("+SzWx=") + QString::number(aSzWin.x)
                << QString("+SzWy=") + QString::number(aSzWin.y)
                << QString("+NbFx=") + QString::number(aNbFen.x)
                << QString("+NbFy=") + QString::number(aNbFen.y);

        if (aModeOri == "GRID")
        {
            input << QString("+ModeOriIm=eGeomImageGrille")
                  << QString("+Conik=false")
                  << QString("+ZIncIsProp=false")
                    //<< QString(+PostFixOri=GRIBin")
                  << QString("+Px1Inc=") + QString::number(aZInc)
                  << QString("+Px1Moy=") + QString::number(aZMoy);

            //<< QString("+Geom=eGeomMNTFaisceauIm1ZTerrain_Px1D");
        }

        if (EAMIsInit(&aForceGray))
           input << QString("+ForceGray=") + QString(((string)(ToString(aForceGray))).c_str());

        if (EAMIsInit(&aPrefix2Add))
           input << QString("+Pref2Add=") + QString(aPrefix2Add.c_str());


        char **output;

        // Copy input to output
        output = new char*[input.size() + 1];
        for (int i = 0; i < input.size(); i++) {
            output[i] = new char[strlen(input.at(i).toStdString().c_str())+1];
            memcpy(output[i], input.at(i).toStdString().c_str(), strlen(input.at(i).toStdString().c_str())+1);
        }
        output[input.size()] = ((char*)NULL);


        cResultSubstAndStdGetFile<cParamSaisiePts> aP2(
                input.size()-2,output+2,
                output[1],
                StdGetFileXMLSpec("ParamSaisiePts.xml"),
                "ParamSaisiePts",
                "ParamSaisiePts",
                "DirectoryChantier",
                "FileChantierNameDescripteur" );

        cAppli_SaisiePts   anAppli (aP2,false);

        SaisieQtWindow w(POINT2D_INIT);

        new cQT_Interface(anAppli,&w);

        w.show();

        w.addFiles(filenames, false);

        return app.exec();
    }
    else
        return EXIT_SUCCESS;
}
Exemplo n.º 14
0
int OneReechFid_main(int argc,char ** argv)
{
     cAppliOneReechMarqFid anAppli(argc,argv);
     anAppli.DoReech();
     return EXIT_SUCCESS;
}
Exemplo n.º 15
0
int OneReechHom_main(int argc,char ** argv)
{
     cAppliReechHomogr  anAppli(argc,argv);
     return EXIT_SUCCESS;
}
Exemplo n.º 16
0
int main(int argc,char ** argv)
{
   cAppliBATCH_MICMAC anAppli(argc,argv);
   anAppli.DoAllBatch();

}
Exemplo n.º 17
0
int CPP_OptimTriplet_main(int argc,char ** argv)
{
   cAppliOptimTriplet anAppli(argc,argv,true);

   return EXIT_SUCCESS;
}
Exemplo n.º 18
0
int MMTestOrient_main(int argc,char ** argv)
{
    cAppliMMTestOrient anAppli(argc,argv);
 
    return anAppli.Exec();
}
Exemplo n.º 19
0
int MPI2Ply_main(int argc,char ** argv)
{
    cAppli_MPI2Ply anAppli(argc,argv);
    if (!MMVisualMode) anAppli.DoAll();
    return EXIT_SUCCESS;
}
Exemplo n.º 20
0
int Tarama_main(int argc,char ** argv)
{
   cAppliTarama anAppli(argc,argv);

   return  anAppli.mResult;
}