Home > . > findedge.m

findedge

PURPOSE ^

[slope, int] = findedge(cent, nlin)

SYNOPSIS ^

function [slope, int] = findedge(cent, nlin)

DESCRIPTION ^

 [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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 27-Jul-2009 13:44:16 by m2html © 2003