This and other putatively are the same, so call the (permanent) callback for each blob index where the bounding boxes match. The callback is deleted on completion.
| 191 | // for each blob index where the bounding boxes match. |
| 192 | // The callback is deleted on completion. |
| 193 | void BoxWord::ProcessMatchedBlobs(const TWERD& other, |
| 194 | TessCallback1<int>* cb) const { |
| 195 | for (int i = 0; i < length_ && i < other.NumBlobs(); ++i) { |
| 196 | TBOX blob_box = other.blobs[i]->bounding_box(); |
| 197 | if (blob_box == boxes_[i]) |
| 198 | cb->Run(i); |
| 199 | } |
| 200 | delete cb; |
| 201 | } |
| 202 | |
| 203 | } // namespace tesseract. |
no test coverage detected