src/main/java/sc/fiji/pQCT/selectroi/liveWireEngine/LiveWireCosts.java
private double edgeCost(final int sr, final int sc, final int dr,
		final int dc)
	{
		// fg is the Gradient Magnitude
		double edgeCostSum = gw * gradientr[dr][dc] + zw * laplacian[dr][dc];
		edgeCostSum += edgeDirectionCost(sr, sc, dr, dc) * dw;
		return edgeCostSum;
	}
// returns the edge cost of going from sx,sy to dx,dy
returns the edge cost of going from sx,sy to dx,dy
returns the edge cost of going from sx sy to dx dy
private double edgeCost(final int sr, final int sc, final int dr,
		final int dc)
	{
		double edgeCostSum = gw * gradientr[dr][dc] + zw * laplacian[dr][dc];
		edgeCostSum += edgeDirectionCost(sr, sc, dr, dc) * dw;
		return edgeCostSum;
	}
private double edgeCost ( final int sr , final int sc , final int dr , final int dc ) { double edgeCostSum = gw * gradientr [ dr ] [ dc ] + zw * laplacian [ dr ] [ dc ] ; edgeCostSum += edgeDirectionCost ( sr , sc , dr , dc ) * dw ; return edgeCostSum ; }
returns the edge cost of going from sx,sy to dx,dy
returns the edge cost of going from sx sy to dx dy
// fg is the Gradient Magnitude