Wednesday, December 8, 2010

(5) FindEdge()

public void FindEdge(int[][] list){ //list of whole image (may include noise)
// System.out.println("listSizeFindEdge(): " + list.length);
//each list of Z values in one row of Y need a derivative.

// System.out.println("YDERIVATIVE...");
for (int y = 0; ylength;y++){
yDerivativeList = new int[list.length];
for (int x=0;xlength;x++){
yDerivativeList[derivativeCounter] = list[y][x];
derivativeCounter++;
}
YDerivative(yDerivativeList,y);
derivativeCounter = 0;
}

// System.out.println("XDERIVATIVE...");
derivativeCounter = 0;
for (int x = 0; xlength;x++){
xDerivativeList = new int[list.length];
for (int y=0;ylength;y++){
xDerivativeList[derivativeCounter] = list[y][x];
derivativeCounter++;
}
XDerivative(xDerivativeList,x);
derivativeCounter = 0;
}

printPoints(edgepoints);
printDerivative(totaldata);



}

Part 3  <--- Back to Part 3

No comments:

Post a Comment