33#ifdef MAC_SELF_CONTAINED_BUNDLE
34 #include <Python27/Python.h>
127 bool add (
const char*
str );
helper class to generated PyObject from C/C++/hugin classes
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
a class which encapsulates the python interface.
python_interface()
constructor
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
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.