26 "Class hierarchy: :class:`freestyle.types.UnaryFunction0D` > "
27 ":class:`freestyle.types.UnaryFunction0DDouble` > :class:`DensityF0D`\n"
29 ".. method:: __init__(sigma=2.0)\n"
31 " Builds a DensityF0D object.\n"
33 " :arg sigma: The gaussian sigma value indicating the X value for\n"
34 " which the gaussian function is 0.5. It leads to the window size\n"
35 " value (the larger, the smoother).\n"
36 " :type sigma: float\n"
38 ".. method:: __call__(it)\n"
40 " Returns the density of the (result) image evaluated at the\n"
41 " :class:`freestyle.types.Interface0D` pointed by the\n"
42 " Interface0DIterator. This density is evaluated using a pixels square\n"
43 " window around the evaluation point and integrating these values using\n"
46 " :arg it: An Interface0DIterator object.\n"
47 " :type it: :class:`freestyle.types.Interface0DIterator`\n"
48 " :return: The density of the image evaluated at the pointed\n"
54 static const char *kwlist[] = {
"sigma",
nullptr};
57 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"|d", (
char **)kwlist, &d)) {
61 self->py_uf0D_double.uf0D_double->py_uf0D = (PyObject *)
self;
68 PyVarObject_HEAD_INIT(
nullptr, 0)
87 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