20 v.top_left_ptr()+(
v.ni()-1)*
v.istep(),
21 v.ni(),
v.nj(),
v.nplanes(),
22 -
v.istep(),
v.jstep(),
v.planestep());
33 v.top_left_ptr()+(
v.nj()-1)*
v.jstep(),
34 v.ni(),
v.nj(),
v.nplanes(),
35 v.istep(),-
v.jstep(),
v.planestep());
52 unsigned ni()
const override {
return src_->ni(); }
53 unsigned nj()
const override {
return src_->nj(); }
59 unsigned j0,
unsigned nj)
const override;
62 unsigned j0,
unsigned nj)
const override;
67 unsigned j0)
override;
70 bool get_property(
char const* tag,
void* property_value =
nullptr)
const override {
71 return src_->get_property(tag, property_value); }
93 unsigned ni()
const override {
return src_->ni(); }
94 unsigned nj()
const override {
return src_->nj(); }
100 unsigned j0,
unsigned nj)
const override;
103 unsigned j0,
unsigned nj)
const override;
108 unsigned j0)
override;
111 bool get_property(
char const* tag,
void* property_value =
nullptr)
const override {
112 return src_->get_property(tag, property_value); }
119 #endif // vil_flip_h_ An abstract base class of smart pointers to actual image data in memory.
unsigned nplanes() const override
Dimensions: Planes x ni x nj.
unsigned nj() const override
Dimensions: Planes x ni x nj.
friend vil_image_resource_sptr vil_flip_ud(const vil_image_resource_sptr &src)
Flip an image resource left to right.
vil_flip_ud_image_resource(vil_image_resource_sptr const &)
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.
Concrete view of image data of type T held in memory.
unsigned nplanes() const override
Dimensions: Planes x ni x nj.
unsigned ni() const override
Dimensions: Planes x ni x nj.
enum vil_pixel_format pixel_format() const override
Pixel Format.
bool get_property(char const *tag, void *property_value=nullptr) const override
Extra property information.
vil_flip_lr_image_resource(vil_image_resource_sptr const &)
vil_image_resource_sptr src_
Reference to underlying image source.
vil_image_view< T > vil_flip_ud(const vil_image_view< T > &v)
Create a reflected view in which y -> nj-1-j.
unsigned nj() const override
Dimensions: Planes x ni x nj.
Abstract representation of an image source or image destination.
friend vil_image_resource_sptr vil_flip_lr(const vil_image_resource_sptr &src)
Flip an image resource left to right.
vil_image_view_base_sptr get_copy_view() const
Create a read/write view of a copy of all the data.
A base class reference-counting view of some image data.
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.
enum vil_pixel_format pixel_format() const override
Pixel Format.
Representation of a generic image source or destination.
vil_image_view< T > vil_flip_lr(const vil_image_view< T > &v)
Create a reflected view in which i -> ni-1-i.
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.
A generic_image adaptor that behaves like a flipped left to right version of its input.
vil_image_view_base_sptr get_view() const
Create a read/write view of all the data.
vil_image_resource_sptr src_
Reference to underlying image source.
A generic_image adaptor that behaves like a flipped left to right version of its input.