Artifact 83003d34900bf8f79ddddf2624fc5e38a80ecfee:
- File operator/add-float-grey8.crimp — part of check-in [59fb93c6c7] at 2010-10-30 19:03:38 on branch ak-experimental — Extended all the binary operators except for 'screen' to work with float images. (user: andreask size: 423) [more...]
add_float_grey8 Tcl_Obj* imageAObj Tcl_Obj* imageBObj int scale int offset /* * Pixel- and channel-wise scaled and biased addition of two images. The * images have to have equal dimensions. */ #define BINOP(a,b) ((((a) + (b)) / scale) + offset) #include "binop_float_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: */