Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Before 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

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

Before 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

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

click to hide/show revision 3
No.3 Revision

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

berak gravatar image

region growing with opencl

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

do

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

processed

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

j), Increment Region

Increment Region

end for

end for

Growth (i, j)

j)

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

j)

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

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

j))

Then Growth (k, l)

l)

end for

for