src/ccstruct/boxword.cpp
void BoxWord::ProcessMatchedBlobs(const TWERD &other,
                                  const std::function<void(int)> &cb) const {
  for (unsigned i = 0; i < length_ && i < other.NumBlobs(); ++i) {
    TBOX blob_box = other.blobs[i]->bounding_box();
    if (blob_box == boxes_[i]) {
      cb(i);
    }
  }
}
// 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.
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.
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 .
void BoxWord::ProcessMatchedBlobs(const TWERD &other,
                                  const std::function<void(int)> &cb) const {
  for (unsigned i = 0; i < length_ && i < other.NumBlobs(); ++i) {
    TBOX blob_box = other.blobs[i]->bounding_box();
    if (blob_box == boxes_[i]) {
      cb(i);
    }
  }
}
void BoxWord :: ProcessMatchedBlobs ( const TWERD & other , const std :: function < void ( int ) > & cb ) const { for ( unsigned i = 0 ; i < length_ && i < other . NumBlobs ( ) ; ++ i ) { TBOX blob_box = other . blobs [ i ] -> bounding_box ( ) ; if ( blob_box == boxes_ [ i ] ) { cb ( i ) ; } } }
This and other putatively are the same, so call the (permanent) callback
for each blob index where the bounding boxes match.
This and other putatively are the same so call the ( permanent ) callback for each blob index where the bounding boxes match .