26 unsigned j0,
unsigned nj)
const 29 if (!vs)
return nullptr;
31 switch (vs->pixel_format())
33 #define macro( F, T ) \ 35 return new vil_image_view<T > (vil_transpose(static_cast<const vil_image_view<T >&>(*vs))); 40 macro(VIL_PIXEL_FORMAT_UINT_64, vxl_uint_64)
41 macro(VIL_PIXEL_FORMAT_INT_64, vxl_int_64)
58 unsigned j0,
unsigned nj)
const 61 if (!vs)
return nullptr;
63 switch (vs->pixel_format())
65 #define macro( F, T ) \ 67 return new vil_image_view<T > (vil_transpose(static_cast<const vil_image_view<T >&>(*vs))); 72 macro(VIL_PIXEL_FORMAT_UINT_64, vxl_uint_64)
73 macro(VIL_PIXEL_FORMAT_INT_64, vxl_int_64)
95 #define macro( F, T ) \ 97 return src_->put_view(vil_transpose(static_cast<const vil_image_view<T >&>(im)), j0, i0); 102 macro(VIL_PIXEL_FORMAT_UINT_64, vxl_uint_64)
103 macro(VIL_PIXEL_FORMAT_INT_64, vxl_int_64)
An abstract base class of smart pointers to actual image data in memory.
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.
virtual enum vil_pixel_format pixel_format() const =0
Return a description of the concrete data pixel type.
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.
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.
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.