12 # include <vcl_msvc_warnings.h> 22 unsigned n_i,
unsigned j0,
unsigned n_j)
24 assert(i0<im.
ni()); assert(i0+n_i<=im.
ni());
25 assert(j0<im.
nj()); assert(j0+n_j<=im.
nj());
33 unsigned n_i,
unsigned j0,
unsigned n_j);
40 unsigned j0,
unsigned n_j);
43 unsigned ni()
const override {
return ni_; }
44 unsigned nj()
const override {
return nj_; }
50 unsigned j0,
unsigned n_j)
const override;
53 unsigned j0,
unsigned n_j)
const override;
63 bool get_property(
char const* tag,
void* property_value =
nullptr)
const override 65 return src_->get_property(tag, property_value);
An abstract base class of smart pointers to actual image data in memory.
vil_crop_image_resource(vil_image_resource_sptr const &, unsigned i0, unsigned n_i, unsigned j0, unsigned n_j)
unsigned nplanes() const override
Dimensions: Planes x ni x nj.
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.
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.
std::ptrdiff_t jstep() const
Add this to your pixel pointer to get next j pixel.
unsigned ni() const
Width.
unsigned nj() const
Height.
std::ptrdiff_t planestep() const
Add this to your pixel pointer to get pixel on next plane.
unsigned ni() const override
Dimensions: Planes x ni x nj.
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.
A base class reference-counting view of some image data.
T * top_left_ptr()
Pointer to the first (top left in plane 0) pixel.
unsigned nplanes() const
Number of planes.
enum vil_pixel_format pixel_format() const override
Pixel Format.
const vil_memory_chunk_sptr & memory_chunk() const
Smart pointer to the object holding the data for this view.
vil_image_resource_sptr src_
Representation of a generic image source or destination.
vil_image_view< T > vil_crop(const vil_image_view< T > &im, unsigned i0, unsigned n_i, unsigned j0, unsigned n_j)
Create a view which is a cropped version of src.
unsigned nj() const override
Dimensions: Planes x ni x nj.
std::ptrdiff_t istep() const
Add this to your pixel pointer to get next i pixel.
A generic_image adaptor that behaves like a cropped version of its input.
vil_image_view_base_sptr get_view() const
Create a read/write view of all the data.