66 fprintf (
stderr ,
"HPI ERROR: failed to activate Python interface\n" ) ;
138 "could not open script %s\n" ,
146 AppBase::DocumentData::ReadWriteError
err = pano->readData(
prjfile);
148 if (
err != DocumentData::SUCCESSFUL)
152 "error while parsing panos tool script:" ,
154 "DocumentData::ReadWriteError code:" ,
176 int success = hsi::callhpi (
argv[2] , 1 ,
"HuginBase::Panorama*" , pano ) ;
int main(int argc, char *argv[])
void setFilePrefix(std::string prefix)
sets the path prefix of the images reffered with relative paths
helper class to generated PyObject from C/C++/hugin classes
a class which encapsulates the python interface.
bool activate()
: loads the necessary modules hsi and hpi.
int call_hpi(const char *hpi_func, PyObject *pArgs)
call a routine in the hsi module with a bunch of parameters.
C++ call interface to hpi.
core classes of the hpi interface, not for user code
mainly consists of wrapper around the pano tools library, to assist in ressource management and to pr...
int callhpi(const char *plugin_name, int argc,...)
simplified call interface to the Python Plugin facility.
static python_interface hpi_instance
this is where we keep the single instance of class python_interface
namespace for various utils
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.