I have a binary image and I want to perform closing on that image with the line as structuring element. The openCv api has a function getStructuringElement that takes the following parameters
- Shape
- Size
- Anchor Point
I can pass CV_SHAPE_CUSTOM in the first parameter to create a new shape but where do I pass the size and the values of my structuring element.
My line will be 10 pixels wide and 1 pixels in length basically {1,1,1,1,1,1,1,1,1,1}.
There is an old function createStructringElementEx but I don't want to use that as it involves a lot of conversion of datatype.