/* * Extremum filter -- replace each pixel by the 8-neighbor that * differs most from it */ #include "filter.cc" void filter(unsigned char *l0, unsigned char *l1, unsigned char *l2, int nchan, int npix){ int min, max; unsigned char *op=outline; npix*=nchan; if(npix==0) return; do{ min=max=l0[-nchan]; #define minmax(a) if(a