#include <image_size.hh>
Inheritance diagram for oln::abstract::image_size< Exact >:
Public Types | |
enum | { dim = image_size_traits<Exact>::dim } |
Public Member Functions | |
coord | nth (unsigned n) const |
Return the number of coordinates in the nth section of the image. | |
coord & | nth (unsigned n) |
Return a reference to the number of coordinates in the nth section of the image. | |
coord | border () const |
Return the value border width of the current image. | |
coord & | border () |
Return a reference to the border width of the current image. | |
template<class S> | |
bool | operator== (const image_size< S > &size) const |
Test if two images have compatible size. | |
template<class S> | |
bool | operator!= (const image_size< S > &size) const |
Test if two images do not have compatible size. | |
image_size () | |
Static Public Member Functions | |
static std::string | name () |
Protected Attributes | |
coord | border_ |
Definition at line 76 of file image_size.hh.
bool oln::abstract::image_size< Exact >::operator== | ( | const image_size< S > & | size | ) | const [inline] |
Test if two images have compatible size.
Definition at line 129 of file image_size.hh.
00130 { 00131 for (unsigned i = 0; i < dim; ++i) 00132 if (coord_[i] != size.coord_[i]) 00133 return false; 00134 return true; 00135 }
bool oln::abstract::image_size< Exact >::operator!= | ( | const image_size< S > & | size | ) | const [inline] |
Test if two images do not have compatible size.
Definition at line 144 of file image_size.hh.
00145 { 00146 for (unsigned i = 0; i < dim; ++i) 00147 if (coord_[i] != size.coord_[i]) 00148 return true; 00149 return false; 00150 }
coord oln::abstract::image_size< Exact >::border_ [protected] |
border_ represents the width of the image border such a mecanism allow algorithm to perform operation on the points at the edge of the image as if they were normally surrounded by points
Definition at line 172 of file image_size.hh.
Referenced by oln::abstract::image_size< oln::image2d_size >::border(), oln::image1d_size::image1d_size(), oln::image2d_size::image2d_size(), and oln::image3d_size::image3d_size().