summaryrefslogtreecommitdiffstats
path: root/cuda/2d
diff options
context:
space:
mode:
authorWim van Aarle <wimvanaarle@gmail.com>2015-03-13 10:22:22 +0100
committerWim van Aarle <wimvanaarle@gmail.com>2015-03-13 10:22:22 +0100
commitd53185395827980e101629c633653cb4284edb06 (patch)
tree21376b86145441c4e3bea2bc5afa9a3df0539b36 /cuda/2d
parente8765bcdab3be977cd5536531cacb24bf3378a59 (diff)
downloadastra-d53185395827980e101629c633653cb4284edb06.tar.gz
astra-d53185395827980e101629c633653cb4284edb06.tar.bz2
astra-d53185395827980e101629c633653cb4284edb06.tar.xz
astra-d53185395827980e101629c633653cb4284edb06.zip
removed extraDetectorOffset
Diffstat (limited to 'cuda/2d')
-rw-r--r--cuda/2d/astra.cu11
1 files changed, 3 insertions, 8 deletions
diff --git a/cuda/2d/astra.cu b/cuda/2d/astra.cu
index 0b5be06..dc16a56 100644
--- a/cuda/2d/astra.cu
+++ b/cuda/2d/astra.cu
@@ -827,17 +827,12 @@ bool convertAstraGeometry(const CVolumeGeometry2D* pVolGeom,
// If there are existing detector offsets, or if we need to translate,
// we need to return offsets
- if (pProjGeom->getExtraDetectorOffset() || offCenter)
+ if (offCenter)
{
float* offset = new float[nth];
- if (pProjGeom->getExtraDetectorOffset()) {
- for (int i = 0; i < nth; ++i)
- offset[i] = pProjGeom->getExtraDetectorOffset()[i];
- } else {
- for (int i = 0; i < nth; ++i)
- offset[i] = 0.0f;
- }
+ for (int i = 0; i < nth; ++i)
+ offset[i] = 0.0f;
if (offCenter) {
float dx = (pVolGeom->getWindowMinX() + pVolGeom->getWindowMaxX()) / 2;