/*imagemath all functions that do library independent pixel calculations*/

inline int scalepixelim(ImagePtr im,
			long x1, long y1, long x2, long y2);
/*Gives back the average brightness of a pixel area specified*/
/*in 1/256 pixels in both directions*/

inline int diffscalepixelim(ImagePtr im,
			long ax1, long ay1, long ax2, long ay2);
/*Gives back the average difference of a pixel area specified*/
/*in 1/256 pixels in both directions*/

inline int xsectorsim(ImagePtr ima,int sectorsize);
inline int ysectorsim(ImagePtr ima, int sectorsize);
/*Give back the amount of sectors in x and y direction in im*/

inline int drawsectorim(ImagePtr ima, int xpos, int ypos,
		        int color,int sectorsize, int method);
/*Draws or Outlines a sector in im, not sure yet <g>*/
/*0 if OK, -1 if i am not too lazy to detect errors here <g>*/
/*method 0 will draw the whole sector, method 1 only outlines it*/

