title: Undocumented resize error when using Nvidia NPP to resize image
body: <p>I'm attempting to use the Nvidia performance primatives library to resize an image, but the <code>nppiResize_8u_C3R</code> function is throwing a <code>NPP_RESIZE_FACTOR_ERROR</code> that is not listed in the documentation as one of the error return codes for that function.  Here is my hopefully simple code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;nppi.h&gt;
  
  int image_a_pitch;
  NppiSize image_a_size = {.width = 960, .height = 540};
  NppiRect image_a_roi = {.x = 0, .y = 0, .width = 960, .height = 540};
  Npp8u* image_a = nppiMalloc_8u_C3(960, 540, &amp;image_a_pitch);
  
  int image_b_pitch;
  NppiSize image_b_size = {.width = 960, .height = 540};
  NppiRect image_b_roi = {.x = 0, .y = 0, .width = 960, .height = 540};
  Npp8u* image_b = nppiMalloc_8u_C3(960, 540, &amp;image_b_pitch);
  
  NppStatus result = nppiResize_8u_C3R(image_a, image_a_pitch, image_a_size, image_a_roi, image_b, image_b_pitch, image_b_size, image_b_roi, NPPI_INTER_SUPER);
  
  if (result != NPP_SUCCESS) {
      std::cerr &lt;&lt; "Error executing Resize -- code: " &lt;&lt; result &lt;&lt; std::endl;
  }
  </code></pre>
  
  <p>You might note I'm not actually resizing the image, and yes, that is true, but I'm attempting to create the simplest case for this error.  From what I've been testing, it doesn't seem to matter what sizes I use for the images, I still get the same return error code, which does not seem to be a valid error code for that function, but rather an error code for the depreciated <code>nppiResizeSqrPixel_8u_C3R</code>.</p>
  
  <p>I'd definitely appreciate some help pointing out whatever error I'm doing in setting up the library calls that is causing this error.</p>