7 #include "GradientOperator.h" 
   19     double gradient = 0.0;
 
   21     int height = chip.
Lines();
 
   25     while(width > 1 && height > 1) {
 
   26       for(
int i = 1; i <= width; i++) {
 
   27         pix1 = chip.
GetValue(i + offset, 1 + offset);
 
   28         pix2 = chip.
GetValue(width - i + 1 + offset, height + offset);
 
   32       for(
int i = 2; i < height; i++) {
 
   33         pix1 = chip.
GetValue(1 + offset, i + offset);
 
   34         pix2 = chip.
GetValue(width + offset, height - i + 1 + offset);