CRIMP
Artifact [cbd768df21]
Not logged in

Artifact cbd768df21f3bdc2fa2e10e3500f1aa0b1a55da1:


div_float_grey16
Tcl_Obj* imageAObj
Tcl_Obj* imageBObj
float scale
float 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_float_grey16.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:
 */