Skip to content

Commit

Permalink
Use negative log for full reconstruction
Browse files Browse the repository at this point in the history
CIL and tomopy pass the full dataset, so need to apply the negative log
operation themselves.
  • Loading branch information
samtygier-stfc committed Jul 7, 2021
1 parent dec0411 commit ad9ee8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mantidimaging/core/reconstruct/cil_recon.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def full(images: Images, cors: List[ScalarCoR], recon_params: ReconstructionPara

# stick it into an AcquisitionData
data = ag.allocate(None)
data.fill(images.data)
data.fill(BaseRecon.negative_log(images.data))
data.reorder('astra')

ig = ag.get_ImageGeometry()
Expand Down
2 changes: 1 addition & 1 deletion mantidimaging/core/reconstruct/tomopy_recon.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def full(images: Images, cors: List[ScalarCoR], recon_params: ReconstructionPara

kwargs = {
'ncore': ncores,
'tomo': images.data,
'tomo': BaseRecon.negative_log(images.data),
'sinogram_order': images._is_sinograms,
'theta': images.projection_angles(recon_params.max_projection_angle).value,
'center': [cor.value for cor in cors],
Expand Down

0 comments on commit ad9ee8b

Please sign in to comment.