pike.git / src / modules / Image / phase.h

version» Context lines:

pike.git/src/modules/Image/phase.h:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information.   || $Id$   */      /* This file is incuded in search.c with the following defines set: - NEIG is 1, zx, zx+1 or zx-1 + NEIG is 1, xz, xz+1 or xz-1   IMAGE_PHASE image_phase(h|v|hv|vh) Name of the function    */      void IMAGE_PHASE(INT32 args)   {    struct object *o;    struct image *img,    *this;    rgb_group *imgi=0,*thisi=0;   
pike.git/src/modules/Image/phase.h:41:    xs=this->xsize-1;    ys=this->ysize-1;         #define DALOOP(R) \    for(y=1; y<ys; y++) \    for(x=1; x<xs; x++) \    {\    int i;\    int V,H;\ -  i=y*xs+x;\ +  i=y*xz+x;\    V=thisi[i-(NEIG)].R-thisi[i].R;\    H=thisi[i+(NEIG)].R-thisi[i].R;\    if ((V==0)&&(H==0))\    {\    /*\    In this case a check to see what there are at the sides \    should be done\    */\    imgi[i].R=0;\    }\