title: cvInRangeS simmilar in opecv 2?
body: <p>I was wondering if there is something similar to <code>cvInRanges</code> in <code>Opencv2</code> which works directly on <code>Mat</code> objects.</p>
  
  <p>Actually I want to convert this:</p>
  
  <pre><code>cvInRangeS(IplImage *m1, Scalar min, Scalar max, IplImage *m2);
  </code></pre>
  
  <p>To something like:</p>
  
  <pre><code>some_func (Mat m1, Scalar min, Scalar max, Mat m2);
  </code></pre>