/////////////////////////////////////////////////////////////////////////////////////////////////////////////
| 198 | |
| 199 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 200 | TEST (PCL, LineIterator8Neighbors) |
| 201 | { |
| 202 | PointCloud <PointXYZ> cloud; |
| 203 | cloud.width = 100; |
| 204 | cloud.height = 100; |
| 205 | cloud.resize (cloud.width * cloud.height); |
| 206 | |
| 207 | unsigned center_x = 50; |
| 208 | unsigned center_y = 50; |
| 209 | unsigned length = 45; |
| 210 | |
| 211 | // right |
| 212 | checkSimpleLine8 (center_x, center_y, center_x + length, center_y, cloud); |
| 213 | |
| 214 | // left |
| 215 | checkSimpleLine8 (center_x, center_y, center_x - length, center_y, cloud); |
| 216 | |
| 217 | // down |
| 218 | checkSimpleLine8 (center_x, center_y, center_x, center_y - length, cloud); |
| 219 | |
| 220 | // up |
| 221 | checkSimpleLine8 (center_x, center_y, center_x, center_y + length, cloud); |
| 222 | |
| 223 | // up-right |
| 224 | checkSimpleLine8 (center_x, center_y, center_x + length, center_y + length, cloud); |
| 225 | |
| 226 | // up-left |
| 227 | checkSimpleLine8 (center_x, center_y, center_x - length, center_y + length, cloud); |
| 228 | |
| 229 | // down-right |
| 230 | checkSimpleLine8 (center_x, center_y, center_x + length, center_y - length, cloud); |
| 231 | |
| 232 | // down-left |
| 233 | checkSimpleLine8 (center_x, center_y, center_x - length, center_y - length, cloud); |
| 234 | } |
| 235 | |
| 236 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 237 | TEST (PCL, LineIterator8NeighborsGeneral) |
nothing calls this directly
no test coverage detected