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"
49 static const char *kwlist[] = {
"sigma",
nullptr};
52 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"|d", (
char **)kwlist, &d)) {
56 self->py_uf0D_double.uf0D_double->py_uf0D = (PyObject *)
self;
63 PyVarObject_HEAD_INIT(
nullptr, 0)
82 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
Functions taking 0D input.
static int DensityF0D___init__(BPy_DensityF0D *self, PyObject *args, PyObject *kwds)
PyDoc_STRVAR(DensityF0D___doc__, "Class hierarchy: :class:`freestyle.types.UnaryFunction0D` > " ":class:`freestyle.types.UnaryFunction0DDouble` > :class:`DensityF0D`\n" "\n" ".. method:: __init__(sigma=2.0)\n" "\n" " Builds a DensityF0D object.\n" "\n" " :arg sigma: The gaussian sigma value indicating the X value for\n" " which the gaussian function is 0.5. It leads to the window size\n" " value (the larger, the smoother).\n" " :type sigma: float\n" "\n" ".. method:: __call__(it)\n" "\n" " Returns the density of the (result) image evaluated at the\n" " :class:`freestyle.types.Interface0D` pointed by the\n" " Interface0DIterator. This density is evaluated using a pixels square\n" " window around the evaluation point and integrating these values using\n" " a gaussian.\n" "\n" " :arg it: An Interface0DIterator object.\n" " :type it: :class:`freestyle.types.Interface0DIterator`\n" " :return: The density of the image evaluated at the pointed\n" " Interface0D.\n" " :rtype: float\n")
PyTypeObject DensityF0D_Type
PyTypeObject UnaryFunction0DDouble_Type