54 return (
static_cast<float>(lor.z1() + lor.z2())) / 2.F;
77 return (lor.z2() - lor.z1()) / (2 * lor.radius());
Declaration of class stir::Bin.
defines the stir::CartesianCoordinate3D<coordT> class
defines various classes for specifying a line in 3 dimensions
Declaration of class stir::Succeeded.
A class for storing coordinates and value of a single projection bin.
Definition Bin.h:49
A class for LORs.
Definition LORCoordinates.h:511
float get_sampling_in_m(const Bin &) const override
Get sampling distance in the m coordinate.
Definition ProjDataInfoGenericNoArcCorr.inl:81
float get_axial_sampling(int segment_num) const override
Get the axial sampling (e.g in z_direction)
Definition ProjDataInfoGenericNoArcCorr.inl:99
float get_t(const Bin &) const override
Get value of the (roughly) axial coordinate in the projection plane (in mm)
Definition ProjDataInfoGenericNoArcCorr.inl:58
float get_s(const Bin &) const override
Gets s coordinate in mm.
Definition ProjDataInfoGenericNoArcCorr.inl:122
bool axial_sampling_is_uniform() const override
Return if axial sampling makes sense.
Definition ProjDataInfoGenericNoArcCorr.inl:106
float get_sampling_in_t(const Bin &) const override
Get sampling distance in the t coordinate.
Definition ProjDataInfoGenericNoArcCorr.inl:90
float get_ring_spacing() const override
return an average ring-spacing (from Scanner)
Definition ProjDataInfoGenericNoArcCorr.inl:113
float get_tantheta(const Bin &) const override
Get tangent of the co-polar angle of the normal to the projection plane.
Definition ProjDataInfoGenericNoArcCorr.inl:72
float get_m(const Bin &) const override
Return z-coordinate of the middle of the LOR.
Definition ProjDataInfoGenericNoArcCorr.inl:50
void get_LOR(LORInAxialAndNoArcCorrSinogramCoordinates< float > &lor, const Bin &bin) const override
warning Find lor from cartesian coordinates of detector pair
Definition ProjDataInfoGeneric.cxx:94
float get_phi(const Bin &) const override
find phi from correspoding lor
Definition ProjDataInfoGenericNoArcCorr.inl:39
float get_costheta(const Bin &) const
Get cosine of the co-polar angle of the normal to the projection plane.
Definition ProjDataInfo.inl:200
const Scanner * get_scanner_ptr() const
Get scanner pointer.
Definition ProjDataInfo.inl:212
Declaration of stir::error()
Definition of stir::is_null_ptr functions.