title: huge virt memory used with opencv cv::resize
body: <p>I tried to resize a jpg file.Then I found that,the process was using huge amount of virt memory.I then found that the problem may be related to resize() fucntion.You can see the results in the below urls.
  Here is the code.</p>
  
  <pre><code>int main(){                                                                                                
          Mat test;                                                                                          
          Mat image_test = cv::imread("2.jpg",1);                                                            
          resize(image_test,test,Size(640,480));                                                             
          getchar();                                                                                         
  }               
  </code></pre>
  
  <p>gdb
  <img src="https://i.stack.imgur.com/TNbZr.png" alt="enter image description here">]
  htop
  <img src="https://i.stack.imgur.com/OkBSx.png" alt="enter image description here">]</p>