Superpixel Benchmark
Superpixel benchmark, tools and algorithms.
|
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>
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... | |
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.
|
inline |
Constructor.
|
inlinevirtual |
Destructor.
|
pure virtual |
Compute the distance given 2 nodes.
[in] | n | first node |
[in] | m | second node |
Implemented in GraphSegmentationEuclideanRGB, and GraphSegmentationManhattenRGB.