25 #ifndef IMAGE_STATE_FREQUENCY_DOMAIN_HH
26 #define IMAGE_STATE_FREQUENCY_DOMAIN_HH
37 namespace ost {
namespace img {
namespace image_state {
47 spat_ori_(extent_.GetStart())
65 if(extent_.Contains(p)) {
66 return Val2Val<V,Real>(data.
Value(Point2Index(p)));
74 if(extent_.Contains(p)) {
75 data.
Value(Point2Index(p))=Val2Val<Real,V>(r);
81 if(extent_.Contains(p)) {
82 return Val2Val<V,Complex>(data.
Value(Point2Index(p)));
90 if(extent_.Contains(p)) {
91 data.
Value(Point2Index(p))=Val2Val<Complex,V>(c);
96 const Size& size=extent_.GetSize();
97 return Index(p[0]<0 ? size[0]+p[0] : p[0],
98 p[1]<0 ? size[1]+p[1] : p[1],
99 p[2]<0 ? size[2]+p[2] : p[2]);
DataDomain
underlying data type
std::complex< Real > Complex
FrequencyDomain(const Extent &e)
Index Point2Index(const Point &p) const
void SetReal(const Point &p, const Real &r, ValueHolder< V > &data)
V & Value(const Index &i)
return direct r/w access to the value without boundary check
class encapsulating 1D to 3D size
Extent GetLogicalExtent() const
Defines lower and upper valid indices.
DataDomain GetDomain() const
void SetComplex(const Point &p, const Complex &c, ValueHolder< V > &data)
void SetSpatialOrigin(const Point &o)
Complex GetComplex(const Point &p, const ValueHolder< V > &data) const
Point GetSpatialOrigin() const
Real GetReal(const Point &p, const ValueHolder< V > &data) const
class encapsulating 1D to 3D point
#define DLLEXPORT_OST_IMG_BASE
Extent GetPhysicalExtent() const