Re: A "slanted edge" analysis program



Lorenzo J. Lucchini wrote:
[snip]

Let us see if I've understood this.

What you mean is, for each line "y", for each pixel "x", do

  ESF[ (x*4) + (Distance(Pixel[x][y], Centroid[y]) % 4) ] +=
    Pixel[x][y];

and then, at the end, divide ESF[i] = ESF[i]/y, to get the average (well, or just normalize the ESF I have).

Sorry, probably I should have specified better what I meant with Centroid[y]: not the position on line y where the edge "appears to be", but the edge position on line y taken *from the regression*.


That is, first I do
  for(y) {
    ApproximatedCentroid[y]=FindCentroid(y);
  }

  Then,
  for(y) {
    RealCentroid[y]=PointInRegression(ApproximatedCentroid, y);
  }

and then use the ReadCentroid array in the "bins" code. I suppose using the ApproximatedCentroid array would make no sense.


by LjL ljlbox@xxxxxxxxxx .