Artifact c721486c577702e9d63665e65657917cb3a6f6a5:
- File operator/div-grey8-grey8.crimp — part of check-in [f8de4a07a1] at 2010-11-01 20:41:24 on branch ak-experimental — Added image division primitives and API on top. (user: andreask size: 500) [more...]
div_grey8_grey8 Tcl_Obj* imageAObj Tcl_Obj* imageBObj int scale int offset /* * Pixel- and channel-wise scaled and biased subtraction of two images. The * images have to have equal dimensions. Values out of range are wrapped into * it (modulo). */ #define BINOP(a,b) ((((b) == 0 ? WHITE : ((a) / (b))) / scale) + offset) #include "binop_grey8_grey8.c" #undef BINOP /* vim: set sts=4 sw=4 tw=80 et ft=c: */ /* * Local Variables: * mode: c * c-basic-offset: 4 * fill-column: 78 * End: */