title: Opencv resize changing the Pixel value
body: <p>While training <a href="http://www.cs.cmu.edu/~aayushb/pixelNet/" rel="nofollow noreferrer">PixelNet</a>, I have tor resize the annotated image(label) that has specific pixel value,before resizing ;the image pixels has specif values(annotated objects) ,<code>np.unique(image)</code>  gives <code>[ 0  7 15]
  </code>
  However when i resize the image with openCV to fit it to my network definition,the pixel values range changes,where </p>
  
  <pre><code>image = cv2.resize(image,(cnn_input_size, cnn_input_size),cv2.INTER_NEAREST)
  </code></pre>
  
  <p><code>np.unique(bmask)</code>
   gives 
  <code>[ 0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17]</code></p>
  
  <p>This is a disaster for training images with annotated label as these values are specify for other classes,i am wondering if this is the expected behavior of OpenCV while resizing.</p>