2 #ifndef vil_image_resource_h_ 3 #define vil_image_resource_h_ 14 # include <vcl_msvc_warnings.h> 16 #include <vcl_atomic_count.h> 39 virtual unsigned nplanes()
const = 0;
42 virtual unsigned ni()
const = 0;
45 virtual unsigned nj()
const = 0;
65 unsigned j0,
unsigned n_j)
const 77 unsigned j0,
unsigned n_j)
const = 0;
104 virtual bool get_property(
char const* tag,
void* property_value =
nullptr)
const =0;
117 #endif // vil_image_resource_h_ virtual vil_image_view_base_sptr get_view(unsigned i0, unsigned n_i, unsigned j0, unsigned n_j) const
Create a read/write view of the data.
An abstract base class of smart pointers to actual image data in memory.
virtual bool view_fits(const vil_image_view_base &im, unsigned i0, unsigned j0)
Check that a view will fit into the data at the given offset.
A base class reference-counting view of some image data.
vil_image_resource()
the reference count starts at 0.
vcl_atomic_count reference_count_
virtual unsigned ni() const =0
Dimensions: Planes x ni x nj.
virtual unsigned nj() const =0
Dimensions: Planes x ni x nj.
virtual char const * file_format() const
Return a string describing the file format.
virtual enum vil_pixel_format pixel_format() const =0
Pixel Format.
virtual bool get_property(char const *tag, void *property_value=nullptr) const =0
Extra property information.
Abstract representation of an image source or image destination.
vil_image_view_base_sptr get_copy_view() const
Create a read/write view of a copy of all the data.
virtual bool put_view(const vil_image_view_base &im)
Put the data in this view back into the image source at the origin.
virtual unsigned nplanes() const =0
Dimensions: Planes x ni x nj.
virtual ~vil_image_resource()
Contains a templated smart pointer class.
Smart pointer to an image resource.
vil_image_view_base_sptr get_view() const
Create a read/write view of all the data.
virtual bool put_view(const vil_image_view_base &im, unsigned i0, unsigned j0)=0
Put the data in this view back into the image source.