A base class for arbitrary 3D images. More...
#include <vimt3d_image_3d.h>
Public Member Functions | |
vimt3d_image_3d () | |
Dflt ctor. | |
virtual | ~vimt3d_image_3d () |
Destructor. | |
virtual unsigned | n_dims () const |
Return dimensionality of image. | |
virtual vcl_vector< unsigned > | image_size () const |
Return 3 element vector indicating size of image in pixels. | |
virtual void | world_bounds (vcl_vector< double > &b_lo, vcl_vector< double > &b_hi) const |
Return 3D vectors defining bounding box containing image in world co-ords. | |
virtual vcl_vector< double > | pixel_size () const |
Return 3 element vector indicating the size of a pixel. | |
const vimt3d_transform_3d & | world2im () const |
Current world-to-image transformation. | |
vimt3d_transform_3d & | world2im () |
Current world-to-image transformation. | |
void | set_world2im (const vimt3d_transform_3d &w2i) |
Set world-to-image transformation. | |
virtual const vil3d_image_view_base & | image_base () const =0 |
Baseclass view of image. | |
virtual vcl_string | is_a () const |
Name of the class. | |
virtual bool | is_class (vcl_string const &s) const |
Does the name of the class match the argument?. | |
virtual unsigned | n_planes () const =0 |
short | version_no () const |
virtual vimt_image * | clone () const =0 |
virtual vimt_image * | deep_clone () const =0 |
bool | operator== (const vimt_image &) const |
virtual void | print_summary (vcl_ostream &os) const =0 |
virtual void | print_all (vcl_ostream &os) const =0 |
virtual void | b_write (vsl_b_ostream &bfs) const =0 |
virtual void | b_read (vsl_b_istream &bfs)=0 |
Protected Member Functions | |
vimt3d_image_3d (const vimt3d_transform_3d &w2i) | |
Protected Attributes | |
vimt3d_transform_3d | world2im_ |
A base class for arbitrary 3D images.
world2im() gives transformation from world to image co-ordinates
Definition at line 15 of file vimt3d_image_3d.h.
vimt3d_image_3d::vimt3d_image_3d | ( | const vimt3d_transform_3d & | w2i | ) | [inline, protected] |
Definition at line 20 of file vimt3d_image_3d.h.
vimt3d_image_3d::vimt3d_image_3d | ( | ) | [inline] |
Dflt ctor.
Definition at line 24 of file vimt3d_image_3d.h.
virtual vimt3d_image_3d::~vimt3d_image_3d | ( | ) | [inline, virtual] |
Destructor.
Definition at line 27 of file vimt3d_image_3d.h.
virtual const vil3d_image_view_base& vimt3d_image_3d::image_base | ( | ) | const [pure virtual] |
Baseclass view of image.
Implemented in vimt3d_image_3d_of< T >.
vcl_vector< unsigned > vimt3d_image_3d::image_size | ( | ) | const [virtual] |
Return 3 element vector indicating size of image in pixels.
Return vector indicating size of image in pixels.
3D image is v[0] x v[1] x v[2] Somewhat inefficient: Only use when you absolutely have to. Usually one only needs to know the size once one knows the exact type.
3D image is v[0] x v[1] x v[2]
Implements vimt_image.
Definition at line 12 of file vimt3d_image_3d.cxx.
virtual vcl_string vimt3d_image_3d::is_a | ( | ) | const [inline, virtual] |
Name of the class.
Implements vimt_image.
Reimplemented in vimt3d_image_3d_of< T >.
Definition at line 63 of file vimt3d_image_3d.h.
virtual bool vimt3d_image_3d::is_class | ( | vcl_string const & | s | ) | const [inline, virtual] |
Does the name of the class match the argument?.
Implements vimt_image.
Reimplemented in vimt3d_image_3d_of< T >.
Definition at line 66 of file vimt3d_image_3d.h.
virtual unsigned vimt3d_image_3d::n_dims | ( | ) | const [inline, virtual] |
Return dimensionality of image.
Implements vimt_image.
Definition at line 30 of file vimt3d_image_3d.h.
vcl_vector< double > vimt3d_image_3d::pixel_size | ( | ) | const [virtual] |
Return 3 element vector indicating the size of a pixel.
Somewhat inefficient: Only use when you absolutely have to. Usually one only needs to know the size once one knows the exact type.
Implements vimt_image.
Definition at line 23 of file vimt3d_image_3d.cxx.
void vimt3d_image_3d::set_world2im | ( | const vimt3d_transform_3d & | w2i | ) | [inline] |
Set world-to-image transformation.
Definition at line 57 of file vimt3d_image_3d.h.
const vimt3d_transform_3d& vimt3d_image_3d::world2im | ( | ) | const [inline] |
Current world-to-image transformation.
Definition at line 50 of file vimt3d_image_3d.h.
vimt3d_transform_3d& vimt3d_image_3d::world2im | ( | ) | [inline] |
Current world-to-image transformation.
Definition at line 53 of file vimt3d_image_3d.h.
void vimt3d_image_3d::world_bounds | ( | vcl_vector< double > & | b_lo, |
vcl_vector< double > & | b_hi | ||
) | const [virtual] |
Return 3D vectors defining bounding box containing image in world co-ords.
Return vectors defining bounding box containing image in world co-ords.
Somewhat inefficient: Only use when you absolutely have to. Usually one only needs to know the size once one knows the exact type.
Implements vimt_image.
Definition at line 37 of file vimt3d_image_3d.cxx.
vimt3d_transform_3d vimt3d_image_3d::world2im_ [protected] |
Definition at line 18 of file vimt3d_image_3d.h.