projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r513: no message
[ctsim.git]
/
libctsim
/
phantom.cpp
diff --git
a/libctsim/phantom.cpp
b/libctsim/phantom.cpp
index fea8e6e55aa1b7790a8d4eb9ad9a2b0d9df2803b..a0ddc408937b8f8f382c36ae95bbc320a522ace0 100644
(file)
--- a/
libctsim/phantom.cpp
+++ b/
libctsim/phantom.cpp
@@
-9,7
+9,7
@@
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: phantom.cpp,v 1.2
8 2001/02/08 06:25:07
kevin Exp $
+** $Id: phantom.cpp,v 1.2
9 2001/02/09 14:34:16
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
**
** 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
@@
-32,26
+32,20
@@
const double PhantomElement::SCALE_PELEM_EXTENT=0.005; // increase pelem limits
const int Phantom::PHM_INVALID = -1;
const int Phantom::PHM_HERMAN = 0;
const int Phantom::PHM_INVALID = -1;
const int Phantom::PHM_HERMAN = 0;
-const int Phantom::PHM_B_HERMAN = 1;
-const int Phantom::PHM_SHEPP_LOGAN = 2;
-const int Phantom::PHM_B_SHEPP_LOGAN = 3;
-const int Phantom::PHM_UNITPULSE = 4;
+const int Phantom::PHM_SHEPP_LOGAN = 1;
+const int Phantom::PHM_UNITPULSE = 2;
const char* Phantom::s_aszPhantomName[] =
{
{"herman"},
const char* Phantom::s_aszPhantomName[] =
{
{"herman"},
- {"herman-b"},
{"shepp-logan"},
{"shepp-logan"},
- {"shepp-logan-b"},
- {"unitpulse"},
+ {"unit-pulse"},
};
const char* Phantom::s_aszPhantomTitle[] =
{
{"Herman Head"},
};
const char* Phantom::s_aszPhantomTitle[] =
{
{"Herman Head"},
- {"Herman Head (Bordered)"},
{"Shepp-Logan"},
{"Shepp-Logan"},
- {"Shepp-Logan (Bordered)"},
{"Unit Pulse"},
};
{"Unit Pulse"},
};
@@
-156,15
+150,9
@@
Phantom::createFromPhantom (const int phmid)
case PHM_HERMAN:
addStdHerman();
break;
case PHM_HERMAN:
addStdHerman();
break;
- case PHM_B_HERMAN:
- addStdHermanBordered();
- break;
case PHM_SHEPP_LOGAN:
addStdSheppLogan();
break;
case PHM_SHEPP_LOGAN:
addStdSheppLogan();
break;
- case PHM_B_SHEPP_LOGAN:
- addStdSheppLoganBordered();
- break;
case PHM_UNITPULSE:
m_composition = P_UNIT_PULSE;
addPElem ("rectangle", 0., 0., 100., 100., 0., 0.); // outline
case PHM_UNITPULSE:
m_composition = P_UNIT_PULSE;
addPElem ("rectangle", 0., 0., 100., 100., 0., 0.); // outline
@@
-411,12
+399,6
@@
Phantom::addStdSheppLogan ()
addPElem ("ellipse", 0.5538, -0.3858, 0.0330, 0.2060, -18.0, 0.03);
}
addPElem ("ellipse", 0.5538, -0.3858, 0.0330, 0.2060, -18.0, 0.03);
}
-void
-Phantom::addStdSheppLoganBordered ()
-{
- addStdSheppLogan ();
- addPElem ("rectangle", 0.000, 0.0000, 0.8600, 1.150, 0.0, 0.00);
-}
/* NAME
* addStdHerman Standard head phantom of G. T. Herman
/* NAME
* addStdHerman Standard head phantom of G. T. Herman
@@
-446,12
+428,6
@@
Phantom::addStdHerman ()
addPElem ("ellipse", 0.000, 0.00, 7.875, 5.7187, 90.00, -0.206);
}
addPElem ("ellipse", 0.000, 0.00, 7.875, 5.7187, 90.00, -0.206);
}
-void
-Phantom::addStdHermanBordered ()
-{
- addStdHerman();
- addPElem ("rectangle", 0.000, 0.00, 10.780, 8.110, 90.00, 0.000);
-}
/* NAME
/* NAME