[slope, int] = findedge(cent, nlin) fit linear equation to data, written to process edge location array cent = array of (centroid) values nlin = length of cent slope and int are from the least-square fit x = int + slope*cent(x) Note that this is the inverse of the usual cent(x) = int + slope*x form Author: Peter Burns, 1 Oct. 2008 Copyright (c) 2007 Peter D. Burns