| 93 | } |
| 94 | |
| 95 | static inline int Step( // return x coord at the given offset along whisker |
| 96 | double x, // in: x coord of center of whisker |
| 97 | double xstep, // in: x dist to move one pixel along whisker |
| 98 | int offset) // in: offset along whisker in pixels |
| 99 | { |
| 100 | return cvRound(x + (offset * xstep)); |
| 101 | } |
| 102 | |
| 103 | static inline int Pix( // get pixel at ix and iy, forcing ix and iy in range |
| 104 | const Image& img, // in |