47 fprintf (
stderr ,
"HPI ERROR: Failed to load module %s\n" , name );
133 "HPI: making a %s from %p\n" ,
140 "HPI ERROR: can't find SWIG type for %s\n" ,
176#if PY_MAJOR_VERSION>=3
python_arglist(int _argc)
the constructor is called with the number of arguments the argument list is meant to contain.
bool add(PyObject *python_arg)
add a python object to the argument list.
PyObject * make_hsi_object(const char *hsi_type, void *hugin_value)
general function to make a Python object from a hugin object.
PyObject * yield()
returns the generated PyObject Note that this will only succeed if the argument count is correct.
~python_arglist()
destructor, does cleanup
PyObject * hsi_module
pointer to loaded hsi module
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.
PyObject * load_module(const char *name)
general module-loading function
bool activated
flag, true if activated
PyObject * hpi_module
pointer to loaded hpi module
core classes of the hpi interface, not for user code
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.