41 auto detection_image = frame->getThresholdedImage();
42 auto tiles =
getTiles(*detection_image);
44 VisitedMap visited(detection_image->getWidth(), detection_image->getHeight());
46 for (
auto& tile : tiles) {
47 auto chunk = detection_image->getChunk(tile.offset.m_x, tile.offset.m_y, tile.width, tile.height);
48 for (
int y=0; y<tile.height; y++) {
49 for (
int x=0; x<tile.width; x++) {
51 if (!visited.
wasVisited(pixel) && chunk->getValue(x, y) > 0.0) {
52 labelSource(pixel, listener, *detection_image, visited);