Skip to content

STIR-python OSMAPOSL priors are GeneralisedPrior objects rather than child class priors #707

Description

@robbietuk

OSMAPOSL reconstruction object is defined and setup in python as self.recon. This setup process has a penalty defined (e.g. QP). The call self.recon.get_objective_function().get_prior() returns
<Swig Object of type 'stir::shared_ptr< stir::GeneralisedPrior< stir::DiscretisedDensity< 3,float > > > *' at 0x125b172f0>. This GeneralisedPrior object does not contain any methods specific to the QP/RDP and therefore evaluations of things like parabolic_surrogate_curvature() (QP), or get_gamma()/set_gamma() (RDP) cannot be performed.

Can get_prior() return the child class prior?, e.g. QP or RDP.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions