src/classify/mfoutline.cpp
LIST ConvertOutlines(TESSLINE *outline, LIST mf_outlines, OUTLINETYPE outline_type) {
  MFOUTLINE mf_outline;

  while (outline != nullptr) {
    mf_outline = ConvertOutline(outline);
    if (mf_outline != nullptr) {
      mf_outlines = push(mf_outlines, mf_outline);
    }
    outline = outline->next;
  }
  return mf_outlines;
}
/*---------------------------------------------------------------------------*/
/**
 * Convert a tree of outlines to a list of MFOUTLINEs (lists of MFEDGEPTs).
 *
 * @param outline      first outline to be converted
 * @param mf_outlines  list to add converted outlines to
 * @param outline_type  are the outlines outer or holes?
 */
Convert a tree of outlines to a list of MFOUTLINEs (lists of MFEDGEPTs).
Convert a tree of outlines to a list of MFOUTLINEs ( lists of MFEDGEPTs ) .
LIST ConvertOutlines(TESSLINE *outline, LIST mf_outlines, OUTLINETYPE outline_type) {
  MFOUTLINE mf_outline;
  while (outline != nullptr) {
    mf_outline = ConvertOutline(outline);
    if (mf_outline != nullptr) {
      mf_outlines = push(mf_outlines, mf_outline);
    }
    outline = outline->next;
  }
  return mf_outlines;
}
LIST ConvertOutlines ( TESSLINE * outline , LIST mf_outlines , OUTLINETYPE outline_type ) { MFOUTLINE mf_outline ; while ( outline != nullptr ) { mf_outline = ConvertOutline ( outline ) ; if ( mf_outline != nullptr ) { mf_outlines = push ( mf_outlines , mf_outline ) ; } outline = outline -> next ; } return mf_outlines ; }
Convert a tree of outlines to a list of MFOUTLINEs (lists of MFEDGEPTs).
Convert a tree of outlines to a list of MFOUTLINEs ( lists of MFEDGEPTs ) .