title: How to get the Gaussian matrix with variance σs in opencv?
body: <p>I'm trying to design a line detector in opencv, and to do that, I need to get the Gaussian matrix with variance <code>σs</code>. </p>
  
  <p>The final formula should be 
  <code>H=Gσs∗(Gσd')T</code>, and <code>H</code> is the detector that I'm going to create, but I have no idea how am I supposed to create the matrix with the variance and furthermore calculate <code>H</code> finally.
  <strong>Update</strong></p>
  
  <p>This is the full formula.where “T” is the transpose operation.<code>Gσd'</code> is the first-order derivative of a 1-D Gaussian function <code>Gσd</code> with varianceσd in this direction
  <img src="https://i.stack.imgur.com/blUW2.png" alt=""></p>
  
  <p><img src="https://i.stack.imgur.com/mt0Jk.png" alt="enter image description here"></p>
  
  <p>****Update****</p>
  
  <p>These are the two formulas that I want, I need <code>H</code> for further use so please tell me how to generate the matrix. thx!</p>