2 #ifndef vil_memory_image_h_ 3 #define vil_memory_image_h_ 17 # include <vcl_msvc_warnings.h> 38 unsigned n_interleaved_planes = 1);
61 unsigned ni()
const override {
return view_->
ni(); }
62 unsigned nj()
const override {
return view_->
nj(); }
69 unsigned j0,
unsigned nj)
const override;
74 unsigned j0,
unsigned nj)
const override;
80 bool get_property(
char const * tag,
void * prop =
nullptr)
const override 83 return prop ? (*static_cast<bool*>(prop)) =
true :
true;
89 #endif // vil_memory_image_h_ bool get_property(char const *tag, void *prop=nullptr) const override
Declare that this is an in-memory image which is not read-only.
An abstract base class of smart pointers to actual image data in memory.
friend vil_image_resource_sptr vil_new_image_resource(unsigned ni, unsigned nj, unsigned nplanes, vil_pixel_format format)
Make a new image of given format.
#define vil_property_memory
Indicate whether this is an in-memory image or an on-disk image.
A base class reference-counting view of some image data.
unsigned nplanes() const override
Dimensions: planes x width x height x components.
unsigned ni() const override
Dimensions: Planes x ni x nj.
friend vil_image_resource_sptr vil_new_image_resource_interleaved(unsigned ni, unsigned nj, unsigned nplanes, vil_pixel_format format)
Make a new image of given format with interleaved planes.
vil_image_view_base * view_
Management of the memory image is devolved to an internal image_view.
unsigned ni() const
Width.
unsigned nj() const
Height.
virtual enum vil_pixel_format pixel_format() const =0
Return a description of the concrete data pixel type.
Generic image implementation for PNM files.
~vil_memory_image() override
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.
There is no class or function called vil_property.
bool put_view(const vil_image_view_base &im, unsigned i0, unsigned j0) override
Put the data in this view back into the image source.
unsigned nplanes() const
Number of planes.
friend vil_image_resource_sptr vil_new_image_resource_of_view(vil_image_view_base const &view)
Make a new image resource that is a wrapper on an existing view's data.
Representation of a generic image source or destination.
unsigned nj() const override
Dimensions: Planes x ni x nj.
enum vil_pixel_format pixel_format() const override
Pixel Format.
vil_image_view_base_sptr get_view() const
Create a read/write view of all the data.
vil_memory_image()
Create an empty memory image.