src/textord/imagefind.cpp
static void DeletePartition(ColPartition *part) {
  BlobRegionType type = part->blob_type();
  if (type == BRT_RECTIMAGE || type == BRT_POLYIMAGE) {
    // The partition owns the boxes of these types, so just delete them.
    part->DeleteBoxes(); // From a previous iteration.
  } else {
    // Once marked, the blobs will be swept up by TidyBlobs.
    part->set_flow(BTFT_NONTEXT);
    part->set_blob_type(BRT_NOISE);
    part->SetBlobTypes();
    part->DisownBoxes(); // Created before FindImagePartitions.
  }
  delete part;
}
// Helper deletes the given partition but first marks up all the blobs as
// noise, so they get deleted later, and disowns them.
// If the initial type of the partition is image, then it actually deletes
// the blobs, as the partition owns them in that case.
Helper deletes the given partition but first marks up all the blobs as
noise, so they get deleted later, and disowns them.
If the initial type of the partition is image, then it actually deletes
the blobs, as the partition owns them in that case.
Helper deletes the given partition but first marks up all the blobs as noise so they get deleted later and disowns them . If the initial type of the partition is image then it actually deletes the blobs as the partition owns them in that case .
static void DeletePartition(ColPartition *part) {
  BlobRegionType type = part->blob_type();
  if (type == BRT_RECTIMAGE || type == BRT_POLYIMAGE) {
    part->DeleteBoxes(); 
  } else {
    part->set_flow(BTFT_NONTEXT);
    part->set_blob_type(BRT_NOISE);
    part->SetBlobTypes();
    part->DisownBoxes(); 
  }
  delete part;
}
static void DeletePartition ( ColPartition * part ) { BlobRegionType type = part -> blob_type ( ) ; if ( type == BRT_RECTIMAGE || type == BRT_POLYIMAGE ) { part -> DeleteBoxes ( ) ; } else { part -> set_flow ( BTFT_NONTEXT ) ; part -> set_blob_type ( BRT_NOISE ) ; part -> SetBlobTypes ( ) ; part -> DisownBoxes ( ) ; } delete part ; }
Helper deletes the given partition but first marks up all the blobs as
noise, so they get deleted later, and disowns them.
Helper deletes the given partition but first marks up all the blobs as noise so they get deleted later and disowns them .
// The partition owns the boxes of these types, so just delete them. // From a previous iteration. // Once marked, the blobs will be swept up by TidyBlobs. // Created before FindImagePartitions.