/* * edge3 -- gradient phase filter */ #include "filter.cc" int phase(int x, int y){ int t, p=0; if(y<0){ p+=128; y=-y; x=-x; } if(x<0){ p+=64; t=x; x=y; y=-x; } if(x