Commit f46fc5c9 authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

Add vbbox() method.

	* mln/core/image/image1d.hh,
	* mln/core/image/image2d.hh,
	* mln/core/image/image3d.hh: Here.
parent 5846e894
2011-09-02 Guillaume Lazzara <z@lrde.epita.fr>
Add vbbox() method.
* mln/core/image/image1d.hh,
* mln/core/image/image2d.hh,
* mln/core/image/image3d.hh: Here.
2011-09-02 Guillaume Lazzara <z@lrde.epita.fr>
 
Rename back nslices to nslis.
// Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE)
// Copyright (C) 2007, 2008, 2009, 2011 EPITA Research and Development
// Laboratory (LRDE)
//
// This file is part of Olena.
//
......@@ -193,6 +194,9 @@ namespace mln
/// Give the bounding box domain.
const box1d& bbox() const;
/// virtual box, i.e., box including the virtual border
const box1d& vbbox() const;
/// Give the border thickness.
unsigned border() const;
......@@ -410,6 +414,15 @@ namespace mln
return this->data_->b_;
}
template <typename T>
inline
const box1d&
image1d<T>::vbbox() const
{
mln_precondition(this->is_valid());
return this->data_->vb_;
}
template <typename T>
inline
unsigned
......
// Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE)
// Copyright (C) 2007, 2008, 2009, 2011 EPITA Research and Development
// Laboratory (LRDE)
//
// This file is part of Olena.
//
......@@ -176,6 +177,9 @@ namespace mln
/// Give the bounding box domain.
const box2d& bbox() const;
// virtual box, i.e., box including the virtual border
const box2d& vbbox() const;
/// Read-only access to the image value located at point \p p.
const T& operator()(const point2d& p) const;
......@@ -432,6 +436,15 @@ namespace mln
return this->data_->b_;
}
template <typename T>
inline
const box2d&
image2d<T>::vbbox() const
{
mln_precondition(this->is_valid());
return this->data_->vb_;
}
template <typename T>
inline
bool
......
......@@ -181,6 +181,9 @@ namespace mln
/// Give the bounding box domain.
const box3d& bbox() const;
/// virtual box, i.e., box including the virtual border
const box3d& vbbox() const;
/// Give the border thickness.
unsigned border() const;
......@@ -428,6 +431,15 @@ namespace mln
return data_->b_;
}
template <typename T>
inline
const box3d&
image3d<T>::vbbox() const
{
mln_precondition(this->is_valid());
return data_->vb_;
}
template <typename T>
inline
unsigned
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment