region growing with opencl

asked 2017-06-28 21:16:25 -0600

dab gravatar image

updated 2017-06-29 02:59:46 -0600

berak gravatar image

After openning the image using OpenCV, I'm trying to create a region groing algorithm using OpenCL. The problem is to find how i can fix the starting point pixel (germ) in this image and transform these steps in OpenCL. Thanks in advance

PSEUDO CODE:

For each pixel I (i, j) do

If I (i, j) has not already been processed

Then Save (i, j), Growth (i, j),

Increment Region

end for

Growth (i, j)

For any Pixel (k, l) adjacent to I (i, j)

% For all 8-pixels If (Pixel (k, l) not already processed)      

AND (Criterion (Pixel (k, l)) = Criterion (I (i, j))

Then Growth (k, l)

end for
edit retag flag offensive close merge delete