Skip to content

Commit

Permalink
StackResampler: clear queue when initializing projections.
Browse files Browse the repository at this point in the history
Otherwise, strange ghost images appear when re-utilizing an instance of
this class.
  • Loading branch information
Nico Stuurman committed Sep 5, 2023
1 parent e2713f8 commit 35e0d19
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ private void precomputeReconWeightings() {
* projection and recon arrays.
*/
public void initializeProjections() {
// Not quite sure why, but this is needed to be able to re-utilize this Resampler.
imageQueue_.clear();
int reconImageZShape = this.reconImageShape_[0];
int reconImageYShape = this.reconImageShape_[1];
int reconImageXShape = this.reconImageShape_[2];
Expand Down

0 comments on commit 35e0d19

Please sign in to comment.