CRIMP
Artifact [fa129b5c42]
Not logged in

Artifact fa129b5c42a47db0c05c3694dc61c732ad6c4ef4:


subtract_rgb_rgb
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) ((((a) - (b)) / scale) + offset)
#include "binop_rgb_rgb_rgb.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:
 */