2 #ifndef vil_pyramid_image_resource_h_ 3 #define vil_pyramid_image_resource_h_ 13 # include <vcl_msvc_warnings.h> 44 unsigned nplanes()
const override = 0;
49 unsigned ni()
const override = 0;
54 unsigned nj()
const override = 0;
64 unsigned n_j)
const override 78 bool get_property(
char const* tag,
void* property_value =
nullptr)
const override;
83 virtual unsigned nlevels()
const = 0;
87 unsigned j0,
unsigned n_j,
88 unsigned level)
const = 0;
99 unsigned j0,
unsigned n_j,
101 float& actual_scale)
const = 0;
125 char const* filename,
126 char const* format=
"tiff");
129 virtual void print(
const unsigned level) = 0;
140 #endif // vil_pyramid_image_resource_h_ An abstract base class of smart pointers to actual image data in memory.
unsigned nj() const override=0
The number of pixels in each column.
virtual void print(const unsigned level)=0
for debug purposes.
A base class reference-counting view of some image data.
static vil_image_resource_sptr decimate(vil_image_resource_sptr const &resc, char const *filename, char const *format="tiff")
Utility for decimating a resource to create a new pyramid level.
Representation of a pyramid resolution hierarchy; mostly pure virtual methods.
Smart pointer to an image resource.
virtual vil_image_view_base_sptr get_copy_view(unsigned level) const
Get a complete view from a specified pyramid level.
enum vil_pixel_format pixel_format() const override=0
Pixel Format.
~vil_pyramid_image_resource() override
unsigned ni() const override=0
The number of pixels in each row.
unsigned nplanes() const override=0
The number of planes (or components) in the image.
vil_image_view_base_sptr get_copy_view(unsigned i0, unsigned n_i, unsigned j0, unsigned n_j) const override
Create a read/write view of a copy of this data.
Abstract representation of an image source or image destination.
virtual vil_image_view_base_sptr get_copy_view(const float scale, float &actual_scale) const
Get a complete view from the image in the pyramid closest to the specified scale.
vil_image_view_base_sptr get_copy_view() const
Create a read/write view of a copy of all the data.
virtual bool put_resource(vil_image_resource_sptr const &resc)=0
Copy a resource into the pyramid, level is determined by resource scale.
Smart pointer to an image resource.
Contains a templated smart pointer class.
Representation of a generic image source or destination.
virtual unsigned nlevels() const =0
Number of pyramid levels.
static bool blocked_decimate(vil_blocked_image_resource_sptr const &brsc, vil_blocked_image_resource_sptr &dec_resc)
A utility function to decimate a resource using blocks.
bool get_property(char const *tag, void *property_value=nullptr) const override
Extra property information.
Smart pointer to an image resource.
vil_pyramid_image_resource()
virtual vil_image_resource_sptr get_resource(const unsigned level) const =0
Get an image resource from the pyramid at the specified level.
char const * file_format() const override=0
Return a string describing the file format.
bool put_view(vil_image_view_base const &, unsigned, unsigned) override
Put the data in this view back into the base image.