Superpixel Benchmark
Superpixel benchmark, tools and algorithms.
Public Member Functions | List of all members
GraphSegmentationDistance Class Referenceabstract

Interface to be implemented by a concerete distance. The distance defines how the weights between nodes in the image graph are computed. See the paper by Felzenswalb and Huttenlocher for details. Essentially, derived classes only need to overwrite the () operator. More...

#include <graph_segmentation.h>

Inheritance diagram for GraphSegmentationDistance:
GraphSegmentationEuclideanRGB GraphSegmentationManhattenRGB

Public Member Functions

 GraphSegmentationDistance ()
 Constructor. More...
 
virtual ~GraphSegmentationDistance ()
 Destructor. More...
 
virtual float operator() (const ImageNode &n, const ImageNode &m)=0
 Compute the distance given 2 nodes. More...
 

Detailed Description

Interface to be implemented by a concerete distance. The distance defines how the weights between nodes in the image graph are computed. See the paper by Felzenswalb and Huttenlocher for details. Essentially, derived classes only need to overwrite the () operator.

Author
David Stutz

Constructor & Destructor Documentation

GraphSegmentationDistance::GraphSegmentationDistance ( )
inline

Constructor.

virtual GraphSegmentationDistance::~GraphSegmentationDistance ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual float GraphSegmentationDistance::operator() ( const ImageNode n,
const ImageNode m 
)
pure virtual

Compute the distance given 2 nodes.

Parameters
[in]nfirst node
[in]msecond node

Implemented in GraphSegmentationEuclideanRGB, and GraphSegmentationManhattenRGB.


The documentation for this class was generated from the following file: