Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 3 additions & 22 deletions applications/pctpaircuts/pctpaircuts.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
#include <rtkConstantImageSource.h>

#include "pctProtonPairsToDistanceDrivenProjection.h"
#include "pctThirdOrderPolynomialMLPFunction.h"
#include "pctSchulteMLPFunction.h"
#include "pctEnergyStragglingFunctor.h"
#include "pctBetheBlochFunctor.h"

#include <itkImageFileWriter.h>
#include <itkRegularExpressionSeriesFileNames.h>
Expand Down Expand Up @@ -51,10 +47,6 @@ main(int argc, char * argv[])
std::vector<std::vector<double>> energies(npixels);
std::vector<std::vector<double>> angles(npixels);

pct::Functor::IntegratedBetheBlochProtonStoppingPowerInverse<float, double> * ConvFunc;
ConvFunc = new pct::Functor::IntegratedBetheBlochProtonStoppingPowerInverse<float, double>(
68.9984 * CLHEP::eV, 600. * CLHEP::MeV, 0.1 * CLHEP::keV);

// Read pairs
using VectorType = itk::Vector<float, 3>;
using PairsImageType = itk::Image<VectorType, 2>;
Expand Down Expand Up @@ -312,17 +304,6 @@ main(int argc, char * argv[])
const double angley = std::acos(std::min(1., dInY * dOutY / (dInY.GetNorm() * dOutY.GetNorm())));
const double energy = (data[0] == 0.) ? data[1] : data[0] - data[1];

VectorType WET_data;
if (args_info.wet_flag)
{
WET_data[0] = ConvFunc->GetValue(data[1], data[0]);
}
else
WET_data[0] = data[0];

WET_data[1] = data[1];
WET_data[2] = data[2];

if (anglex <= pSumAngleSq[idx] && angley <= pSumAngleSq[idx] &&
std::abs(energy - pSumEnergy[idx]) <= pSumEnergySq[idx])
{
Expand All @@ -332,7 +313,7 @@ main(int argc, char * argv[])
pairs.push_back(pOut);
pairs.push_back(dIn);
pairs.push_back(dOut);
pairs.push_back(WET_data);
pairs.push_back(data);
if (region.GetSize(0) == 6)
pairs.push_back(nuclearinfo);
}
Expand All @@ -342,7 +323,7 @@ main(int argc, char * argv[])
pairs.push_back(pOut);
pairs.push_back(dIn);
pairs.push_back(dOut);
pairs.push_back(WET_data);
pairs.push_back(data);
if (region.GetSize(0) == 6)
pairs.push_back(nuclearinfo);
}
Expand All @@ -352,7 +333,7 @@ main(int argc, char * argv[])
pairs.push_back(pOut);
pairs.push_back(dIn);
pairs.push_back(dOut);
pairs.push_back(WET_data);
pairs.push_back(data);
if (region.GetSize(0) == 6)
pairs.push_back(nuclearinfo);
}
Expand Down
1 change: 0 additions & 1 deletion applications/pctpaircuts/pctpaircuts.ggo
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ option "robust" r "Use robust estimation using 50/19.1 %ile." flag of
option "robustopt" - "Use newer options for robust cut." int no default="0"
option "primaries" - "Consider only primary protons" flag off
option "nonuclear" - "Consider only primary protons without nuclear interactions" flag off
option "wet" - "Write WET instead of initial energy" flag off

section "Projections parameters"
option "origin" - "Origin (default=centered)" double multiple no
Expand Down
Loading