title: getRectSubPix and borderInterpolate in OpenCV
body: <p>The documentation for OpenCVs <a href="http://docs.opencv.org/3.0-last-rst/modules/imgproc/doc/geometric_transformations.html?highlight=getrectsubpix#void%20getRectSubPix(InputArray%20image,%20Size%20patchSize,%20Point2f%20center,%20OutputArray%20patch,%20int%20patchType)" rel="nofollow">getRectSubPix</a>() function:</p>
  
  <pre><code>C++: void getRectSubPix(InputArray image, Size patchSize, 
  Point2f center, OutputArray patch, int patchType=-1 )
  </code></pre>
  
  <p>contains the statement:</p>
  
  <blockquote>
    <p>While the center of the rectangle must be inside the image, 
    parts of the rectangle may be outside. In this case, 
    the replication border mode (see borderInterpolate() ) 
    is used to extrapolate the pixel values outside of the image.</p>
  </blockquote>
  
  <p>But I can't see a way to set the borderInterpolate mode in getRectSubPix.  Many other OpenCV functions (<a href="http://docs.opencv.org/2.4/modules/imgproc/doc/filtering.html?highlight=copymakeborder#boxfilter" rel="nofollow">boxFilter</a>, <a href="http://docs.opencv.org/2.4/modules/imgproc/doc/filtering.html?highlight=copymakeborder#copymakeborder" rel="nofollow">copyMakeBorder</a>, ...)  allow you to pass in the borderInterpolate enum, but not getRectSubPix.  </p>
  
  <p>Is this just a documentation error?</p>