dilate() and erode() can't run with 1 width element (Bug #1099)


Added by takuya minagawa almost 14 years ago. Updated almost 14 years ago.


Status:Done Start date:
Priority:High Due date:
Assignee:Ilya Lysenkov % Done:

0%

Category:imgproc, video
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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

Revision dfdbf0ab
Added by Ilya Lysenkov almost 14 years ago

Added support of the 1 width element in morphology (ticket #1099).

Revision 2dedfd97
Added by Roman Donchenko over 11 years ago

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

Also available in: Atom PDF