Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How do you compute abs() using UMat?

Hi My input is UMat 32FC1 and I'd like to compute abs() but I get a compile error "no matching function for call to 'abs'". my code works find for Mat, but I'd like to use the GPUs. I also tried convertScaleAbs() but it outputs an 8 bit value. Any ideas on what's the most efficient way to do this other than writing my own ocl kernel? Cheers2u Eddie

How do you compute abs() using UMat?

Hi My input is UMat 32FC1 and I'd like to compute abs() but I get a compile error "no matching function for call to 'abs'". my code works find for Mat, but I'd like to use the GPUs. I also tried convertScaleAbs() but it outputs an 8 bit value. Any ideas on what's the most efficient way to do this other than writing my own ocl kernel? Cheers2u EddieMany Thanks

How do you compute abs() using UMat?

Hi My input is UMat 32FC1 and I'd like to compute abs() but I get a compile error "no matching function for call to 'abs'". my code works find for Mat, but I'd like to use the GPUs. I also tried convertScaleAbs() but it outputs an 8 bit value. value whereas I want to stay with 32FC1. Any ideas on what's the most efficient way to do this other than writing my own ocl kernel? Many Thanks