9 #include "../../../stroke/AdvancedFunctions0D.h"
22 "Class hierarchy: :class:`freestyle.types.UnaryFunction0D` > "
23 ":class:`freestyle.types.UnaryFunction0DDouble` > :class:`DensityF0D`\n"
25 ".. method:: __init__(sigma=2.0)\n"
27 " Builds a DensityF0D object.\n"
29 " :arg sigma: The gaussian sigma value indicating the X value for\n"
30 " which the gaussian function is 0.5. It leads to the window size\n"
31 " value (the larger, the smoother).\n"
32 " :type sigma: float\n"
34 ".. method:: __call__(it)\n"
36 " Returns the density of the (result) image evaluated at the\n"
37 " :class:`freestyle.types.Interface0D` pointed by the\n"
38 " Interface0DIterator. This density is evaluated using a pixels square\n"
39 " window around the evaluation point and integrating these values using\n"
42 " :arg it: An Interface0DIterator object.\n"
43 " :type it: :class:`freestyle.types.Interface0DIterator`\n"
44 " :return: The density of the image evaluated at the pointed\n"
50 static const char *kwlist[] = {
"sigma",
nullptr};
53 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"|d", (
char **)kwlist, &d)) {
57 self->py_uf0D_double.uf0D_double->py_uf0D = (PyObject *)
self;
64 PyVarObject_HEAD_INIT(
nullptr, 0)
"DensityF0D",
82 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
static char DensityF0D___doc__[]
static int DensityF0D___init__(BPy_DensityF0D *self, PyObject *args, PyObject *kwds)
PyTypeObject DensityF0D_Type
PyTypeObject UnaryFunction0DDouble_Type