23 #include "../../../stroke/AdvancedFunctions0D.h"
36 "Class hierarchy: :class:`freestyle.types.UnaryFunction0D` > "
37 ":class:`freestyle.types.UnaryFunction0DDouble` > :class:`DensityF0D`\n"
39 ".. method:: __init__(sigma=2.0)\n"
41 " Builds a DensityF0D object.\n"
43 " :arg sigma: The gaussian sigma value indicating the X value for\n"
44 " which the gaussian function is 0.5. It leads to the window size\n"
45 " value (the larger, the smoother).\n"
46 " :type sigma: float\n"
48 ".. method:: __call__(it)\n"
50 " Returns the density of the (result) image evaluated at the\n"
51 " :class:`freestyle.types.Interface0D` pointed by the\n"
52 " Interface0DIterator. This density is evaluated using a pixels square\n"
53 " window around the evaluation point and integrating these values using\n"
56 " :arg it: An Interface0DIterator object.\n"
57 " :type it: :class:`freestyle.types.Interface0DIterator`\n"
58 " :return: The density of the image evaluated at the pointed\n"
64 static const char *kwlist[] = {
"sigma",
nullptr};
67 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"|d", (
char **)kwlist, &d)) {
71 self->py_uf0D_double.uf0D_double->py_uf0D = (PyObject *)
self;
78 PyVarObject_HEAD_INIT(
nullptr, 0)
"DensityF0D",
96 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