#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. | |
Static Public Member Functions | |
std::string | name () |
Protected Attributes | |
coord | border_ |
Definition at line 76 of file image_size.hh.
|
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 } |
|
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 } |
|
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. |