struct mrpt::maps::CRandomFieldGridMap3D::ConnectivityDescriptor
Overview
Base class for user-supplied objects capable of describing voxels connectivity, used to build prior factors of the MRF graph.
See also:
setvoxelsConnectivity()
#include <mrpt/maps/CRandomFieldGridMap3D.h> struct ConnectivityDescriptor { // typedefs typedef std::shared_ptr<ConnectivityDescriptor> Ptr; // methods virtual bool getEdgeInformation( const CRandomFieldGridMap3D* parent, size_t icx, size_t icy, size_t icz, size_t jcx, size_t jcy, size_t jcz, double& out_edge_information ) = 0; };
Methods
virtual bool getEdgeInformation( const CRandomFieldGridMap3D* parent, size_t icx, size_t icy, size_t icz, size_t jcx, size_t jcy, size_t jcz, double& out_edge_information ) = 0
Implement the check of whether node i=(icx,icy,icz) is connected with node j=(jcx,jcy,jcy).
This visitor method will be called only for immediate neighbors.
Returns:
true if connected (and the “information” value should be also updated in out_edge_information), false otherwise.