Commit b605d237 authored by Thierry Geraud's avatar Thierry Geraud
Browse files

2006-09-25 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr>

	Properly define fwd_piter_type and bkd_piter_type for the
	add_neighborhood image morpher.
	
	* oln/core/abstract/image_hierarchies.hh: Remove end blank line.
	* oln/core/gen/fwd_piter_bbox.hh (change_topology_): New.
	* oln/core/gen/bkd_piter_bbox.hh (change_topology_): New.
	* oln/morpher/add_neighborhood.hh (morpher_type): Remove; obsolete
	cause defined in super class.
	(fwd_piter_type, bkd_piter_type): New definitions.



git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@566 4aad255d-cdde-0310-9447-f3009e2ae8c0
parent a5e25b0e
2006-09-25 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr>
Properly define fwd_piter_type and bkd_piter_type for the
add_neighborhood image morpher.
* oln/core/abstract/image_hierarchies.hh: Remove end blank line.
* oln/core/gen/fwd_piter_bbox.hh (change_topology_): New.
* oln/core/gen/bkd_piter_bbox.hh (change_topology_): New.
* oln/morpher/add_neighborhood.hh (morpher_type): Remove; obsolete
cause defined in super class.
(fwd_piter_type, bkd_piter_type): New definitions.
2006-09-25 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr>
Update image_extension, add_neighborhood, and some related
......
......@@ -59,4 +59,3 @@ namespace oln
#endif // ! OLENA_CORE_ABSTRACT_IMAGE_HIERARCHIES_HH
......@@ -95,6 +95,12 @@ namespace oln
return ostr;
}
template <typename new_topo_t>
struct change_topology_
{
typedef bkd_piter_bbox_<new_topo_t> ret;
};
protected:
const topo_t& topo_;
......
......@@ -95,6 +95,12 @@ namespace oln
return ostr;
}
template <typename new_topo_t>
struct change_topology_
{
typedef fwd_piter_bbox_<new_topo_t> ret;
};
protected:
const topo_t& topo_;
......
......@@ -55,11 +55,17 @@ namespace oln
template <typename Image, typename Neighb>
struct vtypes< morpher::add_neighborhood<Image, Neighb> >
{
private:
typedef oln_type_of(Image, fwd_piter) basic_fwd_piter_type;
typedef oln_type_of(Image, bkd_piter) basic_bkd_piter_type;
public:
// Topology type.
typedef topo_add_nbh< oln_type_of(Image, topo), Neighb > topo_type;
// Morpher type.
typedef oln::morpher::tag::identity morpher_type;
typedef typename basic_fwd_piter_type::template change_topology_<topo_type>::ret fwd_piter_type;
typedef typename basic_bkd_piter_type::template change_topology_<topo_type>::ret bkd_piter_type;
// Neighborhood type.
typedef Neighb neighborhood_type;
......
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