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