Skip to content

Creating a polynomial MLP function without specifying a polynomial degree results in segmentation fault #36

@acoussat

Description

@acoussat

The following Python code produces a segmentation fault:

from itk import PCT as pct

mlp = pct.PolynomialMLPFunction.New()
# mlp.SetPolynomialDegree(3)
mlp.Init([0., 0., -110.], [0., 0., 110.], [0., 0., 1.], [0., 0., 1.])

Uncommenting the commented line solves the issue. I think this behavior is not user-friendly, a better option would be to allow to set the polynomial degree after initializing the object, or setting a default value for the polynomial degree.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions