I’m trying to use nppiErode_8u_C1R and nppiDilate_8u_C1R functions from npp library. However, the functions always returns me a black screen. There is no error. I thought there is a mistake about sent parameters. I’m sending ROI 2 smaller than the actual size and kernel size of 3x3 and anchor point as (1,1).
Where is my error? can anybody help me? Or has anyone a working sample of nppiErode and nppiDilate functions?
I don’t know if you fixed your problem but try to check the return code of the function it should be “NPP_NO_ERROR” return code 0
If you’ve got an “NPP_TEXTURE_BIND_ERROR” return code -24, it’s because the params you pass to the function are not all allocated on the device.