Fastest way of finding max/min in each row [closed]

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

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

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 reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-09-26 14:52:15.584837

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 -0600 )edit
1
sturkmen gravatar imagesturkmen ( 2017-02-02 08:02:33 -0600 )edit