projects
/
ctsim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fb17e4a
)
Cleanup white space
author
Kevin M. Rosenberg
<kevin@rosenberg.net>
Thu, 22 Mar 2018 00:41:00 +0000
(18:41 -0600)
committer
Kevin M. Rosenberg
<kevin@rosenberg.net>
Thu, 22 Mar 2018 00:41:00 +0000
(18:41 -0600)
libctsim/reconstruct.cpp
patch
|
blob
|
history
diff --git
a/libctsim/reconstruct.cpp
b/libctsim/reconstruct.cpp
index a0d74167f2e45a914f6411fde3041fe195750e7d..6aca7f88a63795a3083286d7527b6e9cad2fd6fa 100644
(file)
--- a/
libctsim/reconstruct.cpp
+++ b/
libctsim/reconstruct.cpp
@@
-163,7
+163,7
@@
Reconstructor::reconstructView (int iStartView, int iViewCount, SGP* pSGP, bool
for (int iView = iStartView; iView < (iStartView + iViewCount); iView++) {
if (m_iTrace == Trace::TRACE_CONSOLE)
for (int iView = iStartView; iView < (iStartView + iViewCount); iView++) {
if (m_iTrace == Trace::TRACE_CONSOLE)
-
std::cout <<"Reconstructing view " << iView << " (last = " << m_pProj->nView() - 1 << ")\n";
+ std::cout <<"Reconstructing view " << iView << " (last = " << m_pProj->nView() - 1 << ")\n";
const DetectorArray& rDetArray = m_pProj->getDetectorArray (iView);
const DetectorValue* detval = rDetArray.detValues();
const DetectorArray& rDetArray = m_pProj->getDetectorArray (iView);
const DetectorValue* detval = rDetArray.detValues();
@@
-182,7
+182,7
@@
Reconstructor::reconstructView (int iStartView, int iViewCount, SGP* pSGP, bool
#endif
#endif
#endif
#endif
-
if (bBackprojectView)
+ if (bBackprojectView)
m_pBackprojector->BackprojectView (adFilteredProj, rDetArray.viewAngle());
#ifdef HAVE_SGP
m_pBackprojector->BackprojectView (adFilteredProj, rDetArray.viewAngle());
#ifdef HAVE_SGP
@@
-203,16
+203,7
@@
Reconstructor::reconstructView (int iStartView, int iViewCount, SGP* pSGP, bool
ezplotProj.ezset (osXLength.str().c_str());
ezplotProj.ezset ("box.");
ezplotProj.ezset ("grid.");
ezplotProj.ezset (osXLength.str().c_str());
ezplotProj.ezset ("box.");
ezplotProj.ezset ("grid.");
-#if 0 // workaround c++ optimizer bug, now disabled by using /O1 in code
- double* pdDetval = new double [m_pProj->nDet()];
- for (unsigned int id = 0; id < m_pProj->nDet(); id++) {
- pdDetval[id] = detval[id];
- }
- ezplotProj.addCurve (m_adPlotXAxis, pdDetval, m_pProj->nDet());
- delete pdDetval;
-#else
ezplotProj.addCurve (m_adPlotXAxis, detval, m_pProj->nDet());
ezplotProj.addCurve (m_adPlotXAxis, detval, m_pProj->nDet());
-#endif
pSGP->setTextPointSize (9);
ezplotProj.plot (pSGP);
pSGP->setTextPointSize (9);
ezplotProj.plot (pSGP);