MIME-Version: 1.0 Server: CERN/3.0 Date: Monday, 16-Dec-96 23:20:33 GMT Content-Type: text/html Content-Length: 4262 Last-Modified: Friday, 05-Apr-96 01:54:33 GMT
For you Sun users on the cs filesystems, feel free to use ~robotlab/bin/drawsnake or markpoints to draw your initial snakes. (Also available on the sunlab in ~jmiller/664/ps2).
/* ShortImage census_transform(GrayImage inim) * * Performs the census_transform using the following 7x7 mask * approximation. * - - x - - - - (2,0) * - x - x - x - (1,1) (3,1) (5,1) * - - x - x - x (2,2) (4,2) (6,2) * x - x P - x - (0,3) (2,3) (5,3) * - x - x - x - (1,4) (3,4) (5,4) * - - x - x - - (2,5) (4,5) * - - - x - - - (3,6) * * Input: a pgm image * Output: a ShortInt image containing the census transform of the * input, representing each comparison using on bit. */