X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tools%2Fpj2if.cpp;fp=tools%2Fpj2if.cpp;h=fb3277a8349d386f97a3f170127af6894eef7a3e;hb=17769327fd2f5f84a867532c04864864e23f4238;hp=b9bd2e9e6987c4d8c48b77454f715b05207feb63;hpb=1a8b1506dfe6144ad69257e4e6404546890ca963;p=ctsim.git diff --git a/tools/pj2if.cpp b/tools/pj2if.cpp index b9bd2e9..fb3277a 100644 --- a/tools/pj2if.cpp +++ b/tools/pj2if.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: pj2if.cpp,v 1.4 2000/08/31 08:38:58 kevin Exp $ +** $Id: pj2if.cpp,v 1.5 2000/11/22 07:17:06 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -47,7 +47,7 @@ static struct option my_options[] = {0, 0, 0, 0} }; -static const char* g_szIdStr = "$Id: pj2if.cpp,v 1.4 2000/08/31 08:38:58 kevin Exp $"; +static const char* g_szIdStr = "$Id: pj2if.cpp,v 1.5 2000/11/22 07:17:06 kevin Exp $"; void pj2if_usage (const char *program) @@ -130,7 +130,7 @@ pj2if_main (const int argc, char *const argv[]) ImageFileArray v = im.getArray(); for (int iy = 0; iy < pj.nView(); iy++) { - const DetectorArray& detarray = pj.getDetectorArray (iy); + const DetectorArray& detarray = pj.getDetectorArray (pj.nView() - iy - 1); const DetectorValue* detval = detarray.detValues(); for (int ix = 0; ix < pj.nDet(); ix++) { v[ix][iy] = detval[ix];