src/ccstruct/werd.cpp
void WERD::GetNoiseOutlines(std::vector<C_OUTLINE *> *outlines) {
  C_BLOB_IT rej_it(&rej_cblobs);
  for (rej_it.mark_cycle_pt(); !rej_it.empty(); rej_it.forward()) {
    C_BLOB *blob = rej_it.extract();
    C_OUTLINE_IT ol_it(blob->out_list());
    outlines->push_back(ol_it.extract());
    delete blob;
  }
}
// Extracts all the noise outlines and stuffs the pointers into the given
// vector of outlines. Afterwards, the outlines vector owns the pointers.
Extracts all the noise outlines and stuffs the pointers into the given
vector of outlines. Afterwards, the outlines vector owns the pointers.
Extracts all the noise outlines and stuffs the pointers into the given vector of outlines . Afterwards the outlines vector owns the pointers .
void WERD::GetNoiseOutlines(std::vector<C_OUTLINE *> *outlines) {
  C_BLOB_IT rej_it(&rej_cblobs);
  for (rej_it.mark_cycle_pt(); !rej_it.empty(); rej_it.forward()) {
    C_BLOB *blob = rej_it.extract();
    C_OUTLINE_IT ol_it(blob->out_list());
    outlines->push_back(ol_it.extract());
    delete blob;
  }
}
void WERD :: GetNoiseOutlines ( std :: vector < C_OUTLINE * > * outlines ) { C_BLOB_IT rej_it ( & rej_cblobs ) ; for ( rej_it . mark_cycle_pt ( ) ; ! rej_it . empty ( ) ; rej_it . forward ( ) ) { C_BLOB * blob = rej_it . extract ( ) ; C_OUTLINE_IT ol_it ( blob -> out_list ( ) ) ; outlines -> push_back ( ol_it . extract ( ) ) ; delete blob ; } }
Extracts all the noise outlines and stuffs the pointers into the given
vector of outlines.
Extracts all the noise outlines and stuffs the pointers into the given vector of outlines .