22 #ifndef __PyramidImageInterface_hh__
23 #define __PyramidImageInterface_hh__
25 #include <Base/Common/BIASpragmaStart.hh>
34 template <
class T>
class Image;
35 template <
class T>
class SharedPtr;
43 template <
class StorageType>
52 const unsigned py_size) = 0;
54 virtual void InitFromImageBase(
const ImageBase& image,
55 const unsigned py_size) = 0;
57 virtual void Init(
const unsigned int width,
const unsigned int height,
58 const unsigned int channelcount,
59 const unsigned py_size) = 0;
61 virtual void Init(
const unsigned pyramid_size) = 0;
63 virtual void Clear() = 0;
66 operator[](
const unsigned index) = 0;
69 operator[](
const unsigned index)
const = 0;
74 virtual int GetTrilinearImageValue(
const double& x,
78 int channel=0)
const = 0;
82 GetImageValue(
const double& x,
const double& y,
83 unsigned int scale,
int channel=0)
const = 0;
89 virtual int SetROI(
unsigned minx,
unsigned miny,
90 unsigned maxx,
unsigned maxy) = 0;
94 virtual bool IsEmpty()
const = 0;
97 inline bool empty()
const {
return IsEmpty(); }
99 virtual unsigned Size()
const = 0;
102 inline unsigned size()
const {
return Size(); }
104 virtual void SetZero() = 0;
106 virtual int WriteImages(
const std::string& prefix)
const = 0;
112 virtual void resize(
const unsigned size) = 0;
114 virtual double GetRescaleFactor()
const = 0;
116 virtual double GetPositionOffset()
const = 0;
118 virtual int Downsample() = 0;
120 virtual void Dump(std::ostream& os = std::cout)
const = 0;
129 #include <Base/Common/BIASpragmaEnd.hh>
unsigned GetPyramidSize() const
deprecated interface
unsigned size() const
deprecated interface
pointer with reference count and automatic deletion
class BIASImageBase_EXPORT Image
The image template class for specific storage types.
interface definition of all pyramid images
bool empty() const
deprecated interface
class BIASImageBase_EXPORT UUID
forward declaration for stream operators
virtual ~PyramidImageInterface()
interface class for producing/storing Universally Unique IDentifiers
This is the base class for images in BIAS.