2 #ifndef vil_blocked_image_facade_h_ 3 #define vil_blocked_image_facade_h_ 19 const unsigned sbi=0,
const unsigned sbj=0);
23 {
return src_->nplanes();}
24 inline unsigned ni()
const override 26 inline unsigned nj()
const override 42 {
return src_->pixel_format();}
45 get_copy_view(
unsigned i0,
unsigned n_i,
unsigned j0,
unsigned n_j)
const override 46 {
return src_->get_copy_view(i0, n_i, j0, n_j);}
49 unsigned i0,
unsigned j0)
override 50 {
return src_->put_view(im, i0, j0);}
54 unsigned block_index_j )
const override;
58 unsigned block_index_j,
63 bool get_property(
char const* tag,
void* property_value =
nullptr)
const override;
78 #endif // vil_blocked_image_facade_h_
An abstract base class of smart pointers to actual image data in memory.
unsigned n_block_i() const override
Number of blocks in image width.
vil_image_view_base_sptr get_block(unsigned block_index_i, unsigned block_index_j) const override
Block access.
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 ni() const override
Dimensions: Planes x ni x nj.
bool get_property(char const *tag, void *property_value=nullptr) const override
Extra property information.
vil_image_resource_sptr src_
the image resource masquerading as a blocked resource.
bool put_block(unsigned block_index_i, unsigned block_index_j, const vil_image_view_base &view) override
put the block into the resource at the indicated location.
unsigned size_block_i() const override
Block size in columns.
~vil_blocked_image_facade() override=default
A blocked representation of the image_resource.
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.
unsigned size_block_j() const override
Block size in rows.
vil_image_view_base_sptr fill_block(vil_image_view_base_sptr &view) const
enum vil_pixel_format pixel_format() const override
Pixel Format.
unsigned nplanes() const override
Dimensions: Planes x ni x nj.
unsigned sbj_
block size in j.
unsigned sbi_
block size in i.
vil_blocked_image_facade()
unsigned n_block_j() const override
Number of blocks in image height.
unsigned nj() const override
Dimensions: Planes x ni x nj.