Skip to content

Commit

Permalink
Remove assertion in function NewSimpleProto (issue tesseract-ocr#3925)
Browse files Browse the repository at this point in the history
It was triggered by mftraining.

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil authored and GerHobbelt committed Jan 27, 2023
1 parent 950643b commit 295d7e2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/classify/cluster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2523,7 +2523,6 @@ static PROTOTYPE *NewMixedProto(int16_t N, CLUSTER *Cluster, STATISTICS *Statist
*/
static PROTOTYPE *NewSimpleProto(int16_t N, CLUSTER *Cluster) {
auto Proto = new PROTOTYPE;
ASSERT_HOST(N == sizeof(Cluster->Mean));
Proto->Mean = Cluster->Mean;
Proto->Distrib.clear();
Proto->Significant = true;
Expand Down

0 comments on commit 295d7e2

Please sign in to comment.