Hi,
I’m using the nppiGraphcut_32s8u NPP Graphcut function in my project. It worked perfectly with CUDA 4.0, but when I upgraded to CUDA 4.1 (and adapted the function call) the output was different. Unlike CUDA 4.0 the binary output image is encoded as 0/1, while the NPP documentation states that it is encoded as 0/255.
The CUDA 4.1 SDK imageSegmentationNPP sample shows how to scale the result to 0/255:
nppiMulC_8u_C1IRSfs(255, oDeviceDst.data(), oDeviceDst.pitch(), size, 0);
NVIDIA, could you please update the NPP documentation and make a remark about this?