title: Enlarge image pixels with opencv
body: <pre><code>int main(int argc, char** argv){
  cv::Mat gray;
  cv::Mat resize;
  cv::Mat big;
  cv::cvtColor(src, gray, CV_BGR2GRAY);
  cv::resize(gray, resize, cv::Size(src.rows/2, src.cols/2));
  cv::resize(resize, big, cv::Size(src.rows, src.cols));
  cv::Mat clone(resize.rows, resize.cols, CV_8U);
  
  for(int y=0;y&lt;resize.rows;y++){
         for(int x=0;x&lt;resize.cols;x++){
             clone.at&lt;uchar&gt;(y,x) = resize.at&lt;uchar&gt;(y,x);
  
                                 }
                                   }
              cv::imshow("clone", clone);
  </code></pre>
  
  <p>I wrote my code and I have 2 questions
  1) How can I enlarge 1 pixel into 4 pixels? and also show them.
  2) How can I enlarge every pixels of image into 4 multiply with every pixels of image? (Not to use interpolation)</p>
  
  <p>Edit</p>
  
  <p><img src="https://i.stack.imgur.com/jRrqH.jpg" alt="enter image description here"></p>
  
  <p>from my image I want to enlarge 1 pixel into 4 pixel.
  Then all of pixels image must englarged into bigger image.</p>