Artifact 3249cad3a6830a9b7f71b125624bc4b112f65304:
- File operator/threshold-grey8-grey8.crimp — part of check-in [0261f9ef4a] at 2012-01-06 23:21:56 on branch infinite-plane — Reworked the operators for local (i.e. spatially varying) thresholding to use the binop machinery to handle images with differing geometries. Dropped the primitives handling application of per-channel thresholds for multi-channel images and re-implemented them in Tcl, splitting and re-joining the input and results. As the resulting channels may have different geometries a bounding box is computed (see previous extension of "crimp::core), and all partial results then expanded to match this box before re-joining, through a new supporting command (matchgeo). These parts need testing. (user: andreask size: 406) [more...]
threshold_grey8_grey8 Tcl_Obj* imageAObj Tcl_Obj* imageBObj /* * Thresholding of all pixels in the first image by the spatially varying * threshold specified through the second image. */ #define BINOP(p,t) ((p) >= (t) ? BLACK : WHITE) #include "binop_grey8_grey8_grey8.c" /* vim: set sts=4 sw=4 tw=80 et ft=c: */ /* * Local Variables: * mode: c * c-basic-offset: 4 * fill-column: 78 * End: */