| 196 | } |
| 197 | |
| 198 | static DetectorResult SampleGrid(const BitMatrix& image, const ResultPoint& topLeft, const ResultPoint& bottomLeft, |
| 199 | const ResultPoint& bottomRight, const ResultPoint& topRight, int width, int height) |
| 200 | { |
| 201 | return SampleGrid(image, width, height, |
| 202 | {Rectangle(width, height, 0.5), {topLeft, topRight, bottomRight, bottomLeft}}); |
| 203 | } |
| 204 | |
| 205 | /** |
| 206 | * Returns the z component of the cross product between vectors BC and BA. |