Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PET stir.ExamInfo lost in reconstruction #1247

Open
KrisThielemans opened this issue Apr 29, 2024 · 0 comments
Open

PET stir.ExamInfo lost in reconstruction #1247

KrisThielemans opened this issue Apr 29, 2024 · 0 comments

Comments

@KrisThielemans
Copy link
Member

KrisThielemans commented Apr 29, 2024

I have code like this

    obj_fun = STIR.make_Poisson_loglikelihood(data)
    obj_fun.set_acquisition_model(acq_model)
    recon = STIR.OSMAPOSLReconstructor()
    recon.set_objective_function(obj_fun)
    recon.set_current_estimate(initial_image)
    recon.set_up(initial_image)
    recon.process()
    return recon.get_output()

The initial_image is bare bones and has no ExamInfo (can be checked with print(image.get_info())) The consequence is that the output doesn't have any either. Reconstructing directly for STIR's OSMAPOSL utility (see par file below) does write images out with appropriate ExamInfo.

Not so sure what to do about this. It is possibly a STIR issue. It will create trouble once we take durations and location into account though.

par file

OSMAPOSLParameters :=
objective function type:= PoissonLogLikelihoodWithLinearModelForMeanAndProjData
PoissonLogLikelihoodWithLinearModelForMeanAndProjData Parameters:=

input file := prompts.hs
projector pair type :=Parallelproj
Projector Pair Using Parallelproj Parameters:=
End Projector Pair Using Parallelproj Parameters:=
end PoissonLogLikelihoodWithLinearModelForMeanAndProjData Parameters:=

initial estimate:= initial_image.hv
output filename prefix := output

number of subsets:= 21
number of subiterations:= 1
END :=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant