title: Changing origin in Structuring element in octave/matlab (image processing)
body: <p>I am trying to apply morphological operations on image in octave/matlab. 
  I need to use structuring elements for using operations like dialate, erode.
  The origin of structuring elements is set by default using 
  this: </p>
  
  <p>origin = floor((size(nhood)+1)/2)</p>
  
  <p>reference : <a href="http://www.mathworks.in/help/images/ref/strel.html" rel="nofollow">http://www.mathworks.in/help/images/ref/strel.html</a> </p>
  
  <p>i need to change this origin to some other element of the structuring element. FYI I am using flat structuring element.</p>
  
  <p>I couldn't find any document for this. Any help is welcome.</p>
  
  <p>Thanks </p>