openModeller
Version 1.4.0
|
#include <openmodeller/om.hh>
#include <openmodeller/Configuration.hh>
#include <openmodeller/os_specific.hh>
#include "request_file.hh"
#include "om_cmd_utils.hh"
#include <istream>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <string>
#include <stdexcept>
Go to the source code of this file.
Functions | |
int | showAlgorithms (AlgMetadata const **availables) |
AlgMetadata const * | readAlgorithm (AlgMetadata const **availables) |
int | readParameters (AlgParameter *result, AlgMetadata const *metadata) |
char * | extractParameter (char *name, int nvet, char **vet) |
void | mapCallback (float progress, void *extra_param) |
void | modelCallback (float progress, void *extra_param) |
int | main (int argc, char **argv) |
char * extractParameter | ( | char * | id, |
int | nvet, | ||
char ** | vet | ||
) |
Search for 'id' in the 'nvet' elements of the vector 'vet'. If the string 'id' is in the begining of some string vet[i] then returns a pointer to the next character of vet[i], otherwise returns 0.
Definition at line 408 of file om_console.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 59 of file om_console.cpp.
References RequestFile::algorithmSet(), OpenModeller::availableAlgorithms(), RequestFile::calcAuc(), RequestFile::calcConfusionMatrix(), RequestFile::configure(), Log::error(), ConfusionMatrix::getAccuracy(), OpenModeller::getActualAreaStats(), AreaStats::getAreaPredictedPresent(), ConfusionMatrix::getCommissionError(), OpenModeller::getConfusionMatrix(), getLogLevel(), OpenModeller::getModel(), ConfusionMatrix::getOmissionError(), OpenModeller::getRocCurve(), OpenModeller::getSampler(), ConfusionMatrix::getThreshold(), AreaStats::getTotalArea(), RocCurve::getTotalArea(), ConfusionMatrix::getValue(), OpenModeller::getVersion(), AlgMetadata::id, Log::info(), Log::instance(), Settings::loadConfig(), RequestFile::makeModel(), RequestFile::makeProjection(), mapCallback(), metadata, modelCallback(), AlgMetadata::name, AlgMetadata::nparam, RequestFile::occurrencesSet(), AlgMetadata::overview, readAlgorithm(), readParameters(), RequestFile::requestedProjection(), AlgorithmFactory::searchDefaultDirs(), OpenModeller::setAlgorithm(), Log::setLevel(), ConfusionMatrix::setLowestTrainingThreshold(), OpenModeller::setMapCallback(), OpenModeller::setModelCallback(), Log::setPrefix(), setupExternalResources(), and Log::warn().
void mapCallback | ( | float | progress, |
void * | extra_param | ||
) |
Shows the map creation progress.
Definition at line 439 of file om_console.cpp.
References Log::info(), and Log::instance().
Referenced by main().
void modelCallback | ( | float | progress, |
void * | extra_param | ||
) |
Shows the map creation progress.
Definition at line 427 of file om_console.cpp.
References Log::info(), and Log::instance().
Referenced by main().
AlgMetadata const * readAlgorithm | ( | AlgMetadata const ** | availables | ) |
Definition at line 286 of file om_console.cpp.
References showAlgorithms().
Referenced by main().
int readParameters | ( | AlgParameter * | result, |
AlgMetadata const * | metadata | ||
) |
Definition at line 326 of file om_console.cpp.
References AlgParamMetadata::has_max, AlgParamMetadata::has_min, AlgParamMetadata::id, Integer, AlgParamMetadata::max_val, AlgParamMetadata::min_val, AlgParamMetadata::name, AlgMetadata::nparam, AlgParamMetadata::overview, AlgMetadata::param, AlgParameter::setId(), AlgParameter::setValue(), String, AlgParamMetadata::type, and AlgParamMetadata::typical.
Referenced by main().
int showAlgorithms | ( | AlgMetadata const ** | availables | ) |
openModeller console interface.
LICENSE INFORMATION
Copyright(c) 2003 by CRIA - Centro de Referencia em Informacao Ambiental
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details:
http://www.gnu.org/copyleft/gpl.html
Definition at line 256 of file om_console.cpp.
References metadata, and AlgMetadata::name.
Referenced by readAlgorithm().