Added some commentary to the morph operation in char segmenter

This commit is contained in:
Matt Hill
2015-09-24 22:24:38 -04:00
parent 34701ef638
commit c93dee590c

View File

@@ -587,9 +587,10 @@ namespace alpr
} }
} }
Mat closureElement = getStructuringElement( 1, int morph_size = 1;
Size( 2 + 1, 2+1 ), Mat closureElement = getStructuringElement( 2, // 0 Rect, 1 cross, 2 ellipse
Point( 1, 1 ) ); Size( 2 * morph_size + 1, 2* morph_size + 1 ),
Point( morph_size, morph_size ) );
//morphologyEx(thresholds[i], thresholds[i], MORPH_OPEN, element); //morphologyEx(thresholds[i], thresholds[i], MORPH_OPEN, element);