#include <vil3d_image_view_base.h>
Inheritance diagram for vil3d_image_view_base:

If you want an actual image, try instantiating vil3d_image_view<T>.
Definition at line 26 of file vil3d_image_view_base.h.
Public Member Functions | |
| virtual | ~vil3d_image_view_base () |
| unsigned | ni () const |
| Width. | |
| unsigned | nj () const |
| Height. | |
| unsigned | nk () const |
| Depth. | |
| unsigned | nplanes () const |
| Number of planes. | |
| unsigned long | size () const |
| The number of pixels. | |
| virtual void | set_size (unsigned ni, unsigned nj, unsigned nk)=0 |
| resize current planes to ni x nj * nk. | |
| virtual void | set_size (unsigned ni, unsigned nj, unsigned nk, unsigned nplanes)=0 |
| resize to ni x nj * nk with nplanes planes. | |
| virtual void | print (vcl_ostream &) const =0 |
| Print a 1-line summary of contents. | |
| virtual vcl_string | is_a () const=0 |
| Return class name. | |
| virtual enum vil_pixel_format | pixel_format () const=0 |
| Return a description of the concrete data pixel type. | |
| virtual bool | is_class (vcl_string const &s) const |
| True if this is (or is derived from) class s. | |
Protected Member Functions | |
| vil3d_image_view_base (unsigned ni, unsigned nj, unsigned nk, unsigned nplanes) | |
| vil3d_image_view_base () | |
| Default is an empty one-plane image. | |
Protected Attributes | |
| unsigned | ni_ |
| Number of columns. | |
| unsigned | nj_ |
| Number of rasters. | |
| unsigned | nk_ |
| Number of slices. | |
| unsigned | nplanes_ |
| Number of planes. | |
Private Member Functions | |
| void | ref () |
| void | unref () |
Private Attributes | |
| int | reference_count_ |
Friends | |
| class | vil_smart_ptr< vil3d_image_view_base > |
| vil3d_image_view_base::vil3d_image_view_base | ( | unsigned | ni, | |
| unsigned | nj, | |||
| unsigned | nk, | |||
| unsigned | nplanes | |||
| ) | [inline, protected] |
Definition at line 38 of file vil3d_image_view_base.h.
| vil3d_image_view_base::vil3d_image_view_base | ( | ) | [inline, protected] |
Default is an empty one-plane image.
Don't set nplanes_ to zero as it confuses set_size(nx,ny,nz) later
Definition at line 43 of file vil3d_image_view_base.h.
| virtual vil3d_image_view_base::~vil3d_image_view_base | ( | ) | [inline, virtual] |
Definition at line 47 of file vil3d_image_view_base.h.
| unsigned vil3d_image_view_base::ni | ( | ) | const [inline] |
| unsigned vil3d_image_view_base::nj | ( | ) | const [inline] |
| unsigned vil3d_image_view_base::nk | ( | ) | const [inline] |
| unsigned vil3d_image_view_base::nplanes | ( | ) | const [inline] |
| unsigned long vil3d_image_view_base::size | ( | ) | const [inline] |
| virtual void vil3d_image_view_base::set_size | ( | unsigned | ni, | |
| unsigned | nj, | |||
| unsigned | nk | |||
| ) | [pure virtual] |
resize current planes to ni x nj * nk.
If already correct size, this function returns quickly
Implemented in vil3d_image_view< T >, and vil3d_image_view< destT >.
| virtual void vil3d_image_view_base::set_size | ( | unsigned | ni, | |
| unsigned | nj, | |||
| unsigned | nk, | |||
| unsigned | nplanes | |||
| ) | [pure virtual] |
resize to ni x nj * nk with nplanes planes.
If already correct size, this function returns quickly
Implemented in vil3d_image_view< T >, and vil3d_image_view< destT >.
| virtual void vil3d_image_view_base::print | ( | vcl_ostream & | ) | const [pure virtual] |
Print a 1-line summary of contents.
Implemented in vil3d_image_view< T >, and vil3d_image_view< destT >.
| virtual vcl_string vil3d_image_view_base::is_a | ( | ) | const [pure virtual] |
| virtual enum vil_pixel_format vil3d_image_view_base::pixel_format | ( | ) | const [pure virtual] |
Return a description of the concrete data pixel type.
For example if the value is VIL_PIXEL_FORMAT_BYTE, you can safely cast, or assign the base class reference to a vil3d_image_view<vxl_byte>.
Implemented in vil3d_image_view< T >, and vil3d_image_view< destT >.
| virtual bool vil3d_image_view_base::is_class | ( | vcl_string const & | s | ) | const [inline, virtual] |
True if this is (or is derived from) class s.
Reimplemented in vil3d_image_view< T >, and vil3d_image_view< destT >.
Definition at line 82 of file vil3d_image_view_base.h.
| void vil3d_image_view_base::ref | ( | ) | [inline, private] |
Definition at line 88 of file vil3d_image_view_base.h.
| void vil3d_image_view_base::unref | ( | ) | [inline, private] |
Definition at line 89 of file vil3d_image_view_base.h.
friend class vil_smart_ptr< vil3d_image_view_base > [friend] |
Definition at line 87 of file vil3d_image_view_base.h.
unsigned vil3d_image_view_base::ni_ [protected] |
unsigned vil3d_image_view_base::nj_ [protected] |
unsigned vil3d_image_view_base::nk_ [protected] |
unsigned vil3d_image_view_base::nplanes_ [protected] |
int vil3d_image_view_base::reference_count_ [private] |
Definition at line 92 of file vil3d_image_view_base.h.
1.5.1