dilate() and erode() can't run with 1 width element (Bug #1099)
Description
The following script generate error:
------------------------------------
Mat kernel = getStructuringElement(MORPH_RECT, Size(1, 3));
dilate(input_img, result_img, kernel);
------------------------------------
In my environment (VC++2010), the error message is assertion error in vector:
"Expression: vector subscript out of range"
on the other hand, the following script is ok:
----------------------------------------------------
Mat kernel = getStructuringElement(MORPH_RECT, Size(3, 1));
dilate(input_img, result_img, kernel);
----------------------------------------------------
erode() and morphologyEx() also have same symptom.
takmin
Related issues
duplicated by Bug #1089: FilterEngine::init() crashes if kernel width is 1 & BORDE... | Done |
Associated revisions
Added support of the 1 width element in morphology (ticket #1099).
Merge pull request #1099 from asmorkalov:linux_vcap_fix
History
Updated by Ilya Lysenkov almost 14 years ago
- Status deleted (
Open)
Updated by Ilya Lysenkov almost 14 years ago
Thanks! Fixed in -r5272.
- Status set to Done
- (deleted custom field) set to fixed