title: What is the python equivalent for Matlab's stdfilt() function?
body: <p>I was trying to convert a piece of code in Matlab to python. There I could find a Standard deviation filter function "stdfilt()" for which I could not find any equivalent API in python. 
  The Matlab code is given below,</p>
  
  <pre><code>Ig_med = medfilt2(Input_Image);
  h_gauss = fspecial('gaussian',11,2);
  h_avg = fspecial('average',121);
  I = imfilter(Ig_med,h_gauss,'corr','replicate');
  
  P = stdfilt(I,ones(121));
  P = P.^2; 
  
  Q = imfilter(P,h_avg,'corr','replicate');
  </code></pre>
  
  <p>Can anyone help me out in implementing the above piece of code in Python ?</p>
  
  <p>Thanks in Advance</p>