Skip to content

Commit

Permalink
[SWIG] add PinholeSPECTUB matrix (#1336)
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisThielemans authored Jan 17, 2024
1 parent 2eaacd6 commit 434837c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
3 changes: 3 additions & 0 deletions documentation/release_6.0.htm
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ <h4>General</h4>

<h4>Python (and MATLAB)</h4>
<ul>
<li> exposed <code>ProjMatrixByBinPinholeSPECTUB</code><br>
<a href="https://github.com/UCL/STIR/pull/1366">PR #1366</a>
</li>
<li><a href="https://github.com/UCL/STIR/pull/1288">PR #1288</a>
<ul>
<li>
Expand Down
1 change: 1 addition & 0 deletions src/swig/stir.i
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@

#include "stir/recon_buildblock/ProjMatrixByBinUsingRayTracing.h"
#include "stir/recon_buildblock/ProjMatrixByBinSPECTUB.h"
#include "stir/recon_buildblock/ProjMatrixByBinPinholeSPECTUB.h"
#include "stir/recon_buildblock/QuadraticPrior.h"
#include "stir/recon_buildblock/PLSPrior.h"
#include "stir/recon_buildblock/RelativeDifferencePrior.h"
Expand Down
19 changes: 16 additions & 3 deletions src/swig/stir_projectors.i
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@
>);
%shared_ptr(stir::ProjMatrixByBinSPECTUB);

%shared_ptr(stir::RegisteredParsingObject<
stir::ProjMatrixByBinPinholeSPECTUB,
stir::ProjMatrixByBin,
stir::ProjMatrixByBin
>);
%shared_ptr(stir::ProjMatrixByBinPinholeSPECTUB);

%include "stir/recon_buildblock/ForwardProjectorByBin.h"
%include "stir/recon_buildblock/BackProjectorByBin.h"
%include "stir/recon_buildblock/ProjMatrixByBin.h"
Expand All @@ -60,7 +67,15 @@
stir::ProjMatrixByBin
>;

%include "stir/recon_buildblock/ProjMatrixByBinSPECTUB.h"
%include "stir/recon_buildblock/ProjMatrixByBinPinholeSPECTUB.h"

%template (internalRPProjMatrixByBinPinholeSPECTUB) stir::RegisteredParsingObject<
stir::ProjMatrixByBinPinholeSPECTUB,
stir::ProjMatrixByBin,
stir::ProjMatrixByBin
>;

%include "stir/recon_buildblock/ProjMatrixByBinPinholeSPECTUB.h"

%template (internalRPForwardProjectorByBinUsingProjMatrixByBin)
stir::RegisteredParsingObject<stir::ForwardProjectorByBinUsingProjMatrixByBin,
Expand All @@ -72,8 +87,6 @@
stir::BackProjectorByBin>;
%include "stir/recon_buildblock/BackProjectorByBinUsingProjMatrixByBin.h"

%include "stir/recon_buildblock/ProjMatrixByBinSPECTUB.h"

%shared_ptr(stir::ProjectorByBinPair);
// explicitly ignore constructor, because SWIG tries to instantiate the abstract class otherwise
%ignore stir::ProjectorByBinPair::ProjectorByBinPair();
Expand Down

0 comments on commit 434837c

Please sign in to comment.