src/ccstruct/blobs.cpp
TBOX TBLOB::bounding_box() const {
  if (outlines == nullptr) {
    return TBOX(0, 0, 0, 0);
  }
  TESSLINE *outline = outlines;
  TBOX box = outline->bounding_box();
  for (outline = outline->next; outline != nullptr; outline = outline->next) {
    box += outline->bounding_box();
  }
  return box;
}
/**********************************************************************
 * TBLOB::bounding_box()
 *
 * Compute the bounding_box of a compound blob, defined to be the
 * bounding box of the union of all top-level outlines in the blob.
 **********************************************************************/
:bounding_box()
Compute the bounding_box of a compound blob, defined to be the
bounding box of the union of all top-level outlines in the blob.
: bounding_box () Compute the bounding_box of a compound blob defined to be the bounding box of the union of all top - level outlines in the blob .
TBOX TBLOB::bounding_box() const {
  if (outlines == nullptr) {
    return TBOX(0, 0, 0, 0);
  }
  TESSLINE *outline = outlines;
  TBOX box = outline->bounding_box();
  for (outline = outline->next; outline != nullptr; outline = outline->next) {
    box += outline->bounding_box();
  }
  return box;
}
TBOX TBLOB :: bounding_box ( ) const { if ( outlines == nullptr ) { return TBOX ( 0 , 0 , 0 , 0 ) ; } TESSLINE * outline = outlines ; TBOX box = outline -> bounding_box ( ) ; for ( outline = outline -> next ; outline != nullptr ; outline = outline -> next ) { box += outline -> bounding_box ( ) ; } return box ; }
TBLOB::bounding_box()
 Compute the bounding_box of a compound blob, defined to be the
 bounding box of the union of all top-level outlines in the blob.
TBLOB :: bounding_box () Compute the bounding_box of a compound blob defined to be the bounding box of the union of all top - level outlines in the blob .