title: Most basic example of adding a OpenCV C++ add-on to node.js
body: <p>So lately I've been getting into OpenCV with C++.
  I've built up a few libraries and apps that I would like to export over to Nodejs, but I can't figure it out for the life of me.</p>
  
  <p>I tried to check out how he did it in this repo below, but it was a lot to take in especially since this is my first add-on.
  <a href="https://github.com/peterbraden/node-opencv/blob/master/binding.gyp" rel="noreferrer">https://github.com/peterbraden/node-opencv/blob/master/binding.gyp</a></p>
  
  <p>I don't mind it being with NAN or N-API, I just am hoping for something simple and easy to see what goes where and why.</p>
  
  <p>Here is a simple OpenCV function that just opens up an image that I am trying to use as an addon with Node:</p>
  
  <pre><code>#include &lt;opencv2/core.hpp&gt;
  #include &lt;opencv2/imgcodecs.hpp&gt;
  #include &lt;opencv2/highgui.hpp&gt;
  #include &lt;iostream&gt;
  #include &lt;string&gt;
  using namespace cv;
  using namespace std;
  
  int ShowImage()
  {
    String imageName("./image.png");
    Mat image;
    image = imread(imageName, IMREAD_COLOR);
    namedWindow("Display window", WINDOW_AUTOSIZE);
    imshow("Display window", image);
    waitKey(0);
  }
  </code></pre>