ReadFramework
rdf::PixelDistance Namespace Reference

Functions

DllCoreExport double euclidean (const Pixel *px1, const Pixel *px2)
 Euclidean distance between the pixel's centers. More...
 
DllCoreExport double mahalanobis (const Pixel *px1, const Pixel *px2)
 
DllCoreExport double bhattacharyya (const Pixel *px1, const Pixel *px2)
 
DllCoreExport double angleWeighted (const Pixel *px1, const Pixel *px2)
 Angle weighted pixel distance. If the pixel's local orientations are not computed, this method defaults to the euclidean distance. More...
 
DllCoreExport double spacingWeighted (const PixelEdge *edge)
 Returns the edge weight normalized by the line spacing. This function returns an edge weight that is similar to the one proposed by Il Koo. Hence, it can be used for graphcuts. More...
 
DllCoreExport double orientationWeighted (const PixelEdge *edge)
 
DllCoreExport double euclidean (const PixelEdge *edge)
 

Variables

DllCoreExport typedef double(* PixelDistanceFunction )(const Pixel *px1, const Pixel *px2)
 
DllCoreExport typedef double(* EdgeWeightFunction )(const PixelEdge *edge)
 

Function Documentation

double rdf::PixelDistance::angleWeighted ( const Pixel px1,
const Pixel px2 
)

Angle weighted pixel distance. If the pixel's local orientations are not computed, this method defaults to the euclidean distance.

Parameters
px1The first SuperPixel.
px2The second SuperPixel.
Returns

Here is the caller graph for this function:

double rdf::PixelDistance::bhattacharyya ( const Pixel px1,
const Pixel px2 
)
double rdf::PixelDistance::euclidean ( const Pixel px1,
const Pixel px2 
)

Euclidean distance between the pixel's centers.

Parameters
px1The first SuperPixel.
px2The second SuperPixel.
Returns

Here is the caller graph for this function:

double rdf::PixelDistance::euclidean ( const PixelEdge edge)
double rdf::PixelDistance::mahalanobis ( const Pixel px1,
const Pixel px2 
)
double rdf::PixelDistance::orientationWeighted ( const PixelEdge edge)

Here is the caller graph for this function:

double rdf::PixelDistance::spacingWeighted ( const PixelEdge edge)

Returns the edge weight normalized by the line spacing. This function returns an edge weight that is similar to the one proposed by Il Koo. Hence, it can be used for graphcuts.

Parameters
edgeThe pixel edge.
Returns

Here is the caller graph for this function:

Variable Documentation

DllCoreExport typedef double(* rdf::PixelDistance::EdgeWeightFunction) (const PixelEdge *edge)
DllCoreExport typedef double(* rdf::PixelDistance::PixelDistanceFunction) (const Pixel *px1, const Pixel *px2)