Fastest way of finding max/min in each row

asked 2017-02-02 07:14:16 -0500

updated 2017-02-02 07:15:28 -0500

I need to find a maximum intensity value in each row of a 640x480 32FC1 image. Is there a faster way than iterating each row separately using parallel_for (cv::ParallelLoopBody)? May I use GPU (via UMat) for that?

edit retag flag offensive close merge delete

Comments

2

Have you try this using a roi ?

minMax uses already opencl. ParallelLoopBody with opencl should be best answer to your problem

Don't forget that first call to minmax using opencl is very slow because opencl code must be compiled

LBerger gravatar imageLBerger ( 2017-02-02 07:26:09 -0500 )edit
1
sturkmen gravatar imagesturkmen ( 2017-02-02 08:02:33 -0500 )edit