Skip to content

Commit

Permalink
ENH: Update one-step test
Browse files Browse the repository at this point in the history
The commit 9cbea00 move the reordering
of the photon counts inside the one-step filter, so there is no need to
do it before.
  • Loading branch information
arobert01 authored and SimonRit committed Oct 25, 2024
1 parent 3a930a5 commit ff19676
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions test/rtkspectralonesteptest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "rtkConstantImageSource.h"
#include "rtkMechlemOneStepSpectralReconstructionFilter.h"
#include "rtkSpectralForwardModelImageFilter.h"
#include "rtkReorderProjectionsImageFilter.h"

#ifdef USE_CUDA
# include "itkCudaImage.h"
Expand Down Expand Up @@ -312,15 +311,6 @@ main(int argc, char * argv[])

std::cout << "\n\n****** Case 3: Voxel-based Backprojector, 4 subsets, with regularization ******" << std::endl;

using ReorderProjectionsFilterType = rtk::ReorderProjectionsImageFilter<PhotonCountsType>;
ReorderProjectionsFilterType::Pointer reorder = ReorderProjectionsFilterType::New();
reorder->SetInput(composePhotonCounts->GetOutput());
reorder->SetInputGeometry(geometry);
reorder->SetPermutation(rtk::ReorderProjectionsImageFilter<PhotonCountsType>::SHUFFLE);
TRY_AND_EXIT_ON_ITK_EXCEPTION(reorder->Update())
mechlemOneStep->SetInputPhotonCounts(reorder->GetOutput());
mechlemOneStep->SetGeometry(reorder->GetOutputGeometry());

mechlemOneStep->SetBackProjectionFilter(MechlemType::BP_VOXELBASED);
mechlemOneStep->SetNumberOfSubsets(4);
mechlemOneStep->SetNumberOfIterations(5);
Expand Down

0 comments on commit ff19676

Please sign in to comment.