Returns true if there are any real classification results.
| 34 | |
| 35 | // Returns true if there are any real classification results. |
| 36 | bool MATRIX::Classified(int col, int row, int wildcard_id) const { |
| 37 | if (get(col, row) == NOT_CLASSIFIED) return false; |
| 38 | BLOB_CHOICE_IT b_it(get(col, row)); |
| 39 | for (b_it.mark_cycle_pt(); !b_it.cycled_list(); b_it.forward()) { |
| 40 | BLOB_CHOICE* choice = b_it.data(); |
| 41 | if (choice->IsClassified()) |
| 42 | return true; |
| 43 | } |
| 44 | return false; |
| 45 | } |
| 46 | |
| 47 | // Expands the existing matrix in-place to make the band wider, without |
| 48 | // losing any existing data. |
no test coverage detected