2 #ifndef vil_transpose_h_ 3 #define vil_transpose_h_ 20 v.nj(),
v.ni(),
v.nplanes(),
21 v.jstep(),
v.istep(),
v.planestep());
40 inline unsigned nplanes()
const override {
return src_->nplanes(); }
41 inline unsigned ni()
const override {
return src_->nj(); }
42 inline unsigned nj()
const override {
return src_->ni(); }
47 unsigned j0,
unsigned nj)
const override;
50 unsigned j0,
unsigned nj)
const override;
56 bool get_property(
char const* tag,
void* property_value =
nullptr)
const override {
57 return src_->get_property(tag, property_value); }
60 #endif // vil_transpose_h_ An abstract base class of smart pointers to actual image data in memory.
friend vil_image_resource_sptr vil_transpose(const vil_image_resource_sptr &src)
Transpose an image.
vil_image_resource_sptr src_
Reference to underlying image source.
A generic_image adaptor that behaves like a transposed version of its input.
unsigned ni() const override
Dimensions: Planes x ni x nj.
enum vil_pixel_format pixel_format() const override
Pixel Format.
Concrete view of image data of type T held in memory.
bool get_property(char const *tag, void *property_value=nullptr) const override
Extra property information.
Abstract representation of an image source or image destination.
vil_transpose_image_resource(vil_image_resource_sptr const &)
You can't construct one of these directly, use vil_transpose() instead.
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.
unsigned nj() const override
Dimensions: Planes x ni x nj.
Representation of a generic image source or destination.
unsigned nplanes() const override
Dimensions: Planes x ni x nj.
vil_image_view_base_sptr get_view() const
Create a read/write view of all the data.
vil_image_view< T > vil_transpose(const vil_image_view< T > &v)
Create a view which appears as the transpose of this view.