27 #ifndef IMG_PIXEL_SAMPLING_H
28 #define IMG_PIXEL_SAMPLING_H
36 namespace ost {
namespace img {
44 Error(
"invalid sampling value used, must be >0")
61 const Vec3& GetPixelSampling()
const;
62 void SetPixelSampling(
const Vec3&);
64 const Vec3& GetSpatialSampling()
const;
65 void SetSpatialSampling(
const Vec3& d);
67 const Vec3& GetFrequencySampling()
const;
68 void SetFrequencySampling(
const Vec3& d);
71 void SetExtent(
const Extent& e);
73 Vec3 Point2Coord(
const Point& p)
const;
74 Vec3 Coord2Point(
const Vec3& c)
const;
76 Vec3 Vec2Coord(
const Vec3& p)
const;
80 Vec3 spat_scale_, i_spat_scale_;
81 Vec3 freq_scale_, i_freq_scale_;
84 void set_spat_scale(
const Vec3& d);
85 void set_freq_scale(
const Vec3& d);
DataDomain
underlying data type
Helper class to handle pixel sampling.
Defines lower and upper valid indices.
class encapsulating 1D to 3D point
#define DLLEXPORT_OST_IMG_BASE